function PopUp(nURL,winName,popW,popH,nShowControls) {
  	w = screen.width ; h = screen.height
  	if (document.layers) {
    		if ((w >= 800) && (w <= 1028)) {w = 1028}
    		if ((h >= 600) && (h <= 780))  {h = 780}
    		if ((w >= 640) && (w <= 800))  {w = 800}
    		if ((h >= 480) && (h <= 600))  {h = 600}
    		if (w <= 640) {w = 640}
    		if (h <= 480) {h = 480}
  	}
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	if (nShowControls=="1") {
		var windowprops = "location=yes,scrollbars=yes,menubar=yes,toolbar=yes,resizable=yes,status=yes" + ",left=" + leftPos + ",top=" + topPos + ",width=" + popW + ",height=" + popH;
	} else {
		var windowprops = "location=no,scrollbars=yes,menubar=no,toolbar=no,resizable=no,status=yes" + ",left=" + leftPos + ",top=" + topPos + ",width=" + popW + ",height=" + popH;
	}
	popup = window.open(nURL,winName,windowprops);
	if (popup.blur) {
	  popup.focus();
	}
}

function mover(obj) {
	if (document.images) {
		eval( "document." + obj + ".src = " + obj + "1.src;");
		return 1;
	}
}

function mout(obj) {
	if (document.images) {
		eval( "document." + obj + ".src = " + obj + ".src;");
		return 1;
	}
}

function gotoHref(theSelect) {
	if(theSelect.value != "") {
		thehref = theSelect.options[theSelect.selectedIndex].value;
		window.location.href = thehref;
	}
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'block':(v='hide')?'none':v; }
    obj.display=v; }
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function formSubmit(submitBtnObj,formObj){
	submitBtnObj.value="Please wait...";
	submitBtnObj.disabled=true;
	formObj.submit();
}