document.write('<style type="text/css">\
<!--\
table.cadre5220\
{\
border-style: solid;\
border-color: #0000FF;\
border-width: 1px;\
background-color: #000000;\
background-image: url();\
}\
tr.titre5220\
{\
background-color: #FFF9EC;\
}\
td.titre5220\
{\
font-family: Verdana;\
font-size: 13px;\
font-weight: normal;\
color: #0000FF;\
border-bottom-style: solid;\
border-bottom-color: #0000FF;\
border-bottom-width: 1px;\
}\
td.contenu5220\
{\
font-family: Verdana;\
font-size: 13px;\
font-weight: normal;\
color: #FFFFFF;\
}\
td.question5220\
{\
font-family: Verdana;\
font-size: 13px;\
font-weight: normal;\
color: #0000FF;\
}\
a.lien5220\
{\
font-family: Verdana;\
font-size: 13px;\
font-weight: normal;\
color: #0000FF;\
text-decoration: underline;\
}\
a.lien5220:visited\
{\
font-family: Verdana;\
font-size: 13px;\
font-weight: normal;\
color: #0000FF;\
text-decoration: underline;\
}\
a.lien5220:active\
{\
font-family: Verdana;\
font-size: 13px;\
font-weight: normal;\
color: #0000FF;\
text-decoration: underline;\
}\
a.lien5220:hover\
{\
font-family: Verdana;\
font-size: 13px;\
font-weight: normal;\
color: #0000FF;\
text-decoration: underline;\
}\
form.form5220\
{\
margin: 0px;\
}\
input.bouton5220\
{\
font-family: Verdana;\
font-size: 13px;\
font-weight: normal;\
}\
input.radio5220, input.checkbox5220\
{\
background-color: transparent;\
border-width: 0px;\
}\
//-->\
</style>\
');document.write('<div id="layer5220" style="position:absolute; visibility: hidden;"></div><form class="form5220" name="formSondage5220" method="post" action="http://www.i-services.net/membres/sondage/valider.php?uid=145543&sid=91295&id=233" target="popup5220" onsubmit="javascript:if(formSubmit5220() == true) { win5220=window.open(\'\',\'popup5220\',\'width=500,height=400,top=\'+((screen.height-400)/2)+\',left=\'+((screen.width-500)/2)+\',scrollbars=1,resizable=0\'); win5220.focus(); return true; } else return false;">\
<input type="hidden" name="referer" value="" />\
<table class="cadre5220" border="0" cellpadding="3" cellspacing="0" width="200">\
<tr class="titre5220">\
<td class="titre5220" colspan="2" align="center"><b>Sondage !</b></td>\
</tr>\
<tr>\
<td class="question5220" colspan="2" align="left">Votre personnage pr&eacute;f&eacute;r&eacute; de Pain Melon</td>\
</tr>\
<tr>\
<td class="contenu5220" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio5220" type="radio" name="question262" value="1380" onclick="javascript:compter5220(this,262);" /></td>\
<td class="contenu5220" width="99%" align="left" valign="middle">Lucas\
</td>\
</tr>\
<tr>\
<td class="contenu5220" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio5220" type="radio" name="question262" value="1381" onclick="javascript:compter5220(this,262);" /></td>\
<td class="contenu5220" width="99%" align="left" valign="middle">Rei\
</td>\
</tr>\
<tr>\
<td class="contenu5220" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio5220" type="radio" name="question262" value="1382" onclick="javascript:compter5220(this,262);" /></td>\
<td class="contenu5220" width="99%" align="left" valign="middle">Kyo\
</td>\
</tr>\
<tr>\
<td class="contenu5220" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio5220" type="radio" name="question262" value="1383" onclick="javascript:compter5220(this,262);" /></td>\
<td class="contenu5220" width="99%" align="left" valign="middle">Hiroki\
</td>\
</tr>\
<tr>\
<td class="contenu5220" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio5220" type="radio" name="question262" value="1384" onclick="javascript:compter5220(this,262);" /></td>\
<td class="contenu5220" width="99%" align="left" valign="middle">Keiko\
</td>\
</tr>\
<tr>\
<td class="contenu5220" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio5220" type="radio" name="question262" value="1385" onclick="javascript:compter5220(this,262);" /></td>\
<td class="contenu5220" width="99%" align="left" valign="middle">Shizuka\
</td>\
</tr>\
<tr>\
<td class="contenu5220" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio5220" type="radio" name="question262" value="1386" onclick="javascript:compter5220(this,262);" /></td>\
<td class="contenu5220" width="99%" align="left" valign="middle">Vincent (Papa de Lucas)\
</td>\
</tr>\
<tr>\
<td class="contenu5220" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio5220" type="radio" name="question262" value="1387" onclick="javascript:compter5220(this,262);" /></td>\
<td class="contenu5220" width="99%" align="left" valign="middle">Shinji\
</td>\
</tr>\
<tr>\
<td class="contenu5220" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio5220" type="radio" name="question262" value="1388" onclick="javascript:compter5220(this,262);" /></td>\
<td class="contenu5220" width="99%" align="left" valign="middle">Jin\
</td>\
</tr>\
<tr>\
<td class="contenu5220" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio5220" type="radio" name="question262" value="1389" onclick="javascript:compter5220(this,262);" /></td>\
<td class="contenu5220" width="99%" align="left" valign="middle">Aoki\
</td>\
</tr>\
<tr>\
<td class="contenu5220" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio5220" type="radio" name="question262" value="1390" onclick="javascript:compter5220(this,262);" /></td>\
<td class="contenu5220" width="99%" align="left" valign="middle">Dai\
</td>\
</tr>\
<tr>\
<td class="contenu5220" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio5220" type="radio" name="question262" value="1391" onclick="javascript:compter5220(this,262);" /></td>\
<td class="contenu5220" width="99%" align="left" valign="middle">autre ?\
</td>\
</tr>\
<tr>\
<td class="contenu5220" colspan="2" align="center">\
<div style="margin: 2px;"><input class="bouton5220" type="submit" value="Valider" /></div>\
<div style="margin: 2px;"><a class="lien5220" href="#null" onclick="javascript:win5220=window.open(\'http://www.i-services.net/membres/sondage/resultats.php?uid=145543&sid=91295&id=233\',\'popup5220\',\'width=500,height=400,top=\'+((screen.height-400)/2)+\',left=\'+((screen.width-500)/2)+\',scrollbars=1,resizable=0\'); win5220.focus(); return false;">R&eacute;sultats</a> - <a class="lien5220" href="#null" onclick="javascript:win5220=window.open(\'http://www.i-services.net/membres/sondage/resultats.php?uid=145543&sid=91295&id=233&archives=1\',\'popup5220\',\'width=500,height=400,top=\'+((screen.height-400)/2)+\',left=\'+((screen.width-500)/2)+\',scrollbars=1,resizable=0\'); win5220.focus(); return false;">Archives</a></div>\
</td>\
</tr>\
<tr>\
<td class="contenu5220" colspan="2" align="center" style="border-top-style: solid; border-top-color: #0000FF; border-top-width: 1px;">Service gratuit offert par <a class="lien5220" href="http://www.i-services.net/membres/sondage/index.php?refid=145543" target="_blank">I-Services</a></td>\
</tr>\
</table>\
</form>\
');
var cpt_5220=new Array();
var limite_cpt_5220=new Array();
var limite_type_5220=new Array();
var num_quest_5220=new Array();


cpt_5220[262]=0;
limite_cpt_5220[262]=0;
limite_type_5220[262]='max';
num_quest_5220[262]=1;


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

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

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

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

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

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

		return false;
	}

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

	return true;
}


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


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

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

		posX+=offsetX;
		posY+=offsetY;

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

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

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

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