function book_now(t1,t2,t3,t4,t5){
       window.location.href = "http://www.autocar-hire.com/bookingform.php?coll_date=" + t1 + "&drop_date=" + t2 + "&collection_place=" + t3 + "&group=" + t4;

 }

function bookmarksite(title,url){
if (window.sidebar) // firefox
        window.sidebar.addPanel(title, url, "");
else if(window.opera){ // opera
        var elem = document.createElement('a');
        elem.setAttribute('href',url);
        elem.setAttribute('title',title);
        elem.setAttribute('rel','sidebar');
        elem.click();
}
else if(document.all)// ie
        window.external.AddFavorite(url, title);
}

function validate_multiprice(){
        var mb = document.getElementById("datas").innerHTML;
        if(document.multiprice.coll_date.value == 'dd/mm/yyyy'){
        document.getElementById('msg').innerHTML='<font color=\"red\" size=\"2\"><b>All fields requiered...</b></font>';
        return false;
        }
        if(document.multiprice.drop_date.value == 'dd/mm/yyyy'){
        document.getElementById('msg').innerHTML='<font color=\"red\" size=\"2\"><b>All fields requiered...</b></font>';
        return false;
        }
        if(document.multiprice.collection_place.value == 'Collection place'){
        document.getElementById('msg').innerHTML='<font color=\"red\" size=\"2\"><b>All fields requiered...</b></font>';
        return false;
        }
        if(mb == 1){
        document.getElementById('msg').innerHTML='<font color=\"red\" size=\"2\"><b>Collection date must be greater than today...</b></font>';
        return false;
        }
        if(mb == 2){
        document.getElementById('msg').innerHTML='<font color=\"red\" size=\"2\"><b>Drop off date must be greater than collection date...</b>&nbsp;</font>';
        return false;
        }
        if(mb == 3){
        document.getElementById('msg').innerHTML='<font color=\"red\" size=\"2\"><b>Dates must be greater than today s date...</b></font>';
        return false;
        }
        if(mb == 4){
        document.getElementById('msg').innerHTML='<font color=\"red\" size=\"2\"><b>Car prices available only until 31-10-2012</b></font>';
        return false;
        }
        document.getElementById('msg').innerHTML='<font color=\"green\" size=\"2\"><b>Please wait...</b></font>'
        multi_price(document.multiprice.collection_date.value,document.multiprice.drop_of_date.value,document.multiprice.collection_place.value);
        return true;
}
function validate_multiprice1(){
        if(document.multiprice.coll_date.value != 'dd/mm/yyyy' && document.multiprice.drop_date.value != 'dd/mm/yyyy'){
        if(document.multiprice.collection_place.value == 'Collection place'){
        document.getElementById('msg').innerHTML='<font color=\"red\" size=\"2\">Please select Collection place...</font>';
        return false;
        }
        if(document.multiprice.coll_date.value != 'dd/mm/yyyy'){
        multi_price(document.multiprice.collection_date.value,document.multiprice.drop_of_date.value,document.multiprice.collection_place.value);
        }
        return true;
        }
}

function validate_index(){
        var mb = document.getElementById("datas").innerHTML;
        if(document.multiprice.coll_date.value == 'dd/mm/yyyy'){
        document.getElementById('msg').innerHTML='<font color=\"red\" size=\"2\">All fields requiered...<br />&nbsp;</font>';
        return false;
        }
        if(document.multiprice.drop_date.value == 'dd/mm/yyyy'){
        document.getElementById('msg').innerHTML='<font color=\"red\" size=\"2\">All fields requiered...<br />&nbsp;</font>';
        return false;
        }
        if(document.multiprice.collection_place.value == 'Collection place'){
        document.getElementById('msg').innerHTML='<font color=\"red\" size=\"2\">All fields requiered...<br />&nbsp;</font>';
        return false;
        }
        if(mb == 1){
        document.getElementById('msg').innerHTML='<font color=\"red\" size=\"2\">Collection date must be greater than today...<br />&nbsp;</font>';
        return false;
        }
        if(mb == 2){
        document.getElementById('msg').innerHTML='<font color=\"red\" size=\"2\">Drop off date must be greater than collection date...<br />&nbsp;</font>';
        return false;
        }
        if(mb == 3){
        document.getElementById('msg').innerHTML='<font color=\"red\" size=\"2\">Dates must be greater than today s date...<br />&nbsp;</font>';
        return false;
        }
        if(mb == 4){
        document.getElementById('msg').innerHTML='<font color=\"red\" size=\"2\">Car prices available only until 31-10-2011<br />&nbsp;</font>';
        return false;
        }
        document.getElementById('msg').innerHTML='<font color=\"green\" size=\"2\">Please wait...<br />&nbsp;</font>';
        return true;
}

function del_index(){
        document.getElementById('msg').innerHTML='* If your place is not on the list, select the nearest town to your place.';
        return true;
}

function del_index_pt_md(){
        document.getElementById('msg').innerHTML=' ';
        return true;
}

function hideValuea()
  {
  var x=document.getElementById("id1")
  x.innerHTML = ' ';
  }

