function swap(obj, over)
{
	var src = new String(obj.src);
	obj.src = (over) ?  src.substring(0, src.indexOf('.png')) + '_mo.png' : src.substring(0, src.indexOf('_mo.png')) +'.png';
}


function ValidateEmail(obj)
{
	var email = String(obj.value);	
	var rx = new RegExp("^[_\.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$");

	if(email == '')
	{
		alert('Please enter your eMail Address!');
		obj.focus();
		return false;
	}
	else if(email.match(rx) == null)
	{
		alert('This is not a valid eMail Adress!');
		obj.focus();
		return false;
	}
	else
	{
		return true;
	}
}// ValidateEmail

function openBrWindow(url,name,features)
{
  window.open(url,name,features);
}


function openPopup(url)
{
	openBrWindow(url,'sendfriend','scrollbars=no,resizable=no,width=550,height=370')
}

// fügt eine email addresse, deren @ symbol durch "! !" getauscht wurde wieder zusammen
function nospam (str, subject) {
	var sreplace = new String ('! !');
	var str = new String (str);
	var user = new String (str.substr(0, str.indexOf (sreplace)));
	var host = new String (str.substr(str.indexOf(sreplace)+sreplace.length));
	
	email = user +"@"+ host;

	document.location = "mailto:"+email+"?subject="+ subject;
}