<!--
// Copyrights web-site-manager.fr / Web Manager GC 3.0
// Contact : contact@web-site-manager.fr
// Author : G. Cardon
// 

// Fonctions de vérif formulaires
function checkformradio(zeform) {
 var el = zeform.elements;
 for(var i = 0 ; i < el.length ; ++i) {
  if(el[i].type == "radio") {
   var radiogroup = el[el[i].name]; // get the whole set of radio buttons.
   var itemchecked = false;
   for(var j = 0 ; j < radiogroup.length ; ++j) {
    if(radiogroup[j].checked) {
	 return true;
	 break;
	}
   }
   if(!itemchecked) { 
		return false;
   }
  }
 }
 return true;
}

// Suppression de clicks faciles
function noclick(){
	return false;
}

// Vérif formulaire
function check_email(chaine) {
	var longeurChaine = chaine.length;
	var posAt;
	var posPoint;			
	var i;
	var resValid;			
		

	if (longeurChaine < 6)	
		return false;
	else
		posAt = chaine.indexOf("@");
		if (posAt < 1)	
			return false;
		else
			if (chaine.indexOf("@",posAt+1) != -1)
				return false;
			else
				if (chaine.indexOf("..") != -1)
					return false
				else
					if (chaine.indexOf(".") < 1)
						return false;

					else
						posPoint = chaine.indexOf(".",posAt+1);
						if (!(posPoint > posAt+1) || (chaine.substr(longeurChaine-1,1) == ".") ||
							(chaine.substr(posAt-1,1) == "."))
							return false;
						else
							return true;
}
function popupcentree(height,width,theUrl,theOptions) {
	var winHeight=Math.ceil((screen.availHeight-height)/2);
	var winWidth=Math.ceil((screen.availWidth-width)/2);
	window.open(theUrl,'tabform','height='+height+',width='+width+',left='+winWidth+',top='+winHeight+','+theOptions);
}
// Fonction insertion Flash (!!!) Fais chier MS
function flashMSnuke(filename,width,height){
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
			'width', width,
			'height', height,
			'src', filename,
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'exactfit',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', filename,
			'bgcolor', '#ffffff',
			'name', filename,
			'menu', 'true',
			'allowScriptAccess','sameDomain',
			'movie', filename,
			'salign', ''
			); //end AC code
}
//-->