function send(){

 
if ((Field.present($('username'))  == "")) {

new Effect.Appear(document.getElementById('name1'));
}

if ((Field.present($('password')) == "")) {

new Effect.Appear(document.getElementById('name2'));}







if ( ((Field.present($('username')))) && ((Field.present($('password')))) )
{


var params = Form.serialize($('loginform'));
new Ajax.Updater('req', 'http://www.ferienhaus-hirdehof.com/privat/login.php', {asynchronous:true, parameters:params});

($('name1')).hide();

($('name2')).hide();


$('req').show();

($('loginform')).hide();
}



}


function res(){
Field.clear($('username'));
Field.clear($('password'));
document.getElementById('req').firstChild.nodeValue="";}
