// JavaScript Document
String.prototype.trim = function() { return this.replace(/^\s+|\s+$/, ''); };
function doIt(lnkId, target)
{
    var url = "";
    
    switch(lnkId)
    {
        case "home": url = "default.aspx"; break;
        case "about": url = "about.aspx"; break;
	case "contact": url = "contactdirector.aspx"; break;
	case "program": url = "programs.aspx"; break;
	case "cag": url = "https://www.childcareos.com/Marketing/InterestWaitList/childcareproviderdetails.aspx?FLG=200&CID=F4620388-16A5-404E-ADF7-94EEF3924F95"; break;
	case "calendar": url= "https://www.childcareos.com/ParentCommunication/Calendar/BlockView.aspx?EVTMON&CMP=1054&CNO=188"; break;
	case "forms": url= "https://www.childcareos.com/ParentCommunication/Forms/PreviewForms.aspx?CCID=1054/188"; break;
	case "login": url = "https://www.childcareos.com/Login.aspx?CID=1054"; break;
	case "hosted": url = "http://www.oncareservices.com"; break;
    }

    if(target.trim() != ""){
        window.open(url);
    }
    else
    {
        window.location.href = url;    
    }
}
