




var speed = 6000;
var autoRotate ='';
 function MassigHideEmNaCu() 
{
var showMSregisterTR = document.getElementById('showMScallUsTR');	
showMSregisterTR.style.display = "none"; 
//$("#showMSregisterTR").hide("slow");
  window.clearInterval(autoRotate);
}





 

 
 

 




 function checkfildcallU()
{


 
//window.clearInterval(autoRotate);	
// speed = 6000;
 //autoRotate = window.setInterval( "MassigHideEmNaCu()", speed);	

 $('#Resultreturnmsseg').show();

 $('span#for_loading_span').hide();
 $("#Resultreturnmsseg").hide();	
 bool = true; 
$('span.employment_span').hide();  
$('span.check_span').hide();
$('span.span_messag').hide();
 $("#myformS :input").each(function(i){
 if($(this).val() =='' && $(this).attr("type") != 'submit' && $(this).attr("type") != 'hidden')
 {
	// alert($(this).attr("type"))
 
	 $('span#'+$(this).attr("id")+'_span').show();
	  bool = false;
 
 }
});
 
 

 
 
 
 if($('input#textMail').val() != '')
	{
	var email = "^[\\w-_\.]*[\\w-_\.]\@[\\w]\.+[\\w]+[\\w]$";
		var regexemail = new RegExp(email);
if (!regexemail.test($('input#textMail').val()))		 
{
//$('input#e_mail').css({"border": "#FF0000 1px solid"});
$('span#textMail_span').show();	
	$('input#textMail').focus();					
	bool = false;
}

	}
	


if(bool)
{
 $('span#for_loading_span').show();	
return true;
}
else
return false;	
}// function checkfildcallU()





function ShowRscallU(textrs,Rus) 
{
	 
	 $('span#for_loading_span').hide();
  	$("#Resultreturnmsseg").show();	   
     $("#Resultreturnmsseg").html(textrs);		 
	   if (Rus == 1){
	$('#myformS').resetForm();
		
	 autoRotate = window.setInterval( "FinshInsertALL_HIDEF()", 4000);	
  return true; 
	   }
	   else if (textrs == 2) {
  alert(mssig);
       } 
	  	
	  
}

