function open_subscribe ( e , email )
	{
	if ( email )
		{
		open_frame ( "subscribers|subscribe|email|" + email , 200 , 100 , e , 'Подписка:' );
		}
	else
		{
		alert ( 'Выберите продукты для подписки' );
		}
	}

function popup_vote ( frm_name , txt , e )
        {
        my_form = getElement ( "to_frame" );
        check = false;

        frm = getElement ( frm_name );
        theGroup = frm.vote_questions_id;
        for (i=0; i< theGroup.length; i++) 
                {
                if ( theGroup[i].checked) 
                        {
                        question_id = theGroup[i].value;
                        check = true;
                        break;
                        }
                }

        if ( check == false )
                {
                alert ( '\xc2\xfb\xe1\xe5\xf0\xe8\xf2\xe5 \xe2\xe0\xf0\xe8\xe0\xed\xf2 \xee\xf2\xe2\xe5\xf2\xe0' );
                }
        else
                {
                open_frame ( "voiting|vote|vote_id|" + frm.vote_id.value + "|answer_id|" + question_id , 200 , 100 , e , 'Голосование:' )
                }
        }

function popup_vote_show ( vote_id , txt , e )
        {
        my_form = getElement ( "to_frame" );
        open_frame ( "voiting|show_result|vote_id|" + vote_id , 200 , 100 , e , 'Голосование:' )
        }


