// Validating alternative to target = "_blank" using class="external"
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.className.indexOf("external") == 0)
		{
			 anchor.target = "_blank";
		}
		
	} 
}
window.onload = externalLinks;


// Show Host depending on URL in address bar
function showURL()
{
	var hostName=location.host;
		if (hostName.indexOf("www.") == -1)
		{
		hostName = (hostName.replace(hostName,"www."+hostName));
		}
document.write(hostName);		
}
// -->
	