function register(ps_id)
	{
var googlewin=dhtmlwindow.open("ajaxbox", "ajax", '/popup/register/'+ps_id, 'KeydexPlus Coupon audrucken', 'width=600px,height=700px,left=100px,top=50px,resize=0,scrolling=1', "recal")
	}
function privatcard_pa()
	{
var googlewin=dhtmlwindow.open("ajaxbox", "ajax", '/popup/privatcard_pa/', 'KeydexPlus PrivatCard für Privat-Patienten', 'width=600px,height=800px,left=100px,top=50px,resize=0,scrolling=1', "recal")
	}
function privatcard()
	{
var googlewin=dhtmlwindow.open("ajaxbox", "ajax", '/popup/privatcard/', 'KeydexPlus PrivatCard für Privat-Patienten', 'width=600px,height=1300px,left=100px,top=50px,resize=0,scrolling=1', "recal")
	}

function login_za()
	{
var googlewin=dhtmlwindow.open("ajaxbox", "ajax", '/popup/login_za/', 'Login als Zahnarzt', 'width=600px,height=300px,left=100px,top=50px,resize=0,scrolling=1', "recal")
	}
function login_pa()
	{
var googlewin=dhtmlwindow.open("ajaxbox", "ajax", '/popup/login_pa/', 'Login als Patient', 'width=600px,height=300px,left=100px,top=50px,resize=0,scrolling=1', "recal")
	}

function pop_suche()
	{
var googlewin=dhtmlwindow.open("ajaxbox", "ajax", '/popup/suche/', 'KeydexPlus Zahnarzt in Ihrer Nähe suchen', 'width=600px,height=300px,left=100px,top=50px,resize=0,scrolling=1', "recal")
	}


function popup_form( myform , erfolg )
{
	//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){ 
					 	$('#'+erfolg).html(ret);			
				}	
	});
}
	
