CR Crewing Agency - работа в море, трудоустройство моряков, работа на круизных судах http://cr-work.ru CR Crewing Agency - компания осуществляет трудоустройство моряков и специалистов на круизные суда и лайнеры Thu, 04 Jul 2013 15:59:47 +0000 http://wordpress.org/?v=2.9.2 en hourly 1 Капитан http://cr-work.ru/archives/1875 http://cr-work.ru/archives/1875#comments Thu, 04 Jul 2013 15:15:16 +0000 admin http://cr-work.ru/?p=1875 DD_roundies.addRule('div.arrondi', '15px'); jQuery(document).ready(function($){ $("#envoyer").click(function() { valid = true; var tab_error = new Array();var message_error_web='';var message_error_mail='';var haut_mess_form = true;message_error_coche='';message_error_question='';message_error_captcha='';tab_error[0] = "";tab_error[1] = ""; if($("#mail_input").val() == "") { $("#mail_input").css("background-color","#"); $("#span_mail").css("color","#");$("#mail_input").next().text("");tab_error[2] = "Почта для обратной связи"; valid = false; } else if(!$("#mail_input").val().match(/^([a-z0-9_]|\-|\.)+@(([a-z0-9_]|\-)+\.)+[a-z]{2,7}$/)){ $("#mail_input").css("background-color","#"); $("#span_mail").css("color","#");$("#mail_input").next().text("");message_error_mail = "L'email entré n'est pas valide"; tab_error[2] = ""; valid = false; } else { $("#mail_input").css("background-color",""); $("#span_mail").css("color",""); $("#mail_input").next().text(""); tab_error[2] = ""; message_error_mail = ""; }tab_error[3] = "";if($("#objet_input").val() == "") { $("#objet_input").css("background-color","#"); $("#span_objet").css("color","#");$("#objet_input").next().text("");tab_error[4] = "Заголовок вопроса"; valid = false; } else { $("#objet_input").css("background-color",""); $("#span_objet").css("color",""); $("#objet_input").next().text(""); tab_error[4] = ""; }if($("#message_input").val() == "") { $("#message_input").css("background-color","#"); $("#span_message").css("color","#");$("#message_input").next().text("");tab_error[5] = "Ваш вопрос специалисту
"; valid = false; } else { $("#message_input").css("background-color",""); $("#span_message").css("color",""); $("#message_input").next().text(""); tab_error[5] = ""; }haut_mess_form = false; if(valid == false) { $("#formulaire_contact").animate({ backgroundColor: "#" }, 100); var message = "Veuillez renseigner le(s) champs: "; for (var i=0; i < tab_error.length; ++i) { if(tab_error[i] != "") { message += tab_error[i]+", "; } } message = message.substring(0, message.length-2); var espace_coche = ""; if(message_error_mail != "") { message += message_error_mail; espace_coche = "
"; } if(message_error_coche != "") { message += espace_coche+message_error_coche; } if(message_error_question != "") { message += espace_coche+message_error_question; } if(message_error_captcha != "") { message += espace_coche+message_error_captcha; } if(message_error_web != "" && message_error_mail != "") { message += "
"+message_error_web; } else { message += message_error_web; } if(haut_mess_form == true) { $("#message_error").css("display","block"); $("#message_error").html(message); } } $("#formulaire_contact").animate({ backgroundColor: "#e4e6e4" }, 800); return valid; }); }); ]]>
http://cr-work.ru/archives/1875/feed 0