
function openWindow(file,name,width,height) {
	t=window.open(file,name, 'toolbar=no,menubar=no,scrollbars=no,resizable=yes,status=no,location=no,directories=no,top=60, left=100,width='+width+',height='+height+'');
	t.focus();
}

function textCounter(field, countfield, maxlimit)
{
	if (field.value.length > maxlimit)
	{
		field.value = field.value.substring(0, maxlimit);
	}
	else 
	{
		countfield.value = maxlimit - field.value.length;
	}
}