function begin_page(image) {
  document.write('<table width="799" height="600" border="0" align="center" cellpadding="0" cellspacing="0"');
  if ((image == null) || image) {
    document.write(' background="/images/background_inside2.jpg"');
  }
  document.write(' bgcolor="#FFFFFF">');
  document.write('<tr><td align="left" valign="top">');
}

function begin_datasheet() {
  document.write('<table width="799" height="600" border="0" align="center" cellpadding="0" cellspacing="0"');
  document.write(' background="../images/datasheet_background2.jpg"');
  document.write(' style="background-repeat: no-repeat"')
  document.write(' bgcolor="#FFFFFF">');
  document.write('<tr><td align="left" valign="top">');
}

function end_page() {
  document.write('</td></tr></table>')
}

function help_product_left(href,text) {
  document.write('<p class="box_type"><a href="'+href+'">'+text+'</a></p>')
}

function product_left(picture_url,pixel_pos) {
  document.write('<td rowspan="2" align="left" valign="top" style="padding-left:40px;padding-top:0px;padding-bottom:11px;padding-right:45px">');
  help_product_left("/products/matrix.html","Product line at a glance");
  help_product_left("/products/index.html","Product selection guide");
  help_product_left("/products/single.html","Single-channel Laser Diode Controllers");
  help_product_left("/products/tec.html","Themoelectic Cooler Controllers");
  help_product_left("/products/combined.html","Combined Laser Diode and TEC controllers");
  help_product_left("/products/multi.html","Multi-channel Laser Diode Controllers");
  help_product_left("/index.html","Home");
  help_product_left("/contact/index.html","Contact us");
  if (picture_url != null) {
    if (pixel_pos == null) {
      pixel_pos = 250;
    }
    document.write("<img src='"+picture_url+"' style='padding-top: " + pixel_pos + "px'>");
  }
  document.write("</td>")
}
