// open new window
function openWindow(url, name, w, h) {
  popupWin = window.open(url, name, 'resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,status=yes,width=' + w + ',height=' + h);
}

function openAnyWindow(url, name) {
  var l = openAnyWindow.arguments.length;
  var w = "";
  var h = "";
  var features = "";

  for (i=2; i<l; i++) {
    var param = openAnyWindow.arguments[i];
    if ( (parseInt(param) == 0) || (isNaN(parseInt(param))) ) {
      features += param + ',';
    } else {
      (w == "") ? w = "width=" + param + "," :
        h = "height=" + param;
    }
  }

  features += w + h;
  var code = "popupWin = window.open(url, name";
  if (l > 2) code += ", '" + features;
  code += "')";
  eval(code);
}

  function MM_jumpMenu(targ,selObj,restore)
	{
	var webaddress = selObj.options[selObj.selectedIndex].value;
	var newwindow;
	var myRegExp = /^http:/;
	if ( webaddress.match(myRegExp) )
		{
		//alert( "external window" );
		w = 800;
		h = 500;
		LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
		TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
		window.open(webaddress,'external link','height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
		}
		else
		{
		//alert( "internal window" );
		eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
		if (restore) selObj.selectedIndex=0;
		}
	}