function email(name, domain,tld) {
	var link = "<a href='mailto:" + name + "@" + domain + "." + tld + "'>" + name + "@" + domain + "." + tld + "</a>";
	document.write(link);
}
function preloadImages() {
	var d=document; 
	if(d.images){ 
		if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=preloadImages.arguments;
		for(i=0; i<a.length; i++) 
			if (a[i].indexOf("#")!=0){
				d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];
			}
	}
}	
function Aqua_openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) {
	if(window.screen)
		if(isCenter)
			if(isCenter=="true"){ 
				var myLeft = (screen.width-myWidth)/2; 
				var myTop = (screen.height-myHeight)/2; 
				features+=(features!='')?',':''; features+=',left='+myLeft+',top='+myTop; 
			} 
	window.open(theURL,winName,'location=no,toolbar=no,status=no,resizable=no,menubar=no,'+features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}
function Aqua_openBrWindowSpez(theURL, fileName,winName,features, myWidth, myHeight, isCenter) { 
	if(window.screen)
		if(isCenter)
			if(isCenter=="true"){ 
				var myLeft = (screen.width-myWidth)/2; 
				var myTop = (screen.height-myHeight)/2; 
				features+=(features!='')?',':''; features+=',left='+myLeft+',top='+myTop; 
			} 
	window.open(theURL+fileName ,winName,'location=no,toolbar=no,status=no,resizable=no,menubar=no,'+features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}
function MM_jumpMenu(targ,selObj,restore){
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0; 
}
function Aqua_openLogin(doLogout) { 
	var url;
	if ( doLogout == 'yes' )
		url = '/admin/?logout=1&popupLogin=1';
	else
		url = '/admin/?popupLogin=1';
	window.open(url,'LoginWin','toolbar=no,status=no,resizable=no,menubar=no,scrollbars=no,width=350,height=250');
}

function changepict (picture,dir) {
	document.getElementById('picture').src = '/pictures/'+dir+'/alt_' + picture;
	document.myForm.pictureURL.value = picture;
}
