function populateMenu(locationID, heroImageID,divName,name,city,state,numberOfImages,pageLink){

	thisID = document.getElementById(divName);
	thisID.innerHTML = '';
	
	
	thisID.innerHTML = '<div align="right"> '+name+'.&nbsp;&nbsp;'+city+',&nbsp;'+state+'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font size=2> <a href= "javascript:void(0)" onclick="showDialogBox(\'canvasShadow\',\'locationMenu\');"> X </a> </font></div>  '+
					   '<table><td align="center" height="120px"> <img src="http://development.locationnetwork.evolvs.com/image_view.php?size=2&id='+heroImageID+ '"></td>'+
					   '<td> &nbsp;&nbsp;&nbsp; </td><td><br> '+numberOfImages+' images <br> <table id="listtable">'+
					   '<tr><td  class="button"><a href="location_edit.php'+pageLink+'&id='+locationID+'">Location Information</a> </td></tr>'+
					   '<tr><td  class="button"><a href="location_images.php'+pageLink+'&id='+locationID+'">Location Images</a> </td> </tr>'+					
					   '<tr> <td class="button"><a href="location.php?action=delete&id='+locationID+'"onclick="return confirm(\'Are you sure you want to delete this location?\')" >Delete Location</a></td></tr> '+
       					'<tr> <td class="button"><a href="Javascript:void(window.open(\'location_categories.php?id={$data[i].id}\',\'location_categories\',\'scrollbars=yes,width=1200,height=600\'));">Location Categories</a> </td> </tr>'+
					   '</table></td></table>';
	
}

