
function showPattern (imgname) {
if (screen) {
    leftPos = (screen.width / 2) - 250
 }
newWindow = window.open('', 'example', 'width=500,height=400,left='+leftPos+',top=5')
newWindow.document.write('<html><head><title>Zoomed View<\/title><\/head><body bgcolor="#FFFFFF"><p>')
newWindow.document.write('<img src="' + imgname + '" border="0"></a>')
newWindow.document.write('<a href="javascript:window.close();"><img src="images/close_btn.gif" width=49 height=24 border=0 align="right" alt=""></a>')
newWindow.document.write('<\/p><\/body><\/html>')
newWindow.document.close()
newWindow.focus()
}


