function validate(q){
	if (checkit(q.Salutation,"Salutation."))
		return (false);	

	if (checkit(q.FirstName,"first name."))
		return (false);	

	if (checkit(q.LastName,"last name."))
		return (false);	

	if (checkit(q.CUSTOM2,"street."))
		return (false);	

	if (checkit(q.CUSTOM3,"city."))
		return (false);	
															  
	if (checkit(q.CUSTOM4,"state."))
		return (false);	

	if (checkit(q.CUSTOM5,"ZIP."))
		return (false);	
		
	if (checkit(q.CUSTOM6,"Country."))
		return (false);	

	if (checkit(q.CUSTOM7,"daytime phone."))
		return (false);	

	if (checkit(q.CUSTOM8,"evening phone."))
		return (false);
	
	if (checkit(q.BTTC,"best time to call."))
		return (false);

	var e=q.FROM.value;
	var f=e.indexOf("@"); 
	if (e.length<6 || f<1 || f>e.length-5) {
		alert ("Invalid e-mail address, please try again")	
		q.FROM.focus();		
		return (false);	
	}
	
	if (checkit(q.CUSTOM9,"your age."))
		return (false);	
		
	if (checkit(q.CUSTOM13,"Your Current Profession."))
		return (false);	

	if (checkit(q.CUSTOM14,"Cash Available for Business."))
		return (false);	

	if (checkit(q.CUSTOM15,"Estimated Net worth."))
		return (false);	

	if (checkit(q.CUSTOM16,"Highest Education (completed)."))
		return (false);	

	if (checkit(q.CUSTOM18,"How soon do you plan to start business?"))
		return (false);	

	if (checkit(q.CUSTOM32,"How Did You Find Our Web Site?"))
		return (false);	
		
	if (checkit(q.Manager,"Do you intend to operate this business yourself or hire a manager?"))
		return (false);	

}



function checkit(fld,txt) {
	if (!fld.value.length) {
		alert ("Please enter "+ txt)
		fld.focus();
		return(true);
	}
	return (false);	
}

function checkrb(fld,txt) {
	var c=0;
	for (var t=0;t<fld.length;t++) 
		c += fld[t].checked;
	if (!c) {
   	alert ("Please select "+txt)
		return(true);
	}
	return (false);	
}


function showall(q) {
var res="";
for (var t in q) 
	res +=  "." + t +"="+ q[t];
return  (res);

}

