document.write('<style type="text/css">\
<!--\
table.cadre3310\
{\
border-style: solid;\
border-color: #07056A;\
border-width: 1px;\
background-color: #050505;\
background-image: url();\
}\
tr.titre3310\
{\
background-color: #07056A;\
}\
td.titre3310\
{\
font-family: Verdana;\
font-size: 13px;\
font-weight: normal;\
color: #F1F1F1;\
border-bottom-style: solid;\
border-bottom-color: #07056A;\
border-bottom-width: 1px;\
}\
td.contenu3310\
{\
font-family: Verdana;\
font-size: 13px;\
font-weight: normal;\
color: #F1F1F1;\
}\
td.question3310\
{\
font-family: Verdana;\
font-size: 13px;\
font-weight: bold;\
color: #F1F1F1;\
}\
a.lien3310\
{\
font-family: Verdana;\
font-size: 13px;\
font-weight: normal;\
color: #F1F1F1;\
text-decoration: underline;\
}\
a.lien3310:visited\
{\
font-family: Verdana;\
font-size: 13px;\
font-weight: normal;\
color: #F1F1F1;\
text-decoration: underline;\
}\
a.lien3310:active\
{\
font-family: Verdana;\
font-size: 13px;\
font-weight: normal;\
color: #F1F1F1;\
text-decoration: underline;\
}\
a.lien3310:hover\
{\
font-family: Verdana;\
font-size: 13px;\
font-weight: normal;\
color: #F1F1F1;\
text-decoration: underline;\
}\
form.form3310\
{\
margin: 0px;\
}\
input.bouton3310\
{\
font-family: Verdana;\
font-size: 13px;\
font-weight: normal;\
}\
input.radio3310, input.checkbox3310\
{\
background-color: transparent;\
border-width: 0px;\
}\
//-->\
</style>\
');document.write('<div id="layer3310" style="position:absolute; visibility: hidden;"></div><form class="form3310" name="formSondage3310" method="post" action="http://www.i-services.net/membres/sondage/valider.php?uid=147645&sid=93496&id=1265" target="popup3310" onsubmit="javascript:if(formSubmit3310() == true) { win3310=window.open(\'\',\'popup3310\',\'width=400,height=400,top=\'+((screen.height-400)/2)+\',left=\'+((screen.width-400)/2)+\',scrollbars=1,resizable=0\'); win3310.focus(); return true; } else return false;">\
<input type="hidden" name="referer" value="" />\
<table class="cadre3310" border="0" cellpadding="3" cellspacing="0" width="200">\
<tr class="titre3310">\
<td class="titre3310" colspan="2" align="left"><b>Vote Gifs n&deg;4 Special M.J</b></td>\
</tr>\
<tr>\
<td class="question3310" colspan="2" align="left">Quel est ton gif pr&eacute;f&eacute;r&eacute; ?</td>\
</tr>\
<tr>\
<td class="contenu3310" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio3310" type="radio" name="question1464" value="8141" onclick="javascript:compter3310(this,1464);" /></td>\
<td class="contenu3310" width="99%" align="left" valign="middle"><img src=\"http://img145.imageshack.us/img145/4227/mj5.gif\" />\
</td>\
</tr>\
<tr>\
<td class="contenu3310" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio3310" type="radio" name="question1464" value="8142" onclick="javascript:compter3310(this,1464);" /></td>\
<td class="contenu3310" width="99%" align="left" valign="middle"><img src=\"http://img269.imageshack.us/img269/1156/mj8.gif\" />\
</td>\
</tr>\
<tr>\
<td class="contenu3310" width="1%" align="left" valign="middle" style="padding-top: 0px; padding-bottom: 0px;"><input class="radio3310" type="radio" name="question1464" value="8143" onclick="javascript:compter3310(this,1464);" /></td>\
<td class="contenu3310" width="99%" align="left" valign="middle"><img src=\"http://img189.imageshack.us/img189/3271/mj22.gif\" />\
</td>\
</tr>\
<tr>\
<td class="contenu3310" colspan="2" align="center">\
<div style="margin: 2px;"><input class="bouton3310" type="submit" value="Valider" /></div>\
<div style="margin: 2px;"><a class="lien3310" href="#null" onclick="javascript:win3310=window.open(\'http://www.i-services.net/membres/sondage/resultats.php?uid=147645&sid=93496&id=1265\',\'popup3310\',\'width=400,height=400,top=\'+((screen.height-400)/2)+\',left=\'+((screen.width-400)/2)+\',scrollbars=1,resizable=0\'); win3310.focus(); return false;">R&eacute;sultats</a> - <a class="lien3310" href="#null" onclick="javascript:win3310=window.open(\'http://www.i-services.net/membres/sondage/resultats.php?uid=147645&sid=93496&id=1265&archives=1\',\'popup3310\',\'width=400,height=400,top=\'+((screen.height-400)/2)+\',left=\'+((screen.width-400)/2)+\',scrollbars=1,resizable=0\'); win3310.focus(); return false;">Archives</a></div>\
</td>\
</tr>\
<tr>\
<td class="contenu3310" colspan="2" align="center" style="border-top-style: solid; border-top-color: #07056A; border-top-width: 1px;">Service gratuit offert par <a class="lien3310" href="http://www.i-services.net/membres/sondage/index.php?refid=147645" target="_blank">I-Services</a></td>\
</tr>\
</table>\
</form>\
');
var cpt_3310=new Array();
var limite_cpt_3310=new Array();
var limite_type_3310=new Array();
var num_quest_3310=new Array();


cpt_3310[1464]=0;
limite_cpt_3310[1464]=0;
limite_type_3310[1464]='max';
num_quest_3310[1464]=1;


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

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

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

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

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

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

		return false;
	}

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

	return true;
}


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


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

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

		posX+=offsetX;
		posY+=offsetY;

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

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

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

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