  function AddFav(url,tip,id,title) 
   {
     if (tip=='v') uri='http://'+url+'/vacancy-'+id+'.html';
	 else 
	 if (tip=='r') uri='http://'+url+'/resume-'+id+'.html';
	 else 
	 if (tip=='fv') uri='http://'+url+'/favvacancy-'+id+'.html';
	 else 
	 if (tip=='fr') uri='http://'+url+'/favresume-'+id+'.html';	 
	 
	 window.external.AddFavorite(uri,title);
   }


      


   var mailWindow;
   function getfoto(url,id)
   {
       var x;
	   var y;
	   var sss;
	   
	   var wdth;
       x=50;
	   wdth=screen.width-100;
       y=screen.height-150;
	   
	   
	   sss="toolbar=no, status=no, scrollbars=yes, titlebar=no, menubar=no, top=50, left="+x+", width="+wdth+", height="+y;
		
	   zurl='http://'+url+'/foto.php?reg='+id; 
		
	   mailWindow=open(zurl, "fotoW", sss);
   }

   
   
   
   function churl(frm)
   {
      if (frm.vr.selectedIndex == 0) document.all.ExtPoisk.href='searchvacancyform.html'; else document.all.ExtPoisk.href='searchresumeform.html';
   }
   
   
   

   function chtitle(frm)
   {
      frm.submit.value='Æäèòå ...';
   }
   
   
   var msgWindow;
   function SendMsg(url,tip,id)
   {
       var x;
	   var y;
	   var sss;
	   
	   var wdth;
       x=150;
	   wdth=screen.width-300;
       y=screen.height-250;	   
	   
	   sss="toolbar=no, status=no, scrollbars=yes, titlebar=no, menubar=no, top=100, left="+x+", width="+wdth+", height="+y;
		
	
	   if (tip=='v') zurl='http://'+url+'/sendmsgv.php?id='+id; 
	   else 
	   if (tip=='r') zurl='http://'+url+'/sendmsgr.php?id='+id; 
		
	   mailWindow=open(zurl, "msgW", sss);
	   
	   return false;
   }



   function chtxt(frm)
   {
      if ((frm.phrase.value=='âñå âàêàíñèè') || (frm.phrase.value=='âñå ðåçþìå')) frm.phrase.value='';
   }











