// run cookie scripts

function $getCookie($c_name)
{
if (window.document.cookie.length>0)
  {
  $c_start=window.document.cookie.indexOf($c_name + "=")
  if ($c_start!=-1)
    { 
    $c_start=$c_start + $c_name.length+1 
    $c_end=window.document.cookie.indexOf(";",$c_start)
    if ($c_end==-1) $c_end=window.document.cookie.length
    return unescape(window.document.cookie.substring($c_start,$c_end))
    } 
  }
return ""
}function $setCookie($c_name,$value,$expiredays)
{var $exdate=new Date()$exdate.setDate($exdate.getDate()+$expiredays)
window.document.cookie=$c_name+ "=" +escape($value)+
(($expiredays==null) ? "" : ";expires="+$exdate.toGMTString())
}function $checkCookie()
{
$username=getCookie('username')
if ($username!=null && $username!="")
  {window.alert('Welcome again '+$username+'!')}
else 
  {
  $username=prompt('Please enter your name:',"")
  if ($username!=null && $username!="")
    {
    $setCookie('username',$username,365)
    }
  }
}

// run rightclick disabled scripts

var $message="Right Click Function Di\sabled!";

function $clickIE4(){
if (event.button==2){
window.alert(message);
return false;
}
}

function $clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")


 // run popup blocker scripts

NS_ActualOpen=window.open;
function $NS_NullWindow(){this.window;}
function 
$NS_NewOpen($url,$nam,$atr){return(new $NS_NullWindow());}
window.open=$NS_NewOpen;
