// JavaScript Document
String.prototype.trim = function() { return this.replace(/^\s+|\s+$/, ''); };
function doIt(lnkId, target)
{
    var url = "";
    
    switch(lnkId)
    {
        case "home": url = "index.html"; break;
        case "about": url = "about.html"; break;
	case "board": url = "board-of-directors.html"; break;
	case "contact": url = "contact.html"; break;
	case "staff1": url = "staff_baldwin.html"; break;
	case "program": url = "programs.html"; break;
	case "cag1": url ="https://www.childcareos.com/Marketing/InterestWaitList/childcareproviderdetails.aspx?FLG=200&CID=5638AD5B-1B12-4AD4-B338-77E42D3E41CD"; break; 
	case "cag2": url ="https://www.childcareos.com/Marketing/InterestWaitList/childcareproviderdetails.aspx?FLG=200&CID=6D62D7A4-B3E4-491A-9304-33723F74B8BB"; break; 
	case "calendar": url= "https://www.childcareos.com/ParentCommunication/Calendar/BlockView.aspx?EVTMON=&CMP=1062&CNO=206"; break;
	case "forms": url= "https://www.childcareos.com/ParentCommunication/Forms/PreviewForms.aspx?CCID=1062/206"; break;
	case "login": url = "https://www.childcareos.com/Login.aspx?CID=1062"; break;
	case "hosted": url = "http://www.oncareservices.com"; break;
    }

    if(target.trim() != ""){
        window.open(url);
    }
    else
    {
        window.location.href = url;    
    }
}

