function isblank(s)
{
for (var i=0; i<s.length; i++){
	var c=s.charAt(i);
	if ((c!=' ')&&(c!='\n')&&(c!='\t')) return false;
	}
	return true;
}
function verify(f)
{
var msg;
var empty_fields="";
for (var i=0; i<f.length; i++){

	var e=f.elements[i];
	if (((e.type=="text")||(e.type=="textarea"))&& !e.optional){
		if((e.value==null)||(e.value=="")|| isblank(e.value)){
			empty_fields+="\n      "+e.name;
			continue;
		}
}
}
if(!empty_fields) return true;
msg="_____________________________________\n\n"
msg+="Your form contains the following error(s).\n";
msg+="_____________________________________\n\n"
if (empty_fields){
	msg+="The following field(s) require to be completed:"
		+empty_fields+"\n";
	}
	alert(msg);
	return false;

}
