// 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 "fee": url = "formsfees.html"; break;
	case "contact": url = "contact.html"; break;
	case "enc": url = "encinalschool.html"; break;
	case "pac": url = "pacificschool.html"; break;
	case "phil": url = "philosophy.html"; break;
	case "staff": url = "staff.html"; break;
	case "program": url = "ourprograms.html"; break;

	case "calendar": url= "https://www.childcareos.com/ParentCommunication/Calendar/BlockView.aspx?EVTMON&CMP=1090&CNO=356"; break;
	case "forms": url= "https://www.childcareos.com/ParentCommunication/Forms/PreviewForms.aspx?CCID=1090/356"; break;
	case "login": url = "https://www.childcareos.com/Login.aspx?CID=1090"; break;
	case "hosted": url = "http://www.oncareservices.com"; break;
    }

    if(target.trim() != ""){
        window.open(url);
    }
    else
    {
        window.location.href = url;    
    }
}

