// JavaScript Document

//Field onfocus handling 
function clean(thefield){ //Any input textfield onfocus cleanup
		if(thefield.defaultValue==thefield.value) {
		thefield.value = "";
		}
	}

function fill(thefield){ //Any input textfield onfocus fill with its default value
    if (thefield.value == "")
	thefield.value=thefield.defaultValue
	}
	
	
function showfield(thefield){ //Change textfield into Password hiding css
		    if(document.getElementById('passwordreal').value==''){
			document.getElementById("real").style.display='none'; 
			document.getElementById("fake").style.display='';
	}
}
	
function hidefield(thefield){ //Change Password into Textfield in case they are empty
		    document.getElementById("fake").style.display='none'; 
			document.getElementById("real").style.display='';
			document.getElementById('passwordreal').focus();

}

