function v2_form (formular, ausgabe_id)
{   
         ajak_form	(formular, ausgabe_id);
        
		return false;		
}



function ajak_form( myform , erfolg )
{    $('#'+erfolg).append('<img src="'+site_url+'images/ajax_loader.gif" class="ajax_loader" title="loading" />');
	//var inputs = [];
	//$(':input', myform ).each(function(){ inputs.push(this.name + '=' + encodeURIComponent(this.value)); })
	jQuery.ajax({
		data: $(myform).serialize(),
		url: myform.action,
		type: "POST",
		timeout: 10000,
		error: function(){ console.log("25:Fehler"); },
		success: function(ret){ 
					 	   $('.ajax_loader').remove();   
                     	$('#'+erfolg).html(ret);			
				}	
	});
}




function v2_link_inline_3var( id1, id2,id3, erfolg, funktion)
{

	jQuery.ajax({
	
	
		data: 'id='+id1,
		url: site_url+'ajax_inline/'+funktion+'/'+id1+'/'+id2+'/'+id3,
		type: "POST",
		timeout: 10000,
		error: function(){ console.log("25:Fehler"); },
		success: function(ret){
			$('#'+erfolg).html(ret);
		
			}
	});



			
}

function roll_emp( id , erfolg)
{
        roll_emp_exe(id,  erfolg);
			
}

function roll_emp_exe(id, erfolg )
{
    	jQuery.ajax({
	
	
	
		url: site_url+'ajax_inline/rollemp/'+id,
		type: "POST",
		timeout: 10000,
		error: function(){ console.log("25:Fehler"); },
		success: function(ret){
			$('#'+erfolg).html(ret);
		
			}
	});

    
}



function ob_danke( id, hash , erfolg)
{
        ob_danke_exe(id, hash , erfolg);
			
}

function boxi( id, erfolg )
{
	

    boxi_exe(id, erfolg);


			
}

function ob_danke_exe(id,hash, erfolg )
{
    	jQuery.ajax({
	
	
	
		url: site_url+'ajax_inline/ob_danke/'+id+'/'+hash,
		type: "POST",
		timeout: 10000,
		error: function(){ console.log("25:Fehler"); },
		success: function(ret){
			$('#'+erfolg).html(ret);
		
			}
	});

    
}


function boxi_exe(id, erfolg )
{
    	jQuery.ajax({
	
	
		data: 'id='+id,
		url: site_url+'ajax_inline/show_suchbox2/'+id,
		type: "POST",
		timeout: 10000,
		error: function(){ console.log("25:Fehler"); },
		success: function(ret){
			$('#'+erfolg).html(ret);
		
			}
	});

    
}


function v2_link_inline( user_id, erfolg, funktion, check )
{
	
	if(check==1)
	{
		if (!confirm('are you sure?') ) return;
	}
	jQuery.ajax({
	
	
		data: 'id='+user_id,
		url: site_url+'ajax_inline/'+funktion+'/'+user_id,
		type: "POST",
		timeout: 10000,
		error: function(){ console.log("25:Fehler"); },
		success: function(ret){
			$('#'+erfolg).html(ret);
		
			}
	});



			
}

function v2_link( user_id, erfolg, funktion, check )
{	
	
	if(check==1)
	{
		if (!confirm('are you sure?') ) return;
	}
	jQuery.ajax({
	
	
		data: 'id='+user_id,
		url: site_url+'ajax_popup/'+funktion+'/'+user_id,
		type: "POST",
		timeout: 10000,
		error: function(){ console.log("25:Fehler"); },
		success: function(ret){
			   $('.ajax_loader').remove();   
			$('#'+erfolg).html(ret);
		
			}
	});



			
}

function v2_link_ohne( user_id, funktion )
{

	jQuery.ajax({
		data: 'id='+user_id,
		url: site_url+'ajax_popup/'+funktion+'/'+user_id,
		type: "POST",
		timeout: 10000,
		error: function(){ console.log("25:Fehler"); }
		});		
}


function toggledisplay_one (id)
	
	{
	if (document.getElementById) {
	var mydiv = document.getElementById(id);
	mydiv.style.display = (mydiv.style.display=='none'?'block':'block');
	}
	
	}
	
function toggledisplay (id)
	
	{
	if (document.getElementById) {
	var mydiv = document.getElementById(id);
	mydiv.style.display = (mydiv.style.display=='block'?'none':'block');
	}
	
	}
	
