function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}
function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

var part;

document.write('<table border="0" cellpadding="0" cellspacing="0" width="370">');
document.write('<tr>');
document.write('<td><a href="http://www.gagne-un-max.com/acces/kit-html.php?id='+ part +'&dialer=carolinemail" target="_blank" onMouseOver="MM_displayStatusMsg(\'Viens jouer avec moi !\');return document.MM_returnValue" onMouseOut="MM_displayStatusMsg(\'Viens jouer avec moi !\');return document.MM_returnValue"><img name="mailing01_r1_c1" src="http://partenaire.gagne-un-max.com/outils/carolinemail/02/images/mailing-01_r1_c1.jpg" width="192" height="160" border="0" alt=""></a></td>');
document.write('<td width="178" background="http://partenaire.gagne-un-max.com/outils/carolinemail/02/images/mailing-01_r1_c2.jpg"><table width="166" border="0" cellspacing="5" cellpadding="0">');
document.write('<tr>');
document.write('<td>&nbsp;</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td>&nbsp;</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Entre ton email :</font></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td><form action="http://www.carolinemail.com/valid1.php" method="post" name="form1" target="_blank">');
document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.write('<tr>');
document.write('<td><input name="email" type="text" id="email" size="20">');
document.write('<font face="Arial, Helvetica, sans-serif"><b>');
document.write('<input name="valid" type="hidden" id="valid" value="1">');
document.write('<input name="id" type="hidden" id="id" value="'+ part +'">');
document.write('</b></font></td>');
document.write('</tr>');
document.write('<tr align="center">'); 
document.write('<td><input name="Submit" type="submit" onClick="MM_validateForm(\'email\',\'\',\'RisEmail\');return document.MM_returnValue" value="Go !"></td>');
document.write('</tr>');
document.write('</table>');
document.write('</form></td>');
document.write('</tr>');
document.write('</table></td>');
document.write('</tr>');
document.write('</table>');