function isInteger() {
  if ((event.keyCode < 48 || event.keyCode > 57) && event.keyCode != 13) event.returnValue = false;
}

function isDecimal() {
  if ((event.keyCode < 48 || event.keyCode > 57) && event.keyCode != 46 && event.keyCode != 13) event.returnValue = false;
}

function Validate(theForm) {

	if (isNaN(theForm.elements['MinAvailableSFInt'].value)) {
		alert("SF Min is invalid");
		theForm.elements['MinAvailableSFInt'].select();
		theForm.elements['MinAvailableSFInt'].focus();
		return false;
	}
	
	else if (isNaN(theForm.elements['MaxContiguousSFInt'].value)) {
		alert("SF Max is invalid");
		theForm.elements['MaxContiguousSFInt'].select();
		theForm.elements['MaxContiguousSFInt'].focus();
		return false;
	}
	else if (isNaN(theForm.elements['SaleMin'].value)) {
		alert("Price ($) Min is invalid");
		theForm.elements['SaleMin'].select();
		theForm.elements['SaleMin'].focus();
		return false;
	}
	else if (isNaN(theForm.elements['SaleMax'].value)) {
		alert("Price ($) Max is invalid")
		theForm.elements['SaleMax'].select();
		theForm.elements['SaleMax'].focus()
		return false
	}
	
}

