function myJS(myVar){
	window.alert(myVar);
}

function isDefined(variable)
{
	return (!(!( variable||false )))
}

function je_updater(){
   	//window.alert("updating");
	intID = setInterval('updateMap()',45000);
}

//Get time to use with xml file to prevent IE
//from Caching the XML file.
function getTimeForURL(){
	var dt = new Date();
	var strOutput = "";
	strOutput = dt.getHours() + "_" + dt.getMinutes() + "_" + dt.getSeconds() + "_" + dt.getMilliseconds();
	return strOutput;
}
function updateMap(){
	//Get reference to map object using Dom ID
	var mapObj = getMapFromId("Map_Id");
	//Update its URL
       //mapObj.setDataURL("data.xml");
       mapObj.setDataURL(escape("data.xml?currTime=" + getTimeForURL()));
      //window.alert("updating");
      //Disable the button
      //this.document.frmUpdate.btnUpdate.disabled = true;
}

//FC_Rendered method is called whenever a FusionMaps map on the page
//has finished initial rendering. To this function, the map passes its
//own DOM Id.
function FC_Rendered(DOMId){
	//If it's our required map
      	if (DOMId=="Map_Id"){
       //Simply alert
       //window.alert("Look Ma! I am World Map and I've finished loading and rendering.");     
	 return;
      }
    }

