function PopUpWin() {
var iMyWidth;
var iMyHeight;

//half the screen width minus half the new window width (plus 5 pixel borders).
iMyWidth = (window.screen.width/2) - (270 + 5);
//half the screen height minus half the new window height (plus title and status bars).
iMyHeight = (window.screen.height/2) - (170 + 45);
//Open the window.
var win2 = window.open("http://maps.google.ca/maps?q=2026+Tenth+Line+Rd.+Ottawa+Ontario+Canada&spn=0.028138,0.058464&hl=en","win2","status=no,width=553,height=443,resizable=yes,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
win2.focus();
}

function closewindow() {
self.opener = this;
self.close()
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


/*
function resize(){
var frame = document.getElementById("columnLeft");
var htmlheight = document.body.parentNode.scrollHeight;
var windowheight = window.innerHeight;

if ( htmlheight < windowheight ) { document.body.style.height = windowheight + "px"; frame.style.height = windowheight + "px"; }
else { document.body.style.height = htmlheight + "px"; frame.style.height = htmlheight + "px"; }  }

function resize2(){
var frame = document.getElementById("columnRight");
var htmlheight = document.body.parentNode.scrollHeight;
var windowheight = window.innerHeight;

if ( htmlheight < windowheight ) { document.body.style.height = windowheight + "px"; frame.style.height = windowheight + "px"; }
else { document.body.style.height = htmlheight + "px"; frame.style.height = htmlheight + "px"; }  }
*/

matchHeight=function(){ 

     var divs,contDivs,maxHeight,divHeight,d; 

     // get all <div> elements in the document 

     divs=document.getElementsByTagName('div'); 

     contDivs=[]; 

     // initialize maximum height value 

     maxHeight=0; 

     // iterate over all <div> elements in the document 

     for(var i=0;i<divs.length;i++){ 

          // make collection with <div> elements with class attribute 'container' 

          if(/\bcontainer\b/.test(divs[i].className)){ 

                d=divs[i]; 

                contDivs[contDivs.length]=d; 

                // determine height for <div> element 

                if(d.offsetHeight){ 

                     divHeight=d.offsetHeight; 

                } 

                else if(d.style.pixelHeight){ 

                     divHeight=d.style.pixelHeight; 

                } 

                // calculate maximum height 

                maxHeight=Math.max(maxHeight,divHeight); 

          } 

     } 

     // assign maximum height value to all of container <div> elements 

     for(var i=0;i<contDivs.length;i++){ 

          contDivs[i].style.height=maxHeight; 

     } 

} 

// execute function when page loads 

window.onload=function(){ 

     if(document.getElementsByTagName){ 

          matchHeight(); 

     } 

}
