function pm()
{
	temp1 = '';
	temp2 = '';
	temp3 = '';
	temp4 = '';
	temp5 = '';
	p = '';
	paras = false;
	if(typeof(document.formular) != 'undefined' && tid != '') {
		if(document.getElementById('reiseterminTxt')) {
			temp1 = '&reisetermin=' + encodeURIComponent(document.getElementById('reiseterminTxt').innerHTML);
			if (typeof document.formular.boxtag.value != "undefined") temp4 = '&boxtag=' + document.formular.boxtag.value;
			if (typeof document.formular.boxmonat.value != "undefined") temp5 = '&boxmonat=' + document.formular.boxmonat.value;
		}  // end if
		
		if(document.getElementById('boxwochenTxt'))
			temp2 = '&reisedauer='+encodeURI(document.getElementById('boxwochenTxt').innerHTML);

		if(typeof(document.formular.boxpersonen) != 'undefined')
			temp3 = '&personen='+document.getElementById('boxpersonenSelect').value;

		// Warum wird &leer benötigt???
		p = (temp1 != "" ? temp1 : '&leer') + temp2 + temp3 + temp4 + temp5 + '&objekt=' + tid;
	}

	return(p);
}

function openChatWindow(url) {
	window.open(url + pm() + "&pid="+pid, 'chat', 'width=600, height=450');
}  // end function