// JavaScript Document

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

function ShowHelp(img, title, desc)
	{
		img = document.getElementById(img);
		div = document.createElement('div');
		div.id = 'help';

		div.style.display = 'block';
		div.style.position = 'absolute';
		div.style.width = '250';

		div.style.backgroundColor = '#469278';
		div.style.border = 'solid 2px #CCCCCC';
		div.style.padding = '10px';
		div.innerHTML = '<span class=helpTip style="color:#FFFFFF"><b>' + title + '<\/b><\/span><br><img src=images/1x1.gif width=1 height=5><br><div style="padding-left:10; padding-right:10; color:#FFFFFF" class=helpTip>' + desc + '<\/div>';

		//img.parentNode.appendChild(div);
		var parent = img.parentNode;
		if(img.nextSibling)
			parent.insertBefore(div, img.nextSibling);
		else
			parent.appendChild(div)
	}

	function HideHelp(img)
	{
		img = document.getElementById(img);
		div = document.getElementById('help');
		if (div) {
			img.parentNode.removeChild(div);
		}
	}
	
function openwin(url, id, width, height) {
		// Open a window in the middle of the screen
		var l = (screen.availWidth/2) - (width/2);
		var t = (screen.availHeight/2) - (height/2);
		window.open(url, id, "width="+width+",height="+height+",left="+l+",top="+t);
	}
