function gotoSupportTicket(t) {
	document.location.href='/support.php?t='+t;
	return false;
}

var _img_true = "http://static.primusportal.de/images/icons/tick.png";
var _img_false = "http://static.primusportal.de/images/icons/cross.png";

function validateUser() {
	$.post("/support.php", {ajax: "validate", username: $("#username").val(), password: $("#password").val()}, function(ret) {
		if(ret=="true") 
		  $("img#indicator").attr("src", _img_true);
		else
		  $("img#indicator").attr("src", _img_false);
	});
}