// JavaScript Document
function open_win(Image,winName,imgWidth,imgHeight,scroll){var border=24;var img=Image;var features;var w;var h;features=(scroll==1)?"scrollbars=yes":"scrollbars=no";winWidth=(imgWidth<100)?100:imgWidth+border;winHeight=(imgHeight<100)?100:imgHeight+border;if(imgWidth+border>screen.width){winWidth=screen.width-10;w=(screen.width-winWidth)/2;features="scrollbars=yes";}else{w=(screen.width-(imgWidth+border))/2;}if (imgHeight+border>screen.height){winHeight=screen.height-90;h=0;features="scrollbars=yes";}else{h=(screen.height-(imgHeight+border))/2-50;}features=features+',toolbar=no,width='+winWidth+',height='+winHeight+',top='+h+',left='+w;popup=window.open(Image,winName,features);popup.focus();}
