function popupWindow(uri,name,features) {
  var Popup= window.open(uri,name,features);
  Popup.focus();
}
function ConfDelete(text,uri) {
    if(confirm(text) == false) return;
    location.href=uri;
}
function showErr(msg) {
    if(typeof(msg) == "undefined") msg= 'Bitte füllen Sie das Formular vollständig aus.';

    if($('#errorBox')) $('#errorBox').html(msg).fadeIn('fast');
    else alert(msg);

    return false;
}

function validEmail(email) {
    return (typeof(email) != "undefined" &&
	    email.length > 4 && 
	    email.match(/^[a-z0-9\-\._+\-]+@[a-z0-9\-_\.]+\.[a-z]+$/i))? true : false;
}

$(document).ready(function(){	
    $('.moduleRow').hover(function(){
	$(this).children().addClass('moduleRowOver');
    },function(){
	$(this).children().removeClass('moduleRowOver');
    });
    $('a[href=#top]').click(function(){
	$('html, body').animate({scrollTop:0}, 'slow');
	return false;
    });
});

