function formCheck(formName){

	ValidOk = true;
	var count = 0;
	
	while(count < formName.elements.length){
		var fieldType = formName.elements[count].type;
		var theFieldName = formName.elements[count].name;
		var fieldName = formName.elements[formName.elements[count].name];
	
		switch(fieldType){
			case 'text':
//			From Info Registration
	    		if(theFieldName == "vchSubscribeName"){
					strCheck(fieldName,1,'Name');
				}else if(theFieldName == "vchSubscribeEmail"){
					emailCheck(fieldName);
				}else if(theFieldName == "vchFirstName"){
					strCheck(fieldName,1,'first name');
				}else if(theFieldName == "vchLastName"){
					strCheck(fieldName,1,'last name');
				}else if(theFieldName == "vchCompany"){
					strCheck(fieldName,1,'company name');
				}else if(theFieldName == "vchEmail"){
					emailCheck(fieldName);
				}
				
				break;
 	  
	 		 case 'file':
	    		if(theFieldName == "fleResume"){
					strCheck(fieldName,1,'resume');
				}
				
				break;
			case 'select-one':

			// For Subscribing Newsletter
				if(theFieldName == "vchHereUs"){
					selectCheck(fieldName,'where did you hear about the Infobreak Newsletter');
//				}else if (theFieldName == "intNutCatID"){
//					selectCheck(fieldName,'Category');
//				}else if (theFieldName == "intNutTypeID2"){
//					selectCheck(fieldName,'Attach to')
				}
				break;
	  
			case 'textarea':
//				From ProfileIT Page
					if(theFieldName == 'txtProfileITDescription'){
						strCheck(fieldName,1,'Description');
//				From Enterprise Support Page
					}else if(theFieldName == 'txtEnterpriseSupportDescription'){
						strCheck(fieldName,1,'Description');
//				From Home Page
					}else if (theFieldName == 'txtHomeDescription'){
						strCheck(fieldName,1,'Description')


//				}else if (theFieldName == 'vchInstructions'){
//					strCheck(fieldName,1,'Instructions'); 
//				}else if (theFieldName == 'vchTipUsage'){
//					strCheck(fieldName,1,'Gourmet Tip / Usage'); 
//				}else
//				if (theFieldName == 'vchNutIngredients'){
//					strCheck(fieldName,1,'Ingredients')
				}

			break;
	  
			case 'password':
				/*
				if(theFieldName == 'default_password123'){
					isChecked(fieldName, 'default_password');
				}
				*/
			break;
	  	  
			case 'radio':
				if(theFieldName == 'comment'){
					isChecked(fieldName, 'Please select one of the comment type');
					if (formName.elements["comment"][4].checked)
					{
						strCheck(formName.elements["comment_other"], 1, 'the other type comment');
					}
				}
				else if(theFieldName == 'country'){
					isChecked(fieldName, 'Please select your the country');
					if (formName.elements["country"][2].checked)
					{
						strCheck(formName.elements["country_other"], 1, 'the other country');
					}
				}
				else if(theFieldName == 'product'){
					if (formName.elements["product"][6].checked)
					{
						strCheck(formName.elements["product_other"], 1, 'the other product');
					}
				}
				// Newsletter Subscribe
				else if(theFieldName == 'vchRegStatus'){
					isChecked(fieldName, 'Please select what you want to subscribe');
				}
				break;
	  
			case 'checkbox':
				// Newsletter Subscribe
				if(theFieldName == 'termsCondition'){
					isCheckedOne(fieldName, 'Please read Terms and Conditions');
				}else if(theFieldName == 'vchRegStatus'){
					isCheckedOne(fieldName, 'Please select that you want to enter the competition and subscribe to the newsletter');
				}
				break;

		}
		
		if(ValidOk == false){
	  		break;
		}
		count++;
	}
	
	if (ValidOk == true){
		formName.submit();
	}
	
	return false;
}
