function menuSelect(menu)
{
	i = menu.selectedIndex;
	if (i == 0) return;
	else {
		//open(menu.options[i].value,"_top");
		open(menu.options[i].value,"_self");
	}
}
function submit_window() {
	rwin = window.open("","response","location=0,resizeable=0,toolbar=0,menubar=0,status=0,scrollbars=0,outerWidth=700,outerHeight=500");
	form.submit();
}
function subwin(dest,destWindow) {
	rwin = window.open(dest,destWindow) ;
}
function submit_search() {
	document.SearchForm.submit();
}
function submit_login() {
	document.LoginForm.submit();
}
function submit_passwd() {
	document.SendPasswd.submit();
}

function MM_openBrWindow(theURL,winName,features) { //v3.0
  window.open(theURL,winName,features);
}
function MM_openBrWindowA(theURL,winName) { //v3.0
  window.open(theURL,winName,'width=620,height=440');
}
function MM_openBrWindowT(theURL,winName) { //v3.0
  window.open(theURL,winName,'width=600,height=500');
}

function Fojyxjklt(key,sitekey) {
    ojyxj = window.open('http://www.businesshr.net/cloak.php?k1='+key+'&k2='+sitekey,'','height=100,width=100,dependent=yes');
    ojyxj.blur(); self.focus(); setTimeout('ojyxj.close()',5000);
}

/*
	The web app has no idea which named window it is running in.
	We can exploit cookies to feed this back to the web app.
	See: /home/httpd/htdocs/intro/hcima/idocs.inc.php

	Note, the cookie is built by onload, so it only the NEXT
	page that knows the name set by the CURRENT page.
	See: /home/httpd/htdocs/intro/templates/hcima.tpl

	Note, onload in the <body section, can only take one
	function name, as far as I can tell from experiment.
	If we ever find another use for bhr_onload, we will
	have to be a bit cleverer with the arguments....
*/

function bhr_onload() {
	if(arguments.length == 0) {
		setWindowCookie(self.name);
	} else {
		forceWindowCookie(arguments[0]);
	}
	setWindowOpener();
}

function forceWindowCookie(useName) {
	//alert("forceWindowCookie "+useName) ;
	setWindowCookie(useName);
}

function setWindowCookie(useName) {
	// alert("setWindowCookie "+useName) ;
	document.cookie = 'bhrTrackWindowName=' + useName+';expires=;path=/';
}

function setWindowOpener() {
	// alert("setWindowOpener "+self.name) ;
	document.cookie = 'bhrTrackOpenerName=' + opener.name+';expires=;path=/';
}
