Function LookUpVIN()
{
    var MyAction = 'vehhistresults3.asp?process=LU&email=';
    MyAction += document.vehist.txtemail.value + '&VIN=' + document.vehist.txtVIN.value;
    var MyMsg = ''
    if( document.vehist.txtemail.value == '') {
        MyMsg = '-Must supply email address!';
    }
    if (document.vehist.txtVIN.value == '') {
        MyMsg += '-Must supply VIN!';
       }
    if(MyMsg !='') {
        alert(MyMsg);
        document.vehist.action = 'vehhist.asp'
        document.vehist.submit();
    }
    if (MyMsg == '') {
        document.vehist.action = MyAction;
        document.vehist.submit();
    }
}
</script>
