function hideText(id){
   var el = document.getElementById(id);
   
   if(id == "mod_login_password" && el.value != "Password")
   {
	el.type = "password";
   }
  if(el.value == "Password")
  {
	  var input = el;
      var input2 = input.cloneNode(false);
      input2.type = 'password';
	  input2.value = "";
      input.parentNode.replaceChild(input2,input);
	  input.focus();
  }
  else if(el.value == "Username")
  {
	el.value = "";
  }
}

function showText(id, txt){
   var el = document.getElementById(id);
   
   if(id == "mod_login_password")
   {
    //alert("VALUE:" + el.value);
	if(el.value == "")
	{
	  //alert("1st If");
      var inp2 = el.cloneNode(false);
      inp2.type = 'text';
	  inp2.value = "Password";
      el.parentNode.replaceChild(inp2,el);
	  el.focus();
	  //el.value = "Password";
		//el.type = "text";
	}
	else
	{
		//alert("2st If");
		var input = el;
        var input2 = input.cloneNode(false);
        input2.type = 'password';
        input.parentNode.replaceChild(input2,input);
	}
   }
   if(el.value == "")
   {
	el.value = txt;
   }
   else{}
}

window.onload = function () {
  if(document.getElementById("mod_login_username") != null){
	document.getElementById("mod_login_username").value = "Username";
  }
  if(document.getElementById("mod_login_password") != null){
	document.getElementById("mod_login_password").value = "Password";
  }
}