var M3WhitePaper = {
	makeRequest : function(){
		params = {
			action : 'get_pdf',
			name : $('#fieldWhitePaperName').val(),
			mail : $('#fieldWhitePaperEmail').val()	
		}
		jQuery.get(m3url + '/whitePaper.php',params,function(data){
			if(data == ''){
				M3WhitePaper.showError('Please complete all the fields');	
			}else{
				if(data == 'ok'){
					M3WhitePaper.showError('Thank you, your message was succesfully sent');
				}else{
					M3WhitePaper.showError(data);	
				}
			}
		});
	},
	showError : function(string){
		jQuery('#whitePaperError').html(string).slideDown(300);
	}
}
