function notyping(obj)
{
	alert("You are not allowed to type please choose by clicking Browse");
	obj.blur();
	return;
}

function checkChars(obj,charNum,divName)
{
	if(obj.value.length>charNum)
	{
		obj.value=obj.value.substring(0,charNum);
		alert("LIMIT ERROR: You are allowed to enter only "+charNum+" Chars.");
		obj.focus();
	}
	document.getElementById(divName).innerHTML=charNum-obj.value.length;
}

function openWindow(page_name,id,width,height)
{
	window.open(page_name+'?id='+id,'newwin','toolbar=0,status=0,scrollbars=1,resizable=1, width='+width+',height='+height+'')
}