/**
* @ Title:				nonMember.js
* @ Version:			1.0
* @ Copyright:		Copyright (c) 2004
* @ Author:			Deepali
* @ Company:		Avenues (I) Pvt. Limited.
* @ Description:	JavaScript file for non-members validations
* @ Created:			19/03/2004
* @ Modified:		
*/

function chkValidation(){
		if(!chkBlank(document.frmResSugServ.fname,'Name'))	return false;
		if(!chkBlank(document.frmResSugServ.femail,' Email')) return false;
		if(!chkEmail(document.frmResSugServ.femail,'Email')) return false;
	var frndname;
	var frndemail;
		for(var i=0; i<2 ;i++){
			frndname = eval("document.frmResSugServ.txtname" + i);
			frndemail = eval("document.frmResSugServ.txtemail" + i);
		    if(!chkBlank(frndname,'Name'))	return false;
		    if(!chkBlank(frndemail, 'Friend Email')) return false;
		    if(!chkEmail(frndemail,'Friend Email')) return false;
			
	 	}

		if (document.frmResSugServ.sendnotify.checked){
			document.frmResSugServ.checkSend.value = "YES";
		}else{
			document.frmResSugServ.checkSend.value = "NO";
		}
		if(!chkBlank(document.frmResSugServ.captchafield,'Field'))	return false;

       return true;
	}
	
	function validate(){				
		if(!chkBlank(document.contact_frm.fname, "Full Name")) return false;
		if(!validateURL(document.contact_frm.furl, "Website URL")) return false;
		if(!chkBlank(document.contact_frm.femail, "Contact Email")) return false;
		if(!chkEmail(document.contact_frm.femail, "Contact Email")) return false;
		if(!chkBlank(document.contact_frm.tel_con, "Phone Country Code")) return false;
		if(!chkNaN(document.contact_frm.tel_con, "Phone Country Code")) return false;
		if(!chkBlank(document.contact_frm.tel_area, "Phone Area Code")) return false;
		if(!chkNaN(document.contact_frm.tel_area, "Phone Area Code")) return false;
		if(!chkBlank(document.contact_frm.tel_num, "Phone Number")) return false;
		if(!chkNaN(document.contact_frm.tel_num, "Phone Number")) return false;
		if(!chkBlank(document.contact_frm.fcomm, "Comment/query")) return false;
		if(!chkBlank(document.contact_frm.captchafield, "Security Code")) return false;

		return true;
	}


