function vacancy3_list_view( id )
{
	var obj;
	
	if( !( obj = getObj( 'vacancy_list_view_' + id ) ) )
		return false;

	//obj.loaded = false;
		
	if( !obj.loaded )
	{
		var req = new JsHttpRequest();

        req.onreadystatechange = function() {
            if (req.readyState == 4) {
            	
                obj.fullViewHTML = req.responseText;
                obj.loaded 		 = true;
                
                vacancy3_list_view( id );
          }
        }
        
        if( !searchString )
            var searchString = false;
        
        req.open( null, '/modules/vacancy_list/inc/list_fullView.ajax.php', true );
        req.send( {id: id} );
	}
	else
	{
		var content;
		if( !( content = getObj( obj.id + '_content') ) )
			return;
		
		if( !obj.open )
		{				
			obj.shortViewHTML = content.innerHTML;
			content.innerHTML = obj.fullViewHTML;
			obj.className = obj.className.replace('short', '');
			
			obj.open = true;
		}
		else
		{
			obj.fullViewHTML = content.innerHTML;
			content.innerHTML = obj.shortViewHTML;			
			obj.className += ' short';
			
			obj.open = false;
		}
	}
}

function showPhone(id , phone)
{
	obj = getObj('hidePhone_'+id);
	if (obj)
	{
		$(obj).html('<div class="note"><div class="text"><b>Скажите, что увидели вакансию на сайте <span style="white-space:nowrap;">«Работа 66»</span></b> Для нас это очень важно. Спасибо.</div></div><div class="bg_yellow bg"><div class="show"><div class="b"><img src="/tpl/i/message_b.png"></div><div class="text">Телефон:</div><div class="phone" style="width:150px;font-size:14pt;">'+phone+'</div></div></div>');

		/*
	    var req = new JsHttpRequest();
	    
	    req.onreadystatechange = function() {
	        if (req.readyState == 4) {
	        }
	    }
	    req.open(null, '/ajax/showVacancyPhone.php', true);
	    req.send( {id:id} );*/
	}
}