var width,height
var image,ext
var cond1,cond2
function transferview(image,width,height) {
if (width==0) cond1=" "
else cond1="width="+(width+20)+"";
if (height==0) {cond2=" "}
else {cond2="height="+(height+70)+""};

var s1 ="<TITLE>Image</TITLE>"
var s15=""
var s2 ="<CENTER><IMG SRC='"+image+"' BORDER=0>"
var s3 ="<a href='#' onClick='self.close()' title='Close Window'><img src='img/buttons/close_off.jpg' border='0' alt='Close Window' vspace='3'/></a>"
var s4 ="</CENTER>"

ImageWindow=window.open("", "newwin"+width,"toolbar=no,scrollbars="+scroll+",menubar=no,"+cond1+","+cond2);
ImageWindow.document.write(s1+s15+s2+s3+s4)
ImageWindow.document.close()
}

function swapImage(imgN,imgU){
if(document.images)document.images[imgN].src=imgU;
}
