function t3(theURL,windowname,popW,popH, sb)
{
var  screenX, screenY, popW, popH;
screenY = window.screen.availHeight;
screenX = window.screen.availWidth;
leftvar = (screenX-popW) / 2;
rightvar = (screenY-popH) / 2;
window.open(theURL,windowname, 'scrollbars=' + sb + ',width=' + popW + ',height='+popH+',top='+rightvar+',left='+leftvar);
}

function t2(imageName,windowname,winwidth,winheight,imageWidth,imageHeight,alt,sb) 
{ 
var  screenX, screenY, popW, popH,imageWidth,imageHeight;
screenY = window.screen.availHeight;
screenX = window.screen.availWidth;
leftW = (screenX-winwidth) / 2;
topH = (screenY-winheight) / 2;
newWindow = window.open("", windowname, "width="+winwidth+",scrollbars="+sb+",status=yes,height="+winheight+",top="+topH+",left="+leftW); 
newWindow.document.open(); 
newWindow.document.write('<HTML><TITLE>'+alt+'</TITLE><BODY bgcolor="#FFFFFF" LEFTMARGIN="0" TOPMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0" >'); 
newWindow.document.write('<IMG SRC='+imageName+' WIDTH='+imageWidth+' HEIGHT='+imageHeight+' >'); 
newWindow.document.write('</BODY></HTML>'); 
newWindow.document.close();
newWindow.focus(); 
}

