// JavaScript Document
String.prototype.trim = function() { return this.replace(/^\s+|\s+$/, ''); };
function doIt(lnkId, target)
{
    var url = "";
    
    switch(lnkId)
    {
        case "home": url = "default.aspx"; break;
        case "about": url = "about.aspx"; break;
	case "staff": url = "staff.aspx"; break;
	case "map": url = "LocateMap.aspx"; break;
	case "program": url = "Program.aspx"; break; 
	case "cag_rrb": url = "https://www.childcareos.com/Marketing/InterestWaitList/centers.aspx?FLG=200&cid=53D8A31C-CFCD-40C1-AC36-EA329E19FE75"; break;
	case "cag_rrc": url = "https://www.childcareos.com/Marketing/InterestWaitList/centers.aspx?FLG=200&CID=94786E12-5B2A-4530-99BC-691B72E64D01"; break; 
	case "cag_rrg": url = "https://www.childcareos.com/Marketing/InterestWaitList/centers.aspx?FLG=200&CID=33F10700-0CA7-4121-B644-27F4A2FA6D92"; break; 	
	case "cag_rrm": url = "https://www.childcareos.com/Marketing/InterestWaitList/centers.aspx?FLG=200&CID=401B8F10-E5F5-4630-A57C-0A48B0291755"; break; 
	case "cag_rrn": url = "https://www.childcareos.com/Marketing/InterestWaitList/centers.aspx?FLG=200&CID=BCDDC16F-A43D-4B29-A26A-0ED8A18E35C8"; break; 
	case "cag_rrw": url = "https://www.childcareos.com/Marketing/InterestWaitList/centers.aspx?FLG=200&CID=DC740D45-4C33-4552-906C-0F88E2748312"; break;
	case "calendar": url= "https://www.childcareos.com/ParentCommunication/Calendar/BlockView.aspx?EVTMON&CMP=1044&CNO=159"; break;
	case "forms": url= "https://www.childcareos.com/ParentCommunication/Forms/PreviewForms.aspx?CCID=1044/159"; break;
	case "login": url = "https://www.childcareos.com/Login.aspx?CID=1044"; break;
	case "hosted": url = "http://www.oncareservices.com"; break;
	case "external": url = "http://www.iusd.k12.ca.us/schools"; break; 
    }

    if(target.trim() != ""){
        window.open(url);
    }
    else
    {
        window.location.href = url;    
    }
}

