// JavaScript Document function searchMain() { switch(parseInt($F('filter1'))) { case 1: document.getElementById('cell_filter2').innerHTML = ''; document.getElementById('cell_filter3').innerHTML = ''; document.getElementById('cell_filter4').innerHTML = ''; break; case 2: document.getElementById('cell_filter2').innerHTML = ''; document.getElementById('cell_filter3').innerHTML = ''; document.getElementById('cell_filter4').innerHTML = ''; break; case 3: document.getElementById('cell_filter2').innerHTML = ''; document.getElementById('cell_filter3').innerHTML = ''; document.getElementById('cell_filter4').innerHTML = ''; break; case 4: document.getElementById('cell_filter2').innerHTML = ''; document.getElementById('cell_filter3').innerHTML = ''; document.getElementById('cell_filter4').innerHTML = ''; break; case 5: document.getElementById('cell_filter2').innerHTML = ''; document.getElementById('cell_filter3').innerHTML = ''; document.getElementById('cell_filter4').innerHTML = ''; break; } } function searchMTB(){ switch(parseInt($F('filter2'))) { case 1: document.getElementById('cell_filter3').innerHTML = ''; document.getElementById('cell_filter4').innerHTML = ''; break; case 2: document.getElementById('cell_filter3').innerHTML = ''; document.getElementById('cell_filter4').innerHTML = ''; break; } } function searchMTB2(){ switch(parseInt($F('filter3'))) { case 1: window.location.href = "cat_mtb.php?series_id=1"; break; case 2: window.location.href = "cat_mtb.php?series_id=2"; break; case 3: window.location.href = "cat_mtb.php?series_id=3"; break; } } function searchMTB3(){ switch(parseInt($F('filter3'))) { case 1: window.location.href = "cat_mtb.php?series_id=4"; break; case 2: document.getElementById('cell_filter4').innerHTML = ''; break; } } function searchMTB4(){ val = parseInt($F('filter4')); if (val > 0) window.location.href = "cat_mtb.php?series_id="+val; } function searchRoad(){ switch(parseInt($F('filter2'))) { case 1: window.location.href = "cat_road.php?series_id=1"; break; case 2: window.location.href = "cat_road.php?series_id=2"; break; } } function searchUrban(){ switch(parseInt($F('filter2'))) { case 1: window.location.href = "cat_city.php?series_id=1"; break; case 2: window.location.href = "cat_city.php?series_id=2"; break; case 3: window.location.href = "cat_city.php?series_id=3"; break; case 4: window.location.href = "cat_city.php?series_id=4"; break; } } function searchYouth(){ switch(parseInt($F('filter2'))) { case 1: window.location.href = "cat_youth.php?series_id=1"; break; case 2: window.location.href = "cat_youth.php?series_id=2"; break; case 3: window.location.href = "cat_youth.php?series_id=3"; break; case 4: window.location.href = "cat_youth.php?series_id=4"; break; case 5: window.location.href = "cat_youth.php?series_id=5"; break; } } function searchFreestyle(){ switch(parseInt($F('filter2'))) { case 1: window.location.href = "cat_freestyle.php?series_id=1"; break; case 2: window.location.href = "cat_freestyle.php?series_id=2"; break; } }