function ismaxlength(obj){
    var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
    if (obj.getAttribute && obj.value.length>mlength)
    obj.value=obj.value.substring(0,mlength)
}

function IsNumeric(sText)
{
   var ValidChars = "0123456789.";
   var IsNumber=true;
   var Char;

 
   for (i = 0; i < sText.length && IsNumber == true; i++) 
      { 
      Char = sText.charAt(i); 
      if (ValidChars.indexOf(Char) == -1) 
         {
         IsNumber = false;
         }
      }
   return IsNumber;
   
}

function RemoveHTML( strText )
{
	var regEx = /<[^>]*>/g;
	return strText.replace(regEx, "");
}


function showHideSection(getId,state){  
    if(state==1){
        document.getElementById(''+getId+'').style.display='block';
    }else{
        document.getElementById(''+getId+'').style.display='none';
    }
}
    
function checkInputValue(obj,inputValue){if(obj.value == inputValue){obj.value = '';};}

function dynTableGoTo(strUrl,target){
    if(target=='blank'){window.open(strUrl,'','');}else{window.location=strUrl;};
}