function loadPhotos(galleryID){

	var currentTime = new Date();
	var totalTime; 
	var theURL;
	
	try {
	   xmlhttp01 = new ActiveXObject("Microsoft.XMLHTTP");
	  } catch (E) {
	   xmlhttp01 = false;
	  }
	  if (!xmlhttp01 && typeof XMLHttpRequest!='undefined') {
	   xmlhttp01 = new XMLHttpRequest();
	  }
	  totalTime = currentTime.getDate() + '-' + currentTime.getMonth() + '-' + currentTime.getFullYear() + '-' + currentTime.getHours() + '-' + currentTime.getMinutes() + '-' + currentTime.getSeconds();
	  theURL = '../js/loadPhotos.php';
	  xmlhttp01.open("POST",theURL,true);
	  xmlhttp01.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');         
	  xmlhttp01.onreadystatechange=function() {
		 if (xmlhttp01.readyState == 4) { 
			  document.getElementById('photos').innerHTML = xmlhttp01.responseText;
			  initLightbox();
		 }
	  }
	try {
	  xmlhttp01.send('id='+escape(totalTime)+'&galleryID='+ galleryID);
	}
	catch (exceptionA) {}
	try {	
		  xmlhttp01.send(null);
	  }
	  catch (exceptionB) {}
		
}
