function Change() {
	url2load = document.getElementById('comboProduits').options[document.getElementById('comboProduits').selectedIndex].value;
	window.location = url2load;
}

function aff_fleches(marque,date,note,prix) {
document.getElementById('nom_gif').src="http://"+srv_img+"."+ndd_site+"/images/fleches/"+marque+".gif";
document.getElementById('date_gif').src="http://"+srv_img+"."+ndd_site+"/images/fleches/"+date+".gif";
document.getElementById('note_gif').src="http://"+srv_img+"."+ndd_site+"/images/fleches/"+note+".gif";
document.getElementById('prix_gif').src="http://"+srv_img+"."+ndd_site+"/images/fleches/"+prix+".gif";
}


function prod(id_marque, id_model, id_produit, nom_marque, nom_modele, note, mrprix_prix, mrprix_monnaie,  mrprix_lien,mrprix_lien_txt, mrprix_rech_lien, mrprix_rech_txt, prix_conseille, date_maj,id_photo_comparo,id_article,id_type,publi_f2f){
	this.id_marque = id_marque;
	this.id_model = id_model;
	this.id_produit = id_produit;
	this.nom_marque = nom_marque;
	this.nom_modele= nom_modele;
	this.note = note;
	this.mrprix_prix = mrprix_prix;
	this.mrprix_monnaie = mrprix_monnaie;
	this.mrprix_lien = mrprix_lien;
	this.mrprix_lien_txt = mrprix_lien_txt;
	this.mrprix_rech_lien = mrprix_rech_lien;
	this.mrprix_rech_txt = mrprix_rech_txt;
	this.prix_conseille = prix_conseille,
	this.date_maj = date_maj;
	this.id_photo_comparo = id_photo_comparo;
	this.id_article = id_article;
	this.id_type = id_type;
	this.publi_f2f = publi_f2f;
}

// function prod(id_marque,nom, note, mrprix_prix, mrprix_monnaie, prix_lien, prix_txt, prix_conseille, date_maj, lien, img_photo){
	// this.id_marque = id_marque;
	// this.nom = nom; // str nom str modele du produit
	// this.note = note;
	// this.mrprix_prix = mrprix_prix;
	// this.mrprix_monnaie = mrprix_monnaie;	
	// this.prix_lien = prix_lien; //lien mrprix ou rech en php
	// this.prix_txt = prix_txt; //txt mrprix ou rech en php	
	// this.prix_conseille = prix_conseille,
	// this.date_maj = date_maj;
	// this.lien = lien; // lien article ou f2f en dur
	// this.img_photo = img_photo; source de l'image
// }

/*/
	this.id_marque = id_marque;
	this.nom = // str nom str modele du produit
	this.note = note;
	this.mrprix_prix = mrprix_prix;
	this.mrprix_monnaie = mrprix_monnaie;
	
	this.prix_lien = lien mrprix ou rech en php
	this.prix_txt = txt mrprix ou rech en php
	
	this.prix_conseille = prix_conseille,
	this.date_maj = date_maj;
	this.lien // lien article ou f2f en dur
	this.img_photo = source de l'image


*/
			
var tab = new Array();
var tab_general = new Array();
var type_tri ='sortByMarqueAsc';

function tri(triage){
	switch(triage){
	case 'sortByMarqueAsc' : type_tri ='sortByMarqueAsc'; aff_fleches(1,0,0,0); break;
	case 'sortByMarqueDesc' : type_tri ='sortByMarqueDesc';aff_fleches(2,0,0,0); break;
	case 'sortByDateAsc' : type_tri ='sortByDateAsc'; aff_fleches(0,1,0,0); break;
	case 'sortByDateDesc' : type_tri ='sortByDateDesc';aff_fleches(0,2,0,0); break;
	case 'sortByNoteAsc' : type_tri ='sortByNoteAsc';aff_fleches(0,0,1,0); break;
	case 'sortByNoteDesc' : type_tri ='sortByNoteDesc'; aff_fleches(0,0,2,0); break;
	case 'sortByPrixAsc' : type_tri ='sortByPrixAsc'; aff_fleches(0,0,0,1); break;
	case 'sortByPrixDesc' : type_tri ='sortByPrixDesc'; aff_fleches(0,0,0,2); break;
	}		
}