	function Change_category() {
		document.rating.change_category.value="change";
		document.rating.category_hidden.value=document.rating.category.value;
		document.rating.submit();
	}	

	function Change_picture(on,off) {
		document[on].src=eval(on+"_on.src");
		document[off].src=eval(off+"_off.src");
		document.rating.sex.value=on;
		return false;
	}
	
	function Opener() {
		open_window("Register.asp?action=new", "Regisztracio", 330, 500);
	}
	
	function forgot() {
		open_window("forgot.asp", "Forgot", 330, 330);
	}
	
	function New_message() {
		open_window("message.asp?action=new&index="+document.rating.index.value+"&category="+document.rating.category.value, "Message", 330, 500);
	}
	
	function own_picture(){
		var s1 = document.rating.username.value; 
		var s2 = document.rating.password.value; 
		open_window("own_picture.asp?action=list&username="+s1+"&password="+s2 , "ownpicture", 330, 500); 
	}

	men_on = new Image(); men_on.src = "pic/men_on.gif";
	men_off = new Image(); men_off.src = "pic/men_off.gif";
	
	women_on = new Image(); women_on.src = "pic/women_on.gif";
	women_off = new Image(); women_off.src = "pic/women_off.gif";