	function replace()
	{  
		document.body.innerHTML=document.body.innerHTML.replace('Wind/N/A.gif\"> ','Wind/N/A.gif\">')
	} 

	function OpenHelp(source) {
		HelpWindow = window.open(source,'Help','width=800,height=570,resizable=yes,scrollbars=yes,alwaysRaised=yes');
		HelpWindow.focus();
	}
	function DeleteUser(url) {
		if (confirm("Are you sure you want to delete this user?")) {
			location.href=url;
		} 
	}
	function DeleteObject(url, name) {
		if (confirm("Are you sure you want to delete " + name + "?")) {
			location.href=url;
		} 
	}

	function ResetPassword(url) {
		if (confirm("Are you sure you want to reset the password for this user?")) {
			location.href=url;
		} 
	}
	
	function ValidateEmail(){
		if (confirm("Are you sure you want to send an email to every single user?")) {
			return true;
		} else {
			return false;
		}
	}	
	
	function CheckNewUser() {
		if (document.Register.Name.value == "") {
			alert("You must fill in the Name field");
			return false;
		} else if (document.Register.UserName.value == "") {
			alert("You must fill in the User Name field");
			return false;
		} else if (document.Register.Email.value == "") {
			alert("You must fill in the Email field");
			return false;
		} else if (!(CheckPassword() )) {
			return false;
		} else {
			return true;
		}
	}
		
	function CheckAmendUser() {
		if (document.Register.Name.value == "") {
			alert("You must fill in the Name field");
			return false;
		} else if (document.Register.Email.value == "") {
			alert("You must fill in the Email field");
			return false;
		} else {
			return true;
		}
	}

	function CheckPassword() {
		if (document.Register.Password.value == "") {
			alert("You must fill in the Password field");
			return false;
		} else if (document.Register.ConfirmPassword.value == "") {
			alert("You must fill in the Confirm Password field");
			return false;
		} else if (document.Register.Password.value != document.Register.ConfirmPassword.value) {
			alert("The two passwords do not match");
			return false;
		} else {
			return true;
		}
	}
	
	function CheckNotEmpty(InputName) {
		if (document.all[InputName].value == "") {
			alert("You must enter a value in the field");
			return false;
		}
	}
