All pastes #426163 Raw Edit

Blake

public text v1 · immutable
·published 2007-04-05 23:00 UTC
rendered paste body
<script type="text/javascript">
function isset(varname)  {
  if(typeof( window[ varname ] ) != "undefined") return true;
  else return false;
}

function validateInput() {

var numericExpression = /^[0-9]+$/;

var elem = document.getElement.By.Id("sets");
if(elem.value.match(numericExpression)){
} else { var invalid = "true"; }

var elem = document.getElement.By.Id("orig");
if(elem.value.match(numericExpression)){
} else { var invalid = "true"; }

if (isset(invalid)) {
   alert("You must completely fill out this form!");
   return false;
}

}
</script>


<input type="submit" value="Choose Final Order Options"
         style="color: #000000; background: #CCCCCC;
         border: 1px solid #333333; margin: 15px; margin-left: 360px;"
         onclick="validateInput()">