    
    function redirectPage()
    {
    window.location.href = "BasicSearchIssue.aspx";
    }
    
    function Disable(id)
    {            
        var txtFld = document.getElementById(id);
        txtFld.blur();
    } 
    
    function Enable(id)
    {            
        var txtFld = document.getElementById(id);
        txtFld.focus();
    }     
    
    function RemoveText(id)
    {            
        var txtFld = document.getElementById(id);
        alert(txtFld.value)
    } 

    function collapseAddPanel(state,div,hideButton)
    {
        var btnC = document.getElementById(hideButton);
        if (state == 0)
        {
            btnC.style.visibility = "hidden";
            document.getElementById(div).style.display = 'none';       
        }
        else
        {
            btnC.style.visibility = "visible";
            document.getElementById(div).style.display = 'block';       
        }
    }   
    
    function textCounter(field, countfield, maxlimit) 
    {
        if (field.value.length > maxlimit)
        {
            alertText = "You have reached "+maxlimit+"-character limit.";
	        alert (alertText);
	        field.value = field.value.substring(0, maxlimit);
        }
        else // otherwise, update 'characters remaining ' counter
        {
            if (field.value.length > maxlimit-5)
              countfield.style.color = "red";
            else
              countfield.style.color = "black";
	        countfield.innerText = (maxlimit - field.value.length) + " characters remaining";
        }
    }
    
    function checkRange(txtBoxID,max)
    {
      var txtBox = document.getElementById(txtBoxID);
      
      if (isNaN(txtBox.value) == true)
      {
        txtBox.value = max;
      }
      else
      {
        if (txtBox.value > max)
        {    
          txtBox.value = max;    
        }
      }
  }

  


