function _Elem(ID){ return document.getElementById(ID); } 
function displayTmpIframe(name,target,display){ tmpFrame = ''; tmpFrame += '<iframe id="f'+name+'" name="'+name+'" style="width:80%;height:150px;border:1px blue solid;display:'+display+';">'; tmpFrame += '</iframe>'; document.getElementById(target).innerHTML=tmpFrame; } 
function _IE(){ 	isIEdoctype = navigator.appName == "Microsoft Internet Explorer" && document.documentElement && navigator.userAgent.indexOf ("Opera") == -1; 	return isIEdoctype; } 
function focus_field(field,defaultBgColor, defaultColor){		var BgColor = (defaultBgColor!=null)? defaultBgColor : 'red';	var PgColor = (defaultColor!=null)? defaultColor : 'white';		_Elem(field).style.background = BgColor;	_Elem(field).style.color = PgColor;	_Elem(field).focus();}
function unfocus_field(field){	_Elem(field).style.color = 'black';	_Elem(field).style.background = 'white';} 
function verif_email(email) { 	adresse = email; 	taille = email.length;  	validelog = false; 	validedom = false; 	valideext = false;  	arob = adresse.lastIndexOf("@"); 	login = adresse.substring(0,arob);  	pointfinal = adresse.lastIndexOf("."); 	extension = adresse.substring(pointfinal,taille);  	domaine = adresse.substring(arob+1,pointfinal);  	var Alerte = "";  	if ( login.length > 2 )   	{  		validelog = true;  	}  	else   	{  		Alerte += "\n"+_textAlert['LoginNonValide'];  validelog = false;  	}   	if ( domaine.length > 1 )   	{  		validedom = true;  	}  	else   	{  		Alerte += "\n"+_textAlert['DomaineNonValide'];  		validelog = false;  	}   		if ( pointfinal > -1 && (extension.length == 3 || extension.length == 4) )   	{  		valideext = true;  	}  	else   	{  		Alerte += "\n"+_textAlert['ExtensionNonValide'];  		valideext = false;  	}   		if ( validelog == true && validedom == true && valideext == true ) 	{  		return true;  	}  	else   	{  		alert(_textAlert['EmailNonValide']+Alerte+"\n"+_textAlert['MerciEmail']);  		return false;  	} } 
if (typeof Maintool == 'undefined') { Maintool = function() {}; }
Maintool.include = function(strSrc) {  	document.write('<s' + 'cript type="text/javascript" src="' + strSrc +  '"></s' + 'cript>');	}; 
Maintool.baseUrl = function() { url='http://monsite.7ideal.com/'; return url;  };

