﻿function ShowForgotSitter()
{
    document.getElementById("ctl00_contents_pnlSitterPassword").style.display = "";
    document.getElementById("ctl00_contents_pnlSitterLogin").style.display = "none";

    document.getElementById("ctl00_contents_pnlSitterResults").style.display = "none";
    document.getElementById("ctl00_contents_pnlSitterForm").style.display = "";
    
} // end function ShowForgotSitter

function ShowLoginSitter()
{
    document.getElementById("ctl00_contents_pnlSitterPassword").style.display = "none";
    document.getElementById("ctl00_contents_pnlSitterLogin").style.display = "";

    document.getElementById("ctl00_contents_pnlSitterResults").style.display = "";
    document.getElementById("ctl00_contents_pnlSitterForm").style.display = "";

} // end function ShowLoginSitter

function ShowForgotOwner()
{
    document.getElementById("ctl00_contents_pnlOwnerPassword").style.display = "";
    document.getElementById("ctl00_contents_pnlOwnerLogin").style.display = "none";

    document.getElementById("ctl00_contents_pnlOwnerResults").style.display = "none";
    document.getElementById("ctl00_contents_pnlOwnerForm").style.display = "";
    
} // end function ShowForgotOwner

function ShowLoginOwner()
{
    document.getElementById("ctl00_contents_pnlOwnerPassword").style.display = "none";
    document.getElementById("ctl00_contents_pnlOwnerLogin").style.display = "";

    document.getElementById("ctl00_contents_pnlOwnerResults").style.display = "";
    document.getElementById("ctl00_contents_pnlOwnerForm").style.display = "";

} // end function ShowLoginOwner

function popup(url, width, height) 
{
    window.open(url, "", "status = 1, height = " + height + ", width = " + width + ", resizable = 0");

} // end popup

function DisplayACT() {
    document.getElementById("frMap").src = "/sitters/map.aspx?state=act";
}

function DisplayNT() {
    document.getElementById("frMap").src = "/sitters/map.aspx?state=nt";
}

function DisplayNSW() {
    document.getElementById("frMap").src = "/sitters/map.aspx?state=nsw";
}

function DisplayTAS() {
    document.getElementById("frMap").src = "/sitters/map.aspx?state=tas";
}

function DisplayVIC() {
    document.getElementById("frMap").src = "/sitters/map.aspx?state=vic";
}

function DisplayWA() {
    document.getElementById("frMap").src = "/sitters/map.aspx?state=wa";
}

function DisplayQLD() {
    document.getElementById("frMap").src = "/sitters/map.aspx?state=qld";
}

function DisplaySA() {
    document.getElementById("frMap").src = "/sitters/map.aspx?state=sa";
}


function ShowACT() {
    popup("/sitters/map.aspx?state=act", 440, 300);
}

function ShowNT() {
    popup("/sitters/map.aspx?state=nt", 440, 300);
}

function ShowNSW() {
    popup("/sitters/map.aspx?state=nsw", 440, 300);
}

function ShowTAS() {
    popup("/sitters/map.aspx?state=tas", 440, 300);
}

function ShowVIC() {
    popup("/sitters/map.aspx?state=vic", 440, 300);
}

function ShowWA() {
    popup("/sitters/map.aspx?state=wa", 440, 300);
}

function ShowQLD() {
    popup("/sitters/map.aspx?state=qld", 440, 300);
}

function ShowSA() {
    popup("/sitters/map.aspx?state=sa", 440, 300);
}