function inputText(id,text) {
	obj = document.getElementById(id);
	if (obj.value == text){
	obj.value = "";
	
	} 
	else if (obj.value == "") {
		obj.value = text;
	}
}

function inputPassword(id,text) {
	obj = document.getElementById(id);
	if (obj.value == text){
		obj.value = "";
//		obj.type = "password";
	} 
	else if (obj.value == "") {
		obj.value = text;
//		obj.type = "text";
	}
	
}

function replaceT(obj) {
	var newO=document.createElement('input');
	newO.setAttribute('type','password');
	newO.setAttribute('name',obj.getAttribute('name'));
	newO.setAttribute('class','logintext');
	obj.parentNode.replaceChild(newO,obj);
	newO.focus();
}


function changefield() {
		document.getElementById("pw").innerHTML = "<input id=\"password\" type=\"password\" name=\"password\"  class=\"logintext\" onblur=\"changefieldblur();\">";
		document.getElementById("password").value="";
	//	document.getElementById("password").focus();
}

function changefieldblur() {
		document.getElementById("pw").innerHTML = "<input id=\"password\" type=\"password\" name=\"password\"  class=\"logintext\" onfocus=\"changefield();\" onblur=\"changefieldblur();\"  />";
		document.getElementById("login").focus();
	}