
// absenden des formulars
function checkFormular()
{
	document.getElementById('fehler3').style.display = "none";
	document.getElementById('fehler4').style.display = "none";	
	if (document.ausform.Sozio_4_Filter.value != '' && document.ausform.Sozio_1_Filter.value == 0)
	{
		document.getElementById('fehler3').style.display = "block";
		return false;
	}
	else if (document.ausform.Sozio_9_Filter.value != '' && document.ausform.Sozio_1_Filter.value == 0)
	{
		document.getElementById('fehler4').style.display = "block";
		return false;
	}
}


// nachricht schicken
function sendform_email()
{
	document.Ansicht_Ausfuehrlich.email_form.value=3;
	document.Ansicht_Ausfuehrlich.action = document.Ansicht_Ausfuehrlich.action+'#email_form';
	document.Ansicht_Ausfuehrlich.method = 'post'
	document.Ansicht_Ausfuehrlich.submit();
}

//  nachricht form check
function check_form_inhalte()
{
	if (document.Ansicht_Ausfuehrlich.freitext_email.value == '')
	{
		alert('Bitte füllen Sie das Feld meine Nachricht aus!');
	}
	else
	{		
		sendform_email_abschicken();
	}
}

//  nachricht schicken speichern
function sendform_email_abschicken()
{
	document.Ansicht_Ausfuehrlich.post_speichern.value=1;
	document.Ansicht_Ausfuehrlich.action = document.Ansicht_Ausfuehrlich.action+'#email_form';
	document.Ansicht_Ausfuehrlich.method = 'post'
	document.Ansicht_Ausfuehrlich.submit();
}

//  nachricht schicken abbrechen
function sendform_email_abbrechen()
{
	document.Ansicht_Ausfuehrlich.post_speichern.value=0;
	document.Ansicht_Ausfuehrlich.submit();
}

// chateinladung schicken
function sendform_chat()
{
	document.Ansicht_Ausfuehrlich.chat_form.value=3;
	document.Ansicht_Ausfuehrlich.action = document.Ansicht_Ausfuehrlich.action+'#email_form';
	document.Ansicht_Ausfuehrlich.method = 'post'	
	document.Ansicht_Ausfuehrlich.submit();
}

function sendform_email_chat_abbrechen()
{
	document.Ansicht_Ausfuehrlich.chat_speichern.value=0;
	document.Ansicht_Ausfuehrlich.submit();
}	

function check_form_chat_inhalte()
{
	if (document.Ansicht_Ausfuehrlich.freitext_email.value == '')
	{
		alert('Bitte füllen Sie das Feld meine Nachricht aus!');
	}
	else
	{		
		sendform_email_chat_abschicken();
	}
}	

function sendform_email_chat_abschicken()
{
	document.Ansicht_Ausfuehrlich.chat_speichern.value=1;
	document.Ansicht_Ausfuehrlich.action = document.Ansicht_Ausfuehrlich.action+'#email_form';
	document.Ansicht_Ausfuehrlich.method = 'post'	
	document.Ansicht_Ausfuehrlich.submit();
}

// profil senden mit umleitung E
function profil_senden_e(kom,u_kom,u_u_kom,va_servername)
{
	var wWidth = 600; var wHeight = 570; var left = ( screen.availWidth - wWidth ) / 2; var top = ( screen.availHeight - wHeight ) / 4;
	var param = 'width=' + wWidth + ',height=' + wHeight + ',toolbar=no,scrollbars=no,location=no,left=' + left + ',top=' + top + ',status=no,resizable=no,menubar=no';
	URL = "http://"+va_servername+'/inc/info_fenster/profil?kom='+kom+'&u_kom=E'+u_kom+'&u_u_kom='+u_u_kom;
	window.open(URL,'print',param);
	return;
}

// einen eintrag einstellen, in den eigenen bereich
function sendform_eintragen()
{
	document.reisen_eingabe.kom.value = 16;
	document.reisen_eingabe.u_kom.value = 30;
	document.reisen_eingabe.u_u_kom.value = 0;	
	document.reisen_eingabe.admin.value = 0;
	document.reisen_eingabe.target = "_top";
	document.reisen_eingabe.submit();
}

// eintrag bearbeiten
function sendform_eingabe(id)
{
	document.reisen_eingabe.kom.value = 16;
	document.reisen_eingabe.u_kom.value = 30;
	document.reisen_eingabe.u_u_kom.value = 0;
	document.reisen_eingabe.admin.value = 0;	
	document.reisen_eingabe.admin_id.value = 2;
	document.reisen_eingabe.daten_id.value = id;	
	document.reisen_eingabe.target = "_top";
	document.reisen_eingabe.submit();
}



	