/*

    Remember The Milk(tm) (M12) - Copyright (c) 2006 Remember The Milk Pty Ltd
                                  All Rights Reserved. Don't steal, please.

    Non vi sed virtute, non armis sed arte paritur victoria.

*/


var HAS_GEARS=(typeof window!="undefined"&&!(!window.google||!google.gears));function is(x){return!!(x===0||x);}
function exists(x){return typeof x!=="undefined";}
function map(f,input){var out=[];for(var i=0,j=input.length;i<j;i++){out.push(f(input[i]));}
return out;}
function mapkv(f,input){var out={};for(var key in input){out[key]=f(key,input[key]);}
return out;}
String.prototype.trim=new Function("return this.replace(/^\\s+|\\s+$/g,'')");String.prototype.replaceStr=function(find,replace){return this.split(find).join(replace);};String.prototype.escapeForXML=function(){return this.replaceStr("&","&amp;").replaceStr("\"","&quot;").replaceStr("<","&lt;").replaceStr(">","&gt;");};String.prototype.escapeForField=function(){return this.replaceStr("&lt;","<").replaceStr("&","&amp;").replaceStr("\"","&quot;").replaceStr("<","&lt;").replaceStr(">","&gt;");};String.prototype.escapeForDisplay=function(){return this.replaceStr("<","&lt;");};String.prototype.escapeForAttr=function(){return this.replaceStr("'","\\'").replaceStr("<","&lt;");};function url_repl(s){var out=[];for(var i=0,j=s.length;i<j;i++){out.push(s.charAt(i));out.push("<wbr />");}
return"<a href=\""+s+"\" target=\"_blank\">"+out.join("")+"</a>";}
function email_repl(s){var out=[];for(var i=0,j=s.length;i<j;i++){out.push(s.charAt(i));out.push("<wbr />");}
return"<a href=\"mailto:"+s+"\">"+out.join("")+"</a>";}
String.prototype.autoLink=function(attach){var s=this;var email=/(([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+)/g;var url=/(http:\/\/|https:\/\/|file:\/\/|ftp:\/\/)([^\s<>\'"]+)/;s=s.replaceStr("mailto:","");s=s.replace(email,email_repl);s=s.replace(/(http:\/\/|https:\/\/|file:\/\/|ftp:\/\/)([^\s<>'"]+)/g,url_repl);if(attach){if(url.test(s)===false){var news="http://"+s;if(url.test(news)===true){s=news.replace(/(http:\/\/|https:\/\/)([^\s<>'"]+)/g,url_repl);}}}
return s;};Array.prototype.unique=function(){var seen={};for(var i=0;i<this.length;i++){seen[this[i]]=true;}
var out=[];for(var s in seen){out.push(s);}
return out;};var HAS_GMAPS=true;if(typeof window!=="undefined"){if(!("GEvent"in window)){(function(){window.HAS_GMAPS=false;function GEvent(){}
GEvent.addDomListener=function(el,type,func,prop){var fn=function fn(ev){ev||(ev=window.event);return func.call(el,ev);};if(el.addEventListener){el.addEventListener(type,fn,!!prop);}else{el.attachEvent("on"+type,fn);}};GEvent.trigger=function(a,b,c){};window.GEvent=GEvent;function GControl(){}
window.GControl=GControl;function GOverlay(){}
window.GOverlay=GOverlay;function GIcon(){}
window.GIcon=GIcon;function GBrowserIsCompatible(){return false;}
window.GBrowserIsCompatible=GBrowserIsCompatible;})();}}
var isBrowser=(typeof navigator!=="undefined");var is_ie=isBrowser&&(/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent));var is_ie5=isBrowser&&(is_ie&&/msie 5\.0/i.test(navigator.userAgent));var is_ie6=isBrowser&&(is_ie&&/msie 6\.0/i.test(navigator.userAgent));var is_ie7=isBrowser&&(is_ie&&/msie 7\.0/i.test(navigator.userAgent));var is_opera=isBrowser&&(/opera/i.test(navigator.userAgent));var is_win_opera=isBrowser&&(/Windows/i.test(navigator.userAgent));var is_khtml=isBrowser&&(/Konqueror|Safari|KHTML/i.test(navigator.userAgent));var is_gecko=isBrowser&&(/Gecko/i.test(navigator.userAgent));var is_gecko18=isBrowser&&(is_gecko&&/rv:1.8/i.test(navigator.userAgent));var is_safari=isBrowser&&(/Safari/i.test(navigator.userAgent));var is_safari_3=is_safari&&(/t\/5/i.test(navigator.userAgent));var is_mac=isBrowser&&(/Mac/i.test(navigator.userAgent));var is_iphone=isBrowser&&(/iPhone/i.test(navigator.userAgent));function cloneObj(obj){var c={};for(var i in obj){c[i]=obj[i];}
return c;}
function cloneArr(inArr){var arr=[];for(var i=0;i<inArr.length;i++){arr[i]=inArr[i];}
return arr;}
Array.prototype.spliceAll=function(i){for(var x in this){if(i==this[x]){this.splice(x,1);}}
return this;};Array.prototype.toHash=function(){var keys={};for(var i=0;i<this.length;i++){keys[this[i]]=true;}
return keys;};function isHashEmpty(hash){var empty=true;for(var key in hash){if(is(hash[key])){empty=false;break;}}
return empty;}
if(isBrowser&&!window.XMLHttpRequest){window.XMLHttpRequest=function(){var xmlHttp=null;var ex;try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP.4.0");}
catch(ex){try{xmlHttp=new ActiveXObject("MSXML2.XMLHTTP");}
catch(ex){try{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
catch(ex){}}}
return xmlHttp;};}
function Utility(){}
Utility.prototype.stopEvent=function(ev){ev||(ev=window.event);if(!ev){return false;}
if(is_ie){ev.cancelBubble=true;ev.returnValue=false;}else{ev.preventDefault();ev.stopPropagation();}
return false;};Utility.stopPropagation=function(ev){ev||(ev=window.event);if(is_ie){ev.cancelBubble=true;}else{ev.stopPropagation();}
return true;};Utility.prototype.escapeText=function(t){t=t.replace(/\</g,"&lt;");t=t.replace(/\>/g,"&gt;");t=t.replace(/\&/g,"&amp;");t=t.replace(/\"/g,"&quot;");t=t.replace(/\'/g,"&39#;");t=t.replace(/\*/g,"&42#;");return t;};Utility.prototype.getEventTarget=function(ev){var targ=null;if(ev.target){targ=ev.target;}else{if(ev.srcElement){targ=ev.srcElement;}}
if(targ.nodeType==3){targ=targ.parentNode;}
return targ;};Utility.prototype.getRandomInt=function(x){return Math.floor(x*Math.random());};Utility.getRandomInt=function(x){return Math.floor(x*Math.random());};Utility.prototype.suffixize=function(iNumber){var sNumber=(""+iNumber);var iLastDigit=parseInt(sNumber[sNumber.length-1],10);if(iLastDigit==1&&iNumber!=11){return iNumber+"st";}else{if(iLastDigit==2&&iNumber!=12){return iNumber+"nd";}else{if(iLastDigit==3&&iNumber!=13){return iNumber+"rd";}else{return iNumber+"th";}}}};Utility.prototype.pluralize=function(n,t){if(rtmLanguage=="en_US"){if(n==1){return n+" "+t;}else{return n+" "+t+"s";}}
return n+" "+fmt(t);};function el(id){if(document.getElementById){return document.getElementById(id);}else{if(window[id]){return window[id];}}
return null;}
function quoted(t){return t?"\""+t+"\"":"\"\"";}
function padded(value){return(value<10?("0"+value):value.toString());}
function setCookie(name,value,expires,path,domain,secure){document.cookie=name+"="+escape(value)+((expires)?"; expires="+expires.toGMTString():"")+((path)?"; path="+path:"")+((domain)?"; domain="+domain:"")+((secure)?"; secure":"");}
function getCookie(name){var dc=document.cookie;var prefix=name+"=";var begin=dc.indexOf("; "+prefix);if(begin==-1){begin=dc.indexOf(prefix);if(begin!=0){return null;}}else{begin+=2;}
var end=document.cookie.indexOf(";",begin);if(end==-1){end=dc.length;}
return unescape(dc.substring(begin+prefix.length,end));}
function deleteCookie(name,path,domain){if(getCookie(name)){document.cookie=name+"="+((path)?"; path="+path:"")+((domain)?"; domain="+domain:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT";}}
function extendObject(me,them){for(var proto in them.prototype){me.prototype[proto]=them.prototype[proto];}}
var HAS_STRING_TABLE=(typeof STRING_TABLE!=="undefined");function getfmt(s){return HAS_STRING_TABLE&&(s in STRING_TABLE)?STRING_TABLE[s]:s;}
function fmt(s,args){s=HAS_STRING_TABLE&&(s in STRING_TABLE)?STRING_TABLE[s]:s;if(args instanceof Array){for(var i=0;i<args.length;i++){s=s.replace("%"+(i+1),args[i]);}
return s;}else{return s.replace("%1",args);}}
function _T(s,args){s=HAS_STRING_TABLE&&(s in STRING_TABLE)?STRING_TABLE[s]:s;s=s.replace(new RegExp("{RTM}","g"),"Remember The Milk");if(args){for(var arg in args){s=s.replace(new RegExp("{"+arg+"}","g"),args[arg]);}}
return s;}
function _TF(s,args){if(!args){args={};}
args["START_BOLD"]="<b>";args["END_BOLD"]="</b>";args["START_ITALIC"]="<i>";args["END_ITALIC"]="</i>";args["START_LINK"]="<a href=\" \">";args["END_LINK"]="</a>";if(s instanceof Array){var url=s[1];var newwindow=s[2];var id="";if(is(args["LINK_ID"])){id=" id="+qtd(args["LINK_ID"]);}
var onc="";if(is(args["LINK_ONCLICK"])){onc=" onclick="+qtd(args["LINK_ONCLICK"]);}
if(newwindow){args["START_LINK"]="<a "+id+" "+onc+" href="+qtd(url)+" target=\"_blank\">";}else{args["START_LINK"]="<a "+id+" "+onc+" href="+qtd(url)+">";}
if(is(args["LINK_WRAP"])){args["START_LINK"]="<span id="+qtd(args["LINK_WRAP"])+">"+args["START_LINK"];args["END_LINK"]=args["END_LINK"]+"</span>";}
s=s[0];}
return _T(s,args);}
function qtd(t){return t?"\""+t+"\"":"\"\"";}
function quoteSearchTerm(str){if(str.charAt(0)!=="\""&&str.indexOf(" ")>-1&&str.charAt(str.length-1)!=="\""){return"\""+str+"\"";}
if(str.indexOf("(")>-1||str.indexOf(")")>-1){return"\""+str+"\"";}
return str;}
function debracket(str){if(str&&str.charAt(0)==="("&&str.charAt(str.length-1)==")"){return str.substring(1,str.length-1);}
return str;}
function normalizeSearchEntry(s){var x=s.split(/[\s;,]+/);var len=x.length;var output={};var inQuote=false;var words;for(var i=0;i<len;i++){if(x[i].charAt(0)=="\""){words=[];while(i<len&&x[i].charAt(x[i].length-1)!=="\""){words.push(x[i]);i++;}
if(i<len){words.push(x[i]);}
output[words.join(" ")]=true;}else{output[x[i]]=true;}}
var out=[];for(var x in output){if(x.indexOf("(")>-1||x.indexOf(")")>-1){out.push("\""+x+"\"");}else{out.push(x);}}
return out;}
function getWindowSize(){var windowWidth,windowHeight;if(window.innerWidth){windowWidth=window.innerWidth;windowHeight=window.innerHeight;}else{if(document.documentElement&&document.documentElement.clientWidth){windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;}else{if(document.body){windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight;}}}
return[windowWidth,windowHeight];}
function EscapeUnicode(s){var out=[],c,y;for(var i=0;i<s.length;i++){c=s.charCodeAt(i);y=(Math.floor(c/16).toString(16)+(c%16).toString(16)).toString();if(y.length==2){out.push("\\u00"+y);}else{out.push("\\u"+y);}}
return out.join("");}
(function(){var m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","\"":"\\\"","\\":"\\\\"},s={array:function(x){var a=["["],b,f,i,l=x.length,v;for(i=0;i<l;i+=1){v=x[i];f=s[typeof v];if(f){v=f(v);if(typeof v=="string"){if(b){a[a.length]=",";}
a[a.length]=v;b=true;}}}
a[a.length]="]";return a.join("");},"boolean":function(x){return String(x);},"null":function(x){return"null";},number:function(x){return isFinite(x)?String(x):"null";},object:function(x){if(x){if(x instanceof Array){return s.array(x);}
var a=["{"],b,f,i,v;for(i in x){v=x[i];f=s[typeof v];if(f){v=f(v);if(typeof v=="string"){if(b){a[a.length]=",";}
a.push(s.string(i),":",v);b=true;}}}
a[a.length]="}";return a.join("");}
return"null";},string:function(x){if(/["\\\x00-\x1f]/.test(x)){x=x.replace(/([\x00-\x1f\\"])/g,function(a,b){var c=m[b];if(c){return c;}
c=b.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16);});}
return"\""+x+"\"";}};Utility.prototype.encodeJavaScript=function(arg){var f=s[typeof arg];if(f){return f(arg);}
return s.string(String(arg));};Utility.toJSON=function(arg){var f=s[typeof arg];if(f){return f(arg);}
return s.string(String(arg));};})();Utility.SortAndSign=function(params){var SID=getCookie("SID");var params_out=[];for(var key in params){params_out.push([key,params[key]]);}
params_out.sort(function(a,b){return(a[0]===b[0])?0:(a[0]<b[0]?-1:1);});var to_sign=[],param,q=[];for(var i=0,j=params_out.length;i<j;i++){param=params_out[i];to_sign.push(param[0]+param[1]);q.push(param[0]+"="+param[1]);}
if(SID){q.push("sig="+hex_sha1(SID.substring(0,40)+to_sign.join("")));}
return q.join("&");};Utility.getImageUrl=function(url){if((HAS_GEARS&&rtmIsOffline)){return url;}
return"http://static.rememberthemilk.com"+url;};Utility.enableForm=function(e,state){map(function(obj){if(!obj){return;}
obj=(typeof(obj)==="string"?el(obj):obj);if(!obj){return;}
var inp=obj.getElementsByTagName("input");map(function(i){i.disabled=!state;if(state){Utility.removeClass(i,"disabled");}else{Utility.addClass(i,"disabled");}},inp);var sel=obj.getElementsByTagName("select");map(function(i){i.disabled=!state;if(state){Utility.removeClass(i,"disabled");}else{Utility.addClass(i,"disabled");}},sel);var txt=obj.getElementsByTagName("textarea");map(function(i){i.disabled=!state;if(state){Utility.removeClass(i,"disabled");}else{Utility.addClass(i,"disabled");}},txt);},e instanceof Array?e:[e]);};Utility.hasClass=function(el,className){var re=new RegExp("(?:^|\\s+)"+className+"(?:\\s+|$)");return re.test(el.className);};Utility.addClass=function(el,className){if(Utility.hasClass(el,className)){return false;}
el.className=[el.className,className].join(" ");};Utility.removeClass=function(el,className){var re=new RegExp("(?:^|\\s+)"+className+"(?:\\s+|$)","g");if(!Utility.hasClass(el,className)){return false;}
var c=el.className;el.className=c.replace(re," ");if(Utility.hasClass(el,className)){Utility.removeClass(el,className);}};function Label(labelId,inputId){this.labelId=labelId;this.label=el(labelId);this.inputId=inputId;this.input=el(inputId);if(is_safari){if(typeof navigator!=="undefined"&&(/t\/5/i.test(navigator.userAgent))){return;}
var self=this;this.label.onclick=function(){if(self.input.type=="radio"||self.input.type=="checkbox"){self.input.checked=!self.input.checked;if(self.input.onclick){self.input.onclick();}}else{if(self.input.type=="text"||self.input.type=="password"){self.input.focus();}}};}}
var rtmp="/rtm.rtm?";var r=null;var signupform;var firstname;var firstnameStatus;var lastname;var lastnameStatus;var username;var usernameStatus;var email;var emailStatus;var dateformatAm,dateformatEu,dateformatStatus;var password;var firstPasswordStatus;var passwordConfirm;var passwordStatus;var termsStatus;var terms;var submitButton;var uF=false;var uE=false;var cache={};var is_iphone=(typeof navigator!=="undefined")&&(/Safari/i.test(navigator.userAgent))&&(/Mobile/i.test(navigator.userAgent));String.prototype.trim=new Function("return this.replace(/^\\s+|\\s+$/g,'')");String.prototype.isEmpty=new Function("var x = this.trim(); if (x.length == 0) { return true; } else { return false; }");function checkUsername(username){var filter=/^([a-zA-Z0-9_\.])+$/;if(filter.test(username)){return true;}else{return false;}}
function checkName(name){return true;}
function checkAlnumName(name){var filter=/^([a-zA-Z0-9_\.\-])+\s?$/;if(filter.test(name)){return true;}else{return false;}}
function checkMail(email){var filter=/^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;if(filter.test(email)){return true;}else{return false;}}
function encodeJavaScript(arg){var i,o,u,v;switch(typeof arg){case"object":if(arg){if(arg.constructor==Array){o="";for(i=0;i<arg.length;++i){v=encodeJavaScript(arg[i]);if(o){o+=",";}
if(v!==u){o+=v;}else{o+="null,";}}
return"["+o+"]";}else{if(typeof arg.toString!="undefined"){o="";for(i in arg){v=encodeJavaScript(arg[i]);if(v!==u){if(o){o+=",";}
o+=encodeJavaScript(i)+":"+v;}}
return"{"+o+"}";}else{return;}}}
return"null";case"unknown":case"undefined":case"function":return u;case"string":return"\""+arg.replace(/(["\\])/g,"\\$1")+"\"";default:return String(arg);}}
function cxo(){var xhttp=null;try{xhttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{xhttp=new ActiveXObject("Microsoft.XMLHTTP");}
catch(x){xhttp=null;}}
if(!xhttp&&typeof XMLHttpRequest!="undefined"){xhttp=new XMLHttpRequest();}
return xhttp;}
function rtmreq(ac,ar){if(r&&r.readyState!=0){r.abort();}
r=cxo();if(r){q=rtmp+"&format=js&v=15&ac="+ac+"&ar="+ar;r.open("GET",q,true);r.onreadystatechange=function(){if(r.readyState==4){if(r.responseText){if(r.responseText.charAt(0)=="<"){uE=true;setSuccess(usernameStatus);}else{uE=false;eval(r.responseText.replace("while(1);",""));}}}};r.send(null);}}
function de(n){return document.getElementById(n);}
function cacheDom(){signupform=de("signupform");firstname=de("firstname");firstnameStatus=de("firstnameStatus");lastname=de("lastname");lastnameStatus=de("lastnameStatus");username=de("username");usernameStatus=de("usernameStatus");email=de("email");emailStatus=de("emailStatus");password=de("password");firstPasswordStatus=de("firstPasswordStatus");passwordConfirm=de("password_confirm");passwordStatus=de("passwordStatus");dateformatAm=de("dateformat_am");dateformatEu=de("dateformat_eu");dateformatStatus=de("dateformatStatus");terms=de("terms");termsStatus=de("termsStatus");submitButton=de("signupsubmit");}
function cacheImages(){var errorImage=new Image();var successImage=new Image();errorImage.src="http://static.rememberthemilk.com/img/ico/ico_cross_org.gif";successImage.src="http://static.rememberthemilk.com/img/ico/ico_check_blu.gif";}
function setSuccess(o,m){o.innerHTML="<span class=\"success_msg\">"+(m==null?"&nbsp;":m)+"</span>";o.className="success";}
function setError(o,m){o.innerHTML="<span class=\"error_msg\">"+(m==null?"&nbsp;":m)+"</span>";o.className="error";}
function doActions(){firstname.onkeyup();lastname.onkeyup();username.onkeyup();password.onkeyup();passwordConfirm.onkeyup();email.onkeyup();dateformatAm.onclick();dateformatEu.onclick();terms.onclick();}
function armSafariLabels(){if(typeof is_safari!=="undefined"&&is_safari){new Label("lfirstname","firstname");new Label("llastname","lastname");new Label("lusername","username");new Label("lpassword","password");new Label("lpassword_confirm","password_confirm");new Label("lemail","email");new Label("ldateformat_eu","dateformat_eu");new Label("ldateformat_am","dateformat_am");new Label("lterms","terms");}}
function init(){if(de("firstname")===null){return false;}
armSafariLabels();cacheDom();cacheImages();if(is_iphone){firstname.onkeyup=function(){setTimeout(checkFirstname,0);};lastname.onkeyup=function(){setTimeout(checkLastname,0);};username.onkeyup=function(){setTimeout(checkUser,0);};password.onkeyup=function(){setTimeout(checkFirstPassword,0);};passwordConfirm.onkeyup=function(){setTimeout(checkPassword,0);};}else{firstname.onkeyup=checkFirstname;lastname.onkeyup=checkLastname;username.onkeyup=checkUser;password.onkeyup=checkFirstPassword;passwordConfirm.onkeyup=checkPassword;}
signupform.onsubmit=checkForm;email.onkeyup=function(){if(checkMail(email.value)){if(typeof emailInUse==="undefined"||emailInUse===null){setSuccess(emailStatus);}else{if(email.value.trim()!==emailInUse.trim()){setSuccess(emailStatus);}else{setError(emailStatus,_T("HOMEPAGE_SIGNUP_EMAIL_ALREADY_IN_USE"));}}}else{setError(emailStatus,_T("Email invalide"));}};username.onfocus=function(){if(!uF){var fullName=firstname.value.toLowerCase()+"."+lastname.value.toLowerCase();if(checkAlnumName(fullName)){username.value=fullName;username.select();uF=true;checkUser();return false;}else{return false;}}};terms.onclick=function(){if(checkTerms()){setSuccess(termsStatus);}else{setError(termsStatus);}};dfs=function(){if(checkDateformat()){setSuccess(dateformatStatus);}else{setError(dateformatStatus);}};dateformatAm.onclick=dfs;dateformatEu.onclick=dfs;if(typeof errorField==="undefined"||errorField===null){firstname.focus();}}
function R(c){cache[c.person]=c.available;}
function checkNames(){return(!(firstname.value.trim().length==0&&!checkName(firstname.value)&&!checkName(lastname.value)&&lastname.value.trim().length==0));}
function checkDateformat(){return dateformatAm.checked==true||dateformatEu.checked==true;}
function checkTerms(){return terms.checked==true;}
function checkForm(){doActions();if(checkPassword()&&checkUser(true)&&checkMail(email.value)&&checkNames()&&checkDateformat()&&checkTerms()){return true;}
return false;}
function checkFirstPassword(){if(password.value.trim().length==0){setError(firstPasswordStatus,_T("Mot de passe invalide"));return false;}else{if(password.value.trim().length<5){setError(firstPasswordStatus,_T("HOMEPAGE_SIGNUP_PASSWORD_MIN_5"));return false;}else{setSuccess(firstPasswordStatus);return false;}}}
function checkPassword(){checkFirstPassword();if(passwordConfirm.value.trim().length==0){setError(passwordStatus,_T("mot de passe invalide"));return false;}else{if(passwordConfirm.value.trim().length<5){setError(passwordStatus,_T("HOMEPAGE_SIGNUP_PASSWORD_MIN_5"));return false;}}
if(password.value==passwordConfirm.value){setSuccess(firstPasswordStatus);setSuccess(passwordStatus);return true;}else{setError(passwordStatus,_T("Les deux mots de passe sont différents"));return false;}}
function stripPeriods(u){if(u!==null){return u.replace(/\./g,"");}
return null;}
function checkUser(finalCheck){if(checkUsername(username.value)==false){setError(usernameStatus,_T("HOMEPAGE_SIGNUP_INVALID_USERNAME"));return false;}else{if(stripPeriods(username.value).trim().length<2){setError(usernameStatus,_T("HOMEPAGE_SIGNUP_USERNAME_MIN_2"));return false;}}
if(uE&&finalCheck){return true;}
var user=stripPeriods(username.value);if(cache[user]==null){rtmreq("auth.checkUser",encodeJavaScript([user,username.value]));return false;}else{if(cache[user]){setSuccess(usernameStatus,_T("HOMEPAGE_SIGNUP_USERNAME_IS_AVAILABLE",{"USERNAME":username.value}));return true;}else{setError(usernameStatus,_T("HOMEPAGE_SIGNUP_USERNAME_IS_NOT_AVAILABLE",{"USERNAME":username.value}));return false;}}}
function checkFirstname(){if(!firstname.value.isEmpty()&&checkName(firstname.value)){setSuccess(firstnameStatus);return true;}else{if(firstname.value.isEmpty()){setError(firstnameStatus,_T("Le pérnom est obligatoire"));}else{setError(firstnameStatus,"Invalid characters in first name");}
return false;}}
function checkLastname(){if(!lastname.value.isEmpty()&&checkName(lastname.value)){setSuccess(lastnameStatus);return true;}else{if(lastname.value.isEmpty()){setError(lastnameStatus,_T("Le nom est obligatoire"));}else{setError(lastnameStatus,"Caractère invalide dans le nom");}
return false;}}
// Build 11 -- Generated Fri Nov  9 05:37:21 2007 UTC

