// 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 = "program.html"; break;
		case "external": url = "http://partnerpage.google.com/childrensclassic.net"; break;
		case "login": url = "https://www.childcareos.com/Login.aspx?CID=1087"; break;
		case "hosted": url = "http://www.oncareservices.com"; break;		
		
case "cag1": url = "https://www.childcareos.com/Marketing/InterestWaitList/childcareproviderdetails.aspx?FLG=200&CID=3C76F598-90A3-49FC-874A-F3A41ADCE81F"; break;
case "calendar1": url= "https://www.childcareos.com/ParentCommunication/Calendar/BlockView.aspx?EVTMON&CMP=1087&CNO=344"; break;
case "forms1": url= "https://www.childcareos.com/ParentCommunication/Forms/PreviewForms.aspx?CCID=1087/344"; break;
		
case "cag2": url = "https://www.childcareos.com/Marketing/InterestWaitList/childcareproviderdetails.aspx?FLG=200&CID=996A858E-BF34-407C-93BA-8B62D8FFFA8F"; break;
case "calendar2": url= "https://www.childcareos.com/ParentCommunication/Calendar/BlockView.aspx?EVTMON&CMP=1087&CNO=345"; break;
case "forms2": url= "https://www.childcareos.com/ParentCommunication/Forms/PreviewForms.aspx?CCID=1087/345"; break;
		
		

    }

    if(target.trim() != ""){
        window.open(url);
    }
    else
    {
        window.location.href = url;    
    }
}

