function modul() {
	this.open("https://www.judico.de/modul/index.php?startURL=modulRegistrierung&einstellungID=user&language=de", "JudicoGmbH", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=1000,height=600,left=0,top=0");
}

function ch_color(element, active) {

	if (active) {
		element.style.backgroundColor = '#666666';
		element.childNodes[0].style.color = '#FFFFFF';
		document.body.style.cursor = 'pointer';
	} else {
		element.style.backgroundColor = '';
		element.childNodes[0].style.color = '#333333';
		document.body.style.cursor = 'default';
	}
	
}

function click_url(element) {
	//alert(element.childNodes[0]);
}

// Video
function video() {
	$.nyroModalManual({
		width: 640,
		minWidth: 640,
		height: 360,
		minHeight: 360,
		type:'content',
		content: '<a href="http://www.letzte-mahnung.de/videos/Mahnbescheid-Mahnung.flv" style="display:block;width:640px;height:360px;" id="video"></a>',
		endShowContent: function(elts, settings){ flowplayer("video", "http://www.letzte-mahnung.de/videos/flowplayer-3.1.5.swf"); }
	});
}

function zinsrechner() {
	
	// Request senden über Modal Fenster
	$.nyroModalManual({
		width: 400,
		minWidth: 400,
		height: 270,
		minHeight: 270,
		ajax: {
			type  : "POST",
			title : 'Verzugszinsrechner',
			url   : "http://www.letzte-mahnung.de/scripts/zinsrechner.php",
			data  : 'zinsrechner_betrag=' + $('#zinsrechner_betrag').attr('value') +'&zinsrechner_von_tag=' + $('#zinsrechner_von_tag').attr('value') +'&zinsrechner_von_monat=' + $('#zinsrechner_von_monat').attr('value') +'&zinsrechner_von_jahr=' + $('#zinsrechner_von_jahr').attr('value') +'&zinsrechner_bis_tag=' + $('#zinsrechner_bis_tag').attr('value') +'&zinsrechner_bis_monat=' + $('#zinsrechner_bis_monat').attr('value') +'&zinsrechner_bis_jahr=' + $('#zinsrechner_bis_jahr').attr('value') +'&zinsrechner_zinsen=' + $("input[@name='zinsrechner_zinsen']:checked").val() +'&zinsrechner_zinsen_wert=' + $('#zinsrechner_zinsen_wert').attr('value')
		}
    });

}

function gerichte() {

	$.nyroModalManual({
		ajax: {
			type  : "POST",
			title : 'Gerichtsadressen',
			url   : "http://www.letzte-mahnung.de/scripts/gerichtsadressen.php",
			data  : 'plz=' + $('#gerichte').attr('value')
		}
    });

}

function gebuehren() {
	
	// Request senden über Modal Fenster
	$.nyroModalManual({
		ajax: {
			type  : "POST",
			title : 'Gebührenrechner',
			url   : "http://www.letzte-mahnung.de/scripts/gebuehrenrechner.php",
			data  : 'forderungsbetrag=' + $('#gebuehren').attr('value')
		}
    });

}