<!--
function OpenWin(url, winname) {
  window.open(url, winname, "toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1,width=200,height=100");
}

function CheckAll(formname) {
	formobj = eval('document.' + formname);
	for (i=0; i < formobj.length; i++) {
		if (formobj.elements[i].name.substr(0,8) == 'checked_') formobj.elements[i].checked = formobj.checkall.checked;
	}
}


function ConfirmDelete (form) {
	var godel = window.confirm("Are you sure you want to delete seleted items?");
	if (godel) {
		aForm = eval("document." + form);
		aForm.suredelete.value = 1;
		aForm.submit();
	}
}


function popup( url, winname, width, height ) {
	if (winname == "") winname = "popup";
	if (width == "") width = "400";
	if (height == "") height = "300";
	var top = (screen.height) / 2 - (height / 2);
	var left = (screen.width) / 2 - (width / 2);
	var win_arg = "scrollbars=yes,status=yes,resizable=yes,location=no,toolbar=no,width=" + width + ",height=" + height + ",top=" + top + ",left=" + left;
	window.open(url,winname,win_arg);
}



function imgpopup( url, winname, width, height ) {
  if (width == "")  width = 450;
  if (height == "")  height = 500;
  if (winname == "")  winname = "popup";
  var top = screen.height / 2 - height;
  var left = screen.width / 2 - width;
  var win_arg = "scrollbars=no,status=no,location=no,toolbar=no,resizable=yes,width=" + width + ",height=" + height + ",top=" + top + ",left=" + left;
  window.open(url,winname,win_arg);
}



function hover(obj) {
	UL = obj.getElementsByTagName('ul');
    if (UL.length > 0) {
		stubMenu = UL[0].style;
		if (stubMenu.display == 'none' || stubMenu.display == '') stubMenu.display = 'block';
		else stubMenu.display = 'none';
	}
}

function setHover() {
	obj = document.getElementById('nav');
	if (!obj) return ;
	LI = document.getElementById('nav').getElementsByTagName('li');
	for(i=0; i < LI.length; i++) {
		LI[i].onmouseover = function() { hover(this) };
		LI[i].onmouseout = function() { hover(this); }
	}
}


function prepareInputsForHints() {
	var inputs = document.getElementsByTagName("input");
	for (var i=0; i<inputs.length; i++) {
		if (inputs[i].parentNode.getElementsByTagName("span")[0]) {
			inputs[i].onfocus = function () { this.parentNode.getElementsByTagName("span")[0].style.display = "inline"; }
			if (!inputs[i].onblur) inputs[i].onblur = function () { this.parentNode.getElementsByTagName("span")[0].style.display = "none";}
		}
	}
	var inputs = document.getElementsByTagName("select");
	for (var i=0; i<inputs.length; i++) {
		if (inputs[i].parentNode.getElementsByTagName("span")[0]) {
			inputs[i].onfocus = function () {
				this.parentNode.getElementsByTagName("span")[0].style.display = "inline";
				return true;
			}
			inputs[i].onblur = function () {
				this.parentNode.getElementsByTagName("span")[0].style.display = "none";
				return true;
			}
		}
	}
}

 -->
