// JavaScript Document  popupIAQ.js - CANINSPECT.com
<!--
var closeElementId='closewindow'; 
var closeLinkText='Close window'; 

function goodPop(wid,hgt) {
 var as,i,popfun,width,height,control
 width=wid;
 height=hgt;
 as=document.getElementsByTagName('a'); 
 for (i=0;i<as.length;i++) 
 { 
   if(as[i].target=='_blank') 
   { 
	popfun=function(){ 
// create positioning to centre popMain on viewer's screen:
		if(screen.width<width) {
			lpos = 0;
		}
		else {
			lpos = (screen.width) ? (screen.width-width)/2 : 10;
		}
// cause popup to occur for ONCLICK and ONKEYPRESS events:  images is 770 x 576
		var windowAttributes='width=' +width+ ',height=' +height+ ',left=' +lpos+ ',top=20,toolbar=no,scrollbars=yes,resize=no'; //was: 808 x 600
		var oWin = window.open(this.href,'',windowAttributes); 
		if (oWin==null || typeof(oWin)=="undefined"){
	   	alert("Please disable your POPUP Blocker Software, and then re-select the LINK button.");
		}
       return false; 
     }; 
     as[i].onclick=popfun; 
     as[i].onkeypress=popfun; 
   } 
 }
} 
-->
