function winPopup(tVar)
{       
sWidth = screen.width;
sHeight = screen.height;
xValue = Math.round((sWidth-672)/2);
yValue =  Math.round((sHeight-480)/2);
//if (sWidth <= 800) {
//newWindow = window.open(tVar,"window1","toolbar=no,location=no,menubar=no,directories=no,status=no,scrollbars=no,height=480,width=672,titlebar=no,screenX=20,screenY=23,top=20,left=23,resizable=no");
//} else {
newWindow = window.open(tVar,"window1","toolbar=no,location=no,menubar=no,directories=no,status=no,scrollbars=no,height=480,width=672,titlebar=no,screenX="+xValue+",screenY="+yValue+",top="+yValue+",left="+xValue+",resizable=no");
//}
newWindow.focus();
}

function winPopupScroll(tVar)
{       
sWidth = screen.width;
sHeight = screen.height;
xValue = Math.round((sWidth-672)/2);
yValue =  Math.round((sHeight-480)/2);
newWindow = window.open(tVar,"window1","toolbar=no,location=no,menubar=no,directories=no,status=no,scrollbars=yes,height=480,width=672,titlebar=no,screenX="+xValue+",screenY="+yValue+",top="+yValue+",left="+xValue+",resizable=no");
newWindow.focus();
}

function winPopupLarge(tVar)
{       
sWidth = screen.width;
sHeight = screen.height;
xValue = Math.round((sWidth-800)/2);
yValue =  Math.round((sHeight-580)/2);
newWindow = window.open(tVar,"window1","toolbar=no,location=no,menubar=no,directories=no,status=no,scrollbars=no,height=580,width=800,titlebar=no,screenX="+xValue+",screenY="+yValue+",top="+yValue+",left="+xValue+",resizable=no");
newWindow.focus();
}

function winPopupExtraWide(tVar)
{       
sWidth = screen.width;
sHeight = screen.height;
xValue = Math.round((sWidth-900)/2);
yValue =  Math.round((sHeight-580)/2);
newWindow = window.open(tVar,"window1","toolbar=no,location=no,menubar=no,directories=no,status=no,scrollbars=no,height=580,width=900,titlebar=no,screenX="+xValue+",screenY="+yValue+",top="+yValue+",left="+xValue+",resizable=no");
newWindow.focus();
}

function winPopupExtraWideScroll(tVar)
{       
sWidth = screen.width;
sHeight = screen.height;
xValue = Math.round((sWidth-900)/2);
yValue =  Math.round((sHeight-580)/2);
newWindow = window.open(tVar,"window1","toolbar=no,location=no,menubar=no,directories=no,status=no,scrollbars=yes,height=580,width=900,titlebar=no,screenX="+xValue+",screenY="+yValue+",top="+yValue+",left="+xValue+",resizable=no");
newWindow.focus();
}

function winPopupLargeScroll(tVar)
{       
sWidth = screen.width;
sHeight = screen.height;
xValue = Math.round((sWidth-800)/2);
yValue =  Math.round((sHeight-580)/2);
newWindow = window.open(tVar,"window1","toolbar=no,location=no,menubar=no,directories=no,status=no,scrollbars=yes,height=580,width=800,titlebar=no,screenX="+xValue+",screenY="+yValue+",top="+yValue+",left="+xValue+",resizable=no");
newWindow.focus();
}

