  
function popmap2003(map)
{
  var look='width=800,height=800,resizable=yes';
  var popwin;
  popwin=window.open("","",look);
  popwin.document.open();
  popwin.document.write('<title>'+map+'</title><STYLE type=text/css>BODY {MARGIN: 0em; FONT-FAMILY: sans-serif}</STYLE><body bottomMargin=0 leftMargin=0 topMargin=0 rightMargin=0>');
  popwin.document.write('<table cellspacing=0 cellpadding=0 border=0>');
  popwin.document.write('<tr><td><img width="400" height="400" src="../maps/2003/'+map+'_2003_004km.png"></td><td><img width="400" height="400" src="../maps/2003/'+map+'_2003_015km.png"></td></tr>');
  popwin.document.write('<tr><td><img width="400" height="400" src="../maps/2003/'+map+'_2003_080km.png"></td><td><img width="400" height="400" src="../maps/2003/'+map+'_2003_140km.png"></td></tr>');
  popwin.document.write('</table></body>');
  popwin.document.close();
}

    
function popcertbirth(head)
{
  var look='width=750,height=650,resizable=yes,scrollbars=yes';
  var popwin;
  popwin=window.open("","",look);
  popwin.document.open();
  popwin.document.write('<title>'+head+'</title><scr'+'ipt>var yy=-1.0;</scr'+'ipt>');
  popwin.document.write('<STYLE type=text/css>FORM {MARGIN: 0em; PADDING: 0em} BODY {MARGIN: 0em; FONT-FAMILY: sans-serif}</STYLE>');
  popwin.document.write('<body bgcolor="#000" bottomMargin=0 leftMargin=0 topMargin=0 rightMargin=0>');
  popwin.document.write('<FORM method="POST">');
  popwin.document.write('<input type="button" value="10%"  language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*0.10;return;}">');
  popwin.document.write('<input type="button" value="15%"  language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*0.15;return;}">');
  popwin.document.write('<input type="button" value="20%"  language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*0.20;return;}">');
  popwin.document.write('<input type="button" value="25%"  language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*0.25;return;}">');
  popwin.document.write('<input type="button" value="30%"  language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*0.30;return;}">');
  popwin.document.write('<input type="button" value="40%"  language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*0.40;return;}">');
  popwin.document.write('<input type="button" value="50%"  language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*0.50;return;}">');
  popwin.document.write('<input type="button" value="75%"  language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*0.75;return;}">');
  popwin.document.write('<input type="button" value="100%" language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy     ;return;}">');
  popwin.document.write('<input type="button" value="150%" language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*1.50;return;}">');
  popwin.document.write('<input type="button" value="200%" language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*2.00;return;}">');
  popwin.document.write('<input type="button" value="Fit Width"  language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=document.body.clientWidth;return;}">');
//  popwin.document.write('<input type="button" value="Fit Height" language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.height=document.body.clientHeight;return;}">');
  popwin.document.write('</FORM><img id="image1" src="data/'+head+'/cert%20birth.jpg"></body>');
  popwin.document.close();
}



    
function popcertmarriage(head)
{
  var look='width=750,height=650,resizable=yes,scrollbars=yes';
  var popwin;
  popwin=window.open("","",look);
  popwin.document.open();
  popwin.document.write('<title>'+head+'</title><scr'+'ipt>var yy=-1.0;</scr'+'ipt>');
  popwin.document.write('<STYLE type=text/css>FORM {MARGIN: 0em; PADDING: 0em} BODY {MARGIN: 0em; FONT-FAMILY: sans-serif}</STYLE>');
  popwin.document.write('<body bgcolor="#000" bottomMargin=0 leftMargin=0 topMargin=0 rightMargin=0>');
  popwin.document.write('<FORM method="POST">');
  popwin.document.write('<input type="button" value="10%"  language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*0.10;return;}">');
  popwin.document.write('<input type="button" value="15%"  language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*0.15;return;}">');
  popwin.document.write('<input type="button" value="20%"  language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*0.20;return;}">');
  popwin.document.write('<input type="button" value="25%"  language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*0.25;return;}">');
  popwin.document.write('<input type="button" value="30%"  language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*0.30;return;}">');
  popwin.document.write('<input type="button" value="40%"  language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*0.40;return;}">');
  popwin.document.write('<input type="button" value="50%"  language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*0.50;return;}">');
  popwin.document.write('<input type="button" value="75%"  language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*0.75;return;}">');
  popwin.document.write('<input type="button" value="100%" language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy     ;return;}">');
  popwin.document.write('<input type="button" value="150%" language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*1.50;return;}">');
  popwin.document.write('<input type="button" value="200%" language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*2.00;return;}">');
  popwin.document.write('<input type="button" value="Fit Width"  language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=document.body.clientWidth;return;}">');
//  popwin.document.write('<input type="button" value="Fit Height" language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.height=document.body.clientHeight;return;}">');
  popwin.document.write('</FORM><img id="image1" src="data/'+head+'/cert%20marriage.jpg"></body>');
  popwin.document.close();
}

