/*
function open_img(id){
	window.open('index.php?g_full=1&id='+id, '', 'toolbar=0, location=0, directories=0, status=1, menubar=0, scrollbars=yes, resizable=yes, width=600, height=500');
	return false;
}
*/
function check_registr(){
	if(document.getElementById('r_uname').value.length==0){
		document.getElementById('r_info').innerHTML='<span class="stress">Пустое имя пользователя недопустимо!</span>';
		return false;
	}
	if(document.getElementById('r_upass1').value.length==0){
		document.getElementById('r_info').innerHTML='<span class="stress">Пустой пароль недопустим!</span>';
		return false;
	}
	if(document.getElementById('r_upas2').value.length==0){
		document.getElementById('r_info').innerHTML='<span class="stress">Пустой пароль недопустим!</span>';
		return false;
	}
	if(document.getElementById('r_email').value.length==0){
		document.getElementById('r_info').innerHTML='<span class="stress">Необходимо ввести адрес электронной почты!</span>';
		return false;
	}
	if(document.getElementById('r_upas1').value!=document.getElementById('r_upas2').value){
		document.getElementById('r_info').innerHTML='<span class="stress">Пароли не совпадают!</span>';
		return false;
	}
	
	return true;
}
function frm_pm(){
	if(document.getElementById('au_pm').className!='au_comment_disp'){
		document.getElementById('au_pm').className='au_comment_disp';
	}else{
		document.getElementById('au_pm').className='au_comment';
	}
}


function show_results(poll_id){
        var url='./index.php?act=pollres&id='+poll_id;
//alert(url);
        var newwindow=window.open(url,'win_results','height=300, width=450');
        if(window.focus){
		newwindow.focus();
	}
        return false;
}

function open_img(id){
	var url="index.php?act=g_full&id="+id;
	window.open(url, '', 'toolbar=0, location=0, directories=0, status=1, menubar=0, scrollbars=yes, resizable=yes, width=835, height=620');
	return false;
}

function show_comment(){
	document.getElementById('cmnt_form').className='cmnt_show';
	document.getElementById('cmnt_btn').innerHTML='<a href="javascript:hide_comment();">оставить комментарий (-)</a>';
}
function hide_comment(){
	document.getElementById('cmnt_form').className='cmnt_hide';
	document.getElementById('cmnt_form').visibility='hidden';
	document.getElementById('cmnt_btn').innerHTML='<a href="javascript:show_comment();">оставить комментарий (+)</a>';
}
