Try this:
var newUrl = document.getElementById('test').getAttribute('car');
EDIT
For the , you have to look into the selected element, not the itself:
var select = document.getElementById('test');
select.options[select.selectedIndex].getAttribute('car');