function wait(){
	if(!imaop.width){ setTimeout("wait()",100); return; }
	var x = imaop.width; var y = imaop.height;
	window.onerror=null;
        var mywin=window.open('showpic.php?pic='+ima,'GFX','status=no,scrollbars=no,width='+x+',height='+y);
	
}//wait

function winop(ima2) {
	ima = ima2;
	imaop = new Image(); imaop.src = ima; wait();
}//winop
