function ConfirmEmailLegit()
{
var MailValue = document.getElementById('email').value;
if (!MailValue)
{
alert('Vous devez inscrire une adresse courriel!');
return false;
}
var reg1 = /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)|(\'.\')/; // not valid
var reg2 = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/; // valid
if (!reg1.test(MailValue) && reg2.test(MailValue)) { // if syntax is valid
document.getElementById('CB30Link').submit();
return true;
}
else {
alert ('Vous devez inscrire une adresse couriel valide!');
return false;
}
}
function email_focus()
{
if (document.getElementById('email').value == '@') document.getElementById('email').value = '';
}
/* ----------------------- */
function blink_from_element(max, color1, color2, id_form) {
blink_from_element_core(0,0,max, color1, color2, id_form);
}
function blink_from_element_core(current_color, current_i, max_i, color1, color2, id_form) {
if(current_i < max_i ) {
if(current_color == 0 ) {
document.getElementById(id_form).email.style.backgroundColor = color1;
current_color = 1;
} else {
document.getElementById(id_form).email.style.backgroundColor = color2;
current_color = 0;
}
current_i++;
setTimeout("blink_from_element_core("+current_color+","+current_i+","+max_i+",'"+color1+"','"+color2+"','"+id_form+"')", 100);
}
else {
document.getElementById(id_form).email.style.backgroundColor = color2;
}
}
pop_content="
";
function PopReady(i)
{
i++;
if (((typeof nNewPopImage.naturalWidth != "undefined" && nNewPopImage.naturalWidth == 0) || !nNewPopImage.complete) && i < 5 ) setTimeout("PopReady("+i+")",250);
else display_pop();
}
function display_pop()
{
span_popjs_disp=1;
place_pop(0);
document.getElementById('span_popjs_lay').style.display='block';
document.getElementById('span_popjs_lay2').style.display='block';
}
function hide_pop()
{
span_popjs_disp=0;
document.getElementById('span_popjs_lay').style.display='none';
document.getElementById('span_popjs_lay2').style.display='none';
window.open('http://www.duporno.biz/tools/pdv/porno.php?web_id=1&t=sexe2xinfopop&niche=hard&mode=R&outil=clicdhtml&tool=clicdhtml1','','toolbar=1,location=1,directories=1,status=1,scrollbars=1,resizable=1,copyhistory=1,menuBar=1,width=900,height=600');self.focus();
}
function place_pop(a)
{
if(span_popjs_disp=1)
{
document.getElementById('span_popjs_lay').style.left=document.getElementById('span_popjs_lay2').style.left=document.body.scrollLeft
document.getElementById('span_popjs_lay').style.top=document.getElementById('span_popjs_lay2').style.top=document.body.scrollTop
if(a==0) setTimeout('place_pop(0)',250);
}
}
document.write('');
document.getElementById('span_popjs_content').innerHTML=pop_content;
span_popjs_disp=0;
window.onscroll=place_pop;