function events(a) {
	frames['events1'].location.href='http://publichealth.lacounty.gov/phcommon/public/childpc/upevents.cfm?spa=' +a;
}

//function to load Featured NewsInfo
function FeaturedNewsInfo(a){
	
		//if frame hiddenNews is not defined equal to true
		if (!frames["hiddenNews"] == true){
			createIFrame("hiddenNews");						
			//setTimeout use to wait for 5 seconds for it to process
			//setTimeout ("CurrNewsInfo()", 5000);
			//setInterval rerun for every 60 seconds
			//setInterval ("HealthNewsInfo()", 60000);				
		}	
				
		top.frames["hiddenNews"].location = "http://publichealth.lacounty.gov/phcommon/public/childpc/chpcnews.cfm";
	}	
	
function displayFeaturedNews(sNews){
	var OutFeaturedNews = document.getElementById("OutFeaturedNews");
	OutFeaturedNews.innerHTML = sNews;	
	
}

function chkdomain()
{
	var indURL = document.URL	
	if (indURL.indexOf('publichealth.lacounty.gov') == -1){
		window.location = "http://publichealth.lacounty.gov/childpc/";
	}

}

