// JavaScript Document
function change_photo(url_photo,nom_photo) {
	document.images[nom_photo].src="resizer.php?src="+url_photo+"&width=200&height=150";					
}

function affiche_photo(ref,place) {
	url_photo=document.images['photo_'+ref].src;
	parties=url_photo.split("_thumb");
	new_url_photo=parties[0]+parties[1];
	window.open("http://ns31183.ovh.net/~planeter/photo_vehicule.php?place="+place+"&ph="+new_url_photo+"&ref="+ref,'','width=640,height=600,menubar=no');
}

function affiche_photo_detail(ref,i,place) {
	url_photo=document.images['photo_'+ref+'_'+i].src;
	parties=url_photo.split("_thumb");
	new_url_photo=parties[0]+parties[1];
	window.open("http://ns31183.ovh.net/~planeter/photo_vehicule.php?details=1&place="+place+"&ph="+new_url_photo+"&ref="+ref,'','width=640,height=600,menubar=no');
}

function affiche_detail(ref) {
	window.open("http://ns31183.ovh.net/~planeter/detail_vehicule.php?ref="+ref,'','resizable=yes,scrollbars=yes,width=680,height=430');
}

function affiche_detail_broadcar(ref,url) {
	window.open(url+"detail_vehicule.php?ref="+ref,'','resizable=yes,scrollbars=yes,width=680,height=430');
}

function impression_detail(ref) {
	window.open("http://ns31183.ovh.net/~planeter/impression_vehicule.php?ref="+ref,'','resizable=yes,scrollbars=yes,width=680,height=430');
}

function envoi_par_mail(ref) {
	window.open('http://ns31183.ovh.net/~planeter/envoi_par_mail.php?ref='+ref,'','resizable=yes,scrollbars=yes,width=400,height=430');
}


