<!--
//Load Storage using Ajax
 var http = createRequestObject();
 function createRequestObject() 
     {
           var xmlhttp;
	 try 
                 { 
                    xmlhttp=new ActiveXObject("Msxml2.XMLHTTP"); 
                 }
	  catch(e) 
                 {
	    try { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}
	    catch(f) { xmlhttp=null; }
	    }
	        if(!xmlhttp&&typeof XMLHttpRequest!="undefined") 
                        {
	  	   xmlhttp=new XMLHttpRequest();
	           }
		   return  xmlhttp;
 }
function LoadStorage(storageID,brand) 
	{
	var dvelement = document.getElementById('storage_name');
	dvelement.innerHTML = "<img src='images/indicator.gif' height='16' width='16' style='margin: 72px;' />";
	try
		{
		http.open('GET', 'includes/module_storage.asp?storage='+storageID+'&brand='+brand+'&timestamp=' + new Date().getTime());
		http.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2005 00:00:00 GMT");
		http.onreadystatechange = handleResponseText;
		http.send(null);
		}
	catch(e){}
	finally{}
	}
function handleResponseText() 
	{
	try
		{
		if((http.readyState == 4)&& (http.status == 200))
			{
			var response = http.responseText;
			var update = new Array();
			if(response.indexOf('|') != -1) 
				{
				update = response.split('|');
				var divname = document.getElementById('storage_name');
				var divaddress1 = document.getElementById('storage_address1');
				var divaddress2 = document.getElementById('storage_address2');
				var divphone = document.getElementById('storage_phone');
				var divlogo = document.getElementById('storage_logo');
				var divurl = document.getElementById('storage_url');
				//var thdiv = document.getElementById('th'+update[0]);
				//dvdiv.style.display ='none';
				divname.innerHTML = update[1];
				divaddress1.innerHTML = update[3];
				divaddress2.innerHTML = update[4];
				divphone.innerHTML = update[5];   
				divlogo.innerHTML = update[7];   
				divurl.innerHTML = update[8];   
				}
			}
		}
	catch(e){alert("Er heeft zich een fout voor gedaan.");}
	finally{}
}