/* wrongPassword - informs user they have typed in the wrong username or password to log in to uk distribute*/
function wrongPassword(){
	alert("You have typed in the wrong Username or Password.  Please try again.");
}

function simpleCheck(form) {
var a = form.username.value;
var b = form.password.value;

    if(a == ""){
    	alert("Please enter your Username.");
 	}else if(b == "") { 
   		alert("Please enter your Password."); 
  	}else{
      	form.method="post";
      	form.target="_self";
      	form.action="/ukdistribute.Login?fromLL=no&fromCir=no";
      	form.submit();
  	}
}

function simpleCheck2(form2) {
var c = form2.userName2.value;

    if(c == ""){
    	alert("Please enter your Username to get your password.");
  	}else{
      	form2.method="post";
      	form2.target="_self";
      	form2.action="getPassword.jsp";
      	form2.submit();
  	}
}

/* a general error alert message*/
function anAlertClose(theAlert){
	alert(theAlert);
	window.close();
	
}

/* a general error alert message*/
function aMessage(theAlert){
	alert(theAlert);
	
}

/* opens new window to show detailed/exception reports */		
function getPassword() {
	dayWindow=window.open('https://secure.ukdistribute.com/getPassword.html', 'newWinPassword','width=445,height=115,scrollbars=yes,left=450,top=225')
	dayWindow.focus();
}
