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

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