
function findElement(n,ly) {
	if (browserVers < 4)		return document[n];
	var curDoc = ly ? ly.document : document;
	var elem = curDoc[n];
	if (!elem) {
		for (var i=0;i<curDoc.layers.length;i++) {
			elem = findElement(n,curDoc.layers[i]);
			if (elem) return elem;
		}
	}
	return elem;
}

function rollover(link, menulink){
	

	link.style.backgroundColor = "#8f8783";
	document.getElementById(menulink).style.color = "#ffffff";

}
function rollout(link, menulink){
	link.style.backgroundColor = "";
	document.getElementById(menulink).style.color = "gray";

}
function buttonRollOver(imgid, imgname){

	document.getElementById(imgid).src = imgname;
}
function buttonRollOut(imgid, imgname){
	document.getElementById(imgid).src = imgname;
}


function getURL(chUrl){
	location.href=chUrl;
}

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

function newWindow(file) {
     msgWindow=open('blankPage.html','window1','resizable=no,scrollbars=yes,menubars=no,toolbars=no,location=no,resizable=no,width=370,height=650');
     msgWindow.location.href = file;
     if (msgWindow.opener == null) msgWindow.opener = self;
	}

function newWindowSm(file){
     msgWindow=open('blankPage.html','window1','resizable=no,scrollbars=no,menubars=no,toolbars=no,location=no,resizable=no,width=310,height=300');
     msgWindow.location.href = file;
     if (msgWindow.opener == null) msgWindow.opener = self;
	}


function winOpen(theURL,winName,windowprops) {
	var windowprops;
	windowprops = "height=523,width=556,location=no," + "scrollbars=yes,menubars=no,toolbars=no,resizable=yes";
    window.open(theURL,"wi",windowprops);
	}

function MM_callJS(jsStr) { //v2.0
  	return eval(jsStr)
	}
	
function strtrim() {
            //Match spaces at beginning and end of text and replace
            //with null strings
            return this.replace(/^\s+/,'').replace(/\s+$/,'');
        }





