function CheckFormsub() { 

var errorMsg = "";

	with (document.myform) {
	if (category_code.value == ""){
		errorMsg += "\nSelect Category Code";
	}
	if (full_name.value == ""){
		errorMsg += "\nType in Your Full Name";	
	}
	if (full_name.value.length <4){
		errorMsg += "\nFull Name Must have at least 4 Characters";	
	}
	if (user_name.value.length <4){
		errorMsg += "\nUsername Must have at least 4 Characters";	
	}
	if (password.value.length <4){
		errorMsg += "\nPassword Must have at least 4 Characters";	
	}
	if (employer.value.length <2){
		errorMsg += "\nType the Name of your Organisation/ Institution";	
	}
	//if (short_biography.value.length <4){
		//errorMsg += "\nBiography Must have at least 4 Characters";	
	//}
	
	if (employer.value == ""){
		errorMsg += "\nType in the Your Current Employer";	
	}
	
		//Check for an e-mail address and that it is valid(document.clients.Email.value == "") || 
	if (((email.value.indexOf("@",0) == - 1 || email.value.indexOf(".",0) == - 1))) { 
		errorMsg += "\nType the valid e-mail address";
	}
	//	if (job_title.value == ""){
	//	errorMsg += "\nType in Your Job Title";	
	//}
	
	if (telephone.value == ""){
		errorMsg += "\nType in Your Telephone number";	
	}
	

	//if (expertise_area.selectedIndex == ""){
	//	errorMsg += "\nType in Your Expertise Area Informations";	
	//}
	
	//if (short_biography.value == ""){
	//	errorMsg += "\nType in Your Short Biography Information";	
	//}
	
	/**/
	
	if (errorMsg != ""){
		msg = "____________________________________\n\n";
		msg += "Your form has not been submitted because\n";
		msg += "you did not fill in all the required fields.\n";
		msg += "Please complete the following fields.\n";
		msg += "___________________________________\n\n";
		
		errorMsg += alert(msg + errorMsg + "\n\n");
		return false;
	}
	return true;
	}
	
}
