
	function replaceInput(oldInput,typetype){  
		var newInput=document.createElement('input');
		if (typetype == 1) {
			newInput.setAttribute('type','text');
		} else {
			newInput.setAttribute('type','password');
		}
		newInput.setAttribute('name',oldInput.getAttribute('name'));
		oldInput.parentNode.replaceChild(newInput,oldInput);
		newInput.focus();
	}
	
	function SetPassword() {
		if (document.getElementById('txtpass').getAttribute('type') == "password") {

		} else {
			if (document.getElementById('txtpass').getAttribute('value') == "") {
				document.getElementById('txtpass').setAttribute('value','Password');
			} else {
				replaceInput(document.getElementById('txtpass'),0);
			}
		}
	}

	function SetUser() {
		if (document.getElementById('txtuser').getAttribute('value') == "Username") {
			document.getElementById('txtuser').setAttribute('value','');
		} else if (document.getElementById('txtuser').getAttribute('value') == "") {
			document.getElementById('txtuser').setAttribute('value','Username');
		}
	}


