function popupwindow(username,lan){
	var thelink = "userinfo.asp?lan="+lan+"&alias="+username;
	handle = window.open(thelink,"Userinfo", "toolbar=no,resizable=no,scrollbars=no,width=410,height=210");
	handle.focus();
}

function buttons(action){
	if(action != ""){	
		if(action == "previous"){
			window.document.forms['whoson'].elements['buttons'].value = "previous";
			window.document.forms['whoson'].submit();
		}else{
			if(action == "next"){
				window.document.forms['whoson'].elements['buttons'].value = "next";
				window.document.forms['whoson'].submit();
			}
		}
	}
}

function buttonsPage(offset){
	if(offset != ""){	
			window.document.forms['whoson'].elements['firstElement'].value = ""+ offset;
			window.document.forms['whoson'].submit();
	}
}

function restartPosition(){
	window.document.forms['whoson'].elements['searchPressed'].value = "1";
	window.document.forms['whoson'].submit();
}