
var xmlHttp;
var divElement;

	function getAjax(strURL,divid) {		
		
		divElement=divid;	
		var req = GetXmlHttpObjects();
		
		if (req) {
			
			req.onreadystatechange = function() {
				if (req.readyState == 4) {
					// only if "OK"
					if (req.status == 200) {						
						document.getElementById(divElement).innerHTML=req.responseText;						
					} else {
						alert("There was a problem while using XMLHTTP:\n" + req.statusText);
					}
				}				
			}			
//alert(divid);
			req.open("GET", strURL, true);
			req.send(null);
		}
				
	}

function statesChanged() 
			{ 
					if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
					 { 
						document.getElementById(divElement).innerHTML=xmlHttp.responseText 
					 } 
			}

function GetXmlHttpObjects()
			{
					var xmlHttp=null;
					try
					 {
					 // Firefox, Opera 8.0+, Safari
					 xmlHttp=new XMLHttpRequest();
					 }
					catch (e)
					 {
					 //Internet Explorer
					 try
					  {
					  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
					  }
					 catch (e)
					  {
					  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
					  }
					 }
					return xmlHttp;
			}


//picture zooming on click function for foto galery

