////////////////////////////////////////////////////////////////////////////
//'	* ASP-Nuke Community 1.4 Copyright © 2004 by Rolf Thomassen            *
//'	* (mrspock(a)rediff.com) http://www.rot.dk                             *
////////////////////////////////////////////////////////////////////////////
var ie4=false;if(document.all){ie4=true;}
function getObject(id)
	{
		if (ie4) {return document.all[id];}
		else {return document.getElementById(id);}
	}

function externalLinks()
	{
		if(!document.getElementsByTagName) return;
		var anchors=document.getElementsByTagName("a");
		for (var i=0;i<anchors.length;i++)
		{
			var anchor=anchors[i];
			if(anchor.getAttribute("href") && anchor.getAttribute("rel")=="external")
			{
				anchor.onclick=function(){window.open(this.href );return false;};
				anchor.onkeypress=function(e){k=(e)?e.keyCode:window.event.keyCode;if(k==13) window.open(this.href);return false;};
			}
		}
	}

function inizializzazione()
	{
		externalLinks();
	}

function isEmail(string)
	{
		if (string.search(/^\w+((-\w+)|(\.\w+))*\@\w+((\.|-)\w+)*\.\w+$/) !=-1) return 1;
		else return 0;
	}

function nonascii(parola)
	{
		parola=parola+'';
		for (var i=0;i<parola.length;i++)
			if ((parola.charCodeAt(i)<33)||(parola.charCodeAt(i)>126))return true;return false;
	}
	
window.onload=inizializzazione;
