ValueChecker = { checkA : function(inputForm, inputValue) {//{{{ var res; var formChecker = new FormChecker(); res = formChecker.isEmpty(inputValue); if (res == true) { alert(LANG['EmptyIP']); inputForm.focus(); return false; } res = formChecker.isValidIP(inputValue); if (res == false) { alert(LANG['InvalidIP']); inputForm.focus(); return false; } return true; },//}}} checkMX : function(inputForm, inputValue) {//{{{ var res; var formChecker = new FormChecker(); res = formChecker.isEmpty(inputValue); if (res == true) { alert(LANG['EmptyMX']); inputForm.focus(); return false; } res = formChecker.isDomain(inputValue); if (res == false) { alert(LANG['InvalidMX']); inputForm.focus(); return false; } return true; },//}}} checkMXRank : function(inputForm, inputValue) {//{{{ var res; var formChecker = new FormChecker(); res = formChecker.isEmpty(inputValue); if (res == true) { alert(LANG['EmptyMXRank']); inputForm.focus(); return false; } res = formChecker.isValidMXRank(inputValue); if (res == false) { alert(LANG['InvalidMXRank']); inputForm.focus(); return false; } return true; },//}}} checkCNAME : function(inputForm, inputValue) {//{{{ var res; var formChecker = new FormChecker(); res = formChecker.isDomain(inputValue); if (res == false) { alert(LANG['InvalidDomain']); inputForm.focus(); return false; } return true; },//}}} checkWebForward : function(inputForm, inputValue) {//{{{ var res; var formChecker = new FormChecker(); res = formChecker.isEmpty(inputValue); if (res == true) { alert(LANG['EmptyURL']); inputForm.focus(); return false; } res = formChecker.isURL(inputValue); if (res == false) { alert(LANG['InvalidURLMalformed']); inputForm.focus(); return false; } return true; },//}}} checkWebParkingEmail : function(inputForm, inputValue) {//{{{ var res; var formChecker = new FormChecker(); res = formChecker.isValidEmail(inputValue); if (res == false) { alert(LANG['InvalidEmail']); inputForm.focus(); return false; } if (formChecker.isValidEmailLength(inputValue) == false) { alert(LANG['InvalidEmailLength']); inputForm.focus(); return false; } return true; },//}}} checkAAAA : function(inputForm, inputValue) {//{{{ var res; var formChecker = new FormChecker(); res = formChecker.isEmpty(inputValue); if (res == true) { alert(LANG['EmptyIPv6']); inputForm.focus(); return false; } res = formChecker.isValidIPv6(inputValue); if (res == false) { alert(LANG['InvalidIPv6']); inputForm.focus(); return false; } return true; },//}}} checkNS : function(inputForm, inputValue) {//{{{ var res; var formChecker = new FormChecker(); res = formChecker.isEmpty(inputValue); if (res == true) { alert(LANG['EmptyNS']); inputForm.focus(); return false; } res = formChecker.isDomain(inputValue); if (res == false) { alert(LANG['InvalidNS']); inputForm.focus(); return false; } return true; },//}}} checkTXT : function(inputForm, inputValue) {//{{{ var res; var formChecker = new FormChecker(); res = formChecker.isEmpty(inputValue); if (res == true) { alert(LANG['EmptyTXT']); inputForm.focus(); return false; } res = formChecker.isWithinRange(utf8len(inputValue), 0, 2048) if (res == false) { alert(LANG['InvalidTXTLength']); inputForm.focus(); return false; } return true; },//}}} checkLogin : function(loginForm) { //{{{ var formChecker = new FormChecker(); var result = formChecker.isValidEmail(loginForm.login_id.value); if (result == false) { result = formChecker.isValidID(loginForm.login_id.value); if (result == false) { alert(LANG['InvalidID']); loginForm.login_id.focus(); return false; } } result = formChecker.isEmpty(loginForm.login_password.value); if (result == true) { alert(LANG['EmptyPassword']); loginForm.login_password.focus(); return false; } result = formChecker.isValidPassword(loginForm.login_password.value); if (result == false) { alert(LANG['InvalidPassword']); loginForm.login_password.focus(); return false; } }//}}} };