<!--
	function validate() {	
		if (trim(document.Quote_Form.Inside_Recess_Or_Outside_Recess.value) !== "Inside Recess" & trim(document.Quote_Form.Inside_Recess_Or_Outside_Recess.value) !== "Exact Size"){
			alert("Please select if the blind size is inside a recess or the exact size");
			self.document.Quote_Form.Inside_Recess_Or_Outside_Recess.focus();
			return false;
		}
		if (!is_a_number(document.Quote_Form.Width.value)){
			alert("Please complete a valid Width for the blind");
			self.document.Quote_Form.Width.focus();
			return false;
		}
		if (parseFloat(trim(document.Quote_Form.Width.value)) < 0) {
			alert("You can not have a width of less than 0 mm");
			self.document.Quote_Form.Width.focus();
			return false;
		}
		if (parseFloat(trim(document.Quote_Form.Width.value)) > 3000) {
			alert("You can not have a width of more than 3000 mm");
			self.document.Quote_Form.Width.focus();
			return false;
		}
		if (parseFloat(trim(document.Quote_Form.Width.value)) < 600) {
			alert("You can not have a width of less than 600 mm");
			self.document.Quote_Form.Width.focus();
			return false;
		}
		if (!is_a_number(document.Quote_Form.Drop.value)){
			alert("Please complete a valid Drop for the blind");
			self.document.Quote_Form.Drop.focus();
			return false;
		}
		if (parseFloat(trim(document.Quote_Form.Drop.value)) < 0) {
			alert("You can not have a drop of less than 0 mm");
			self.document.Quote_Form.Drop.focus();
			return false;
		}
		if (parseFloat(trim(document.Quote_Form.Drop.value)) > 3000) {
			alert("You can not have a Drop of more than 3000 mm");
			self.document.Quote_Form.Drop.focus();
			return false;
		}	
		if (parseFloat(trim(document.Quote_Form.Drop.value)) < 600) {
			alert("You can not have a Drop of less than 600 mm");
			self.document.Quote_Form.Drop.focus();
			return false;
		}	
		return true;
	}	
		
	function is_a_number(inbox) {					
		inbox = trim(inbox)
		inbox = removeblank(inbox)
		if (trim(inbox) == "") {
			return false;
		}
		for (var i = 0; i <  inbox.length; i++) {
			var c = inbox.charAt(i)
			if (c != "0" & c != "1" & c != "2" & c != "3" & c != "4" & c != "5" & c != "6" & c != "7" & c != "8" & c != "9" & c != "."){		
				return false;
			}
		}
		return true
	}	
	
	function trim(str)
	{
   		return str.replace(/^\s*|\s*$/g,"");
	}
	
	function removeblank(inbox) {
		var output = ""
		for( var i = 0; i <  inbox.length; i++) {
			var c = inbox.charAt(i)
			if (c != " "){		
				output = output + c			
			}
		}
		return output
	}
//-->