?");
_CF_error_exists = true;
}
//form element telephone 'REGULAR_EXPRESSION' validation checks
if (!_CF_checkregex(_CF_this['telephone'].value, /^(\s*|(\d|\+{2})[0-9\/ -]+)$/, false))
{
_CF_onError(_CF_this, "telephone", _CF_this['telephone'].value, "Error in telephone text.");
_CF_error_exists = true;
}
//form element fax 'REGULAR_EXPRESSION' validation checks
if (!_CF_checkregex(_CF_this['fax'].value, /^(\s*|(\d|\+{2})[0-9\/ -]+)$/, false))
{
_CF_onError(_CF_this, "fax", _CF_this['fax'].value, "Error in fax text.");
_CF_error_exists = true;
}
//form element adresse required check
if( !_CF_hasValue(_CF_this['adresse'], "TEXT", false ) )
{
_CF_onError(_CF_this, "adresse", _CF_this['adresse'].value, "Adresse ?");
_CF_error_exists = true;
}
//form element numero required check
if( _CF_hasValue(_CF_this['numero'], "TEXT", false ) )
{
//form element numero 'INTEGER' validation checks
if (!_CF_checkinteger(_CF_this['numero'].value, true))
{
_CF_onError(_CF_this, "numero", _CF_this['numero'].value, "N° ");
_CF_error_exists = true;
}
}else {
_CF_onError(_CF_this, "numero", _CF_this['numero'].value, "N° ");
_CF_error_exists = true;
}
//form element ville required check
if( !_CF_hasValue(_CF_this['ville'], "TEXT", false ) )
{
_CF_onError(_CF_this, "ville", _CF_this['ville'].value, "Ville ?");
_CF_error_exists = true;
}
//form element cp required check
if( _CF_hasValue(_CF_this['cp'], "TEXT", false ) )
{
//form element cp 'INTEGER' validation checks
if (!_CF_checkinteger(_CF_this['cp'].value, true))
{
_CF_onError(_CF_this, "cp", _CF_this['cp'].value, "Code Postal ?");
_CF_error_exists = true;
}
}else {
_CF_onError(_CF_this, "cp", _CF_this['cp'].value, "Code Postal ?");
_CF_error_exists = true;
}
//form element nom required check
if( !_CF_hasValue(_CF_this['nom'], "TEXT", false ) )
{
_CF_onError(_CF_this, "nom", _CF_this['nom'].value, "Votre nom ?");
_CF_error_exists = true;
}
//form element prenom required check
if( !_CF_hasValue(_CF_this['prenom'], "TEXT", false ) )
{
_CF_onError(_CF_this, "prenom", _CF_this['prenom'].value, "Votre prénom ?");
_CF_error_exists = true;
}
//form element email 'REGULAR_EXPRESSION' validation checks
if (!_CF_checkregex(_CF_this['email'].value, /^\S+@\S+\.\S+$/, false))
{
_CF_onError(_CF_this, "email", _CF_this['email'].value, "Votre e-mail ?");
_CF_error_exists = true;
}
//display error messages and return success
if( _CF_error_exists )
{
if( _CF_error_messages.length > 0 )
{
// show alert() message
_CF_onErrorAlert(_CF_error_messages);
// set focus to first form error, if the field supports js focus().
if( _CF_this[_CF_FirstErrorField].type == "text" )
{ _CF_this[_CF_FirstErrorField].focus(); }
}
return false;
}else {
// run userdefined onSubmit javascript.
return validate_captcha('input_captcha');
return true;
}
}
//-->
Zone touristique-Village Agdale - 40000
Marrakech
Tél : 00212(0) 524.387.754
- Fax : 00212(0) 524.387.755
|
Vous consultez la fiche du restaurant "Restaurant Capricorn" localisé dans la ville de
Marrakech et la région de Marrakech-Tensift-Al Haouz.
|