﻿function DropDownSelected(sender, arrPostbackLocations, funcPostback, currentSelectedIndex, popupURL)
{   
    //alert(currentSelectedIndex);
    if (sender==null) return;
    var selectedValue = sender.options[sender.selectedIndex].value;   
    
    var _myLoc;
    for(var i=0; i<arrPostbackLocations.length; i++)    
    {
        _myLoc = arrPostbackLocations[i];
        if (selectedValue == _myLoc)
        {
            funcPostback();
            return;
        }        
    }
         
    sender.selectedIndex = currentSelectedIndex;    
    window.open('http://'+location.host+popupURL+'/Public/Base/TransferLocation.aspx?lid='+selectedValue);
}

