// 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 "mgt": url = "management.html"; break;
		case "trans": url = "transportation.html"; break; 
	case "program": url = "ourprogram.html"; break;
	case "contact": url = "contactus.html"; break;

	case "cag": url ="https://www.childcareos.com/Marketing/InterestWaitList/childcareproviderdetails.aspx?FLG=200&CID=9A0DE231-A80F-4CBA-ACF2-D36A4FD3EF9E"; break; 
	case "calendar": url= "https://www.childcareos.com/ParentCommunication/Calendar/BlockView.aspx?EVTMON&CMP=1063&CNO=207"; break;
	case "forms": url= "https://www.childcareos.com/ParentCommunication/Forms/PreviewForms.aspx?CCID=1063/207"; break;
	case "login": url = "https://www.childcareos.com/Login.aspx?CID=1063"; break;
	case "hosted": url = "http://www.oncareservices.com"; break;
	case "external": url ="http://www.uwpc.org/"; break; 
    }

    if(target.trim() != ""){
        window.open(url);
    }
    else
    {
        window.location.href = url;    
    }
}