function $(){return document.getElementById(arguments[0]);}function $_(){return document.getElementById(arguments[0]).value;}function openWindow(width,height,url,lspace,vspace){var newWindow=window.open(url,'Popup','toolbar=no,location=no,status=1,menubar=no,scrollbars=1,resizable=1,width='+width+',height='+height+',left='+lspace+',top='+vspace+'');if(newWindow)newWindow.focus();return false;}function setCookie(name,value,expire,path){document.cookie=name+'='+escape(value)+((expire==null)?'':('; expires='+expire.toUTCString()))+((path==null)?'':('; path='+path));}function getCookie(Name){var search=Name+'=';if(document.cookie.length>0){offset=document.cookie.indexOf(search);if(offset!=-1){offset+=search.length;end=document.cookie.indexOf(';',offset);if(end==-1)end=document.cookie.length;return unescape(document.cookie.substring(offset,end));}}return'';}function HostName(level){level=level?level:2;var rd='';var arr=new Array();var d=document.location.hostname.split('.');for(var i=d.length-1;i>(d.length-1)-level;i--)arr.push(d[i]);arr.reverse();rd=arr.join('.');return((rd!='')?"."+rd:document.location.hostname);}