window.onerror = HandleError

function HandleError(message, url, line) {
  var str = "An error has occurred in this dialog." + "\n\n"
  + "Error: " + line + "\n" + message;
  alert(str);
  //window.close();
  return true;
}
function status(text) {
	status=text;
}
function center_window(url,w,h){
	var top=screen.availHeight/2-h/2;
	var left=screen.availWidth/2-w/2;
	window.open(url,'','width='+w+',height='+h+',left='+left+',top='+top+'');	//,status=yes
}
function FIND(item) {
	if( window.mmIsOpera ) return(document.getElementById(item));
	if (document.all) return(document.all[item]);
	if (document.getElementById) return(document.getElementById(item));
	return(false);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