function showValuea()
  {
  var x=document.getElementById("id1")
  x.innerHTML = "<b>Group. A,<br /> is equipped with:</b><br />4 Seats<br />5 Doors<br />Radio<br />Roof Rack cannot be fitted<br />Driver and Passager Air-Bag<br />Power Steering<br />Air Conditioning";
  }

function hideValueb()
  {
  var x=document.getElementById("id2")
  x.innerHTML = ' ';
  }

function showValueb()
  {
  var x=document.getElementById("id2")
  x.innerHTML = "<b>Group B,<br /> is equipped with:</b><br />5 Seats<br />5 Doors<br />Radio<br />Roof Rack cannot be fitted<br />Driver and Passager Air-Bag<br />Power Steering<br />Air Conditioning";
  }

function hideValuec()
  {
  var x=document.getElementById("id3")
  x.innerHTML = ' ';
  }

function showValuec()
  {
  var x=document.getElementById("id3")
  x.innerHTML = "<b>Group C,<br /> is equipped with:</b><br />Roof Rack cannot be fitted<br />Opel Corsa Roof Rack can be fitted<br />5 Seats<br />5 Doors<br />Radio<br />Driver and Passager Air-Bag<br />Power Steering<br />Air Conditioning";
  }

function hideValued()
  {
  var x=document.getElementById("id4")
  x.innerHTML = ' ';
  }

function showValued()
  {
  var x=document.getElementById("id4")
  x.innerHTML = "<b>Group D,<br /> is equipped with:</b><br />Roof Rack cannot be fitted<br />5 Seats<br />5 Doors<br />Radio<br />Driver and Passager Air-Bag<br />Power Steering<br />Air Conditioning<br />Diesel";
  }

function hideValuee()
  {
  var x=document.getElementById("id5")
  x.innerHTML = ' ';
  }

function showValuee()
  {
  var x=document.getElementById("id5")
  x.innerHTML = "<b>Group E,<br /> is equipped with:</b><br />5 Seats<br />5 Doors<br />Radio<br />Roof Rack cannot be fitted<br />Opel Astra - Roof Rack can be fitted<br />Driver and Passager Air-Bag<br />Power Steering<br />Air Conditioning";
  }

function hideValuee1()
  {
  var x=document.getElementById("id6")
  x.innerHTML = ' ';
  }

function showValuee1()
  {
  var x=document.getElementById("id6")
  x.innerHTML = "<b>Group E1,<br /> is equipped with:</b><br />Diesel<br />5 Seats<br />5 Doors<br />Radio<br />Roof Rack cannot be fitted<br />Driver and Passager Air-Bag<br />Power Steering<br />Air Conditioning";
  }

function hideValuef()
  {
  var x=document.getElementById("id7")
  x.innerHTML = ' ';
  }

function showValuef()
  {
  var x=document.getElementById("id7")
  x.innerHTML = "<b>Group F,<br /> is equipped with:</b><br />Diesel<br />9 Seats<br />4 Doors<br />Air-bag<br />Radio<br />Roof Rack cannot be fitted<br />Power Steering<br />Air Conditioning";
  }

function hideValueg()
  {
  var x=document.getElementById("id8")
  x.innerHTML = ' ';
  }

function showValueg()
  {
  var x=document.getElementById("id8")
  x.innerHTML = "<b>Group G, is equipped with:</b><br />5 Seats<br />5 Doors<br />Radio<br />Roof Rack cannot be fitted<br />Driver and Passager Air-Bag<br />Power Steering<br />Air Conditioning";
  }

function hideValueg1()
  {
  var x=document.getElementById("id9")
  x.innerHTML = ' ';
  }

function showValueg1()
  {
  var x=document.getElementById("id9")
  x.innerHTML = "<b>Group G1,<br />is equipped with:</b><br />Diesel<br />5 Seats<br />5 Doors<br />Radio<br />Roof Rack cannot be fitted<br />Driver and Passager Air-Bag<br />Power Steering<br />Air Conditioning";
  }

function hideValueh()
  {
  var x=document.getElementById("id10")
  x.innerHTML = ' ';
  }

function showValueh()
  {
  var x=document.getElementById("id10")
  x.innerHTML = "<b>Group H,<br />is equipped with:</b><br />Recomended for 2 peopal<br />Diesel<br />4 Seats<br />2 Doors<br />Radio<br />Roof Rack cannot be fitted<br />Driver and Passager Air-Bag<br />Power Steering<br />Air Conditioning";
  }

function hideValuei()
  {
  var x=document.getElementById("id11")
  x.innerHTML = ' ';
  }

function showValuei()
  {
  var x=document.getElementById("id11")
  x.innerHTML = "<b>Group I,<br />is equipped with:</b><br />5 Seats<br />5 Doors<br />Automatic<br />Air-bag<br />Radio<br />Roof Rack can be fitted<br />Power Steering<br />Air Conditioning";
  }

function hideValuej()
  {
  var x=document.getElementById("id12")
  x.innerHTML = ' ';
  }

