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

function goodPop(wid,hgt) {
 var as,i,popfun 
 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<780) {
			lpos = 0;
		}
		else {
			lpos = (screen.width) ? (screen.width-780)/2 : 10;
		}
// cause popup to occur for ONCLICK and ONKEYPRESS events:
		var windowAttributes='width=' +wid+ ',height=' +hgt+ ',left=' +lpos+ ',top=20,toolbar=no,scrollbars=yes,resizable=yes';
 		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 clicked on.");
		}
       return false; 
     }; 
     as[i].onclick=popfun; 
     as[i].onkeypress=popfun; 
   } 
 }
} 
-->
