// 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 "career": url = "careers.html"; break;
	case "contact": url = "contact.html"; break;
	case "quote": url = "parentsquotes.html"; break;
	case "vision": url = "our_vision.html"; break;
	case "program": url = "ourprograms.html"; break;
	case "requestTour": url ="https://www.childcareos.com/Marketing/InterestWaitList/centers.aspx?FLG=400&CID=35B83A81-56BF-45BF-814D-072573AC1581"; break;
	case "cag": url ="https://www.childcareos.com/Marketing/InterestWaitList/childcareproviderdetails.aspx?FLG=400&CID=35B83A81-56BF-45BF-814D-072573AC1581"; break;
	case "calendar": url= "https://www.childcareos.com/ParentCommunication/Calendar/BlockView.aspx?EVTMON&CMP=1096&CNO=360"; break;
	case "forms": url= "https://www.childcareos.com/ParentCommunication/Forms/PreviewForms.aspx?CCID=1096/360"; break;
	case "login": url = "https://www.childcareos.com/Login.aspx?CID=1096"; break;
	case "hosted": url = "http://www.oncareservices.com"; break;
    }

    if(target.trim() != ""){
        window.open(url);
    }
    else
    {
        window.location.href = url;    
    }
}

