<!--

function checkpwd(thisform) 
{
   if (thisform.Username.value == null || thisform.Username.value == "")       
      {
      alert ("Please enter your username") ;
      thisform.Username.focus() ;
      return false ;
      }

   if (thisform.Password.value == null || thisform.Password.value == "")       
      {
      alert ("Please enter your password") ;
      thisform.Password.focus() ;
      return false ;
      }

   var Password = new Array("w","n","tr","k","e","2","d","i","c","x")

	function GetNumbers()
	   {
	   return thisform.Password.value
	   }
 
   var inputStr = thisform.Password.value
   var userStr = thisform.Username.value ;

   var pw = "" ;
   var ck = 0 ;

   for(var count = 0; count < inputStr.length; ++count)
      {
      pw = pw + Password[inputStr.charAt(count)] ;
      ck = ck + parseFloat(inputStr.charAt(count)) ;
      }

   if(userStr == "RulePro2k")
	{
   	if(pw != "" && ck == 35)
      	   {
      	   location.href = "../RP2KDEMO/" + pw + ".html" ;
      	   return false ;
      	   }
   	else
      	   {
      	   location.href = "indexsorry.htm" ;
      	   return false ;
      	   }
	}

   if(userStr == "RulePro")
	{
        if(pw != "" && ck == 19)
      	   {
      	   location.href = "../RP10DEMO/" + pw + ".html" ;
      	   return false ;
      	   }
   	else
      	   {
      	   location.href = "indexsorry.htm" ;
      	   return false ;
      	   }
	}

   if(userStr == "Downloads")
	{
        if(pw != "" && ck == 37)
      	   {
      	   location.href = "../DOWNLOADS/" + pw + ".html" ;
      	   return false ;
      	   }
   	else
      	   {
      	   location.href = "indexsorry.htm" ;
      	   return false ;
      	   }
	}

   location.href = "indexsorry.htm" ;
   return false ;
}
//-->
