// JScript source code
function sub2()
		{
			var illegalChars = /\W/;
			var illegalChars1 = /\W/;
			if (document.getElementById('uname').value=="" || document.getElementById('uname').value==null)
				{
				window.alert("Please enter the username");
				document.getElementById('uname').style.borderColor="Red";
				document.getElementById('uname').style.color="red";
				document.getElementById('uname').focus();
				return false;
				} 
				
			if (illegalChars.test(document.getElementById('uname').value)) 
				{
				window.alert("Invalid Username or Password");
				document.getElementById('uname').style.borderColor="Red";
				document.getElementById('uname').style.color="red";
				document.getElementById('uname').focus();
				return false;
				} 
				
			if (document.getElementById('pwd').value=="" || document.getElementById('pwd').value==null)
				{
				window.alert("Please enter the password");
				document.getElementById('pwd').style.borderColor="Red";
				document.getElementById('pwd').style.color="red";
				document.getElementById('pwd').focus();
				return false;
				} 
			
				str=document.getElementById('uname').value;
				str=str.toUpperCase();
				
				if(str=="ALTER" || str=="DROP" || str=="DELETE" || str=="TRUNCATE" || str=="MODIFY" ||str=="SP_HELP" ||str=="SP_") 
				{
					window.alert("Invalid Username or Password");
					document.getElementById('uname').style.borderColor="Red";
					document.getElementById('uname').style.color="red";
					window.document.form1.username.focus();
					return false;
				}
				str=document.getElementById('pwd').value;
				str=str.toUpperCase();
				
				if(str=="ALTER" || str=="DROP" || str=="DELETE" || str=="TRUNCATE" || str=="MODIFY" ||str=="SP_HELP" ||str=="SP_") 
				{
					window.alert("Invalid Username or Password");
					document.getElementById('pwd').value="";
					document.getElementById('pwd').focus();
					return false;
				}
				
				if (illegalChars1.test(document.getElementById('pwd').value)) 
				{
				window.alert("Invalid Username or Password");
				document.getElementById('pwd').style.borderColor="Red";
				document.getElementById('pwd').style.color="red";
				document.getElementById('pwd').value="";
				document.getElementById('pwd').focus();
				return false;
				} 	

		}
		function newbr1(theurl,thename)
		{
			var thefeatures='width=600,height=250,status=yes,scrollbars=no,resizable=yes'		
			window.open(theurl,thename,thefeatures);
		}
		function newbr5()
		{
			cwin = window.open("Topscores3.htm",'','width=600,height=430,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=no,top=0,left=0');
		}
		function foc()
		{
			window.document.form1.username.focus();
		}
		
		/*function scrwidth()
		{
			if(screen.width>800)
			{
				parent.location.href='default_asdf4321.asp'
			}
		}*/
		
		function showmenu(elmnt)
		{
		  document.getElementById(elmnt).style.visibility="visible"
		}
		function hidemenu(elmnt)
		{
		  document.getElementById(elmnt).style.visibility="hidden"
		}
		
		function showStatus(sta)
		{
			window.status=sta;
			return true;
		}
		
	    function ShowContent(d) 
	    {
	      if(document.getElementById(d).style.display=="none")
		    document.getElementById(d).style.display = "";
	      else
	        document.getElementById(d).style.display="none";	
    	
	    }