		//This is the Javascript file for the Business Profile for use by all users
		function del_photo(p_id,v_id){
			get_ajax('http://www.mycity.com/venue_mgmt/a_del_ven_photo.php?p_id='+p_id,'none');
			setTimeout('refresh_photos(\''+v_id+'\')',500);
		}

		function refresh_photos(v_id){
			get_ajax('http://www.mycity.com/venue_mgmt/a_get_ven_photo.php?v_id='+v_id,'photo_div');
		}
	
		function get_aj_del_test(){
			get_ajax('http://www.mycity.com/venue_mgmt/a_del_ven_photo2.php?p_id=9142&kljljk=89','test_div');
		}
		
		function getHTTPObjectSearch(){
		
		      if (window.ActiveXObject) { 
			return new ActiveXObject("Microsoft.XMLHTTP");
	 	      }else if (window.XMLHttpRequest) { 
			return new XMLHttpRequest();
		          if (http_request.overrideMimeType) {
				http_request.overrideMimeType('text/xml');
			   }
      		      }else{
	 		alert("Your browser does not support AJAX.");
	       	return null;
	      	      }
  
   	      }
  
       
  
	      function captureReturn(div){
	     	 if(httpObjectSearch.readyState == 4){
			    var markup=httpObjectSearch.responseText; 
			    document.getElementById(div).innerHTML = markup;

			}
     	      }
  
       
  
 
   		   function get_ajax(url,div){
			
		       httpObjectSearch = getHTTPObjectSearch();  
			 if (httpObjectSearch != null) {

				httpObjectSearch.open("GET", url+'&rvar='+Math.random(), true);
				httpObjectSearch.send(null);
				httpObjectSearch.onreadystatechange = function(){captureReturn(div)};
			       httpObjectSearch.close;
		         } 
  		      }
  
       
  
  		    var httpObjectSearch = null;