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('address1').value
	document.getElementById('d_address1').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


 // 
 //     X,Y Koordinaten fuer jeden Link eingeben und dahinter den Namen der Grafik und E-Mail Adresse. 
 //     Beispiel: 
 // 
 //  javascript:bild(X,Y,'BILD.GIF') 
 // 
 
 var mail="", bildgross="", nr=0; 
 myonb=new Array();
		look=new Array();
		look[1]='toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,titlebar=no,';

	screenWidth=screen.availWidth;
	screenHeight=screen.availHeight;

	if (screenWidth<=850) w=screenWidth-10;
		else w=850;

	h=680;//w*5.7/10;

	x=(screenWidth-w-10)/2;
	y=(screenHeight-h-40)/2;

	if (x<0) x=0;
	if (y<0) y=0;
 
 function bild(s,t,bild) 
 { 
 	if (document.layers)
		{
		 	
			bildgross=window.open("", nr, look[1]+'innerWidth='+w+',innerHeight='+h+',screenX='+x+',screenY='+y) //"width="+(s+20)+",height="+(t+26)+) 
 		 	bildgross.document.write("<body bgcolor=#FFFFFF>"); 
 	 	 	bildgross.document.write("<center><img src="+bild+" width="+s+" height="+t+">"); 
			
 			//bildgross.document.write("<a href='javascript:window.close()'>Fenster schliessen!</a></center>"); 
 			nr++; 
		}
		else
		{
			
			bildgross=window.open("", nr,look[1]+'width='+w+',height='+h);
			//setTimeout('myonb["'+wname+'"].moveTo('+x+','+y+'+35)',500);
			bildgross.document.write("<body bgcolor=#FFFFFF>"); 
 	 	 	bildgross.document.write("<center><img src="+bild+" width="+s+" height="+t+">");
			setTimeout('bildgross.moveTo('+x+','+y+'+35)',500); 
		}
 } 
 


	function rollin(name)
	{
		document.images[name].src=pics[name+"_h"].src;
	}

	function rollout(name)
	{
		document.images[name].src=pics[name].src;
	}
 
 

