function callType(){
		if(document.review3.calltype[0].checked==true){
			document.review3.incall_location.disabled=false;
			document.review3.incall_location.style.backgroundColor ="#ffffff";
		}else{
			document.review3.incall_location.disabled=true;
			document.review3.incall_location.style.backgroundColor ="#808080";
		}
}


function checkInput(e){
	var key;
	var keychar;
	var reg;

	if(window.event) {
		// for IE, e.keyCode or window.event.keyCode can be used
		key = e.keyCode;
	}else if(e.which) {
		// netscape
		key = e.which;
	}else {
	// no event, so pass through
		return true;
	}

	keychar = String.fromCharCode(key);
	reg = /[0-9\b]/;
	//return reg.test(keychar);
	if(reg.test(keychar)==true){
		return true;
	}else{
		alert("Only values 0-9 can be entered in this field.");
		return false;
	}
}

function exists(elm){
	  if(elm.value == "" ||
	     elm.value == null)
	  return false;
	  else return true;
}


function checkForm(form){
	var oc = form.outcome.value;
	
	var myDate = new Date();
	var today = new Date();
	myDate.setDate(form.dDay.options[form.dDay.selectedIndex].value);
	myDate.setMonth(form.dMonth.selectedIndex); // January = 0
	myDate.setFullYear(form.dYear.value); 
	
	if(myDate > today){
  		alert("You must select a Date in the past.");
  		form.dDay.focus();
  		return false;
  	}
	
	if(exists(form.dTime)==false) {
		alert("Please choose an appointment Time.");
		form.dTime.focus();
		return false;
	}
	
	
	
	
	
	if(oc=='C' || oc=='B'){
	
		if (!form.calltype[0].checked && !form.calltype[1].checked){
			alert("Please select if this was an Incall or Outcall.");
			form.calltype[0].focus();
			return false;
		}
		
		if(exists(form.duration)==false) {
			alert("Please choose an appointment Duration.");
			form.duration.focus();
			return false;
		}
	
		if(exists(form.cost)==false) {
			alert("Please enter the Cost of the appointment.");
			form.cost.focus();
			return false;
		}
		
		if(exists(form.review)==false) {
			alert("Please enter your Review details.");
			form.review.focus();
			return false;
		}
		
		
	
		if(exists(form.accuracy)==false) {
			alert("Please select How Satisfied were You with the Accuracy of the Escort's Photos as Published on SLE.");
			form.accuracy.focus();
			return false;
		}
		
		if(document.review3.calltype[0].checked==true){
			if(exists(form.incall_location)==false) {
				alert("Please select How Satisfied were You with the Escort's Incall Location.");
				form.incall_location.focus();
				return false;
			}
		}
		
		if(exists(form.appearance)==false) {
			alert("Please select What Your Opinion is of this Escort's Avatar Appearance.");
			form.appearance.focus();
			return false;
		}
		
	}
	
	if(oc=='C'){
	
		if(exists(form.satisfaction)==false) {
			alert("Please select How Satisfied you were with the Escort Service you Recieved.");
			form.satisfaction.focus();
			return false;
		}
		
		if(exists(form.money_value)==false) {
			alert("Please select How Satisfied you were in Terms of Value for Money.");
			form.money_value.focus();
			return false;
		}
		
		if(exists(form.experience)==false) {
			alert("Please select How Satisfied you were with this Escort Experience Overall.");
			form.experience.focus();
			return false;
		}
		
	}
	
	if(oc=='C' || oc=='B'){
		if(exists(form.recommend)==false) {
			alert("Please select if you Would Recommend this Escort to Other Clients.");
			form.recommend.focus();
			return false;
		}
		
		if(exists(form.repeat)==false) {
			alert("Please select if you Would See this Escort Again Yourself.");
			form.repeat.focus();
			return false;
		}
	}
	
	return true;
}
