﻿var AutoClose = true;
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width=100,height=100,left=150,top=0';
var optIE='scrollbars=no,width=100,height=100,left=150,top=0';
function popImage(imageURL){
var imgWin=window.open('about:blank','','scrollbars=no,width=100,height=100,left=50,top=50, resizable=no');
with (imgWin.document){
writeln('<html><head><title></title>');
writeln('<sc'+'ript>');
writeln('var arrTemp=self.location.href.split("?"); ');
writeln('var picUrl = (arrTemp.length>0)?arrTemp[1]:""; ');
writeln('var NS = (navigator.appName=="Netscape")?true:false;');
writeln('function reSizeToImage(){');
writeln('iWidth = (NS)?window.innerWidth:document.body.clientWidth;');
writeln('iHeight = (NS)?window.innerHeight:document.body.clientHeight; ');
writeln('iWidth = document.images[0].width - iWidth;');
writeln('iHeight = document.images[0].height - iHeight;');
writeln('window.resizeBy(iWidth, iHeight);');
writeln('self.focus();');
writeln('}</sc'+'ript>');
writeln('</head><body onload="reSizeToImage();" style="margin:0px;">')
writeln('<img src="'+imageURL+'" ></body></html>');
close();                       
}}

function popImageXY(imageURL,naam){

test = document.getElementById('position');
pos = test.value;
test.value = parseInt(test.value) + parseInt('30');

var imgWin=window.open('about:blank','','scrollbars=no,width=100,height=100,left=' + pos +',top=' + pos +', resizable=no');
with (imgWin.document){
writeln('<html><head><title></title>');
writeln('<sc'+'ript>');
writeln('var arrTemp=self.location.href.split("?"); ');
writeln('var picUrl = (arrTemp.length>0)?arrTemp[1]:""; ');
writeln('var NS = (navigator.appName=="Netscape")?true:false;');
writeln('function reSizeToImage(){');
writeln('iWidth = (NS)?window.innerWidth:document.body.clientWidth;');
writeln('iHeight = (NS)?window.innerHeight:document.body.clientHeight; ');
writeln('iWidth = document.images[0].width - iWidth;');
writeln('iHeight = document.images[0].height - iHeight;');
writeln('window.resizeBy(iWidth, iHeight);');
writeln('self.focus();');
writeln('}</sc'+'ript>');
writeln('</head><body onload="reSizeToImage();" style="margin:0px;">')
writeln('<img src="'+imageURL+'" ></body></html>');
close();                       
}}


function popImageTekst(imageURL,naam,Tekst){
var imgWin=window.open('about:blank','','scrollbars=no,width=100,height=100,left=200,top=200');
with (imgWin.document){
writeln('<html><head><title></title>');
writeln('<sc'+'ript>');
writeln('var arrTemp=self.location.href.split("?"); ');
writeln('var picUrl = (arrTemp.length>0)?arrTemp[1]:""; ');
writeln('var NS = (navigator.appName=="Netscape")?true:false;');
writeln('function reSizeToImage(){');
writeln('iWidth = (NS)?window.innerWidth:document.body.clientWidth;');
writeln('iHeight = (NS)?window.innerHeight:document.body.clientHeight; ');
writeln('iWidth = document.images[0].width - iWidth;');
writeln('iHeight = document.images[0].height - iHeight;');
writeln('window.resizeBy(iWidth, iHeight);');
writeln('self.focus();');
writeln('}</sc'+'ript>');
writeln('</head><body onload="reSizeToImage();" style="margin:0px;">')
writeln('<center>' + Tekst + '</center>');
writeln('<img src="'+imageURL+'" ></body></html>');
close();                       
}}
