 function clearUsername()
 {
  var username = document.form.username.value ;
  if (username == 'Pseudo ou email')
  {
  	document.form.username.value ="";
  }
  
 }
 
  function clearPassword()
 {
  var password = document.form.password.value ;
  if (password == '1234')
  {
  	document.form.password.value ="";
  }
  
 }
 
 /**
	 * Apply login modifications
*/
var strMessage ='L\'adresse de votre site sera : http://<b>$1</b>.easymaster.com'; 
function applyLogin(strLogin_P)
{
 if ( strLogin_P == '' ) 
 {
   strLogin_P = 'pseudo';
 }
 strLogin = trim(strLogin_P," ");
 Myaddress  = strMessage.replace("$1",strLogin); 
 
 document.getElementById('urlSite').innerHTML=Myaddress;
}

function trim(str, chars) {
	return ltrim(rtrim(str, chars), chars);
}
 
function ltrim(str, chars) {
	chars = chars || "\\s";
	return str.replace(new RegExp("^[" + chars + "]+", "g"), "");
}
 
function rtrim(str, chars) {
	chars = chars || "\\s";
	return str.replace(new RegExp("[" + chars + "]+$", "g"), "");
}

