

function popUp(pPage, ALT, W, H) {
 var fullURL = document.location;
 var textURL = fullURL.toString();
 var URLlen = textURL.length;
 var lenMinusPage = textURL.lastIndexOf("/");
 lenMinusPage += 1;
 var fullPath = textURL.substring(0,lenMinusPage);
LeftPosition = (screen.width) ? (screen.width-W)/2 : 0;
TopPosition = (screen.height) ? (screen.height-H)/2 : 0;
 popUpWin = window.open('','popWin','resizable=yes,scrollbars=no,width='+W+',height='+H+',top='+TopPosition+',left='+LeftPosition);
 figDoc= popUpWin.document;
 zhtm= '<HTML><HEAD><TITLE>' +ALT+ '</TITLE>';
 zhtm += '<LINK href="style.css" type=text/css rel=stylesheet>';
 zhtm += '</HEAD>';
 zhtm += '<BODY bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">';
 zhtm += '<table border="0" width="100%" height="100%">';
 zhtm += '<tr>';
 zhtm += '<td align="center" valign="middle">'+'<imG hspace="10" vspace="10" SRC="' + fullPath + pPage + '">'+  '</td>';

 zhtm += '</tr>'; 
 zhtm += '<tr>';
 zhtm += '<td align="center" valign="middle" class="comment">'+'<font face="Tahoma"; color="#333333">' + ALT + '</font>' + '</td>';
 zhtm += '</tr>'; 
 zhtm += '<tr>';
 zhtm += '<td align="center" valign="middle" class="comment">'

 user = "3822";
 page = "1";
 pid = Math.round((Math.random() * (10000000 - 1)));

 
 zhtm += '</td>';
 zhtm += '</tr>'; 
 zhtm += '</table>';

 zhtm += '</BODY></HTML>';

 window.popUpWin.document.write(zhtm);
 window.popUpWin.document.close();
 }

