function setUniID(id) {
	document.forms["loginForm"].uni_id.value = id;
}

function setUniUrl(url)
{
    jQuery("#getPassword").attr("href", "http://"+url+"/game/reg/mail.php");
    jQuery("#pwLost").attr("href","http://"+url+"/game/reg/mail.php");
    jQuery("#loginForm").attr("action", "http://"+url+"/game/reg/login2.php");
}

function setFormAction(url) {
	document.forms["loginForm"].action = "http://"+url+"/game/reg/login2.php";
}

function changeAction(type,formular)
{
	var uniUrl = document.forms[formular].uni_url.value;

	if(type == "login")
	{
		document.forms[formular].action = "http://"+uniUrl+"/game/reg/login2.php";
	}
	else if(type == "getpw")
	{
		document.forms[formular].action = "http://"+uniUrl+"/game/reg/mail.php";
	}
	else if(type == "register")
	{
		document.forms[formular].action = "http://"+uniUrl+"/game/reg/newredirect.php";
	}
}