// JavaScript Document
String.prototype.trim = function() { return this.replace(/^\s+|\s+$/, ''); };
function doIt(lnkId, target)
{
    var url = "";
    
    switch(lnkId)
    {
		
	/* Links for LSCC */	
		case "cag_LSCC" : url = "https://www.childcareos.com/Marketing/InterestWaitList/childcareproviderdetails.aspx?FLG=200&CID=9920040A-46C5-46DA-8B20-43B3B8FBA9AA"; break; 
	case "Tour_LSCC": url = "https://www.childcareos.com/Marketing/InterestWaitList/centers.aspx?FLG=400&CID=9920040A-46C5-46DA-8B20-43B3B8FBA9AA"; break;
	case "calendar_LSCC": url = "https://www.childcareos.com/ParentCommunication/Calendar/BlockView.aspx?EVTMON&CMP=1097&CNO=353"; break;
	case "forms_LSCC": url= "https://www.childcareos.com/ParentCommunication/Forms/PreviewForms.aspx?CCID=1097/353"; break;
	
	
	
	
/* CAG & REquest TOur for PP Academy */
	case "cag_PA" : url = "https://www.childcareos.com/Marketing/InterestWaitList/childcareproviderdetails.aspx?FLG=200&CID=A67F1553-80F7-419F-A1B2-815E17A79EE8"; break; 
	case "Tour_PA": url = "https://www.childcareos.com/Marketing/InterestWaitList/centers.aspx?FLG=400&CID=A67F1553-80F7-419F-A1B2-815E17A79EE8"; break;
	
	
	
	

	/* CAG & REquest TOur for PP PReschool */
		case "cag_PP" : url = "https://www.childcareos.com/Marketing/InterestWaitList/childcareproviderdetails.aspx?FLG=200&CID=F13CC1D7-3277-4F0D-B46F-7A17CA0DA4A9"; break; 
	case "Tour_PP": url = "https://www.childcareos.com/Marketing/InterestWaitList/centers.aspx?FLG=400&CID=F13CC1D7-3277-4F0D-B46F-7A17CA0DA4A9"; break;
	
	case "calendar_PP": url = "https://www.childcareos.com/ParentCommunication/Calendar/BlockView.aspx?EVTMON&CMP=1093&CNO=357"; break;
	case "forms_PP": url= "https://www.childcareos.com/ParentCommunication/Forms/PreviewForms.aspx?CCID=1093/357"; break;
	
	
	
	
	
	/* Common Calendar & Forms for PP Academy & Preschool */
	case "calendar_Peter": url = "https://www.childcareos.com/ParentCommunication/Calendar/BlockView.aspx?EVTMON&CMP=1093&CNO=358"; break;
	case "forms_Peter": url= "https://www.childcareos.com/ParentCommunication/Forms/PreviewForms.aspx?CCID=1093/358"; break;
	
	
	
/* Common Login ID for PP Academy & Preschool */	
	case "login_Peter": url = "https://www.childcareos.com/Login.aspx?CID=1093"; break;

	
	/* Login ID  for LSCC */
	case "login_LSCC": url = "https://www.childcareos.com/Login.aspx?CID=1097"; break;
	
	
	
    }

    if(target.trim() != ""){
        window.open(url);
    }
    else
    {
        window.location.href = url;    
    }
}