﻿function ResimGoster(target)
{
var wid="";
var hei="";
var GosterilecekResim = new Image();
GosterilecekResim.src = target;

var wid=GosterilecekResim.width;
var hei=GosterilecekResim.height;
//  
//        deniz= screen.width;
//        deniz2= screen.height;
//        leftt= parseInt(deniz/2);
//        heightt= parseInt(deniz2/2);

//        sonucwidth=parseInt(leftt-wid/2);
//        sonucheight=parseInt(heightt-hei/2);

//        window.open(GosterilecekResim.src, '_blank','left='+sonucwidth+',toolbar=no,location=no,status=no,scrollbars=no,copyhistory=no,menubar=no,width='+GosterilecekResim.width+',height='+GosterilecekResim.height+',top='+sonucheight+',resizable=no');

     var i1 = new Image;
	 i1.src = target;
	 html = "<HTML><HEAD><TITLE>Kapatmak &#304;çin Resime T&#305;klay&#305;n...</TITLE></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0 RIGHTMARGIN=0 BOTTOMMARGIN=0><a href=javascript:window.close();><IMG SRC='"+target+"' BORDER=0 NAME=imageTest onLoad=window.resizeTo(document.imageTest.width+10,document.imageTest.height+60);window.moveTo(((screen.availWidth/2)-(document.imageTest.width/2)),((screen.availHeight/2)-((document.imageTest.height)/2)));></a></BODY></HTML>";
	 //html= "<HTML><HEAD><TITLE>Kapatmak &#304;çin Resime T&#305;klay&#305;n...</TITLE></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0 RIGHTMARGIN=0 BOTTOMMARGIN=0><a href=javascript:window.close();><IMG SRC='"+target+"' BORDER=0 NAME=imageTest /></a></BODY></HTML>"
     popupImage = window.open(target,'_blank','width='+wid+',height='+hei+',toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0');
	 popupImage.document.open();
	 popupImage.document.write(html);
	 popupImage.document.close()
	 

}