﻿
//<script type="text/javascript">
/*
function popItScroll(theLink){ 
	window.open(theLink,null,'height=800,width=700,scrollbars=yes,resizable=yes'); 
	
}
function showIt(theBox){
    if(theBox.style.display==""){
        theBox.style.display="none";
    }else{
        theBox.style.display="";
   
    }
}
function toggleIt(theBox){
    if(theBox.style.display=="none"){
        new Effect.Appear(theBox);
    }else{
        new Effect.Fade(theBox);
   
    }
}
//</script>
*/

function textCounter(field, countfield, maxlimit)
{
        
     if (field.value.length > maxlimit)
        field.value = field.value.substring(0, maxlimit);
     else
        countfield.value = maxlimit - field.value.length; 
     
      return true;
}


/*
    function showWindow(url)
    {
      //var w = screen.availWidth, h = screen.availHeight
      //var popW = 820, popH = 500;
      //var leftPos = (w-popW)/2, topPos = (h-popH)/2;
      window.open(url,'','toolbar=yes,status=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes');
    }
*/
/*
function ValidURL()
{
    var url = $get("ctl00_ContentPlaceHolder1_txtUrl");
    var txtresult = $get("ctl00_ContentPlaceHolder1_lblUrlMsg");
    
    PageMethods.checkURL(url.value,OnCallSumComplete,OnCallSumError,txtresult);
    //alert('this is test');
    
}
function OnCallSumComplete(result,userContext,checkURL)
{
    txtresult.value = result;
}
        
function OnCallSumError(error,userContext,checkURL)
{
   if(error !== null) 
   {
     alert(error.get_message());
   }
}
*/
