﻿ function RedirectURL(url)
{
location.href = url;
}

 function PopUpFixedSize(url)
{
    var width = 700;
    var height = 500;
    var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    var windowFeatures = "width=" + width + ",height=" + height + ",status,resizable,scrollbars=yes,left=" + left + ",top=" + top + "screenX=" + left + ",screenY=" + top;

	newwindow=window.open(url,'name',windowFeatures);
	if (window.focus) {newwindow.focus()}
}
 function PopUpWindow(url)
{
	newwindow = window.open(url,'name');
	if (window.focus) {newwindow.focus()}
}
/*function CountLength(maxlimit,txtDescription,lbldescription)
//        {
//            var newlength;
//            var msg;
//            msg=txtDescription.value;
//            newlength=maxlimit-eval(msg.length);
//            
//            if(document.all)
//                lbldescription.innerText=newlength;
//            else
//                lbldescription.textContent = newlength;
//          
//            if(msg.length > maxlimit)
//                {
//                    txtDescription.value=txtDescription.value.substring(0, maxlimit);
//                }
       }*/ 
