 type="text/javascript" charset="utf-8">

	// Create location dropdown list
	// Get the level names from the loction selector switch
	function setLocationOptions(requestUrl) {
		// Get the IDX of the domoticz location selector switch
		var deviceIDX = document.getElementById("idx").getAttribute('data-value');
		// console.log(requestUrl);
		$.ajax({
			url: requestUrl + deviceIDX,
			async: false,
			dataType: 'json',
			success: function (data) {
				if(typeof data.result == "undefined"){
			