// JavaScript Document
// JavaScript Document
function openwindow(name,url,width,height)
{
		
var win=window.open(url,name,"width="+width+",height="+height+",scrollbars=yes,resizeable");
win.moveTo(100,100);
win.focus();
}

function showhide(elementId)
{
	if(document.getElementById(elementId).style.display=="none")
	{ 
	 document.getElementById(elementId).style.display="";
	 }else{
	 document.getElementById(elementId).style.display="none";
	 } 
}

function CountLeft(field, count, max)
 { // if the length of the string in the input field is greater than the max value, trim it  
	 if (field.value.length > max) 
	 field.value = field.value.substring(0, max);
	  else 
	  // calculate the remaining characters  
	   count.value = max - field.value.length;
 }
