﻿// JScript File

function validate()
	{
        var theform;
		var postback = true;
				
		if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) 
			theform = document.forms["aspnetForm"];
		else
			theform = document.aspnetForm;	    
	   
		if (DivEmptyFieldValidation(theform.ctl00_CISContentPlaceHolder_txtName,'Please Enter Your Name','ctl00_CISContentPlaceHolder_error_div')==false)
		{
			theform.ctl00_CISContentPlaceHolder_txtName.focus();
			postback = false; 
			return false;
		}	
		
		if (DivEmptyFieldValidation(theform.ctl00_CISContentPlaceHolder_txtEmail,'Please Enter Your Email Address','ctl00_CISContentPlaceHolder_error_div')==false)
		{
			theform.ctl00_CISContentPlaceHolder_txtEmail.focus();
			postback = false; 
			return false;
		}	
		
		if (DivEmailFieldValidation(theform.ctl00_CISContentPlaceHolder_txtEmail,'Please Enter Email Address','ctl00_CISContentPlaceHolder_error_div')==false)
		{
			theform.ctl00_CISContentPlaceHolder_txtEmail.focus();
			postback = false; 
			return false;
		}
		
		FullClearErrorMessage('ctl00$CISContentPlaceHolder$');		
		return true;
	}  