
var showPopupImage_counter = 1;
window.forms = {};

function imgPopup(src, title) {
    
	if(!src) return;
	
	var w = 200;
	var h = 100;
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	
	var newWindow = window.open("","showPopupImage_"+(showPopupImage_counter++),"width="+w+",height="+h+",left="+winl+",top="+wint);
	newWindow.document.open();
	newWindow.document.write('<html><head><title>'+(title || "EX-MILITARY TRUCKS and EQUIPMENTS°")+'</title>\n\
<'+'script>function resize(){\n\
	var pic = document.getElementById("pic");\n\
	if(typeof(pic) != "undefined") {\n\
		document.getElementById("Layer1").style.display = "none";\n\
		self.moveTo((screen.width - pic.width) / 2 , (screen.height - pic.height+50) / 2);\n\
		self.resizeTo(pic.width,pic.height+50);\n\
	}\n\
}\n\
\<'+'/'+'script\>\n\
</head>\n\
<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onload="resize()">\n\
 <div id="Layer1" style="position:absolute; z-index:2; left: 0px; top:0px;">\n\
  EX.MOD CARS and EQUIPMENTS...\n\
 </div>\n\
 <a href="javascript:self.close()">\n\
 <div id="Layer2" style="position:absolute; z-index:1; left: 0px; top:0px;">\n\
  <img id="pic" src="'+src+'" />\n\
 </div></a> \n\
</body></html>');
	newWindow.document.close();
	newWindow.focus();
	
}




