/* 
   Package: SV ver 1.2
   File: newwindow.js
   Ver.: 1.0
   Date: 14.01.2006
   Desc: javascript per aprire alcuni link in nuova finestra (ex attributo html target="_blank")
         i link <a> devono avere un class type associato (tramite foglio di stile) di nome "extern".
   
         Per esempio:
         <p>mentre per le ricerche ecco <a href="http://www.google.it" class="extern">google, il motore di ricerca</a>.</p> 
         
   Note: Thanks to A.Fulciniti who have written the core of the original free script code, here modified.
*/

function SetExternalLinks()
{
	if(document.getElementsByTagName)
	{
		var l=document.getElementsByTagName("a");
		for(i=0;i<l.length;i++)
		{
		  if(l[i].className.indexOf("extern")!=-1)
		  {
		    l[i].onclick=function(){ window.open(this.href); return(false)};
		  }
		}
	} 
}


