function checkLogin(form){
  if(form.dealerid.value=='' ){
     alert("Please enter your ID.");
     form.dealerid.focus(); 
     return false;
  }
  if (form.dealerpasswd.value==''){
     alert("Please enter your password.");
     form.dealerpasswd.focus(); 
     return false;
  }
  return true
}

function click() {
	if(event.button==2) {
	alert("Enter your ID/PASSWORD\nand press LOGIN");
	document.login.dealerid.focus();
	}
}
document.onmousedown=click
