/* Window Utilities */
function NewWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function closeWindow() {
	window.close();
}

function reloadWindow() {
	window.location.reload();
}

function reloadParent() {
	window.opener.location.reload();
}


/* Fix IE6/7 ActiveX activation */
function ieFlash(path, fwidth, fheight, nojs) {
	document.write('<object type="application/x-shockwave-flash" data="'+ path +'" width="' + fwidth +'" height="' + fheight +'">');
	document.write('<param name="movie" value="'+ path +'" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write(nojs);
	document.write('</object>');
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


/* Form Submits */
function doSearch() {
	document.searchForm.submit();
}
