// JavaScript Document
    // set the focus to the first input box
    function InitNewUserLoginVariables()
    {
		var elemFocus = document.getElementById("NewUserName");
        if(elemFocus)
        {
           elemFocus.select();
           elemFocus.focus();
        }
    }
    
    // check all form details are not bad data
    function CheckSubmit()
		{		
		  var bValid = true;
		  var strNewUserName = document.getElementById("NewUserName").value;
		  var strNewUserPassword = document.getElementById("NewUserPassword").value;
			
          if (ContentCheck(document.getElementById("NewUserName"), "User Name")==false)
			bValid = false;
		  if (ContentCheck(document.getElementById("NewUserPassword"), "Password")==false)
			bValid = false;
					
		  // all values are ok?	
		  if(!bValid)
			{
				return false; // No, not ok
			}
			else //Yes, all ok
			{
				document.getElementById("Submit").value = "Logining...";
				document.getElementById("Submit").disabled = true;		
				return true;
			}
		}
		

