﻿var strLocationUrl;
function revealModal(divID)
{
    $find(divID).show();
    return false;
}

function hideModal(divID)
{
    $find(divID).hide();
    return false;
}

function CheckInterestRatePopup(LocationUrl)
{      	      
  try
  {  
      strLocationUrl = LocationUrl;
      if(strControlValue != "true")
      {
          revealModal("modal"); 
      }
      else
      {
          document.location.href = LocationUrl;
      }
  }
  catch(err)
  {
      document.location.href = LocationUrl;
  }
}

function GetTargetUrl(imgbtn)
{
    hideModal("modal");
    /*document.location.href = strLocationUrl; */    
    //imgbtn.setAttribute('LocationUrl',strLocationUrl); 
    document.getElementById('ctl00_ContentPlaceHolder1_hdnLocationUrl').value = strLocationUrl;
    //imgbtn.setAttribute('CommandArgument',strLocationUrl);    
}

function ValidateLeftMenuItem(NavigateUrl,lnk)
{
    CheckInterestRatePopup(NavigateUrl);
    try
    {
        TreeViewNodeAction(lnk);
    }
    catch(err)
    {
    }
}