function popup(sUrl)
{
	window.open('./php/viewer.php?i='+sUrl, 'popup', 'width=600, height=575, resizable=no, statusbar=no, menubar=no, toolbar=no');
}

// load dynamic content
function load_page (url, string, div) //what to load, additional vars, where to load
{	
	div.innerHTML = '<p><br><em>Va rugam asteptati ...</em><br/></p>';
	if (document.all)
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	else
		xmlhttp = new XMLHttpRequest(); 
	xmlhttp.open("GET", url+ '?' + string );
	xmlhttp.onreadystatechange = function() 
		{ if (xmlhttp.readyState == 4 && (xmlhttp.status == 200 || xmlhttp.status == 304)) div.innerHTML = xmlhttp.responseText;}
	xmlhttp.send(null);
}

