function confirmListingdelete(reid,deltype){ var agree=confirm(" #"+reid+"?"); parentid='parent-row'+reid; fulldivid="rememberAction"; if(agree){if(deltype==1){ infoResults(reid,11,parentid); $('#'+parentid).css('display','none') } if(deltype==2){ infoResults(reid,11,fulldivid); $('#'+fulldivid).css('display','none'); $('#'+parentid).css('display','none') } }} function echeck(str){var at="@";var dot=".";var lat=str.indexOf(at);var lstr=str.length;var ldot=str.indexOf(dot);if(str.indexOf(at)==-1){alert("");return false}if(str.indexOf(at)==-1||str.indexOf(at)==0||str.indexOf(at)==lstr){alert("");return false}if(str.indexOf(dot)==-1||str.indexOf(dot)==0||str.indexOf(dot)==lstr){alert("");return false}if(str.indexOf(at,(lat+1))!=-1){alert("");return false}if(str.substring(lat-1,lat)==dot||str.substring(lat+1,lat+2)==dot){alert("");return false}if(str.indexOf(dot,(lat+2))==-1){alert("");return false}if(str.indexOf(" ")!=-1){alert("");return false}return true}function processForgotPassForm(){var emailID=document.forgotPasswordForm.reemail;if(echeck(emailID.value)==false){emailID.value="";emailID.focus();return false}if((emailID.value==null)||(emailID.value=="")){alert(" ID");emailID.focus();return false}else{infoResults(emailID.value,10,'sidebarLogin')}}function validateRegForm(){var reusername=$("input#reusername").val();var emailID=document.registerForm.reemail;if((reusername==null)||(reusername.length<4)){alert(" ( 4 ).");return false}if((emailID.value==null)||(emailID.value=="")){alert(" ID");emailID.focus();return false}if(echeck(emailID.value)==false){emailID.value="";emailID.focus();return false}var passVal=$("input#repassword").val();var cpassVal=$("input#recpassword").val();var captcha_code=$("input#captcha_code").val();if(passVal.length>=6){if(passVal==cpassVal){var allData=reusername+":::"+emailID.value+":::"+passVal+":::"+captcha_code;infoResults(allData,3,'sidebarLogin')}else{alert(". .");return false}}else{alert(".");return false}return true}