<!-- This script will validate that the required fields are set  -->
<!-- Begin
function fixElement(element, message) {
alert(message);
element.focus();
}

function isFormReady(form) {
var passed=false;
if (form.keywords.value == "") {
fixElement(form.keywords, "Please enter something to search for!");
}

else {
passed=true;
}
return passed;
}
function ViewCrossReference (selSelectObject)
{
if(selSelectObject.options[selSelectObject.selectedIndex].value != "")
{
location.href=selSelectObject.options[selSelectObject.selectedIndex].value
}
}

var popUpWin=0;
function popUpWindow(URLStr, width, height)
{
   var left = (screen.width - width) / 2;
   var top = (screen.height - height) / 2;
   popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

// Agreement Code
// Makes sure the the user agree's to the Terms prior to shipping.

var checkobj

function agreesubmit(el){
	checkobj=el
	if (document.all||document.getElementById) {
	for (i=0;i<checkobj.form.length;i++){  //hunt down submit button
		var tempobj=checkobj.form.elements[i]
		if(tempobj.type.toLowerCase()=="submit")
			tempobj.disabled=!checkobj.checked
		}
	}
}

function defaultagree(el){
	if (!document.all&&!document.getElementById){
		if (window.checkobj&&checkobj.checked)
			return true
		else{
			alert("Please read/accept terms to submit form")
			return false
		}
	}
}

function popUp(URL) {
				day = new Date();
				id = day.getTime();
				eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=512,height=342,left = 316,top = 262');");
			}

// End -->