 var lastType = "";
    function changeAction(type) {
		if(document.formular.Uni.value == '') {
			alert('Nie wybrałeś żadnego Universum!');
		}
		else {
			if(type == "login" && lastType == "") {
    			var url = "http://" + document.formular.Uni.value + "";
    			document.formular.action = url;
			}
			else {
    			var url = "http://" + document.formular.Uni.value + "/reg.php";
    			document.formular.action = url;
			document.formular.submit();
			}
		}
	}
	function MyAddress(IP) { 
		document.getElementById("CL_IP").value=IP
	}
