var popbackground="#FFFFFF"
var windowtitle="Maveco"

function detectexist(obj){
return (typeof obj !="undefined")
}

function jkpopimage(imgpath, popwidth, popheight, textdescription){

function getpos(){
leftpos=0
toppos=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+'"'
var bodyattribute=''
if (typeof jkpopwin=="undefined" || jkpopwin.closed)
jkpopwin=window.open("","","")
else{
		getpos() //uncomment these 2 lines if you wish subsequent popups to be centered too
		jkpopwin.moveTo(leftpos, toppos)
jkpopwin.resizeTo(popwidth, popheight+30)
}
jkpopwin.document.open()
jkpopwin.document.write('<html><title>'+windowtitle+'</title><body bgcolor="#FFFFFF" text="#1657A9"><div align="center"><img src="'+imgpath+'" style="margin-bottom: 0.5em" border="3"><br><font size="1" face="Verdana, Arial, Helvetica, sans-serif">'+textdescription+'</font></div></body></html>')
jkpopwin.document.close()
jkpopwin.focus()
}

