/*

*/

function formFocus( item )
{
   document.location.hash = '#'+ item;	   
}

function removeItem()
{
   ret = confirm('Vymazať ?');
   return ret;
}

function viewJob( id )
{    
   var width = 700;  
   var left = 0;
   if( screen.width < width )
   {
     width = screen.width 
   } 
   
   left = screen.width/2 - width/2;
   w = window.open('jobDetail.aspx?id=' + id,'JobDetail');
   if (w) 
   {  
      w.focus();
	  return false;	  
   } 
   else      
     return true;  
}

function viewCV( id )
{
   var width = 700;  
   var left = 0;
   if( screen.width < width )
   {
     width = screen.width 
   }
   left = screen.width/2 - width/2;
   
   w = window.open('cvDetail.aspx?id=' + id,'CVDetail');   
   if (w) 
   {
	  w.focus();
	  return false;
   } 
   else 
     return true;  
}

function viewPriceList()
{
   var width = 700;  
   var left = 0;
   if( screen.width < width )
   {
     width = screen.width 
   }
   
   left = screen.width/2 - width/2;
   w = window.open('priceList.aspx','PriceList','tool-bar=yes,location=no,menubar=yes,status=no,scrollbars=yes,resizable=yes,width=' + width + ',left=' + left)
   if (w) 
   {
	  w.focus();
	  return false;
   } 
   else 
     return true;  
}

function viewPage( url, w, h )
{
   var u = true;
   var left = 0;

   if(!w) w = 636;      
   if(!h) h = 550;   

   
   if( u )
   {
     y = (screen.height-h)/2;
     x = (screen.width-w)/2;
     
     if (y < 0) y = 0;
     if (x < 0) x = 0;
     
     options = 'menubar=no,toolbar=no,directories=no,location=no,status=yes,scrollbars=yes,resizable=yes,width='+w+',height='+h+',top='+y+',left='+x;
   }   
   else
   {
    options = 'menubar=no,toolbar=no,directories=no,location=no,status=yes,scrollbars=yes,resizable=yes,width='+w+',height='+h+'';
   }
      
   w = window.open( url, 'Info',options)
   if (w) 
   {
      w.focus();
	  return false;	  
   } 
   else 
     return true;  
}
