function checkVal(el,val,cursor) {

	if (cursor) {

		if (el.value==val)

		el.value="";

	} else {

		if (el.value=="")

		el.value=val;

	}

}





function filter_news()

{

	var categories = '';

	var subject = document.getElementById('thema').value;

	// nun weitere Felder auslesen, z.B. Medientyp

	var year = document.getElementById('year').value;

	var author = document.getElementById('author');

 	var splitURL = document.URL.split("&");

 	

	//categories = subject + ',' + mediaType + ',' + author;

	if (subject != "" && year != "") {

    		 	

		// neue URL mit Variable 'categories' zusammen setzen

		window.location = splitURL[0] +

		'?&tx_ttnews[cat]=' + subject +

		'&tx_ttnews[year]=' + year +

		'&no_cache=1';

	}

	if (subject == "" && year != "") {

    		 	

				// neue URL mit Variable 'categories' zusammen setzen

		window.location = splitURL[0] +

		

		'?&tx_ttnews[year]=' + year +

		'&no_cache=1';

	}

	if (year == "" && subject != "" ) {

    		 	

				// neue URL mit Variable 'categories' zusammen setzen

		window.location = splitURL[0] +

		'?&tx_ttnews[cat]=' + subject +

		'&no_cache=1';

	}





}