// 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 "staff": url = "staff.html"; break; 
		case "kg": url = "form.html"; break;
	case "program": url = "programs.html"; break;
	case "contact": url = "contact.html"; break;
	case "class": url = "https://www.childcareos.com/ParentCommunication/Forms/PreviewForms.aspx?CCID=1056/416"; break; 
	case "requestTour": url = "https://www.childcareos.com/Marketing/InterestWaitList/centers.aspx?FLG=400&CID=C8FCD1C7-BD7E-4B0E-A0BA-A9FC42D1806A"; break;
	case "cag" : url ="https://www.childcareos.com/Marketing/InterestWaitList/childcareproviderdetails.aspx?FLG=200&CID=C8FCD1C7-BD7E-4B0E-A0BA-A9FC42D1806A"; break; 
	case "calendar": url= "https://www.childcareos.com/ParentCommunication/Calendar/BlockView.aspx?EVTMON&CMP=1056&CNO=192"; break;
	case "forms": url= "https://www.childcareos.com/ParentCommunication/Forms/PreviewForms.aspx?CCID=1056/192"; break;
	case "login": url = "https://www.childcareos.com/Login.aspx?CID=1056"; break;
	case "hosted": url = "http://www.oncareservices.com"; break;
    }

    if(target.trim() != ""){
        window.open(url);
    }
    else
    {
        window.location.href = url;    
    }
}