// 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 = "aboutus.html"; break;
	case "contact": url = "contactus.html"; break;
	case "program": url = "ourprograms.html"; break;
	case "staff": url = "ourstaff.html"; break; 
	case "external": url ="http://www.cc-um.org/"; break; 
	case "cag": url = "https://www.childcareos.com/Marketing/InterestWaitList/childcareproviderdetails.aspx?FLG=200&CID=D7DA24A6-0BDE-434D-A893-3EB34DE3B32B"; break;
	case "calendar": url= "https://www.childcareos.com/ParentCommunication/Calendar/BlockView.aspx?EVTMON&CMP=1080&CNO=314"; break;
	case "forms": url= "https://www.childcareos.com/ParentCommunication/Forms/PreviewForms.aspx?CCID=1080/314"; break;
	case "login": url = "https://www.childcareos.com/Login.aspx?CID=1080"; break;
	case "hosted": url = "http://www.oncareservices.com"; break;
    }

    if(target.trim() != ""){
        window.open(url);
    }
    else
    {
        window.location.href = url;    
    }
}

