  function SetCookie (name, value) {
      var argv = SetCookie.arguments;

      var argc = SetCookie.arguments.length;

      var expires = (argc > 2) ? argv[2] : null;
      var path = (argc > 3) ? argv[3] : null;
      var domain = (argc > 4) ? argv[4] : null;
      var secure = (argc > 5) ? 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 res()
 	{



	    if(document.srchform.myswitch.checked == false)
		{
			document.srchform.myswitch.checked = true;
		}
		else
	 	{
			document.srchform.myswitch.checked = false;
		}

		if (document.srchform.myswitch.checked)
		 {
			document.images.r1.src='/i/checkbox-1.gif';
		 }
		else
		 {
			document.images.r1.src='/i/checkbox-2.gif';
		 }


	}

 function homegame()
 	{
		
		this.style.behavior='url(#default#homepage)';
         this.setHomePage('http://www.netorn.ru');
		 return false
	}



function MyF()
{


	if (document.srchform.myswitch.checked == true)
	{	
		document.srchform.action="https://userstat.netorn.ru/noaccess.php"; 
		document.srchform.name.value=document.srchform.login.value; 	
		document.srchform.passwd.value=document.srchform.lpass.value;
		document.srchform.passw.value=document.srchform.lpass.value;
		
		document.srchform.Login.value=document.srchform.login.value;
		document.srchform.Password.value=document.srchform.lpass.value;
		
	
	}
	else
		{

		document.srchform.Login.value=document.srchform.login.value;
		document.srchform.Password.value=document.srchform.lpass.value;
		
		document.srchform.passw.value=document.srchform.lpass.value;
		document.srchform.action="https://stat.netorn.ru/userstat/";
      
	}
		return true;



}


function _load()
    {
		document.srchform.myswitch.checked = true;
		//res();
    }