﻿//Functie die de innerHTML van een div leest en vervolgens inclusief header uitprint
function PrintContent(divnaam) {
    var DocumentContainer = document.getElementById(divnaam);    
    var WindowObject = window.open('', divnaam, "width=630,height=325,top=200,left=250,toolbars=no,scrollbars=yes,status=no,resizable=no");
    WindowObject.document.writeln('<html><head><link rel="stylesheet" type="text/css" href="/css/telecomsite-style.css" /><title>TelecomSite.nl</title></head><body><div style="background-color: #FFFFFF; font-family:arial; font-size:12px; margin:10px; color:#555555; width="630"><table><tr><td colspan="2"><img src="/images/header/logo.jpg" align="left" /></td></tr><tr><td>' + DocumentContainer.innerHTML) + '</td></tr></table></div></body></html>';
    WindowObject.document.close();
    WindowObject.focus();
    WindowObject.print();
    WindowObject.close();
}

function PrintContentWijzer(divnaam) {
    var DocumentContainer = document.getElementById(divnaam);
    var WindowObject = window.open('', divnaam, "width=930,height=1400,top=200,left=250,toolbars=no,scrollbars=yes,status=no,resizable=no");
    WindowObject.document.writeln('<html><head><link rel="stylesheet" type="text/css" href="/css/telecomsite-style.css" /><title>TelecomSite.nl</title></head><body><div style="background-color: #FFFFFF; font-family:arial; font-size:12px; margin:10px; color:#555555; width="630"><table><tr><td colspan="2"><img src="/images/header/logo.jpg" align="left" /></td></tr><tr><td>' + DocumentContainer.innerHTML) + '</td></tr></table></div></body></html>';
    WindowObject.document.close();
    WindowObject.focus();
    WindowObject.print();
    WindowObject.close();
}

function PrintContentWijzerGsmAbo(divnaam) {
    var DocumentContainer = document.getElementById(divnaam);
    var WindowObject = window.open('', divnaam, "width=800,height=1400,top=200,left=250,toolbars=no,scrollbars=yes,status=no,resizable=no");
    WindowObject.document.writeln('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl" lang="nl"><head runat="server"><title>Afdrukbare versie</title><meta http-equiv="content-type" content="text/html;charset=utf-8" /><link rel="Shortcut Icon" type="image/x-icon" href="/favicon.ico" /><link rel="stylesheet" type="text/css" href="/css/telecomsite-style.css" /><script type="text/javascript" src="/scripts/tabs.js"></script><script type="text/javascript" src="/scripts/print_div.js"></script></script></head><body runat="server" id="body1"><div style="float:left; width:706px; background-color:#ffffff;"><img src="/images/header/logo.jpg" align="left" /></div><div style="float:left; width:706px; font-family:Arial; fonts-size:12px; background-color:#ffffff;"><form id="form1" runat="server">' + DocumentContainer.innerHTML + '</form></div></body></html>');
    WindowObject.document.close();
    WindowObject.focus();
    WindowObject.print();
    WindowObject.close();
}

function printen(divnaam, breedte) {
    var DocumentContainer = document.getElementById(divnaam);
    var WindowObject = window.open('', divnaam, "width=" + breedte + ",height=1400,top=200,left=250,toolbars=no,scrollbars=no,status=no,resizable=no");
    WindowObject.document.writeln('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl" lang="nl"><head runat="server"><title>Afdrukbare versie</title><meta http-equiv="content-type" content="text/html;charset=utf-8" /><link rel="Shortcut Icon" type="image/x-icon" href="/favicon.ico" /><link rel="stylesheet" type="text/css" href="/css/telecomsite-style.css" /><script type="text/javascript" src="/scripts/tabs.js"></script><script type="text/javascript" src="/scripts/print_div.js"></script></script></head><body runat="server" id="body1"><div style="float:left; width:706px; background-color:#ffffff;"><img src="/images/header/logo.jpg" align="left" /></div><div style="float:left; width:706px; height:1400px;font-family:Arial; fonts-size:12px; background-color:#ffffff;"><form id="form1" runat="server">' + DocumentContainer.innerHTML + '</form></div></body></html>');
    WindowObject.document.close();
    WindowObject.focus();
    WindowObject.print();
    WindowObject.close();
}