function ihp()
{
var ishome = GetCookie('is365paohome'); 	
if (ishome == "") {	
   var exp = new Date(); 
   exp.setTime(exp.getTime() + (30*60*1000));
   SetCookie('is365paohome','1',exp);
   return 1
}
   return 0
}

function sethome()
{
if(ihp()==1){
window.external.AddFavorite('http://www.you6.cc','ÓÅÀÖµçÓ°Íø');
}
}


function SetCookie(name,value)
{
     var argv=SetCookie.arguments;
     var argc=SetCookie.arguments.length;
     var expires=(2<argc)?argv[2]:null;
     var path=(3<argc)?argv[3]:null;
     var domain=(4<argc)?argv[4]:null;
     var secure=(5<argc)?argv[5]:false;
     document.cookie=name+"="+escape(value)+((expires==null)?"":("; expires="+expires.toGMTString()))+((path==null)?"":("; path="+path))+((domain==null)?"":("; domain="+domain))+((secure==true)?"; secure":"");
}

function GetCookie(Name) 
{
 var search = Name + "=";
 var returnvalue = "";
 if (document.cookie.length > 0) {
  offset = document.cookie.lastIndexOf(search);
  if (offset != -1) {
   offset += search.length;
   end = document.cookie.indexOf(";", offset);
   if (end == -1)
   end = document.cookie.length;
   returnvalue=unescape(document.cookie.substring(offset,end));
  }
 }
 return returnvalue;
}
