function popup(url, width, height) {
	window.open(url, '', 'toolbar=0,scrollbars=0,location=0,statusbar=1,'
			+ 'menubar=0,resizable=1,width='+width+',height='+height);
}
function copyAddress() {

	title = document.getElementById('address').value
	document.getElementById('d_address').value = title
	title = document.getElementById('postcode').value
	document.getElementById('d_postcode').value = title
	title = document.getElementById('city').value
	document.getElementById('d_city').value = title
	title = document.getElementById('country').value
	document.getElementById('d_country').value = title
	
}


sfHover = function() { 
	var sfEls = document.getElementById("nav").getElementsByTagName("LI"); 
	for (var i=0; i<sfEls.length; i++) { 
		sfEls[i].onmouseover=function() { 
			this.className+=" sfhover"; 
		} 
		sfEls[i].onmouseout=function() { 
			this.className=this.className.replace(new RegExp(" sfhover\\b"), ""); 
		} 
	} 
} 


function clearEmail(el)
{
	if (el.defaultValue==el.value) el.value = "";
}

function clearPassword()
{
	document.getElementById('sgn_password_label').style.display = "none"
	document.getElementById('sgn_password').style.display = "block"
	document.getElementById('sgn_password').focus()
}

if (window.attachEvent) 
window.attachEvent("onload", sfHover);
else if (document.all&&document.getElementById) 
window.onload=sfHover
