alert(document.getElementById('type').value);