var sRealname
oRE.test(sRealname)
if (sRealName == '')
else if (sRealName.length < 4)

You really need to pay more attention to your variable names. Javascript is case sensitive.