// DIV show and hide
function ShowHide(obj, visibility) {
	if(document.getElementById){
		divs = document.getElementsByTagName("div");
    		divs[obj].style.visibility = visibility;
	}
}
// display decision alert box
function decision(message, url){
	if(confirm(message)) location.href = url;
}

// open browser window
function getHelp(id) {
			var w = 400;
			var h = 400;
           var winl = (screen.width - w) / 2;
           var wint = (screen.height - h) / 2;
           winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,resizable=no,status=yes,toolbar=no,location=no' ;
		   win = window.open('help.php?id='+id, 'help', winprops);
           if (parseInt(navigator.appVersion) >= 4) { 
              	win.window.focus(); 
           } 
}

// open browser window
function popUp(url, windowName, w, h, scrollbar) {

           var winl = (screen.width - w) / 2;
           var wint = (screen.height - h) / 2;
           winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scrollbar ;
		   win = window.open(url, windowName, winprops);
           if (parseInt(navigator.appVersion) >= 4) { 
              	win.window.focus(); 
           } 
}
function openWebLink(URL) {
  var ScreenH = screen.height-180;
  var ScreenW = screen.width-40;
  var mLeft = (screen.width - ScreenW) /2 ;
  if (URL) {
    ewin=open(URL, '', 'height='+ScreenH+',width='+ScreenW+',menubar=yes,left=10,top=10,scrollbars=yes,resizable=yes,status=yes,toolbar=yes,location=yes,directories=no');
  }
}

function jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}