Here is a simple example:
<form id="form1" name="form1" method="post" action="" onsubmit="
if(document.getElementById('select').options[document.getElementById('select').selectedIndex].value == -1) alert('test');">
You will just need to update 'select' with your select id.