rnd_comp_length=2;/*устанавливаешь длинну массива, т.е. сколько цветов будет*/ colors_= new Array(rnd_comp_length); 
colors_[0] = "#606060"; 
colors_[1] = "#84A53C"; 
var next_ = 0; 
       	 
	function jmail_main(obj)
	{	
		//alert("1");
		jQuery('#jmail_button_main').attr('src','/img/jmail_wait.gif');	
		var temp=jQuery('#jmailform_main').serialize();
		
		//jQuery.ajax({url:'/ajax/jmail.php',type:'post',data:temp,success:function(res){SetJmailInfo(res)}});
         	jQuery('#opera_gori_v_adu_m').load('/ajax/jmail.php?'+temp,function(res){SetJmailInfo_m(res)});
        }
       	 
       	 function SetJmailInfo_m(res)
       	 {	
       	 	$('#jmail_button_main').attr('src','/img/jmail.gif');	
       	 	$('#jqmail_info_main').html(res);	
       	 	$('#jqmail_info_main').fadeIn('slow').delay(5000).fadeOut('slow');		        $('#imd_kcaptcha_m').attr('src','kcaptcha'+Math.round((Math.random() * (100 - 1))));        
       	 	if(res=='<div style="color:green">Сообщение отправлено</div>') 	
       	 	{       
       	 		$("#jmailform_main input[name],#jmailform_main input[company],#jmailform_main input[phone],#jmailform_main input[email],#jmailform_main input[adress],#jmailform_main input[fax],#jmailform_main input[sec_code],#jmailform_main textarea[text]").val('');
       	 		$('#jmailform_main textarea[text]').html('');
       	 		$('#jmailform_main textarea').val('');
       	 	}
       	 }
       	 function HideJmailInfo()
       	 {	
       	 	$('#jqmail_info_main').fadeOut('slow');
       	 }

