// JavaScript Document

function checkloginDets(form){
			var allOK;
			allOK = true;
				  if ((form.username.value=="")||(form.password.value=="")){
						alert("You must enter a username and password");
						allOK = false;
					}
					
	  		if (allOK == true)
				return true;
	 		else
				return false;
					}	
          
          	
function CheckRePassword(form)
{if ((document.getElementById('PW').value=='')||(document.getElementById('PW2').value==''))
	{alert('You must enter a password and retype it into the second box');return false;}
	if ((document.getElementById('PW').value)!= (document.getElementById('PW2').value))
	{alert('Your passwords do not match.\nPlease try again');return false;}
}

function popUpSm1(URL) {
id=444;
eval("page" + id + " = window.open(URL, 'ImageViewer', 'toolbar=0,scrollbars=yes,location=No,statusbar=0,menubar=0,resizable=yes,height=300, width=300, left = 440,top = 287');");
}

function checkloginDets(form){
var allOK= true;
if ((form.username.value=="")||(form.password.value==""))
{alert("You must enter a username and password");allOK = false;}
if (allOK == true)
return true;
else 
return false;
}		

