function validateSearch(frm){

	if (frm.txtSearch.value==""){
		frm.txtSearch.focus();
		alert ("Please enter a search phrase")
		return false;
	}

	return true;
}


function validateEmail(fldEmail){

	if (fldEmail.value.length<1) {
		alert("Please enter a valid email address");
		fldEmail.focus()
		return false;
	}
	if (!window.RegExp){
		return true;
	}
	var reEmail = new RegExp ("^.+\@.+\..+$")
	/////////////////////////////////////////
	//					
	//   Checks that the detail on the form '
	//    Have been filled out
	//
	/////////////////////////////////////////
			
	//Pattern check email address for valid form
	if (!reEmail.test(fldEmail.value)){
		alert("Please enter a valid email address");
		fldEmail.focus()
		return false;
	}							 
	return true;	
}