function popcensus(census, id, run)
{
  var look   = 'width=750,height=650,resizable=yes,scrollbars=yes';
  var url    = 'data/' + id + '/census%20' + census + '.png';
  var popwin = window.open('','',look);

  popwin.document.open();
  popwin.document.write('<title>'+census+'</title><scr'+'ipt>var yy=-1.0;</scr'+'ipt>');
  popwin.document.write('<STYLE type=text/css>FORM {MARGIN: 0em; PADDING: 0em} BODY {MARGIN: 0em; FONT-FAMILY: sans-serif}</STYLE>');
  popwin.document.write('<body bgcolor="#000" bottomMargin=0 leftMargin=0 topMargin=0 rightMargin=0>');
  popwin.document.write('<FORM method="POST">');
  popwin.document.write('<input type="button" value="10%"  language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*0.10;return;}">');
  popwin.document.write('<input type="button" value="15%"  language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*0.15;return;}">');
  popwin.document.write('<input type="button" value="20%"  language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*0.20;return;}">');
  popwin.document.write('<input type="button" value="25%"  language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*0.25;return;}">');
  popwin.document.write('<input type="button" value="30%"  language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*0.30;return;}">');
  popwin.document.write('<input type="button" value="40%"  language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*0.40;return;}">');
  popwin.document.write('<input type="button" value="50%"  language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*0.50;return;}">');
  popwin.document.write('<input type="button" value="75%"  language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*0.75;return;}">');
  popwin.document.write('<input type="button" value="100%" language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy     ;return;}">');
  popwin.document.write('<input type="button" value="150%" language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*1.50;return;}">');
  popwin.document.write('<input type="button" value="200%" language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=yy*2.00;return;}">');
  popwin.document.write('<input type="button" value="Fit Width"  language="JavaScript" onclick="{if(yy<0)yy=image1.width;image1.width=document.body.clientWidth;return;}">');
  popwin.document.write('</FORM><img id="image1" src="'+url+'"></body>');
  popwin.document.close();
  return false;
}

    
function popimage(pix,imagesrc,wintitle,winwidth,winheight)
{
  var look='width=517,height=700,resizable=yes,scrollbars=yes';
  var popwin;
  var i;
  popwin=window.open("","",look);
  popwin.document.open();
  popwin.document.write('<title>'+wintitle+'</title><STYLE type=text/css>BODY {MARGIN: 0em; FONT-FAMILY: sans-serif}</STYLE><body bottomMargin=0 leftMargin=0 topMargin=0 rightMargin=0>');
  for(i=1;i<=pix;i++) popwin.document.write('<img src="'+imagesrc+'/photo0'+i+'.jpg"><br>');
  popwin.document.write('</body>');
  popwin.document.close();
}

