function ChangeUrl(formulaire)
{
 if (formulaire.ListeUrl.selectedIndex != 0)
  {
   location.href = formulaire.ListeUrl.options[formulaire.ListeUrl.selectedIndex].value;
  }
 else 
  {
   alert('Veuillez faire un choix.');
  }
}

function ChangeUrl2(sel)
{
 if (sel.selectedIndex != 0)
 {
  // location.href = "http://www.annonces-du-net.com" + sel.value;
  location.href = sel.value;
 }
}


function aff_pa(v_url) { v_param = "location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=no,height=600,width=700,status=no"; hWnd=window.open(v_url,"Hwnd",v_param);hWnd.focus();}

//Mixad

	sIdent = "";


function pop_compte(url_redirect){	

	strURL = "http://moncompte.mixad.com";
	if (sIdent != "") strURL += "?" + sIdent;
	strName = "votre_compte";
	strConfig = "location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width=850,height=550,status=yes";
	
	//*********************************************************//
	//***** Appel de la popUp compte **************************//
	//*********************************************************//
	
	popCompte = window.open (strURL,strName,strConfig);
}

function pop_caddie(){

	strURL ="http://moncompte.mixad.com" + "?blocnotes=1";
	if (sIdent != "") strURL += "&" + sIdent;
	strName = "votre_compte";
	strConfig = "location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width=850,height=550,status=yes";
	
	//*********************************************************//
	//***** Appel de la popup Caddie **************************//
	//*********************************************************//
	
	popCompte = window.open (strURL,strName,strConfig);
}



function pop_pass(pseudo_pass){

	strURL = "http://perso.mixad.com/system/adhesion/adhesion_send_loginpass.asp?pseudo=" + pseudo_pass ;
	strName = "votre_compte";
	strConfig = "location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width=280,height=260,status=yes";
	
	//*********************************************************//
	//***** Appel de la popup SendLogin ***********************//
	//*********************************************************//
	
	window.open (strURL,strName,strConfig);

}


function pop_servicestiers(url_servicestiers){
	strURL = "http://perso.mixad.com" + url_servicestiers;
	
	if (url_servicestiers.indexOf('espotting_services.asp') > 0 )
	{
		window.open(strURL);
	}
	else
	{
		
		strName = "servicestiers";
		strConfig = "location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=650,status=yes";
		
		//*********************************************************//
		//***** Appel de la popup Services Tiers ******************//
		//*********************************************************//
		
		popServicesTiers = window.open (strURL,strName,strConfig);
	}
}

	
function pop_servicestiers_config(url_servicestiers,largeur,hauteur){
	
	strURL = "http://perso.mixad.com" + url_servicestiers;
	strName = "servicestiers";
	strConfig = "location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width="+largeur+",height="+hauteur+",status=yes";
		
	//*********************************************************//
	//***** Appel de la popup Services Tiers config ***********//
	//*********************************************************//
		
	popServicesTiers = window.open (strURL,strName,strConfig);
}

function pop_MentionsLegales(){
	
	strURL = "http://perso.mixad.com/system/MentionsLegales.asp";
	strName = "mentionslegales";
	strConfig = "location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=250,status=yes";
	
	//*********************************************************//
	//***** Appel de la popup Mentions Légales ****************//
	//*********************************************************//
	
	popMentionsLegales = window.open (strURL,strName,strConfig);
}

function help_win(page, w, h, resize)
{
var x=(window.screen.availWidth - w)/2;
var y=(window.screen.availHeight- h)/2;
var opt_resize = '';
if (resize) opt_resize = ',resizable=yes,scrollbars=yes';
var Win=window.open(page,'aide','width=' + w + ',height=' + h + ',screenX=' + x + ',screenY=' + y + ',top=' + y + ',left=' + x + opt_resize);

if (Win.opener == null) {
	Win.opener = window;
}
Win.focus();
}

function favoris()
{
 if (navigator.userAgent.indexOf('Mac') != -1) {
  alert('Appuyer sur Pomme + D');
 }
 else if (window.external) {
  external.AddFavorite('http://www.annonces-du-net.com/favoris.asp', 'Annonces du net')
 }
 else {
  alert('Appuyer sur Ctrl + D');
 }
}