// 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 "career": url = "careers.html"; break; 
		case "about": url = "aboutus.html"; break;
		case "phil": url = "ourphilosophy.html"; break;
	case "program": url = "ourprograms.html"; break;
	case "contact": url = "contactus.html"; break;
	case "staff": url = "ourstaff.html"; break; 
	case "enrich": url = "enrichment.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=3A3403C9-C4B5-44BC-94E9-C52A290FEA60"; break; 
	case "requestTour": url = "https://www.childcareos.com/Marketing/InterestWaitList/centers.aspx?FLG=400&CID=5ED3D3DC-E3EA-47E9-8B59-2DB279071EB6"; break;
	case "calendar": url= "https://www.childcareos.com/ParentCommunication/Calendar/BlockView.aspx?EVTMON&CMP=1082&CNO=316"; break;
	case "forms": url= "https://www.childcareos.com/ParentCommunication/Forms/PreviewForms.aspx?CCID=1082/316"; break;
	case "login": url = "https://www.childcareos.com/Login.aspx?CID=1082"; break;
	case "hosted": url = "http://www.oncareservices.com"; break;
    }

    if(target.trim() != ""){
        window.open(url);
    }
    else
    {
        window.location.href = url;    
    }
}
