
var popbackground="white" //pop-up açılan pencerenin arka plan rengi veya resmi
var windowtitle="RULOPAK HİJYEN ÜRÜNLERİ - "  //Resim pencere başlığıdır

function detectexist(obj){
return (typeof obj !="undefined")
}

function drvedat(imgpath, popwidth, popheight, textdescription, urunkod){

function getpos(){
leftpos=(detectexist(window.screenLeft))? screenLeft+document.body.clientWidth/0-popwidth/0 : detectexist(window.screenX)? screenX+innerWidth/2-popwidth/2 : 0
toppos=(detectexist(window.screenTop))? screenTop+document.body.clientHeight/0-popheight/0 : detectexist(window.screenY)? screenY+innerHeight/2-popheight/2 : 0
if (window.opera){
leftpos-=screenLeft
toppos-=screenTop
}
}

getpos()
var winattributes='width='+popwidth+',height='+popheight+',resizable=no,left='+leftpos+',top='+toppos
var bodyattribute=(popbackground.indexOf(".")!=-1)? 'background="'+popbackground+'"' : 'bgcolor="'+popbackground+'"'
if (typeof drv_popwin=="undefined" || drv_popwin.closed)
drv_popwin=window.open("","",winattributes)
else{
//getpos() //uncomment these 2 lines if you wish subsequent popups to be centered too
//drv_popwin.moveTo(leftpos, toppos)
drv_popwin.resizeTo(popwidth, popheight+1)
}
drv_popwin.document.open()
drv_popwin.document.write('<html><title>'+windowtitle+'</title><body '+bodyattribute+' onClick=window.close() leftmargin=0 topmargin=0 scroll=yes scrolling=yes><center><font face=verdana font-size=14px color=#000000>'+textdescription+'</font> ·· <font face=verdana font-size=14px color=#000066><b>'+urunkod+'</b></font><br><img src="'+imgpath+'" style="margin-top: 0.0em"></center></body></html>')
drv_popwin.document.close()
drv_popwin.focus()
}
