function trim(stringToTrim) {
	return stringToTrim.replace(/^\s+|\s+$/g,"");
}
function ltrim(stringToTrim) {
	return stringToTrim.replace(/^\s+/,"");
}
function rtrim(stringToTrim) {
	return stringToTrim.replace(/\s+$/,"");
}
function gotoURL() {
	var NewLink = "/jolie/" + document.zodiacForm1.type.value + "/" + document.zodiacForm1.mode.value + "_" + document.zodiacForm1.zodiac1.options[document.zodiacForm1.zodiac1.selectedIndex].value + ".html";
	/*
 	alert("going to: " + NewLink );
	*/
	window.location.href = NewLink;
	return false;
}

function gotoURL2() {
	var NewLink = "/jolie/" + document.zodiacForm2.type.value + "/" + document.zodiacForm2.mode.value + "_" + document.zodiacForm2.zodiac1.options[document.zodiacForm2.zodiac1.selectedIndex].value + "_" + document.zodiacForm2.zodiac2.options[document.zodiacForm2.zodiac2.selectedIndex].value + ".html";
	/*
	alert("going to: " + NewLink );
	*/
	window.location.href = NewLink;
	return false;
}

function gotoURL3(zodiac) {
	for (var i=0; i < document.zodiacForm3.mode.length; i++) {
		if (document.zodiacForm3.mode[i].checked) {
			var rad_val = document.zodiacForm3.mode[i].value;
		}
	}
	var Vorname = document.zodiacForm3.vorname.value;
	var Nachname = document.zodiacForm3.nachname.value;

	var NewLink = "/jolie/";
	NewLink += document.zodiacForm3.type.value;
	NewLink += "/";
	NewLink += rad_val;
	NewLink += "_";
	NewLink += zodiac;
	if ( Vorname != "") {
		NewLink += "_";
		NewLink += trim(Vorname);
	}
	if ( Nachname != "") {
		NewLink += "_";
		NewLink += trim(Nachname);
	}
	NewLink += ".html";

	window.location.href = NewLink;
	/*
	NewLink =+ "/" + document.zodiacForm3.mode.value;
	NewLink =+ "_" + document.zodiacForm3.zodiac1.options[document.zodiacForm3.zodiac1.selectedIndex].value + "_" + document.zodiacForm3.zodiac3.options[document.zodiacForm3.zodiac2.selectedIndex].value + ".html";
	alert("going to: " + NewLink );
	*/


	return false;
}