// JavaScript Document
String.prototype.trim = function() { return this.replace(/^\s+|\s+$/, ''); };
function doIt(lnkId, target)
{
    var url = "";
    
    switch(lnkId)
    {
       
	case "cag": url = "https://www.childcareos.com/Marketing/InterestWaitList/childcareproviderdetails.aspx?FLG=400&CID=D55AFB5B-E501-4DBA-93A7-0BCC19AEC02B"; break;
	case "calendar": url= "https://www.childcareos.com/ParentCommunication/Calendar/BlockView.aspx?EVTMON&CMP=1110&CNO=392"; break;
	case "forms": url= "https://www.childcareos.com/ParentCommunication/Forms/PreviewForms.aspx?CCID=1110/392"; break;
	case "login": url = "https://www.childcareos.com/Login.aspx?CID=1110"; break;
	case "hosted": url = "http://www.oncareservices.com"; break;
    }

    if(target.trim() != ""){
        window.open(url);
    }
    else
    {
        window.location.href = url;    
    }
}
