﻿// JScript 文件
 function addBookmark(title) {
                     var url=parent.location.href;
                     if (window.sidebar) { 
                            window.sidebar.addPanel(title, url,""); 
                     } else if( document.all ) {
                     window.external.AddFavorite( url, title);
                     } else if( window.opera && window.print ) {
                     return true;
                     }
       }
function $(obj)
{
	if (typeof(obj) == 'object')
	{
		return obj;
	}
	else
	{
		return document.getElementById(obj);
	}	
}
function $F(sInputID)
{
    if ($(sInputID) != null)
    {
       return $(sInputID).value ;
    }
}
function SetStrToInput(sStr, sInputID)
{
    if ($(sInputID) != null)
    {
        $(sInputID).value = sStr;
    }
}
function Change(url)
{
window.location=url;
}
function ShowBig(url)
{
$("big").src=url;
}
function Search()
{
window.location="/s.aspx?key="+$F("key");
}
function SendMSNMessage(name)
{
 MsgrObj.InstantMessage(name); 
}
function AddMSNContact(name)
{
 MsgrObj.AddContact(0, name);
}