function check()
{

var s=document.car_tech;
/*
mileage value can keep as optional one
if(s.mileage.value=="")
{
alert("Please Enter the mileage");
s.mileage.focus();
return false;
}*/

if(s.fuel_type.selectedIndex==0)
{
alert("Please select  the fuel type");
s.fuel_type.focus();
return false;
}
if(s.body_type_id.selectedIndex==0)
{
alert("Please select  the body type");
s.body_type_id.focus();
return false;
}
if(s.doors.selectedIndex==0)
{
alert("Please select  the Doors");
s.doors.focus();
return false;
}
if(s.seat_capacity.selectedIndex==0)
{
alert("Please select  the Seat Capacity");
s.seat_capacity.focus();
return false;
}

if(true)
{
answer = confirm("Are you sure you want to go ahead?") 
if(answer==0)
return false;
}

return true; 
}
