function isblank(s)  {
	if ((s == null) || (s == "")) return true;
	for(var i=0;i<s.length;i++)  {
	   var c = s.charAt(i);		
	   if((c != ' ') && (c != '\\n') && (c != '\\t')) return false;
        }
	return true;
}

function checkit(f) {
    var msg = "";    
	var err = "";
 	if (isblank(f.Name.value)) {err += "Enter your Name.\n";} 
 	if (isblank(f.region.value)) {err += "Select your Region.\n";}
 	if (isblank(f.address.value)) {err += "Enter your Address.\n";} 
 	if (isblank(f.day.value)) {err += "Choose Day on your Date of Birth.\n";}
 	if (isblank(f.month.value)) {err += "Choose Month on your Date of Birth.\n";} 
 	if (isblank(f.year.value)) {err += "Choose Year on your Date of Birth.\n";}
 	if (isblank(f.father.value)) {err += "Enter your Father's Name.\n";} 
 	if (isblank(f.mother.value)) {err += "Enter your Mother's Name.\n";}    

 	if (isblank(f.Cast.value)) {err += "Enter your Cast.\n";} 
 	if (isblank(f.contact1.value)) {err += "Enter your Contact Number.\n";}

    	



 	

	if(err != "")
	 { msg += "The form was NOT Submitted.\n";
           msg += "Please do the following and Re-submit\n";
           msg += "-------------------------------------------------------------------------\n";	           msg += err;
           alert(msg);
       	return(false);	}
	else { return (true); }
}
