document.write('<style type="text/css">\
<!--\
table.cadre5120\
{\
border-style: solid;\
border-color: #008000;\
border-width: 3px;\
background-color: #C7F59F;\
background-image: url();\
}\
tr.titre5120\
{\
background-color: #15631B;\
}\
td.titre5120\
{\
font-family: Tahoma;\
font-size: 12px;\
font-weight: normal;\
color: #FFFF00;\
border-bottom-style: solid;\
border-bottom-color: #008000;\
border-bottom-width: 3px;\
}\
td.contenu5120\
{\
font-family: Tahoma;\
font-size: 12px;\
font-weight: normal;\
color: #FF0000;\
}\
td.question5120\
{\
font-family: Tahoma;\
font-size: 12px;\
font-weight: bold;\
color: #008000;\
}\
a.lien5120\
{\
font-family: Tahoma;\
font-size: 12px;\
font-weight: normal;\
color: #008000;\
text-decoration: underline;\
}\
a.lien5120:visited\
{\
font-family: Tahoma;\
font-size: 12px;\
font-weight: normal;\
color: #008000;\
text-decoration: underline;\
}\
a.lien5120:active\
{\
font-family: Tahoma;\
font-size: 12px;\
font-weight: normal;\
color: #008000;\
text-decoration: underline;\
}\
a.lien5120:hover\
{\
font-family: Tahoma;\
font-size: 12px;\
font-weight: normal;\
color: #008000;\
text-decoration: underline;\
}\
form.form5120\
{\
margin: 0px;\
}\
input.bouton5120\
{\
font-family: Tahoma;\
font-size: 12px;\
font-weight: normal;\
}\
input.radio5120, input.checkbox5120\
{\
background-color: transparent;\
border-width: 0px;\
}\
//-->\
</style>\
');document.write('<div id="layer5120" style="position:absolute; visibility: hidden;"></div><form class="form5120" name="formSondage5120" method="post" action="http://www.i-services.net/membres/sondage/valider.php?uid=54497&sid=23823&id=37392" target="popup5120" onsubmit="javascript:if(formSubmit5120() == true) { win5120=window.open(\'\',\'popup5120\',\'width=500,height=400,top=\'+((screen.height-400)/2)+\',left=\'+((screen.width-500)/2)+\',scrollbars=1,resizable=0\'); win5120.focus(); return true; } else return false;">\
<input type="hidden" name="referer" value="" />\
<table class="cadre5120" border="0" cellpadding="3" cellspacing="0" width="180">\
<tr>\
<td class="question5120" colspan="2" align="left">Le contenu</td>\
</tr>\
<tr>\
<td class="contenu5120" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio5120" type="radio" name="question6774" value="33585" onclick="javascript:compter5120(this,6774);" /></td>\
<td class="contenu5120" width="99%" align="left" valign="middle">Excellent\
</td>\
</tr>\
<tr>\
<td class="contenu5120" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio5120" type="radio" name="question6774" value="33586" onclick="javascript:compter5120(this,6774);" /></td>\
<td class="contenu5120" width="99%" align="left" valign="middle">Bien\
</td>\
</tr>\
<tr>\
<td class="contenu5120" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio5120" type="radio" name="question6774" value="33587" onclick="javascript:compter5120(this,6774);" /></td>\
<td class="contenu5120" width="99%" align="left" valign="middle">Moyen\
</td>\
</tr>\
<tr>\
<td class="contenu5120" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio5120" type="radio" name="question6774" value="33588" onclick="javascript:compter5120(this,6774);" /></td>\
<td class="contenu5120" width="99%" align="left" valign="middle">M&eacute;diocre\
</td>\
</tr>\
<tr>\
<td class="contenu5120" colspan="2" align="center">\
<div style="margin: 2px;"><input class="bouton5120" type="submit" value="Valider" /></div>\
<div style="margin: 2px;"><a class="lien5120" href="#null" onclick="javascript:win5120=window.open(\'http://www.i-services.net/membres/sondage/resultats.php?uid=54497&sid=23823&id=37392\',\'popup5120\',\'width=500,height=400,top=\'+((screen.height-400)/2)+\',left=\'+((screen.width-500)/2)+\',scrollbars=1,resizable=0\'); win5120.focus(); return false;">Voir les r&eacute;sultats</a></div>\
</td>\
</tr>\
<tr>\
<td class="contenu5120" colspan="2" align="center" style="border-top-style: solid; border-top-color: #008000; border-top-width: 3px;">Service gratuit offert par <a class="lien5120" href="http://www.i-services.net/membres/sondage/index.php?refid=54497" target="_blank">I-Services</a></td>\
</tr>\
</table>\
</form>\
');
var cpt_5120=new Array();
var limite_cpt_5120=new Array();
var limite_type_5120=new Array();
var num_quest_5120=new Array();


cpt_5120[6774]=0;
limite_cpt_5120[6774]=0;
limite_type_5120[6774]='max';
num_quest_5120[6774]=1;


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

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

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

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

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

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

		return false;
	}

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

	return true;
}


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


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

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

		posX+=offsetX;
		posY+=offsetY;

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

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

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

function closeImage()
{
	if(document.getElementById && document.getElementById('layer5120'))
	{
		document.getElementById('layer5120').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;
}
