document.write('<style type="text/css">\
<!--\
table.cadre3520\
{\
border-style: solid;\
border-color: #000000;\
border-width: 1px;\
background-color: #000000;\
background-image: url();\
}\
tr.titre3520\
{\
background-color: #000000;\
}\
td.titre3520\
{\
font-family: Verdana;\
font-size: 11px;\
font-weight: normal;\
color: #F79009;\
border-bottom-style: solid;\
border-bottom-color: #000000;\
border-bottom-width: 1px;\
}\
td.contenu3520\
{\
font-family: Verdana;\
font-size: 11px;\
font-weight: normal;\
color: #21A1BC;\
}\
td.question3520\
{\
font-family: Verdana;\
font-size: 11px;\
font-weight: bold;\
color: #F79009;\
}\
a.lien3520\
{\
font-family: Verdana;\
font-size: 11px;\
font-weight: normal;\
color: #F79009;\
text-decoration: underline;\
}\
a.lien3520:visited\
{\
font-family: Verdana;\
font-size: 11px;\
font-weight: normal;\
color: #F79009;\
text-decoration: underline;\
}\
a.lien3520:active\
{\
font-family: Verdana;\
font-size: 11px;\
font-weight: normal;\
color: #F79009;\
text-decoration: underline;\
}\
a.lien3520:hover\
{\
font-family: Verdana;\
font-size: 11px;\
font-weight: normal;\
color: #F79009;\
text-decoration: underline;\
}\
form.form3520\
{\
margin: 0px;\
}\
input.bouton3520\
{\
font-family: Verdana;\
font-size: 11px;\
font-weight: normal;\
}\
input.radio3520, input.checkbox3520\
{\
background-color: transparent;\
border-width: 0px;\
}\
//-->\
</style>\
');document.write('<div id="layer3520" style="position:absolute; visibility: hidden;"></div><form class="form3520" name="formSondage3520" method="post" action="http://www.i-services.net/membres/sondage/valider.php?uid=85635&sid=42455&id=61760" target="popup3520" onsubmit="javascript:if(formSubmit3520() == true) { win3520=window.open(\'\',\'popup3520\',\'width=500,height=400,top=\'+((screen.height-400)/2)+\',left=\'+((screen.width-500)/2)+\',scrollbars=1,resizable=0\'); win3520.focus(); return true; } else return false;">\
<input type="hidden" name="referer" value="" />\
<table class="cadre3520" border="0" cellpadding="3" cellspacing="0" width="185">\
<tr class="titre3520">\
<td class="titre3520" colspan="2" align="left"><b>Sondage #4</b></td>\
</tr>\
<tr>\
<td class="question3520" colspan="2" align="left">Achetez-vous des magazines sp&eacute;cialis&eacute;s en japanimation?</td>\
</tr>\
<tr>\
<td class="contenu3520" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio3520" type="radio" name="question30755" value="151147" onclick="javascript:compter3520(this,30755);" /></td>\
<td class="contenu3520" width="99%" align="left" valign="middle">Je suis abonn&eacute;!\
</td>\
</tr>\
<tr>\
<td class="contenu3520" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio3520" type="radio" name="question30755" value="151148" onclick="javascript:compter3520(this,30755);" /></td>\
<td class="contenu3520" width="99%" align="left" valign="middle">Oui, tr&egrave;s souvent!\
</td>\
</tr>\
<tr>\
<td class="contenu3520" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio3520" type="radio" name="question30755" value="151149" onclick="javascript:compter3520(this,30755);" /></td>\
<td class="contenu3520" width="99%" align="left" valign="middle">Parfois, lorsque &ccedil;a semble int&eacute;ressant.\
</td>\
</tr>\
<tr>\
<td class="contenu3520" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio3520" type="radio" name="question30755" value="151150" onclick="javascript:compter3520(this,30755);" /></td>\
<td class="contenu3520" width="99%" align="left" valign="middle">C\'est assez rare.\
</td>\
</tr>\
<tr>\
<td class="contenu3520" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio3520" type="radio" name="question30755" value="151151" onclick="javascript:compter3520(this,30755);" /></td>\
<td class="contenu3520" width="99%" align="left" valign="middle">Non, jamais.\
</td>\
</tr>\
<tr>\
<td class="contenu3520" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio3520" type="radio" name="question30755" value="151152" onclick="javascript:compter3520(this,30755);" /></td>\
<td class="contenu3520" width="99%" align="left" valign="middle">Je n\'en ai jamais achet&eacute;, mais je le ferai bient&ocirc;t.\
</td>\
</tr>\
<tr>\
<td class="contenu3520" colspan="2" align="center">\
<div style="margin: 2px;"><input class="bouton3520" type="submit" value="Valider" /></div>\
<div style="margin: 2px;"><a class="lien3520" href="#null" onclick="javascript:win3520=window.open(\'http://www.i-services.net/membres/sondage/resultats.php?uid=85635&sid=42455&id=61760\',\'popup3520\',\'width=500,height=400,top=\'+((screen.height-400)/2)+\',left=\'+((screen.width-500)/2)+\',scrollbars=1,resizable=0\'); win3520.focus(); return false;">Voir les r&eacute;sultats</a></div>\
</td>\
</tr>\
<tr>\
<td class="contenu3520" colspan="2" align="center" style="border-top-style: solid; border-top-color: #000000; border-top-width: 1px;">Service gratuit offert par <a class="lien3520" href="http://www.i-services.net/membres/sondage/index.php?refid=85635" target="_blank">I-Services</a></td>\
</tr>\
</table>\
</form>\
');
var cpt_3520=new Array();
var limite_cpt_3520=new Array();
var limite_type_3520=new Array();
var num_quest_3520=new Array();


