function confirmsubmitl()
{
	var condition=true;
	var re = /^[0-9A-Za-z]+$/;
	
	if(document.frmlogin.uname.value == "")
	{
		alert("Please enter Username.");
		if(condition==true)
		{
			document.frmlogin.uname.focus();
		}
		condition=false;
		return false;
	}
	
	if(document.frmlogin.uname.value.length < 6 ||
  document.frmlogin.uname.value.length > 25)
	{
		alert("Usernames must be at least 6 characters long, and less than 25");
		if(condition==true)
		{
			document.frmlogin.uname.focus();
		}
		condition=false;
		return false;
	}
	
	if (re.test(document.frmlogin.uname.value)==false) 
  {  
   alert("You have entered white space, or an illegal character in the username box.  Please try again.");
	
			document.frmlogin.uname.focus();
		
		condition=false;
		return false;
	} 
	
	if(document.frmlogin.pswd.value.length==0)
	{
		alert("Please enter Password.");
		if(condition==true)
		{
			document.frmlogin.pswd.focus();
		}
		condition=false;
		return false;
	}
	
	if(document.frmlogin.pswd.value.length < 6 ||
  document.frmlogin.pswd.value.length > 25)
	{
		alert("Passwords must be at least 6 characters long, and less than 25!");
		if(condition==true)
		{
			document.frmlogin.pswd.focus();
		}
		condition=false;
		return false;
	}
	
	if (re.test(document.frmlogin.pswd.value)==false) 
  {  
   alert("You have entered white space, or an illegal character in the password box.  Please try again.");
		
			document.frmlogin.pswd.focus();
		
		condition=false;
		return false;
	} 
	
}




