/**
 *  Ajax Request um das Password per E-Mail zu versenden.
 */

function resendpassword( mail, verification ) {
	
	function response() {
		
		if ( client.status == 200 && client.readyState == 4 ) {
			
			$j('.entry').html(client.responseText);
					
		}
		
	}	
	
	var param = 'mail=' + mail + '&verification=' + verification;
		
	client = new XMLHttpRequest();
	client.onreadystatechange = function() { response(); };
	
	client.open( "POST", "/shop/wp-content/themes/featurepitch/shop/resendpassword.php", true);
	client.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	client.setRequestHeader("Content-Length", param.length );
	client.setRequestHeader("Connection", "close");	
	client.send(param);

}
