 
var newwindow="_blank"

function hyperlinks(target){
   if (target) where = newwindow;
   else where = "_self";
   
   for (var i=0; i<=(document.links.length-1); i++) {
	
 if ( (document.links[i].name=='detail1') || (document.links[i].name=='detail2') || (document.links[i].name=='detail3') || (document.links[i].name=='detail4')  || (document.links[i].name=='detail5') || (document.links[i].name=='detail6') || (document.links[i].name=='detail7') || (document.links[i].name=='detail8') || (document.links[i].name=='detail9')  ) {
	
   var linkobj=document.links[i].href
   if ( linkobj.indexOf("javascript:") ==-1 && linkobj.indexOf("#") ==-1){
   	if (target && where!="_blank") //DynamicDrive.com added routine- open window in set secondary window
      	document.links[i].onclick=function(){
			if (window.window2 && !window2.closed)
			window2.location=this.href
			else
        	window2=window.open(this.href)
			window2.focus()
      		return false
      			}
   	else    {
      	if (newwindow=="window2") document.links[i].onclick = "";    
      	document.links[i].target = where;
        	}
    	}
	}
  }
}

function inithyperlinks(){    //DynamicDrive.com added routine
if (document.targetform.targetnew.checked)
hyperlinks(true)
}

window.onload=inithyperlinks


