function Validate_Form_Objects(frm,fieldRequired,fieldDescription,fieldEmail,fieldConfirm,fieldConfirmDesc,fieldNumeric) {

	if(!(fieldConfirm)) fieldConfirm = Array ();
	if(!(fieldConfirmDesc)) fieldConfirmDesc = Array();
	if(!(fieldEmail)) fieldEmail = Array();
	if(!(fieldNumeric)) fieldNumeric = Array();

	//	var alertMsg =  "Please fill the following fields before you submit :\n\n";
	var alertMsg =  "Please Enter ";
	var l_Msg = alertMsg.length;
	var e = / /g;
	for (var i = 0; i < fieldRequired.length; i++) {
		var obj = frm.elements[fieldRequired[i]];
		if (obj) {
			switch(obj.type)
			{
				case "select-one":
				if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == "" || obj.options[obj.selectedIndex].value == "")
				alertMsg += " - " + fieldDescription[i] + "\n";
				break;

				case "select-multiple":
				if (obj.selectedIndex == -1)
				alertMsg += " - " + fieldDescription[i] + "\n";
				break;

				case "text":
				var temp_value = obj.value.replace(e,"");
				if (temp_value.length == 0 || obj.value == null)
				alertMsg += " - " + fieldDescription[i] + "\n";
				break;

				case "password":
				var temp_value = obj.value.replace(e,"");
				if (temp_value.length == 0 || obj.value == null)
				alertMsg += " - " + fieldDescription[i] + "\n";
				break;

				case "textarea":
				var temp_value = obj.value.replace(e,"");
				if (temp_value.length == 0 || obj.value == null)
				alertMsg += " - " + fieldDescription[i] + "\n";
				break;

				case "file":
				var temp_value = obj.value.replace(e,"");
				if (temp_value.length == 0 || obj.value == null)
				alertMsg += " - " + fieldDescription[i] + "\n";
				break;

				case "undefined":
				if (obj.value == "" || obj.value == null)
				alertMsg += " - " + fieldDescription[i] + "\n";
				break;
			}


			if (alertMsg.length != l_Msg)
			{
				alert(alertMsg);
				switch(obj.type)
				{
					case "text": obj.select();
					break;
					case "password": obj.select();
					break;
					case "textarea": obj.select();
					break;
				}

				obj.focus();
				return false;
			}
		} // END IF (obj)
	} // END FOR


	if (alertMsg.length == l_Msg)
	{
		/************ Email Validation ************/
		for (var i = 0; i < fieldEmail.length; i++)
		{
			var obj = frm.elements[fieldEmail[i]];
			if (obj)
			{
				if(obj.length < 5 || obj.value.indexOf("@")==-1 || obj.value.indexOf(".")==-1) {
					var alertEmail = 'Enter a Valid Email Address';
					alert(alertEmail);
					obj.focus();
					return false;
				}
			}	// END IF obj
		} // END IF FOR
		/************ Email Validation END ************/

		/************ Password Confirmation ************/
		for (var i = 0; i < fieldConfirm.length; i++)
		{
			var obj1 = frm.elements[fieldConfirm[i]];
			var obj2 = frm.elements[fieldConfirm[i+1]];

			if (obj1 && obj2)
			{
				if(obj1.value != obj2.value)
				{
					alertConfirm  = fieldConfirmDesc[i] + " and " + fieldConfirmDesc[i+1] +" Not Matching";
					alert(alertConfirm);
					obj1.focus();
					return false;
				} // END IF obj1.value
			} // END IF obj1
		} // END IF FOR

		/************ Password Confirmation END ************/

		/************ Numeric Validation ************/
		for (var i = 0; i < fieldNumeric.length; i++)
		{
			var obj = frm.elements[fieldNumeric[i]];
			if (obj)
			{
				if(isNaN(obj.value))
				{
					alert('Enter A Numeric Value');
					obj.focus();
					return false;
				}
			}	// END IF obj
		} // END IF FOR
		/************ Numeric Validation END ************/
		return true;
	} // END IF (alertMsg.length == l_Msg)
	else
	{
		alert(alertMsg);
		return false;
	}
}







/*********************************

if (obj.type == 'undefined')

{

var blnchecked = false;

for (var j = 0; j < obj.length; j++)

{

if (obj[j].checked)

blnchecked = true;

}

if (!blnchecked)

alertMsg += " - " + fieldDescription[i] + "\n";



}

*******************************/




