function setCookie(c_name,value,expiredays)
{
	var exdate = new Date();
	exdate.setDate(exdate.getDate() + expiredays);
	document.cookie = c_name + "=" + escape(value) + ((expiredays==null) ? "" : ";expires="+exdate.toGMTString())
}



function hide(layer_ref)
{ 
	if (document.all)
	{ //IS IE 4 or 5 (or 6 beta) 
		eval( "document.all." + layer_ref + ".style.display = 'none'"); 
	} 
	if (document.layers)
	{ //IS NETSCAPE 4 or below 
		document.layers[layer_ref].display = "none"; 
	} 
	if (document.getElementById &&!document.all)
	{ 
		hza = document.getElementById(layer_ref); 
		hza.style.display = "none"; 
	} 
}
function show(layer_ref)
{ 
	if (document.all)
	{ //IS IE 4 or 5 (or 6 beta) 
		eval( "document.all." + layer_ref + ".style.display = 'inline'"); 
	} 
	if (document.layers)
	{ //IS NETSCAPE 4 or below 
		document.layers[layer_ref].display = "inline"; 
	} 
	if (document.getElementById &&!document.all)
	{ 
		hza = document.getElementById(layer_ref); 
		hza.style.display = "inline"; 
	} 
}



function initExternalLinks()
{ 
	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"; 
		}
	} 
}



function initialize()
{
	initExternalLinks();
	initForm();
}