function showValuej()
  {
  var x=document.getElementById("id12")
  x.innerHTML = "<b>Group J,<br />is equipped with:</b><br />5 Seats<br />5 Doors<br />Roof Rack can be fitted<br />Air-bag<br />Radio<br />Automatic<br />Power Steering<br />Air Conditioning";
  }

function hideValuek()
  {
  var x=document.getElementById("id13")
  x.innerHTML = ' ';
  }

function showValuek()
  {
  var x=document.getElementById("id13")
  x.innerHTML = "<b>Group K,<br />is equipped with:</b><br />Diesel<br />5 Seats<br />5 Doors<br />Radio<br />Roof Rack cannot be fitted<br />Driver and Passager Air-Bag<br />ABS<br />Power Steering<br />Air Conditioning";
  }

function hideValuek1()
  {
  var x=document.getElementById("id14")
  x.innerHTML = ' ';
  }

function showValuek1()
  {
  var x=document.getElementById("id14")
  x.innerHTML = "<b>Group K1,<br />is equipped with:</b><br />Diesel<br />5 Seats<br />4 Doors<br />Radio<br />Roof Rack cannot be fitted<br />Driver and Passager Air-Bag<br />ABS<br />Power Steering<br />Air Conditioning";
  }

function hideValuek2()
  {
  var x=document.getElementById("id15")
  x.innerHTML = ' ';
  }

function showValuek2()
  {
  var x=document.getElementById("id15")
  x.innerHTML = "<b>Group K2,<br />is equipped with:</b><br />Diesel<br />4 Seats<br />2 Doors<br />Radio<br />Roof Rack cannot be fitted<br />Driver and Passager Air-Bag<br />ABS<br />Power Steering<br />Air Conditioning";
  }

function hideValuek3()
  {
  var x=document.getElementById("id16")
  x.innerHTML = ' ';
  }

function showValuek3()
  {
  var x=document.getElementById("id16")
  x.innerHTML = "<b>Group K3,<br />is equipped with:</b><br />Diesel<br />5 Seats<br />5 Doors<br />Radio<br />Roof Rack cannot be fitted<br />Driver and Passager Air-Bag<br />GPS<br />ABS<br />Power Steering<br />Air Conditioning";
  }

function hideValuel()
  {
  var x=document.getElementById("id17")
  x.innerHTML = ' ';
  }

function showValuel()
  {
  var x=document.getElementById("id17")
  x.innerHTML = "<b>Group L,<br />is equipped with:</b><br />Diesel<br />5 Seats<br />5 Doors<br />Radio<br />Roof Rack cannot be fitted<br />Driver and Passager Air-Bag<br />ABS<br />Automatic<br />Power Steering<br />Air Conditioning";
  }

function hideValuem()
  {
  var x=document.getElementById("id18")
  x.innerHTML = ' ';
  }

function showValuem()
  {
  var x=document.getElementById("id18")
  x.innerHTML = "<b>Group M,<br />is equipped with:</b><br />Diesel<br />7 seats<br />5 Doors<br />Radio<br />Roof Rack cannot be fitted<br />Driver and Passager Air-Bag<br />ABS<br />Power Steering<br />Air Conditioning";
  }

function hideValuem1()
  {
  var x=document.getElementById("id19")
  x.innerHTML = ' ';
  }

function showValuem1()
  {
  var x=document.getElementById("id19")
  x.innerHTML = "<b>Group M1,<br />is equipped with:</b><br />Diesel<br />7 seats<br />5 Doors<br />Radio<br />Roof Rack cannot be fitted<br />Driver and Passager Air-Bag<br />GPS<br />ABS<br />Power Steering<br />Air Conditioning";
  }

function hideValuen()
  {
  var x=document.getElementById("id20")
  x.innerHTML = ' ';
  }

function showValuen()
  {
  var x=document.getElementById("id20")
  x.innerHTML = "<b>Group N,<br />is equipped with:</b><br />Diesel<br />4 Seats<br />2 Doors<br />Radio<br />Roof Rack cannot be fitted<br />Sun Roof<br />Power Steering<br />Air Conditioning";
  }

function hideValuev()
  {
  var x=document.getElementById("id21")
  x.innerHTML = ' ';
  }

function showValuev()
  {
  var x=document.getElementById("id21")
  x.innerHTML = "<b>Group V,<br />is equipped with:</b><br />Diesel<br />9 Seats<br />4 Doors<br />Radio<br />Roof Rack cannot be fitted<br />Driver and Passager Air-Bag<br />ABS<br />Power Steering<br />Air Conditioning";
  }

function hideValuex()
  {
  var x=document.getElementById("id22")
  x.innerHTML = ' ';
  }

function showValuex()
  {
  var x=document.getElementById("id22")
  x.innerHTML = "<b>Group X,<br />is equipped with:</b><br />Automatic on Request<br />Diesel<br />5 Seats<br />4 Doors<br />Radio<br />Roof Rack cannot be fitted<br />Driver and Passager Air-Bag<br />GPS<br />ABS<br />Power Steering<br />Air Conditioning";
  }
