function wfg_is_valid_onlinefoglalas_en_name(el){if(el.toString().match(/^.{4,}$/i)){return true;}return false;}
function wfg_is_valid_onlinefoglalas_en_nationality(el){if(el.toString().match(/^.{4,}$/i)){return true;}return false;}
function wfg_is_valid_onlinefoglalas_en_permanentaddress(el){if(el.toString().match(/^.{4,}$/i)){return true;}return false;}
function wfg_is_valid_onlinefoglalas_en_placeofbirth(el){if(el.toString().match(/^.{4,}$/i)){return true;}return false;}
function wfg_is_valid_onlinefoglalas_en_dateofbirth(el){if(el.toString().match(/^\d{2}-\d{2}-\d{4}$/i)){return true;}return false;}
function wfg_is_valid_onlinefoglalas_en_passportidcardnumber(el){if(el.toString().match(/^.{4,}$/i)){return true;}return false;}
function wfg_is_valid_onlinefoglalas_en_drivinglicensenumber(el){if(el.toString().match(/^.{4,}$/i)){return true;}return false;}
function wfg_is_valid_onlinefoglalas_en_mobilphonenumber(el){if(el.toString().match(/^.{4,}$/i)){return true;}return false;}
function wfg_is_valid_onlinefoglalas_en_emailaddress(el){if(el.toString().match(/^.{4,}$/i)){return true;}return false;}
function wfg_is_valid_onlinefoglalas_en_carcathegory(el){if(el.toString().match(/^.+$/i)){return true;}return false;}
function wfg_is_valid_onlinefoglalas_en_pickupdate(el){if(el.toString().match(/^\d{2}-\d{2}-\d{4}$/i)){return true;}return false;}
function wfg_is_valid_onlinefoglalas_en_pickupplace(el){if(el.toString().match(/^.+$/i)){return true;}return false;}
function wfg_is_valid_onlinefoglalas_en_returndate(el){if(el.toString().match(/^\d{2}-\d{2}-\d{4}$/i)){return true;}return false;}
function wfg_is_valid_onlinefoglalas_en_returnplace(el){if(el.toString().match(/^.+$/i)){return true;}return false;}
function wfg_is_valid_onlinefoglalas_en_extras(el){if(el.toString().match(/^.+$/i)){return true;}return false;}
function wfg_is_valid_onlinefoglalas_en_destination(el){if(el.toString().match(/^.+$/i)){return true;}return false;}
function wfg_onlinefoglalas_en_form_submit(e){var error=false;document.getElementById('onlinefoglalas_en_name_block').className='valid';
if(!wfg_is_valid_onlinefoglalas_en_name(document.getElementById('onlinefoglalas_en_name').value)){document.getElementById('onlinefoglalas_en_name_block').className='error';error=true;}document.getElementById('onlinefoglalas_en_nationality_block').className='valid';
if(!wfg_is_valid_onlinefoglalas_en_nationality(document.getElementById('onlinefoglalas_en_nationality').value)){document.getElementById('onlinefoglalas_en_nationality_block').className='error';error=true;}document.getElementById('onlinefoglalas_en_permanentaddress_block').className='valid';
if(!wfg_is_valid_onlinefoglalas_en_permanentaddress(document.getElementById('onlinefoglalas_en_permanentaddress').value)){document.getElementById('onlinefoglalas_en_permanentaddress_block').className='error';error=true;}document.getElementById('onlinefoglalas_en_placeofbirth_block').className='valid';
if(!wfg_is_valid_onlinefoglalas_en_placeofbirth(document.getElementById('onlinefoglalas_en_placeofbirth').value)){document.getElementById('onlinefoglalas_en_placeofbirth_block').className='error';error=true;}document.getElementById('onlinefoglalas_en_dateofbirth_block').className='valid';
if(!wfg_is_valid_onlinefoglalas_en_dateofbirth(document.getElementById('onlinefoglalas_en_dateofbirth').value)){document.getElementById('onlinefoglalas_en_dateofbirth_block').className='error';error=true;}document.getElementById('onlinefoglalas_en_passportidcardnumber_block').className='valid';
if(!wfg_is_valid_onlinefoglalas_en_passportidcardnumber(document.getElementById('onlinefoglalas_en_passportidcardnumber').value)){document.getElementById('onlinefoglalas_en_passportidcardnumber_block').className='error';error=true;}document.getElementById('onlinefoglalas_en_drivinglicensenumber_block').className='valid';
if(!wfg_is_valid_onlinefoglalas_en_drivinglicensenumber(document.getElementById('onlinefoglalas_en_drivinglicensenumber').value)){document.getElementById('onlinefoglalas_en_drivinglicensenumber_block').className='error';error=true;}document.getElementById('onlinefoglalas_en_mobilphonenumber_block').className='valid';
if(!wfg_is_valid_onlinefoglalas_en_mobilphonenumber(document.getElementById('onlinefoglalas_en_mobilphonenumber').value)){document.getElementById('onlinefoglalas_en_mobilphonenumber_block').className='error';error=true;}document.getElementById('onlinefoglalas_en_emailaddress_block').className='valid';
if(!wfg_is_valid_onlinefoglalas_en_emailaddress(document.getElementById('onlinefoglalas_en_emailaddress').value)){document.getElementById('onlinefoglalas_en_emailaddress_block').className='error';error=true;}document.getElementById('onlinefoglalas_en_carcathegory_block').className='valid';
if(!wfg_is_valid_onlinefoglalas_en_carcathegory(document.getElementById('onlinefoglalas_en_carcathegory').value)){document.getElementById('onlinefoglalas_en_carcathegory_block').className='error';error=true;}document.getElementById('onlinefoglalas_en_pickupdate_block').className='valid';
if(!wfg_is_valid_onlinefoglalas_en_pickupdate(document.getElementById('onlinefoglalas_en_pickupdate').value)){document.getElementById('onlinefoglalas_en_pickupdate_block').className='error';error=true;}document.getElementById('onlinefoglalas_en_pickupplace_block').className='valid';
if(!wfg_is_valid_onlinefoglalas_en_pickupplace(document.getElementById('onlinefoglalas_en_pickupplace').value)){document.getElementById('onlinefoglalas_en_pickupplace_block').className='error';error=true;}document.getElementById('onlinefoglalas_en_returndate_block').className='valid';
if(!wfg_is_valid_onlinefoglalas_en_returndate(document.getElementById('onlinefoglalas_en_returndate').value)){document.getElementById('onlinefoglalas_en_returndate_block').className='error';error=true;}document.getElementById('onlinefoglalas_en_returnplace_block').className='valid';
if(!wfg_is_valid_onlinefoglalas_en_returnplace(document.getElementById('onlinefoglalas_en_returnplace').value)){document.getElementById('onlinefoglalas_en_returnplace_block').className='error';error=true;}document.getElementById('onlinefoglalas_en_destination_block').className='valid';
if(!wfg_is_valid_onlinefoglalas_en_destination(document.getElementById('onlinefoglalas_en_destination').value)){document.getElementById('onlinefoglalas_en_destination_block').className='error';error=true;}if(error){alert('Please fill in all required fields!');if(e&&e.preventDefault){ e.preventDefault();}return false;}document.getElementById('onlinefoglalas_en_form').submit();}
function addEvent(obj,evType,fn){if(obj.addEventListener){obj.addEventListener(evType,fn,false);return true;}else if(obj.attachEvent){return obj.attachEvent('on'+evType,fn);}return false;}
function wfg_onlinefoglalas_en_load_events(){addEvent(document.getElementById('onlinefoglalas_en_submit'),'click',wfg_onlinefoglalas_en_form_submit);}

function wfg_onlinefoglalas_en_load_events() {
    addEvent(document.getElementById('onlinefoglalas_en_submit'),'click',wfg_onlinefoglalas_en_form_submit);
}



addEvent(window,'load',wfg_onlinefoglalas_en_load_events);
