﻿function blockError(){return true;}
window.onerror = blockError;

function OpenDoc(URL,TargetName)
{
options="width=" + 800 + ",height=" + 600 + ",resizable=yes,dependent=yes,left=100,top=100"
wnd=open("", TargetName,options)
wnd.location=URL
//return wnd	
}


function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function printThis()
{
window.print()
}

window.onload=matchColumns;
function matchColumns(){ 

     var menu,wrapper,contenu,basdepage,menuheight,contenuheight,wrapperheight,basdepageheight; 
     menu=document.getElementById('navBar'); 
     contenu=document.getElementById('content'); 
     wrapper=document.getElementById('wrapper');
     basdepage=document.getElementById('siteinfo');
     menuheight=menu.offsetHeight;
     contenuheight=contenu.offsetHeight; 
     basdepageheight=basdepage.offsetHeight; 
     
     wrapperheight=Math.max(menuheight,contenuheight)+161+basdepageheight; 
     wrapper.style.height=wrapperheight + "px"; 
} 
