function doPrompt(msg)
{
	alert(msg);

}

function showDelCol(form)
{
	if(form.chkDeliveryRequired.checked){
		document.all.trDel.style.display="block";
	}
	else{
		document.all.trDel.style.display="none";
	}
}

function validateForm(form)
		{
		
		var PUDay,PUMonth,PUYear;
		var DODay,DOMonth,DOYear;
		
		PUDay =document.all.cboPUDay.options[document.all.cboPUDay.selectedIndex].value;
		PUMonth = document.all.cboPUMonth.options[document.all.cboPUMonth.selectedIndex].value;
		PUYear = document.all.cboPUYear.options[document.all.cboPUYear.selectedIndex].value;
		
		DODay =document.all.cboDODay.options[document.all.cboDODay.selectedIndex].value;
		DOMonth = document.all.cboDOMonth.options[document.all.cboDOMonth.selectedIndex].value;
		DOYear = document.all.cboDOYear.options[document.all.cboDOYear.selectedIndex].value;
		
			if(document.all.cboPUB.options[document.all.cboPUB.selectedIndex].value=="0"){
				alert("Please select your pick-up branch.");
				form.cboPUB.focus();
				return false;
			}
		
			if(!isDate(PUDay + "/" + PUMonth + "/" +  PUYear)){
				alert("Please select a valid pickup date");
				return false;
			}
			
			if(!isDate(DODay + "/" + DOMonth + "/" +  DOYear)){
				alert("Please select a valid drop-off date");
				return false;
			}
				
		if(document.all.cboDOB.options[document.all.cboDOB.selectedIndex].value=="0"){
				alert("Please select your dropoff branch.");
				form.cboDOB.focus();
				return false;
			}
			
			if(document.all.cboVehicleList.options[document.all.cboVehicleList.selectedIndex].value=="0"){
				alert("Please select your vehicle group.");
				form.cboVehicleList.focus();
				return false;
			}
		var id = form.tbPID.value;
			if(id==14)
			{
				if(form.tbAdditionalReq.value.length==0)
				{
					alert("Please enter your CashReturns membership number.");
					form.tbAdditionalReq.focus();
					return false;
				}
			}
			
			
			//return false;
			
		}
						
		function setDay()
		{
			var theDay = 0;
			
			theDay = document.all.cboPUDay.options[document.all.cboPUDay.selectedIndex].value;
			for(var i = 0; i <= (document.all.cboPUDay.options.length - 1); i++){
				if(document.all.cboDODay.options[i].value == theDay){
					document.all.cboDODay.options[i].selected = true;
				}
			}
		}

		function setMonth()
		{
			var theMonth = 0;
			
			theMonth = document.all.cboPUMonth.options[document.all.cboPUMonth.selectedIndex].value;
			
			for(var i=0;i<= (document.all.cboPUMonth.options.length - 1);i++){
				if(document.all.cboDOMonth.options[i].value == theMonth){
					document.all.cboDOMonth.options[i].selected = true;
				}
			}
		}
		function setYear()
		{
			var theYear = 2005;
			
			theYear = document.all.cboPUYear.options[document.all.cboPUYear.selectedIndex].value;
			
			for(var i=0;i<= (document.all.cboPUYear.options.length - 1);i++){
				if(document.all.cboDOYear.options[i].value == theYear){
					document.all.cboDOYear.options[i].selected = true;
				}
			}
		}
		
		function setBranch(item)
		{
			
			var theBranch = "";
			var oPUB = document.getElementById("cboPUB");
			var oDOB = document.getElementById("cboDOB");
			var l = oDOB.options.length -1;
			theBranch = oPUB.options[oPUB.selectedIndex].value;
				for(var i=0;i<=l;i++){
					if(oDOB.options[i].value == theBranch){
						oDOB.options[i].selected = true;
					}
				}
		}
		function doDOB()
		{
			var theChoice = document.all.cboDOB.options[document.all.cboDOB.selectedIndex].value;
			
		}