﻿/// <reference path="LanxerLibrary.js" />
/// <reference path="Global_Page.js" />
/// <reference path="Global.js" />
/// <reference path="Global_AJAX.js" />
function loc_Find_USZip()
{
    g('LocDisplay').style.display = 'none';
    g('LocDisplayReadOut').style.display = 'block';
    g('LocDisplayReadOut').innerHTML = aj_geo('typeFindLocation_Zip_Y=' + g('loc_ProfileFindLocTB').value);
}

function loc_Find_Out() // Out is outside the us
{
    var country = '';
    if(IsEmptyText(g('TBCountry').value))
        country = 'ANY';
     else
        country = lescape(g('TBCountry').value);
        
    g('LocDisplay').style.display = 'none';
    g('LocDisplayReadOut').style.display = 'block';
    g('LocDisplayReadOut').innerHTML = aj_geo('typeFindLocation_Out_Y=' + country + '&city=' + lescape(g('TBCity').value));
}

function loc_ChangeLocal(val)
{
    g('mp_LocationSel_US').style.display = 'none';
    g('mp_LocationSel_OUT').style.display = 'none';
    g('mp_LocationSel_' + val.value).style.display = 'block';
}

function loc_SelectLocation(loc)
{
    alert(aj_geo('setLocation_USZip=t&' + loc));
}

function loc_EditLocation()
{
    g('LocDisplay').style.display = 'block';
    g('LocDisplayReadOut').style.display = 'none';
}

function loc_CancelEditLocation()
{
    g('LocDisplay').style.display = 'none';
    g('LocDisplayReadOut').style.display = 'block';
}

function loc_SetCommuteRange(rdb)
{
    aj_geo('setCommuteRange=' + rdb.value);
}