function loadXXLImage(img, image_src)
{
	sel_img_id = document.getElementById('sel_img').value;
	
	sel = document.getElementById(sel_img_id);
	sel.style.border = "2px solid #000000";
	document.getElementById('sel_img').value = img.id;
	loading_height = document.getElementById('he').value / 2;
	img.style.border = "2px solid #FFCC33";

	document.getElementById('xxl_pic').innerHTML = "<div style='padding-left:"+document.getElementById('wrapper_width').value/2+"; margin-top:"+loading_height+"px;'> <img src='images/loading.gif' border='0' align='center' /> </div>";
	var img = new Image();
 
	img.onerror = function (){
	document.getElementById('xxl_pic').innerHTML = "<div style='padding-left:"+(document.getElementById('wrapper_width').value/2-85)+"; padding-top:"+(document.getElementById('wrapper_height').value/2-70)+"; width:530px; text-align:center;> <span class='Down' style='color:#999999;'>Imaginea cautata nu a fost gasita.<br />Va rugam incercati mai tarziu.<br /><img src='images/no_image.gif' border='0' /></span> </div>";
	}
	img.onload = function (){
	document.getElementById('xxl_pic').innerHTML = "<img src='"+image_src+"' border='0' align='center' />";
	}

	img.src = image_src;

};