// sets focus on the chosen first field of the form
// enter the field name in the setfocus function call in
// the body tag of the order form
function setFocus(field)    
{
  document.getElementById(field).focus();
}

// Prevent function of return key to avoid accidental form submissions
function stopRKey(evt) {
	var evt  = (evt) ? evt : ((event) ? event : null);
	var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
	if ((evt.keyCode == 13) && (node.type=="text")) { return false; }
}
document.onkeypress = stopRKey;