cpt_3520[30755]=0;
limite_cpt_3520[30755]=0;
limite_type_3520[30755]='max';
num_quest_3520[30755]=1;


function compter3520(cb,idq)
{
	if(cb.type == 'checkbox')
	{
		if(cb.checked == true)
		{
			cpt_3520[idq]++;
		}
		else
		{
			cpt_3520[idq]--;
		}
	}
	else if(cb.type == 'radio')
	{
		if(cb.checked == true)
		{
			cpt_3520[idq]=1;
		}
		else
		{
			cpt_3520[idq]=0;
		}
	}
}

function formSubmit3520()
{
	msg1=msg2='';

	for(idq in cpt_3520)
	{
		if(cpt_3520[idq] == 0)
		{
			msg2='Veuillez s\351lectionner une r\351ponse !';

			break;
		}
		else if(limite_type_3520[idq] == 'max' && limite_cpt_3520[idq] > 0 && cpt_3520[idq] > limite_cpt_3520[idq])
		{
			msg1+='- Veuillez ne pas cocher plus de '+limite_cpt_3520[idq]+' r\351ponses pour la question num\351ro '+num_quest_3520[idq]+' !\n';
		}
		else if(limite_type_3520[idq] == 'exact' && limite_cpt_3520[idq] > 0 && cpt_3520[idq] != limite_cpt_3520[idq])
		{
			msg1+='- Veuillez cocher '+limite_cpt_3520[idq]+' r\351ponses pour la question num\351ro '+num_quest_3520[idq]+' !\n';
		}
	}

	if(msg2 != '')
	{
		alert(msg2);

		return false;
	}
	else if(msg1 != '')
	{
		alert(msg1);

		return false;
	}

	document.formSondage3520.referer.value=document.location.href;

	return true;
}


window.setTimeout('document.formSondage3520.reset()',500);


function openImage(image,lien,e,offsetX,offsetY)
{
	if(document.getElementById && document.getElementById('layer3520'))
	{
		if(navigator.appName.substring(0,3) == 'Net')
		{
			document.captureEvents(Event.MOUSEMOVE);
		}

		posX=getPosX(e);
		posY=getPosY(e);

		posX+=offsetX;
		posY+=offsetY;

		document.getElementById('layer3520').style.left=posX+'px';
		document.getElementById('layer3520').style.top=posY+'px';

		if(lien == '')
		{
			document.getElementById('layer3520').innerHTML='<img src="'+image+'" border="0" alt="" />';
		}
		else
		{
			document.getElementById('layer3520').innerHTML='<a href="'+lien+'" target="_blank"><img src="'+image+'" border="0" alt="" /></a>';
		}

		document.getElementById('layer3520').style.visibility='visible';
	}
}

function closeImage()
{
	if(document.getElementById && document.getElementById('layer3520'))
	{
		document.getElementById('layer3520').style.visibility='hidden';
	}
}

function getPosX(e)
{
	posX = (navigator.appName.substring(0,3) == 'Net') ? e.pageX : e.x+document.documentElement.scrollLeft;

	return posX;
}

function getPosY(e)
{
	posY = (navigator.appName.substring(0,3) == 'Net') ? e.pageY : e.y+document.documentElement.scrollTop;

	return posY;
}
