//MM_jumpMenu			Jump Menu Function
//load1					Change Page in paging function
//PopUp					PopUp Window function
//MM_preloadImages		Preload Images

//Jump Menu Function
function MM_jumpMenu(targ,selObj,restore){ //v3.0
    eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
    if (restore) selObj.selectedIndex=0;
}

//Open browser window
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//load1 Change Page in paging function
function load1(form) {
	var url = form.Llist_1.options[form.Llist_1.selectedIndex].value;
    if (url != '') location.href = url;
    return false;
}

//PopUp Window function
function popUp(page,w,h,s,content){
   var thisWin;
   wWidth = window.screen.width;
   wHeight = window.screen.height;
   pWidth = w;
   pHeight = h;
   pScroll = s;
   xPos =  parseInt((wWidth-pWidth)/2);
   yPos =  parseInt((wHeight-pHeight)/2);
   winProp = "top="+yPos+",left="+xPos+",width="+pWidth+",height="+pHeight+",scrollbars="+pScroll+",resizable=yes"; 
         
   if(page.length > 0){	
		thisWin = window.open(page,"newWin",winProp);
		thisWin.focus();
   }	
   else if (content.length > 0) {
		thisWin = window.open("","newWin",winProp);
		thisWin.document.open();		
		thisWin.document.write(content);
		thisWin.document.close();	
		thisWin.focus();
   }
}

//Preload Images
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
