function member_login() {
$.post("fiche.php", $('form.profile_login').serialize(),
   function(data){
     if(data.code==200 || data.code==300) {
     		$('div#login_errors').show();
     		$('div#login_errors').html(data.message);	
     } else {
     		/*$('.window_connexion').closeDOMWindow();
     		if(data.next != '') {
     			window.location.href= data.next;	
     		}*/
     		$('div#login_pan').hide();
     		$('div#member_pan').show();
     		$('div#member_pan').html(data.message);	
     } 
   }, "json");
   
//document.info_form.target = 'fk_frame';   
//document.member_login.submit();
}

function profile_contact() {
$.post("fiche.php", $('form.profile_contact').serialize(),
   function(data){
     if(data.code==200 || data.code==300) {     	
     		$('div#contact_errors').show();     		
     		$('div#contact_errors').html(data.message);	
				jQuery('img#cv_captcha').attr({                
                'src' : '/services/modules/securimage/securimage_show.php?sid='+Math.random(9999999)                
                });
     } else {
     		//$('.window_connexion').closeDOMWindow();
     		//if(data.next != '') {
     		//	window.location.href= data.next;	
     		//}
     		$('div#_contact_left').html(contact_return_message);
     		//window.scrollTo(0,0);
     } 
   }, "json");
}

function search_form_submit() {
	document.search_form.z.value = (document.search_form.z.value == '1') ? '0' : '1';
	document.search_form.submit();	
}

function member_login2() {	
	member_login();
	document.member_login.submit();
}
