	function CheckFields(){
		
		var bFailed;
		
		bFailed=0;
		return;
		
		if (document.frm.txtArrID.value==""){bFailed=1;}
		if (document.frm.txtArr.value==""){bFailed=1;}
		if (document.frm.txtDepID.value==""){bFailed=1;}
		if (document.frm.txtDep.value==""){bFailed=1;}

		//if document.frm.preferred_date.value="" then bFailed=1
		
		document.frm.cmdSubmit.disabled=bFailed;
	
	}

	function ValidateForm()
	{ 
			
			var strTemp
			strTemp = document.frm.txtDep.value;
			strTemp = strTemp.replace(/\<|\>|\"|\'|\%|\;|\(|\)|\&|\+|\-/g,""); 
			document.frm.txtDep.value = strTemp;
						
			if (document.frm.txtDep.value == "")
			{
				alert(ERROR_SELECT_DEPARTURE);
				return false;
			}
			
			strTemp = document.frm.txtArr.value;
			//strTemp = strTemp.replace(/\<|\>|\"|\'|\%|\;|\(|\)|\&|\+|\-/g,""); 
			document.frm.txtArr.value = strTemp;
			
			
			if (document.frm.txtArr.value == "")
			{

				alert(ERROR_SELECT_ARRIVAL);
				return false;
			}		
			
			if (document.frm.txtAirline1.value != "")
			{
				strTemp = document.frm.txtAirline1.value;
				strTemp = strTemp.replace(/\<|\>|\"|\'|\%|\;|\(|\)|\&|\+|\-/g,""); 
				document.frm.txtAirline1.value = strTemp;
				
			}
			
		//	if (document.frm.txtAirline2.value != "")
		//	{
		//		strTemp = document.frm.txtAirline2.value;
		//		strTemp = strTemp.replace(/\<|\>|\"|\'|\%|\;|\(|\)|\&|\+|\-/g,""); 
		//		document.frm.txtAirline2.value = strTemp;
		//		
		//	}	
		//	
		//	if (document.frm.txtAirline3.value != "")
		//	{
		//		strTemp = document.frm.txtAirline3.value;
		//		strTemp = strTemp.replace(/\<|\>|\"|\'|\%|\;|\(|\)|\&|\+|\-/g,""); 
		//		document.frm.txtAirline3.value = strTemp;
		//		
		//	}	
		//	
			

		return true;

	}

	


