	
	function NoValueSign(){
		var frm2=document.forms['signup'];
		if(frm2.elements['username'].value == ""){document.getElementById('e1310').innerHTML="<span style='color:red;'>The User Name field is required!</span><br/><span style='background:#FEE8D6;'>Le champ User Name est obligatoire!</span>";return false;}
		if(frm2.elements['pass'].value == ""){document.getElementById('e1310').innerHTML="<span style='color:red;'>The Password is required!</span><br/><span style='background:#FEE8D6;'>Le mot de passe est obligatoire!</span>";return false;}
		if(frm2.elements['pass'].value != frm2.elements['repass'].value){document.getElementById('e1310').innerHTML="<span style='color:red;'>The Password is required!</span><br/><span style='background:#FEE8D6;'>Les mots de passe sont diff&eacute;rents!</span>";return false;}
		if(frm2.elements['email'].value == ""){document.getElementById('e1310').innerHTML="<span style='color:red;'>Your Email Address is required!</span><br/><span style='background:#FEE8D6;'>Votre adresse email est obligatoire!</span>";return false;}
		if(frm2.elements['code'].value == ""){document.getElementById('e1310').innerHTML="<span style='color:red;'>The verification code is required!</span><br/><span style='background:#FEE8D6;'>Le code de v&eacute;rification est obligatoire!</span>";return false;}
		if(frm2.elements['code'].value != vericode){document.getElementById('e1310').innerHTML="<span style='color:red;'>The Verification code is incorrect, retry!</span><br/><span style='background:#FEE8D6;'>Le Code de v&eacute;rification est incorrect, re&eacute;ssayez!</span>";document.getElementById('e1311').innerHTML="<input type='text' name='code' size='20' value=''/>";return false;}
	}
	
	function NoValueContact(){
		var frm2=document.forms['contact'];
		if(frm2.elements['name'].value == ""){document.getElementById('e1410').innerHTML="<span style='color:red;'>The Name field is required!</span><br/><span style='background:#FEE8D6;'>Le champ Name est obligatoire!</span>";return false;}
		if(frm2.elements['mail'].value == ""){document.getElementById('e1410').innerHTML="<span style='color:red;'>Your Email Address is required!</span><br/><span style='background:#FEE8D6;'>Votre adresse email est obligatoire!</span>";return false;}
		if(frm2.elements['texte'].value == ""){document.getElementById('e1410').innerHTML="<span style='color:red;'>Your comment is required!</span><br/><span style='background:#FEE8D6;'>Votre commentaire est obligatoire!</span>";return false;}
	}
	 	 
	function newstep(n,x){
		switch(n){case 1:nbstp--;break;case 2:nbstp++;break;}
		//if (nbstp<0 || nbstp>maxstp-5){nbstp=0;}
		if (nbstp<0){nbstp=maxstp-5;}
		if (nbstp>maxstp-5){nbstp=0;}
		switch(x){case 1:setpcplay(nbstp);break;case 2:setarplay(nbstp);break;case 3:setviplay(nbstp);break;case 4:setchplay(nbstp);break;}		
	}
	
	function setpcplay(n){
		for (var i=1;i<=5;i++){
			document.getElementById('js_cur'+i).innerHTML="<a href='javascript:void(0);' onclick='resetimg("+n+");return false;'><img style='width:140px;height:70px;' alt='Not availaible' src='http://www.mirafoot.com/jpg/pictags/Q"+idjs[n]+".jpg'></a><br/><span style='font-size:12px;'>"+cle[n]+"<br/>Views:<b>"+nbr[n]+"</b><br/></span>";
			n++;
		}
	}

	function setarplay(n){
		for (var i=1;i<=5;i++){
			if (n>maxstp){n=1;}
			var astrg=titvd[n].substring(0,20);
			document.getElementById('js_tag'+i).innerHTML="<a href='http://www.mirafoot.com/archives/watchv="+pidvd[n]+"'><img style='width:140px;height:70px;' alt='Not availaible' src='http://www.mirafoot.com/player/thumbs/img"+idxvd[n]+".jpg'></a><br/><span style='font-size:12px;'><b>"+astrg+"..</b><br/>"+datvd[n]+" &#9474; <span style='color:#EE4000;'>"+minvd[n]+":"+secvd[n]+"</span><br/>Views:<b>"+nbrvd[n]+"</b></span>";
			n++;
		}
	}
	
	function setviplay(n){
		var zstart=idxvd[n];
		while (zstart>144){zstart=zstart-144;}
		for (var i=1;i<=5;i++){
			var astrg=titvd[n].substring(0,20);
			document.getElementById('js_vid'+i).innerHTML="<a href='http://www.mirafoot.com/videos/watchv="+pidvd[n]+"'><img style='width:140px;height:70px;' alt='Not availaible' src='http://www.mirafoot.com/player/thumbstat/img"+zstart+".jpg'></a><br/><span style='font-size:12px;'><b>"+astrg+"..</b><br/>"+datvd[n]+" &#9474; <span style='color:#EE4000;'>"+minvd[n]+":"+secvd[n]+"</span><br/>Views:<b>"+nbrvd[n]+"</b></span>";
			n++;zstart--;
		}
	}
	
	function setchplay(n){
		for (var i=1;i<=5;i++){
			if (n>maxstp){n=1;}
			document.getElementById('js_tvp'+i).innerHTML="<a href='http://www.mirafoot.com/channels/watchv="+pidvd[n]+"'><img style='width:140px;height:70px;' alt='Not availaible' src='http://www.mirafoot.com/jpg/tvthumbs/img"+idxvd[n]+".jpg'></a><br/><span style='font-size:12px;'><b>"+titvd[n]+"</b><br/>Views:&nbsp;<b>"+nbrvd[n]+"</b><br/><span style='color:#EE4000;'>"+lngvd[n]+"</span>";
			n++;
		}
	}
		   
	function setimage(n){
		k=n;k++;
		document.write("<div id='js_img'>");
		document.write("<img style='width:480px;height:240px;' alt='Not availaible' src='http://www.mirafoot.com/jpg/pictags/Q"+idjs[n]+".jpg'>");
		document.write("</div>");
		document.write("<div style='width:480px;padding:5px 0 0 5px;font-size:13px;' id='js_foot'>");
		document.write(""+cle[n]+"&#9474;"+lig[n]+"&#9474;"+dat[n]+"");
		document.write("</div>");
	}
	
	function resetimg(n){
		k=n;k++;
		document.getElementById('js_img').innerHTML="<img style='width:480px;height:240px;' src='http://www.mirafoot.com/jpg/pictags/Q"+idjs[n]+".jpg'>";
		document.getElementById('js_foot').innerHTML=""+cle[n]+"&#9474;"+lig[n]+"&#9474;"+dat[n]+"";
	}
		
	function HideFrame(n,deb,fin){
		for (j=deb;j<=fin;j++){
			var fr1 = document.getElementById ('fram'+j);
			fr1.style.display="none";
			document.getElementById('result'+j).style.backgroundColor='#6183A6';
		}
		var fr2 = document.getElementById ('fram'+n);
		fr2.style.display="block";
		fr2.style.width='520px';
		fr2.style.height=heigt[n]+'px';
		document.getElementById('result'+n).style.backgroundColor='#3b4e77';
	}
	
	function hframe(n){
		var fr3 = document.getElementById ('ff'+n);
		if (fr3.style.display=="block"){fr3.style.display="none";} else {fr3.style.display="block";}
	}
	
	function addthiss(idbox){
		document.write("<div class='addis"+idbox+" addthis_toolbox addthis_"+idbox+"x"+idbox+"_style addthis_default_style'>");
		document.write("<a class='addthis_button_favorites'></a>");
		document.write("<a class='addthis_button_facebook'></a>");
		document.write("<a class='addthis_button_twitter'></a>");
		document.write("<a class='addthis_button_myspace'></a>");
		document.write("<a class='addthis_button_google'></a>");
		document.write("<a class='addthis_button_blogger'></a>");
		document.write("<a class='addthis_button_delicious'></a>");
		document.write("<a class='addthis_button_reddit'></a>");
		document.write("<a class='addthis_button_digg'></a>");
		document.write("<a class='addthis_button_bebo'></a>");
		document.write("<a class='addthis_button_email'></a>");
		document.write("<script type='text/javascript' src='http://s7.addthis.com/js/250/addthis_widget.js#username=YOUR-ACCOUNT-ID'></script>");
		document.write("</div>");
	}
		
	function footer(){
		document.write("<p>mirafoot.com &#169; Sports and Entertainments&#9474;<a href=http://www.mirafoot.com/terms>Terms and Conditions</a>&#9474;<a href=http://www.mirafoot.com/privacy>Privacy Policy</a>&#9474;<a href=http://www.mirafoot.com/contact>info@mirafoot.com</a></p>");
		document.write("<center><img align='top' src='http://www.mirafoot.com/png/twitter.png' alt=''><a href='http://www.twitter.com/mirafoot' target='_blank'>Twitter</a><img style='margin-left:20px;' align='top' src='http://www.mirafoot.com/png/facebook.png' alt=''><a href='http://www.facebook.com/mirafootcom' target='_blank'>Facebook</a></center>");
	}
	
