function CheckForm () {

	//Intialise variables
	var errorMsg = "";
	var errorMsgLong = "";

	//Check for a user
	if (document.form2.U_ID.value == ""){
		errorMsg += "\n\tLogin \t     - Digite um login válido.";
	}
	
	//Check for DICA
	if (document.form2.U_DICA.value == ""){
		errorMsg += "\n\tDica Senha   - Digite sua dica de senha.";
	}

	//Check for email
if (document.form2.U_EMAIL.value.search(/^\w+((-\w+)|(\.\w+))*\@\w+((\.|-)\w+)*\.\w+$/) == -1){
		errorMsg += "\n\tEmail \t     - Digite um email válido.";
	}

	//If there is aproblem with the form then display an error
	if ((errorMsg != "") || (errorMsgLong != "")){
		msg = "___________________________________________________________________\n\n";
		msg += "A solicitação não poderá ser enviada porque existe(m) algum(ns) problema(s).\n";
		msg += "Por favor corrija o(s) problema(s) e tente novamente.\n";
		msg += "___________________________________________________________________\n\n";
		msg += "O(s) campo(s) que deve(m) ser corrijido(s):\n";
		
		errorMsg += alert(msg + errorMsg + "\n" + errorMsgLong);
		return false;
	}
	
	return true;
}
function verificaMail(wich)
{
valor = (document.all)?document.all[wich].value:document.getElementById(wich).value;
v = valor.substring(0,3);
if(v=="www")
{
alert("E-mail não tem www");
form2.U_ID.focus();
form2.U_ID.select();
return false;
}
if(v=="WWW")
{
alert("E-mail não tem WWW");
form2.U_ID.focus();
form2.U_ID.select();
return false;
}
return true;
}
//-->
