// 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 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;
}

function updButton(obj)
	{
		var cls = obj.className;
		
		if(cls!='updBtn_Selected')
		{
			if(cls=='updBtn')
			{
				cls = 'updBtn_Highlight';
			}
			else
			{
				cls = 'updBtn';
			}
		}
		
		obj.className = cls;
	}
	
	function selectUpd(obj)
	{
		for (var x = 1; x <= 2; x++)
		{
			document.getElementById("updButton"+x).className = 'updBtn';
			document.getElementById("updContent"+x).style.display = 'none';
		}
		
		obj.className='updBtn_Selected';
		var tmp = obj.id;
		var num = tmp.substr(tmp.length-1);
		document.getElementById("updContent"+num).style.display = 'block';
	}

