function popUp(URLLink,WindowName,height,width) {
	props=window.open(URLLink,WindowName, 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubar=1, resizable=1, width='+ width +', height='+ height +', left = 262, top = 134');
}
function submitform(txt,action,asppage){
	document.forms[0].hideID.value=txt;
	document.forms[0].hideaction.value=action;
	document.forms[0].method="Post";
	document.forms[0].action=asppage;
	document.forms[0].submit();
}
function textCounter(field, countfield, maxlimit){
	if (field.value.length > maxlimit) {
		field.value = field.value.substring(0, maxlimit);
	}else{ 
		countfield.value = maxlimit - field.value.length;
	}
}