function veriflogin()
{
	document.getElementById("formlogin").submit(); 
}



function heavyFullLauncher(url, name) {
        var windowName = (name == "heavy_TV") ? name : "marmits";

        var winH;
        var winW;
        var wComp;
        var hComp;

        if (navigator.appName == 'Microsoft Internet Explorer' && (navigator.platform.substring(0,3) == 'Win')) {
                wComp=10;
                hComp=57;
        }
        else if (navigator.appName == 'Netscape' && navigator.platform.substring(0,3) == 'Win') {
                wComp=12;
                hComp=59;;
        }
        else if (navigator.platform == 'MacPPC' && navigator.appName == 'Netscape'){
                wComp=13;
                // extra 18 px for net on mac (don't know why?? but works)
                hComp=49;
        }
        else {
                wComp=13;
                hComp=31;               
        }

        winW=screen.width-wComp;
        winH=screen.height-hComp;

        finalFeature="left=0,top=0,width=" + winW + ",height=" + winH + ",scrollbars=no";
        full=window.open(url,windowName,finalFeature);
        full.focus();

        if(navigator.platform.indexOf("MacPPC")!=-1 && navigator.appName.indexOf('Microsoft')!=-1)
        {
                full.resizeTo(winW,winH);
        }
}

function VerificationEmail(email)
{
	
	if ((email.indexOf("@")>=0)&&(email.indexOf(".")>=0)) {
         return true
      } else {
         
         return false
      }
}

function verif_email()
{
	
var from = document.getElementById("qui").value;	
var corps = document.getElementById("corps").value;	
//var nom = document.getElementById("nom").value;	

	if((from != "") && (corps != "") )
	{
		if(VerificationEmail(from) == true)
		{
		document.getElementById("formmail").submit(); 
		}
		else
		{
			alert("Email invalide!");
		}
	}
	else
	{
		alert("votre adresse, votre nom ou votre message sont vides !");
	}	
}

function submit_edittemoignage()
{
	

document.getElementById("edittemoignage").submit(); 
		
}

function submit_editinscrrit()
{
	

document.getElementById("editinscrit").submit(); 
		
}

function submit_deltemoignage(val)
{
	
	if (confirm("Voulez vous supprmez ce témoignage ?"))
	{
	document.getElementById("delete").value = "yes";	
	document.getElementById("edittemoignage").submit(); 
	
	}
	

		
}

function subform()
{
document.editform.submit(); 
}

function goUrl(page)
{
document.location.href = page;
}

function goUrlParent(page)
{
parent.document.location.href = page;
}

function GetId(id)
{
return document.getElementById(id);
}



//infobulle
var i=false; 
function move(e)
{
				if(i) {  
				    if (navigator.appName!="Microsoft Internet Explorer") {
				    GetId("curseur").style.left=e.pageX + 5+"px";
				    GetId("curseur").style.top=e.pageY + 10+"px";
				    }
				    else {
				    if(document.documentElement.clientWidth>0) {
				        GetId("curseur").style.left=20+event.x+document.documentElement.scrollLeft+"px";
				        GetId("curseur").style.top=10+event.y+document.documentElement.scrollTop+"px";
				    }
				    else {
				        GetId("curseur").style.left=20+event.x+document.body.scrollLeft+"px";
				        GetId("curseur").style.top=10+event.y+document.body.scrollTop+"px";
				    }
				    }
				  }
}

function montre(text) 
{
	 if(i==false) {
	 GetId("curseur").style.visibility="visible"; 
	GetId("curseur").innerHTML = text; 
	i=true;
	}
}
function cache() {
	if(i==true) {
	GetId("curseur").style.visibility="hidden"; 
	i=false;
	}
}
document.onmousemove=move;
//infobulle




