// JavaScript Document
function votar(id,vote_bool,nick){
	frm = document.getElementById('subform');
	frm.meet_id.value = id;
	frm.nickname.value = nick;
	frm.vote.value = vote_bool;
	frm.submit();
}
function update_country_ck(country_ck) {
	if(country_ck.checked){
		change_display(document.getElementById('location'));
		change_display(document.getElementById('country'));
	}
	else{
		frm = document.getElementById('subform');
		frm.country.value = '-1';
		frm.submit();
	}
}
function update_keyword_ck(keyword_ck) {
	if(keyword_ck.checked){
		change_display(document.getElementById('keywords1'));
		change_display(document.getElementById('keywords2'));
		change_display(document.getElementById('go'));
	}
	else{
		frm = document.getElementById('subform');
		frm.keyword.value = '';
		frm.submit();
	}
}
function change_display(obj){
	if (obj.style.display == 'none' )  obj.style.display = 'inline';
	else obj.style.display = 'none';
}
function showOthers(){
	document.getElementById('more').style.display = 'inline';
	document.getElementById('view_more').style.display = 'none';
}
function changePhoto(src){
	document.getElementById('main').src = src;
}