// Set parameters for popup windows
// Popup window toolbar height
var th = 21;
// Default width and height
var w = 640;
var h = 480 + th;
// Default top and left spacer
var x = 50;
var	y = 50;

if (window.screen) {
	w = parseInt(window.screen.availWidth * 0.90) - x;
	if (w > 1280) {
		w = 1280;
	}
	h = w * .75 - y + th;
}

function validate(myobject) {
	s = myobject.keyword.value;
	// Check if nothing is selected or a novalue line is selected
	// Note: Cannot put both if statements on the same line because
	// myobject.order_id.options[s].value is not valid if s == 0 and
	// a javascript error occurs		
	if (s == '') {
		alert ('Enter a search term before clicking the Search button.');
		return false;
	}
	else {
		s.submit();
	}
}	

function emailPage(page_url){
	win_name= "_ep";
	win_options= "toolbars=no,status=no,left=10,top=10,width=550,height=375,scrollbars=1,resize=yes,resizable";
	window.open(page_url,win_name,win_options);
}

