﻿

function popitup(url) {
	newwindow=window.open(url,'Window1','statusbar=0,scrollbars=0,location=0,left = 0,top = 0,menubar=1,resizable=0');
	
	if (window.focus) {newwindow.focus()}
	return false;
}


function popitup1(url) {
var lef = (window.screen.width-600)/2;
var to = (window.screen.height-600)/2;
	newwindow=window.open(url,'Window1','toolbar=no,status=no,menubar=no,location=no,directories=no,resizable=yes,scrollbars=yes,width=600,height=600,left='+lef+',top='+to);


	
	if (window.focus) {newwindow.focus()}
	return false;
}

//Edit the counter/limiter value as your wish
var count = "2000";   //Example: var count = "175";
function limiter(){
var tex = document.aspnetForm.ctl00$ContentPlaceHolder2$txtComments.value;
var len = tex.length;
if(len > count){
        tex = tex.substring(0,count);
        document.aspnetForm.ctl00$ContentPlaceHolder2$txtComments.value =tex;
        return false;
}
document.aspnetForm.limit.value = count-len;
}
