// ActionScript Document
<!-- Hide from older browsers...
//Function to check form is filled in correctly before submitting
<!-- -------------------------------------------------------------------------- -->
function loadurl(url)
{
	window.location.href=url
//	window.opener.location=url
//	window.close()
}
<!-- -------------------------------------------------------------------------- -->
function CheckFormAdhe() 
{
	var errorMsg = "";

	if (document.Login.email.value == "") 
	{
		errorMsg += "\nE-mail :\t\t You must enter an email address";
	}
	else 
	{
	  if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.Login.email.value) != true)
	  {
		errorMsg += "\nE-mail :\t\t The email address is incorrect";
		document.Login.email.focus();
	  }
	}

	if (document.Login.nombres.value == "") 
	{
		errorMsg += "\nFirst Name : \t You must enter your first name";
	}

	if (document.Login.apellidos.value == "") 
	{
		errorMsg += "\nLast Name : \t You must enter your last name";
	}

	if (document.Login.nombre_frm.value == "") 
	{
		errorMsg += "\nName of Forum : \t You must enter a name for the forum";
	}

	if (document.Login.descrip_frm.value == "") 
	{
		errorMsg += "\nDescription : \t You must enter a brief description";
	}

	if (document.Login.categ_id.value == "000") 
	{
		errorMsg += "\nCathegory : \t You must enter a cathegory";
	}

	if (errorMsg != "")
	{
		msg =  "_____________________________________________________     \n\n";
		msg += "Your request has failed because there is a problem with the form \n";
		msg += "Please do the necessary corrections and resend the form \n";
		msg += "_____________________________________________________     \n\n";
		msg += "Invalid Form. The reasons are the following: \n";

		errorMsg += alert(msg + errorMsg + "\n\n");
		return false;
	}
	return (true);
}
function setFocus()
{
	Login.email.focus();
}
// -->
