// 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 "contact": url = "contact.html"; break;
		case "program": url = "programs.html"; break;
		case "quote": url = "teachers_quote.html"; break;
		case "cag": url = "https://www.childcareos.com/Marketing/InterestWaitList/childcareproviderdetails.aspx?FLG=200&CID=82FE3CB1-F8B4-4403-8A1F-67887CB3B7BD"; break;
		case "calendar": url= "https://www.childcareos.com/ParentCommunication/Calendar/BlockView.aspx?EVTMON&CMP=1061&CNO=203"; break;
		case "forms": url= "https://www.childcareos.com/ParentCommunication/Forms/PreviewForms.aspx?CCID=1061/203"; break;
		case "login": url = "https://www.childcareos.com/Login.aspx?CID=1061"; break;
		case "hosted": url = "http://www.oncareservices.com"; break;
    }

    if(target.trim() != ""){
        window.open(url);
    }
    else
    {
        window.location.href = url;    
    }
}

