<!--

function onColor(bgcolor) {
bgcolor.style.backgroundColor="#FFFF00"
}


function offColor(bgcolor) {
bgcolor.style.backgroundColor="#000000"
}


function popup(fname,thumbwidth,thumbheight) {
margin=30
ratio = thumbwidth / thumbheight

if (thumbwidth >= thumbheight) {
	pwidth  = 800
	pheight = Math.round(pwidth / ratio)
	}else{
	pheight = 620
	pwidth  = Math.round(pheight * ratio)
	}

//alert(pwidth)
//alert(pheight)
popupwidth  = pwidth+margin
popupheight = pheight+margin+0

width=(screen.availWidth-popupwidth)/2
height=(screen.availHeight-popupheight)/2

fname=fname+""
fno=fname.lastIndexOf("/")
newpath=fname.substr(0,fno+1)+"../original/"+fname.substr(fno+1)
popup1=window.open("","popup2","width="+popupwidth+",height="+popupheight+",top="+height+",left="+width)
popup1.document.open()
timer1=setTimeout("writedata()",1000)
}


function writedata() {
//"<br><font face='Verdana, Arial, Helvetica, sans-serif' size='2'>Please right click image to save.<br><font size='1'>(Image has been resized to fit screen. Downloadable image will be in original size showing better quality.)</font>"
popup1.document.write("<html><title>ISPO2004</title><body onblur='window.close()'><center><img src='"+newpath+"' border='1' name='photo' id='photo' width='"+pwidth+"' height='"+pheight+"' onclick='window.close()'></font></center></body></html>")
popup1.document.close()
popup1.window.focus()
clearTimeout(timer1)
}

-->