	function switchColor( id ) {
		
		dir = eval( 'document.reserv.' + id );
		
		if( dir.value == "" ) {
				dir.style.background="#C7045A";
				dir.style.color="#FFFFFF";
		} else {
				dir.style.color="#000000";
				 dir.style.background="#FFFFFF";
			}
	}

	function checkPwd( a,b ) {
		
		dir = eval( 'document.reserv.' + a );
		dir2 = eval( 'document.reserv.' + b );
	
		if( dir.value != dir2.value ) {
				dir.style.background="#FFa2A2";
				dir2.style.background="#FFa2A2";
		} else {
				 dir.style.background="#FFFFFF";
				 dir2.style.background="#FFFFFF";
			}
	}


	function ChangeUrlPart(formulaire, thisfield, field) {
		
		maskfield = field;			
		newfield = eval( field + '_check' );
		
		if( thisfield.options[thisfield.selectedIndex].value == "0" ) {
			window.document.getElementById( maskfield ).style.display = "inline";
			
			newfield = true;
			
	 	} else {

			if( thisfield.options[thisfield.selectedIndex].value == "PACKAGE ALLER-RETOUR NIGHT CLUB - 650 CHF" ) {
				window.document.getElementById( 're_time' ).style.display = "none";	
				window.document.getElementById( 're_time_bis' ).style.display = "inline";		
			} else {
				if( window.document.getElementById( 're_time' ) ) {
					window.document.getElementById( 're_time' ).style.display = "inline";	
					window.document.getElementById( 're_time_bis' ).style.display = "none";
				}		
			}
			
			newfield = false;
			window.document.getElementById( maskfield ).style.display = "none";
		}
	
	}
	

	function resetColor( id ) {
		dir = eval( 'document.reserv.' + id );
	  	dir.style.background="#FFFFFF";
	}


	function blockDate( date, id ) {
		
			//alert(date+'-'+id+'!!');
			go_d = eval( 'document.reserv.go_date' );
			gos = eval( 'document.reserv.go_to' );
			
			re_d = eval( 'document.reserv.re_date' );
			res = eval( 'document.reserv.re_to' );
			
			if( go_d.value == date && gos.selectedIndex == id) {
				go_d.style.background="#FFa2A2";	
			} else {
				go_d.style.background="#FFFFFF";	
			}
			
			if( re_d.value == date && res.selectedIndex == id ) {
				re_d.style.background="#FFa2A2";	
			} else {
				re_d.style.background="#FFFFFF";	
			}
			
			if( ( go_d.value == date && gos.selectedIndex == id ) || (re_d.value == date && res.selectedIndex == id) ) {
			
				//alert('Sorry, but we don\'t have availability for this day and destination.');
				return false;
			}
	}