
//
function imageView(imgFile,imgTitle,imgWidth,imgHeight,winPosX,winPosY){
preview =window.open("","","resizable=no,toolbar=no,scrollbars=no,menubar=no,status=no,directories=no,width="+imgWidth+",height="+imgHeight+",left="+winPosX+",top="+winPosY+"");
preview.document.write('<html><head><title>'+imgTitle+' - Click to close - <\/title><\/head>'
+'<body onBlur="self.focus();" marginWidth="0" marginHeight="0" topmargin="0" leftmargin="0">'
+'<center>'
+'<a href="javascript:self.close()">'
+'<img border="0" alt="Image loading please wait...." src="'+imgFile+'" width="'+imgWidth+'" height="'+imgHeight+'">'
+'<\/a><\/center>'
+'<\/body><\/html>');
preview.document.close();
}
//-->


// Parameter list as follows:

//Image File
//Title of Image
//Width of Image
//Height of Image
//Window Position X coordinate
//Window Position Y coordinate

//Example of use:

//<a href="javascript:imageView('picts/vertinfo/S05312008_007inset.jpg','Vertical Test Picture',360,538,50,50)">
//<img src="picts/vertinfo/S05312008_007.jpg" width="360" height="538" border="0" alt="Click for larger image"></a>
// End -->