// JavaScript Document


function gotoURL(url){
	window.open(url);
}


function Recherche(Form, lg, libelle)
{
	var mot = Form.motcle.value; 
	if (mot == "") {
		mot = "all";
		document.getElementById("search").value = mot;
	}

//url = "resultat_recherche"+ lg +".asp?mot=" + mot + "&height=500&width=650";
	//return false;
}

function ListeProduits(lg, libelle)
{
	url = "search"+ lg +".asp?mot=all&height=500&width=650";  
	tb_show('Rousseau - ' + libelle,url,false);
}

function ChangeSelect(val, lg, libelle)
{
	if(val !="#")
	{
		url = "fiche"+ lg +".asp?single=true&id=" + val + "&height=660&width=650";  
		tb_show('Rousseau - ' + libelle ,url,false);
	}
}

function goToInterlocuteurs(lg)
{
	url = "interlocuteurs"+ lg +".asp?height=500&width=650";  
	tb_show('Rousseau' ,url,false);
}

function gotopdf(libelle)
{
	if(libelle != "" && libelle != "#"){
		url = "images/" + libelle;  
		window.open(url);
	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function SubmitReg()
{
document.form1.formdept.selectedIndex = -1;  
document.form1.formville.selectedIndex = -1;
document.form1.submit();
}
function SubmitDept()
{
document.form1.formville.selectedIndex = -1;
document.form1.submit();
}
function SubmitVille()
{
document.form1.submit();
}


function Annonces(){
	document.getElementById("recherche_occasion").submit();
}
