function checkIfNum(evt)
{
evt = (evt) ? evt :window.event
var charCode = (evt.which) ? evt.which : evt.keyCode
if ((charCode < 48 || charCode > 57) && charCode != 8 && charCode != 9)
	{
	document.varsForm.error.value = "This field accepts numbers only."
	return false
	}
	document.varsForm.error.value = ""
	return true
}

function validateForm(){
	if(document.varsForm.widthl.value=="")
		{alert("You must enter a width.");
		document.varsForm.widthl.focus();
		return false;
		}
	if (document.varsForm.widthl.value < 837 || document.varsForm.widthl.value > 1017)
		{alert("The dimensions required for the overall width must be between 837 and 1017 mm.");
		document.varsForm.widthl.focus();
		return false;
		}
	if(document.varsForm.heightl.value=="")
		{alert("You must enter a height.");
		document.varsForm.heightl.focus();
		return false;
		}	
	if (document.varsForm.heightl.value < 1978 || document.varsForm.heightl.value > 2076)
		{alert("The dimensions required for the overall width must be between 1978 and 2076 mm.");
		document.varsForm.heightl.focus();
		return false;
		}
}
