/*
	Project Name		: whitehorse-solutions.com
   	Program name		: contact.js
 	Program function	: Validation for apparel page
	Author				: Shalini B
	Developed by	   	: Colbridge Web Logics - www.colbridge.com 
 	Created Date  		: 08 Oct 2005
 	
	Update History
    -------------------------------------------------------------------
    Date       		By 					short desc. of what updated 
    
--------------------------------------------------------------------- */

function validate(theform){	

	if(isEmpty(theform.frm_name.value)){
		alert("Please enter your name.");
		theform.frm_name.focus()
		return false;
	}
	
	var retval = emailCheck(theform.frm_email.value)  // email validation example
	if (retval == false){
		theform.frm_email.focus();
	 		return false;	
	}
			
	if(isEmpty(theform.frm_comment.value)){
		alert("Please enter your comments.");
		theform.frm_comment.focus()
		return false;
	}
			
	return true;
}
