function FIGIMAGES(wid,graphic,label,caption) {
   var hnd=window.open('',wid,'alwaysRaised=0,dependent=0,toolbar=1,location=0,status=1,menubar=1,scrollbars=1,resizable=1,width=700,height=500');
   hnd.document.write('<html><body><form method="submit"><table border="1"><tr><td><table cellpadding="2"><tr valign="top" align="center"><td><img src="' + graphic + '" type="gif" border="0"/></td></tr>');
   hnd.document.write('<tr><td style="font-family:verdana,arial,sans-serif;font-size:10pt">');                                                        
   hnd.document.write(label + " " + caption);
   hnd.document.write('</td></tr>');
   hnd.document.write('<tr valign="bottom"><td align="center"><input type="Button" onClick="window.close()" value="close"/></td></tr></table></td></tr></table></form></body></html>');
   hnd.document.close();
   } 
   
function TABIMAGES(wid,label,caption,graphic,footnotes) {
   var hnd=window.open('',wid,'alwaysRaised=0,dependent=0,toolbar=1,location=0,status=1,menubar=1,scrollbars=1,resizable=1,width=700,height=500');
   hnd.document.write('<html><body><form method="submit"><table border="1"><tr><td><table cellpadding="2">');
   hnd.document.write('<tr><td style="font-family:verdana,arial,sans-serif;font-size:10pt">');                                                  
   hnd.document.write(label + " " + caption);
   hnd.document.write('</td></tr>');
   hnd.document.write('<tr valign="top" align="center"><td><img src="' + graphic + '" type="gif" border="0"/></td></tr>')
   hnd.document.write('<tr><td style="font-family:verdana,arial,sans-serif;font-size:10pt">');                                                  
   hnd.document.write(footnotes);
   hnd.document.write('</td></tr>');
   hnd.document.write('<tr valign="bottom"><td align="center"><input type="Button" onClick="window.close()" value="close"/></td></tr></table></td></tr></table></form></body></html>');
   hnd.document.close();
   }  
                            
function REF(refid,atitle,jtitle,vol,fpage,lpage,year) {
   lpage = lpage.length > 0 ? lpage : '&nbsp;';
   
   //var openUrl = window.document.getElementById("openUrlResolver");
   
   var url = 'urlResolver.jsp?genre=article&amp;atitle=' + atitle + '&amp;title=' + jtitle + '&amp;volume=' + vol + '&amp;spage=' + fpage + '&amp;epage=' + lpage + '&amp;date=' + year;
   
   
   var hnd=window.open(url,refid,'alwaysRaised=0,dependent=0,toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=700, height=470');
   
   /*
   hnd.document.write ('<html><title>Reference ' + refid + ' - OpenURL Query String</title><body>');
   hnd.document.write('<table cellpadding="2" border="0">');
   hnd.document.write('<tr><td style="font-family:verdana,arial,sans-serif;font-size:10pt">');
   var caption = '<b>Reference ' + refid + '- OpenURL Query String</b><br/><br/>';
   caption = caption +  openUrl.value + '?genre=article&amp;atitle=.' + atitle + '&amp;title=' + jtitle + '&amp;volume=' + vol + '&amp;spage=' + fpage + '&amp;epage=' + lpage + '&amp;date=' + year;
   caption = caption + '<br/><br/>';
   caption = caption + 'Use this query data to: <ul><li style="font-family:verdana">Query your local OpenURL Resolver</li><li style="font-family:verdana">Query a public OpenURL resolver</li></ul>';
   caption = caption + 'Instructions: <ol><li style="font-family: verdana">Highlight the query with your mouse</li><li style="font-family: verdana">Press CTRL-c to copy</li><li style="font-family:verdana">Move to your query interface and select the input box or equivalent</li><li style="font-family: verdana">Press CTRL-v to paste the query</li></ol>';
   hnd.document.write(caption);
   hnd.document.write('</td></tr>');
   hnd.document.write('<tr valign="bottom"><td align="center"><form><input type="Button" onClick="window.close()" value="close"/></form></td></tr></table></body></html>');
   hnd.document.close();
   */
   
   
   } 