var timer;
//
function getVerify(){
if($('#regRuser').val()){
var m=$('#regRuser').val();
if(/^13d{9}$/g.test(m)||(/^15[0-35-9]d{8}$/g.test(m))|| (/^18d{9}$/g.test(m))){
var postData = $('#reg_form').serialize();
$.ajax({
type: "POST",
url: "/ajax/getVerify",
data: postData,
success: function(msg){
if(msg>0){
alert('');
$('#getVerify').hide();
$('.regnav').css('background','url(/static/images/v10/regnav2.png)');
$('#checkvalidate').show();
f_timeout();
$('.abc').show();
}else if(msg==-1){
alert('');
}
}
});
}else{
alert('');
}
}
}
function f_timeout(){
$('#timeb1').html('<span>60</span>');
$('#timeb1').click(function(){});
timer = self.setInterval(addsec,1000);
}
function addsec(){
var t = $('#timeb2').html();
//alert(t);
if(t > 0){
$('#timeb2').html(t-1);
//alert(t);
}else{
window.clearInterval(timer);
$('#timeb1').html('<span></span>');
$('#timeb1').click(function(){getVerify();});
}
}