	
function popImage(imageURL,winName) {
        var opt='scrollbars=no,width=800,height=600,left=100,top=100';
        imgWin = window.open('','',opt);
        with (imgWin.document) {
                writeln('<!DOC'+'TYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"\n"http://www.w3.org/TR/html4/loose.dtd">\n<html>\n<head>\n<title>'+winName+'</title>\n<style type="text/css">body {overflow: auto; margin:0; padding: 0;}</style>');
                writeln('<sc'+'ript type="text/javascript">');
                writeln('function resizePopup() {');
                writeln('width = document.images[0].width ; ');
                writeln('height = document.images[0].height ; ');
                writeln('window.resizeTo(width,height); ');
                writeln('if (window.innerWidth) { window.innerWidth = width ; window.innerHeight = height ; }');
                writeln('}');
                writeln('</s' + 'cript>');
                writeln('</head>\n<body bgcolor="#000000" onload="resizePopup();">')
                writeln('<img src="'+imageURL+'" onclick="window.close();" border="0" style="position: absolute; left: 0px; top: 0px; cursor: pointer;" alt="Kapatmak için Tıklayınız">\n</body>\n</html>');
                close();
        }
}
	
