function validateForm(){
	trueFalse = true;
	
	if(document.getElementById('uname').value == ''){
		alert('Please enter your username');
		trueFalse = false;
		document.getElementById('uname').focus();
	}else if(document.getElementById('pword').value == ''){
		alert('Please enter your password');
		trueFalse = false;
		document.getElementById('pword').focus();
	}/*else if(isUserValid(document.getElementById('uname').value,document.getElementById('pword').value,'auth') == false){
		alert('The username or password does not match our system\nPlease check the spelling and try again.');
		trueFalse = false;
		document.getElementById('pword').select();
		document.getElementById('pword').focus();
	}*/
	
	if(trueFalse){
		if(isUserValid(document.getElementById('uname').value,document.getElementById('pword').value) == 'jumpstart'){
			document.frmLogin.action = 'jumpdownloads.html?access';
		}else if(isUserValid(document.getElementById('uname').value,document.getElementById('pword').value) == 'plus'){
			document.frmLogin.action = 'plusdownloads.html?access';
		}else{
			alert('The username or password does not match our system\nPlease check the spelling and try again.');
			trueFalse = false;
			document.getElementById('pword').select();
			document.getElementById('pword').focus();
		}
	}
	
	
	return trueFalse;
}

function clearField(fieldID, defaultValue){
	if(document.getElementById(fieldID).value == defaultValue){
		document.getElementById(fieldID).value = '';
	}
}

function validatePageLoad(incoming){
	if(incoming == 'validate'){
		if(window.location.search.substring(1) == 'validate'){
			window.location = 'downloads.html?access';	
		}
	}else if(incoming == 'private'){
		if(window.location.search.substring(1) != 'access'){
			window.location = 'login.html';	
		}
	}
}