<!--

// Validation Starts Here!
function Validate()
{
	var sTextValue;
	var bFailed;
	var sEmailValue;
	var sErrorMessage = '';
	var i, j;

	//MICROSOFT VALIDATION!
	if (navigator.appName != 'Netscape')
	{
		//Make all Cells in Contact_Info table gray
		for (i=1; i<4; i++)
		{
			for (j=0; j<document.all.tabCustData.rows(i).cells.length; j++)		
			{
				document.all.tabCustData.rows(i).cells(j).bgColor = '#FFFFFF';
			}
		}
			
	}
	
		
	//Checking the e-mail address for validity..
	sEmailValue = document.forms[0].txtEmailAddress.value;
	if (sEmailValue.search("@") < 0 || sEmailValue.search(".") < 0)
	{
		if (sErrorMessage.length < 1)
		{
			sErrorMessage = 'The form could not be submitted due to the following: ';
			sErrorMessage = sErrorMessage + '\nThe E-Mail Address entered is invalid.  Please re-enter'
		}
		else
		{
			sErrorMessage = sErrorMessage + '\nThe E-Mail Address entered is invalid.  Please re-enter'
		}
		
		if (navigator.appName != 'Netscape')
		{	
			for (j=0; j<document.all.tabCustData.rows(3).cells.length; j++)		
			{
				document.all.tabCustData.rows(3).cells(j).bgColor = '#FFFF99';
			}
		}
	}

	//Submit Form or Not?
	if (sErrorMessage.length > 1)
	{
		//Sorry, redo!
		alert(sErrorMessage); 
		return false;
	}
	else
	{
		//Success!
		return true;
	}	
	
}

function OpenWindow()
{
	if (navigator.appName != 'Netscape')
	{
		window.open('forgot.asp','PopUp','toolbars=0,scrollbars=0,location=0,statusbars=0,menubars=0,resizable=1,width=360,height=425,left=190,top=42');
	}
	else
	{
		window.open('forgot.asp','PopUp', 'resizable=1,outerWidth=360,outerHeight=425,screenX=190,screenY=42');
	}
}
//-->
