Window.onDomReady(function(){ document.formvalidator.setHandler('passverify', function (value) { return ($('password').value == value); } ); document.formvalidator.setHandler('emailverify', function (value) { return ($('email').value == value); } ); document.formvalidator.setHandler('usernameverify', function (value) { return ($('username').value == value); } ); });
function getlogin_register(vpage) { if(vpage == "login") { document.getElementById("login_page").style.display=''; document.getElementById("register_page").style.display='none'; document.getElementById("login_link").style.display='none'; document.getElementById("register_link").style.display=''; } else if(vpage == "register") { document.getElementById("login_page").style.display='none'; document.getElementById("register_page").style.display=''; document.getElementById("login_link").style.display=''; document.getElementById("register_link").style.display='none'; } }
|