// UI_functions.js
// hideDiv(e1)
// showDiv(e1)
// showInNewWindow(Url)
// goNextField(elmnt,next)

function hideDiv(e1) {
	if (document.getElementById) { // DOM3 = IE5, NS6
	document.getElementById(e1).style.display = 'none';
	}
}

function showDiv(e1) {
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(e1).style.display = '';
	}
}

function showHideID(e1) {
	if (document.getElementById) { // DOM3 = IE5, NS6
		if (document.getElementById(e1).style.display == '') { document.getElementById(e1).style.display = 'none'; }
		else { document.getElementById(e1).style.display = ''; }			
	}
}

function showInNewWindow(Url) {
	if (Url != "") { window.open(Url,"",'nostatus,toolbar=no,location=no,directories=no,menuBar=no,resizable=yes,scrollbars=yes'); }
}		

function showInNewWindowSize(Url,w,h) {
	if (Url != "") { window.open(Url,"","nostatus,toolbar=no,location=no,directories=no,menuBar=no,resizable=yes,scrollbars=yes,width="+w+",height="+h); }
}

function showInNewWindowSizeID(Url,winId,w,h) {
	if (Url != "") { window.open(Url,winId,"nostatus,toolbar=no,location=no,directories=no,menuBar=no,resizable=yes,scrollbars=yes,width="+w+",height="+h); }
}

function goNextField(elmnt,next)
{  
  if (elmnt.value.length==elmnt.maxLength)
  {
	 next.focus();
  }
}