function showlogin()
{
	Effect.toggle('overlay');	
	Effect.toggle('wrap');
}
function overlay() {
	el = document.getElementById("overlay");
	el.style.visibility = (el.style == "visible") ? "hidden" : "visible";  		
}

function onload()
{
	var geturl = location.href;
	if (geturl.indexOf("true") != -1)
	{
		Effect.toggle('overlay');
	}
	
	}
		function changeloginlink(element, linkto)
	{
	document.getElementById(element).href=linkto;
}
<!-- the following section of the javascript below  makes all links with the tag   rel="external"   open in a new window-->
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.target = "_blank";   
	}   
}   
window.onload = externalLinks;