var para="";
function validate_pass(theForm)
{
  if (theForm.TUsername.value == ""){
    alert("Please specify your username.");
    theForm.TUsername.focus();
    return (false);
  }
   
	if (theForm.TUsername.value.length > 30){
    alert("Please put a maximum of 30 characters only on the your username.");
    theForm.TUsername.focus();
    return (false);
  }
  
   if (!isEmailAddr(theForm.TEmail.value)){
  	alert("Email format is not valid.")
  	theForm.TEmail.focus();
  	return (false);
  }
  para="u="+encodeURI(theForm.TUsername.value)+"&e="+encodeURI(theForm.TEmail.value);
  return (true);
}


