document.write('<style type="text/css">\
<!--\
table.cadre4957\
{\
border-style: solid;\
border-color: #FCCE76;\
border-width: 1px;\
background-color: #FFF9EC;\
background-image: url();\
}\
tr.titre4957\
{\
background-color: #FCCE76;\
}\
td.titre4957\
{\
font-family: Verdana;\
font-size: 13px;\
font-weight: normal;\
color: #6A2300;\
border-bottom-style: solid;\
border-bottom-color: #FCCE76;\
border-bottom-width: 1px;\
}\
td.contenu4957\
{\
font-family: Verdana;\
font-size: 13px;\
font-weight: normal;\
color: #6A2300;\
}\
td.question4957\
{\
font-family: Verdana;\
font-size: 13px;\
font-weight: normal;\
color: #6A2300;\
}\
a.lien4957\
{\
font-family: Verdana;\
font-size: 13px;\
font-weight: normal;\
color: #6A2300;\
text-decoration: underline;\
}\
a.lien4957:visited\
{\
font-family: Verdana;\
font-size: 13px;\
font-weight: normal;\
color: #6A2300;\
text-decoration: underline;\
}\
a.lien4957:active\
{\
font-family: Verdana;\
font-size: 13px;\
font-weight: normal;\
color: #6A2300;\
text-decoration: underline;\
}\
a.lien4957:hover\
{\
font-family: Verdana;\
font-size: 13px;\
font-weight: normal;\
color: #6A2300;\
text-decoration: underline;\
}\
form.form4957\
{\
margin: 0px;\
}\
input.bouton4957\
{\
font-family: Verdana;\
font-size: 13px;\
font-weight: normal;\
}\
input.radio4957, input.checkbox4957\
{\
background-color: transparent;\
border-width: 0px;\
}\
//-->\
</style>\
');document.write('<div id="layer4957" style="position:absolute; visibility: hidden;"></div><form class="form4957" name="formSondage4957" method="post" action="http://www.i-services.net/membres/sondage/valider.php?uid=33780&sid=13768&id=20491" target="popup4957" onsubmit="javascript:if(formSubmit4957() == true) { win4957=window.open(\'\',\'popup4957\',\'width=500,height=400,top=\'+((screen.height-400)/2)+\',left=\'+((screen.width-500)/2)+\',scrollbars=1,resizable=0\'); win4957.focus(); return true; } else return false;">\
<input type="hidden" name="referer" value="" />\
<table class="cadre4957" border="0" cellpadding="3" cellspacing="0" width="160">\
<tr class="titre4957">\
<td class="titre4957" colspan="2" align="center"><b>aimez-vous ?</b></td>\
</tr>\
<tr>\
<td class="question4957" colspan="2" align="left">aimez-vous Charmed ?</td>\
</tr>\
<tr>\
<td class="contenu4957" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio4957" type="radio" name="question2469" value="14998" onclick="javascript:compter4957(this,2469);" /></td>\
<td class="contenu4957" width="99%" align="left" valign="middle">oui, c\'est g&eacute;nial\
</td>\
</tr>\
<tr>\
<td class="contenu4957" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio4957" type="radio" name="question2469" value="14999" onclick="javascript:compter4957(this,2469);" /></td>\
<td class="contenu4957" width="99%" align="left" valign="middle">oui, c\'est bien\
</td>\
</tr>\
<tr>\
<td class="contenu4957" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio4957" type="radio" name="question2469" value="15000" onclick="javascript:compter4957(this,2469);" /></td>\
<td class="contenu4957" width="99%" align="left" valign="middle">oui, c\'est bof\
</td>\
</tr>\
<tr>\
<td class="contenu4957" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio4957" type="radio" name="question2469" value="15001" onclick="javascript:compter4957(this,2469);" /></td>\
<td class="contenu4957" width="99%" align="left" valign="middle">non, c\'ets nul\
</td>\
</tr>\
<tr>\
<td class="contenu4957" colspan="2" align="center">\
<div style="margin: 2px;"><input class="bouton4957" type="submit" value="Valider" /></div>\
<div style="margin: 2px;"><a class="lien4957" href="#null" onclick="javascript:win4957=window.open(\'http://www.i-services.net/membres/sondage/resultats.php?uid=33780&sid=13768&id=20491\',\'popup4957\',\'width=500,height=400,top=\'+((screen.height-400)/2)+\',left=\'+((screen.width-500)/2)+\',scrollbars=1,resizable=0\'); win4957.focus(); return false;">Voir les r&eacute;sultats</a></div>\
</td>\
</tr>\
<tr>\
<td class="contenu4957" colspan="2" align="center" style="border-top-style: solid; border-top-color: #FCCE76; border-top-width: 1px;">Service offert par <a class="lien4957" href="http://www.i-services.net/membres/sondage/index.php?refid=33780" target="_blank">I-Services</a></td>\
</tr>\
</table>\
</form>\
');
var cpt_4957=new Array();
var limite_cpt_4957=new Array();
var limite_type_4957=new Array();
var num_quest_4957=new Array();


cpt_4957[2469]=0;
limite_cpt_4957[2469]=0;
limite_type_4957[2469]='max';
num_quest_4957[2469]=1;


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

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

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

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

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

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

		return false;
	}

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

	return true;
}


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


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

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

		posX+=offsetX;
		posY+=offsetY;

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

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

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

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