//  =====================================================================================
//  <A Href="javascript:popUp('textarea','Width','Height','Window Title')">Click Here</A>
//  =====================================================================================

var horizontalMargin = 0;
var verticalMargin = 0;

function popUp()
{
    winPar = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width="+popUp.arguments[1]+",height="+popUp.arguments[2]+",Top="+Math.round(window.screen.height/2-popUp.arguments[2]/1.5)+",Left="+Math.round(window.screen.width/2-popUp.arguments[1]/1.7);
    picWin = open( '','tinyWindow',winPar );
    picWin.resizeTo( parseInt(popUp.arguments[1])+114+horizontalMargin, parseInt(popUp.arguments[2])+136+verticalMargin );
    picWin.document.writeln('<Html>');
    picWin.document.writeln('<Head>');
    picWin.document.writeln('<Title>'+popUp.arguments[3]+'</Title>');
    picWin.document.writeln('<Style Type="text/css"><!--');
    picWin.document.writeln('Td          { Cursor: Default; Color:#000000; Font: 11px Tahoma, Verdana, Arial, Helvetica; Text-Decoration: None; }');
    picWin.document.writeln('Td.rubrik   { Color:#FEFF99; Font: 14px Tahoma, Verdana, Arial, Helvetica; Font-Weight: Bold; Text-Decoration: None; }');
    picWin.document.writeln('Td.surround { Border: 1px solid #006600; }');
    picWin.document.writeln('Td.pedigree { Border: 1px solid #006600; Padding-Left: 10px; Padding-Right: 10px; }');
    picWin.document.writeln('</Style>');
    picWin.document.writeln('</Head>');
    picWin.document.writeln('<Body BgColor="#006600" LeftMargin="0" TopMargin="0" onBlur="window.close();" onLoad="window.focus();">');
    picWin.document.writeln('<Table Cellspacing="0" Cellpadding="0" Border="0" Width="100%" Height="100%">');
    picWin.document.writeln('<Tr><Td Align="Center" VAlign="Middle">');

    picWin.document.writeln('<Table Cellspacing="0" Cellpadding="0" BackGround="../GlobalPics/topWindowFrame.jpg" Border="0">');
    picWin.document.writeln('<Tr><Td><Img Src="../GlobalPics/topLeftWindowCorner.jpg" Border="0" Width="52" Height="52"></Td><Td Align="Center" Class="rubrik">'+popUp.arguments[3]+'</Td><Td><Img Src="../GlobalPics/topRightWindowCorner.jpg" Border="0" Width="52" Height="52"></Td></Tr>');
    picWin.document.writeln('<Tr><Td><Img Src="../GlobalPics/leftWindowFrame.jpg" Border="0" Width="52" Height="'+popUp.arguments[2]+'"></Td><Td>');
    picWin.document.writeln('<Table Cellspacing="0" Cellpadding="0" Border="0"><Tr><Td>'+popUp.arguments[0]+'</Td></Tr></Table>');
    picWin.document.writeln('</Td><Td><Img Src="../GlobalPics/rightWindowFrame.jpg" Border="0" Width="52" Height="'+popUp.arguments[2]+'"></Td></Tr>');
    picWin.document.writeln('<Tr><Td><Img Src="../GlobalPics/bottomLeftWindowCorner.jpg" Border="0" Width="52" Height="52"></Td><Td><Img Src="../GlobalPics/bottomWindowFrame.jpg" Border="0" Width="100%" Height="52"></Td><Td><Img Src="../GlobalPics/bottomRightWindowCorner.jpg" Border="0" Width="52" Height="52"></Td></Tr>');

    picWin.document.writeln('</Td></Tr></Table>');
    picWin.document.writeln('</Body>');
    picWin.document.writeln('</Html>');
    picWin.document.close();
}

