extraInfo="<html></html>";

function getFormParamRequestList(){
	return document.forms['param-request-list'];
}

function goMenu(Fthis){
        if(document.layers){
                var where = Fthis.menuSelect.selectedIndex;
                where = Fthis.menuSelect[where].value;
        }
        else
        {
                var where = Fthis.menuSelect.value;   
        }   
        if (where!="")
        {    
        	parent.window.document.location.href = where;
        }
		//return(false);
}

/*
function resizeWin(namescript,newLoc, newWidth, newHeight) {
	newWin = open(namescript,newLoc,"scrollbars=no,resizable=no,status=no,height=" + newHeight + ",width=" + newWidth + ",left=" + 		(screen.width-newWidth)/2 + ",top=" + (screen.height-newHeight)/2 );
	newWin.focus()
}
*/

function resizeWin(namescript,newLoc, newWidth, newHeight) {
	if(newWidth == 0) newWidth = (window.screen.width -50)
	if(newHeight == 0) newHeight = (window.screen.height -50)
	newWin = open(namescript,newLoc,"scrollbars=no,resizable=yes,status=no,height=" + newHeight + ",width=" + newWidth + ",left=" + 		(screen.width-newWidth)/2 + ",top=0");
	newWin.focus()
}


function mOver(src) { src.style.cursor = 'hand'; src.bgColor = '#818EAE';}

function mOut(src) { src.style.cursor = 'default'; src.bgColor = '#8C9ABD'; }

function getElById(idVal) {
  if (document.getElementById != null)
    return document.getElementById(idVal)
  if (document.all != null)
    return document.all[idVal]
  
  alert("Problem getting element by id")
  return null
}

function notShift(evt){
	evt=(evt)? evt : window.event
	//alert(evt.screenY)
	if (evt.shiftKey) {
		(window.event)? evt.returnValue=false : evt.preventDefault()
	}
}
function checkUnload(evt) {
	evt=(evt)? evt : window.event
	var x=evt.clientX
	var y=evt.clientY
	//alert("x-" + x + "; y-" + y)
	var w=(typeof window.innerWidth != 'undefined')?  window.innerWidth : document.body.clientWidth
	if((y<0 && x<0) || (y<0 && x>w)) window.open("/logout.jsp?clw=1","","width=50,height=50,top=4000");
}

function menudoc(type){
	var str="";
	var qS=new Array();
	var temp="";
	var name=""
	qS=location.href.substring(location.href.indexOf("?")+1,location.href.length).split("&");
	for(var i=0;i<qS.length;i++){
		name = qS[i].substring(0,qS[i].indexOf("="));
		temp=name.substring(0,4);
		if(temp=="list" || name=="urn" || name=="search" ) str+="&" + qS[i];
	}
	str=str.substring(1,str.length);
	document.location.href=type + ".jsp" + ((str!="")? "?" + str : "")
}

/*function entry(){
	var str="";
	var qS=new Array();
	var temp="";
	var name=""
	if(location.href.indexOf("?") != -1){
		qS=location.href.substring(location.href.indexOf("?")+1,location.href.length).split("&");
	}	
	for(var i=0;i<qS.length;i++){
		name = qS[i].substring(0,qS[i].indexOf("="));
		if(name!="auth") str+="&" + qS[i];
	}
	str = "?" + str + ((str=="")? "" : "&") + "auth=1";
	document.location.href = str;
}*/