function formSubmitCS(form) {
	//contact details validation
	if (typeof (Common_Scripts_CustServ_FName) == "undefined")
		Common_Scripts_CustServ_FName = "Please enter your First Name."
		
	if (isEmpty(form.firstName, "", Common_Scripts_CustServ_FName)) return
	if (typeof (Common_Scripts_CustServ_LName) == "undefined")
		Common_Scripts_CustServ_LName = "Please enter your Last Name."
		
	if (isEmpty(form.lastName, "", Common_Scripts_CustServ_LName)) return

	if (typeof (Common_Scripts_CustServ_LNameChars) == "undefined")
		Common_Scripts_CustServ_LNameChars = 'Last Name cannot contain any of the following illegal characters:\n\n\\/:*?"<>|'
		
	if (invalidChars(form.lastName, "", '\\/:*?"<>|', Common_Scripts_CustServ_LNameChars)) {
		form.lastName.focus()
		return
	}

	if (typeof (Common_Scripts_CustServ_Email) == "undefined")
		Common_Scripts_CustServ_Email = "Please enter your E-mail Address."
		
	if (isEmpty(form.email, "", Common_Scripts_CustServ_Email)) return

	if (typeof (Common_Scripts_CustServ_EmailChar) == "undefined")
		Common_Scripts_CustServ_EmailChar = 'E-mail cannot contain any of the following illegal characters:\n\n\,;|\'" <>\\/'
		
	if (invalidChars(form.email, "", ',;|\'" <>\\/', Common_Scripts_CustServ_EmailChar)) {
		form.email.focus()
		return
	}

	if (typeof (Common_Scripts_CustServ_NotVldEmail) == "undefined")
		Common_Scripts_CustServ_NotVldEmail = "The e-mail you entered is not a valid e-mail address."
		
	if (notEmail(form.email, "", Common_Scripts_CustServ_NotVldEmail)) return

	if (typeof (Common_Scripts_CustServ_Country) == "undefined")
		Common_Scripts_CustServ_Country = "Please select Country."
		
	if (notSelected(form.country, "", Common_Scripts_CustServ_Country)) return

	//message type validation
	var msgTypeOK = false

	for (var i=0; i<form.msgType.length; i++) {
		if (form.msgType[i].checked) {
			msgTypeOK = true
			break
		}
	}

	if (!msgTypeOK) {
		if (typeof (Common_Scripts_CustServ_Subject) == "undefined")
			Common_Scripts_CustServ_Subject = "Please select the Subject of your message."
			
		alert(Common_Scripts_CustServ_Subject)
		form.msgType[0].focus()
		return
	}

	if (trim(form.hotel.value) == "") {
		if (typeof (Common_Scripts_CustServ_AboutHotel) == "undefined")
			Common_Scripts_CustServ_AboutHotel = "If your message is about a particular hotel, please enter the full hotel name, including the name of the city where the hotel is situated. Otherwise we will not be able to process your message.<jsbr><jsbr>Do you want to enter the hotel name now?"
		
		var conf = Common_Scripts_CustServ_AboutHotel

		if (confirm(conf)) {
			form.hotel.focus()
			return
		}
	}

	if (typeof (Common_Scripts_CustServ_YourMsg) == "undefined")
		Common_Scripts_CustServ_YourMsg = "Please enter your message."
		
	if (isEmpty(form.msg, "", Common_Scripts_CustServ_YourMsg)) return
	
	if (typeof (Common_Scripts_CustServ_LimitMsg) == "undefined")
		Common_Scripts_CustServ_LimitMsg = "Please limit your message to 1000 characters. You have used " + form.msg.value.length + " characters."
		
	if (invalLength(form.msg, "", 1000, Common_Scripts_CustServ_LimitMsg)) { return

		form.msg.focus()
		return
	}

	form.submit()
	}
	
//makes control with value '0' checked
function SelectOther(group) {
	for (var i=0; i<group.length; i++) {
		if (group[i].value == "OT") {
			group[i].checked = true
			break
		}
	}
}
