// JavaScript Document
//***********************************************************************************
// Below are form validation functions
function selectvalidation(entered, alertbox)
{
// Emptyfield-Validation by Henrik Petersen / NetKontoret
// Explained at www.echoecho.com/jsforms.htm
// Renamed Select-Validation and reprogrammed for select menus by Matt Flaherty
// <mattf@iql.com> 10/3/1999
// Please do not remove the this line and the four lines above.
with (entered)
{
if (selectedIndex < 1)
{if (alertbox!="") {alert(alertbox);} return false;}
else {return true;}
}
}
//
function emptyvalidation(entered, alertbox)
{
// Emptyfield-Validation by Henrik Petersen / NetKontoret
// Explained at www.echoecho.com/jsforms.htm
// Please do not remove the this line and the two lines above.
with (entered)
{
if (value==null || value=="")
{if (alertbox!="") {alert(alertbox);} return false;}
else {return true;}
}
}
//Check Email Address
function emailAtChk(sEmailAdd,eMessage){
var bFound = false;
	var i = 0;
	if (sEmailAdd.value.length > 0){
		if (sEmailAdd.value.indexOf('@') != -1){
			bFound = true;
		} else {
			bFound = false;
		}

	} else {
		bFound = true;
	}

	if (bFound == false){
		if (eMessage.length > 0){
			alert(eMessage);
			sEmailAdd.value = "";
		}
	}
 	return bFound;

}
