
var pop_zoom = null;
function pop_up(url,width2,height2)
  {

   if (navigator.appName == 'Netscape')
    {
     posx = window.screenX + ((window.innerWidth - width2)/2);
     posy = window.screenY + ((window.innerHeight - height2)/2);	
    }
   else if(navigator.appName == 'Microsoft Internet Explorer')
    {
     posx = (screen.width - width2)/2;
     posy = (screen.height - height2)/2;
    }
     else
      {
       posx=0;
       posy=0;
      }
   pop_zoom=window.open(url,'pop_zoom','scrollbars=yes,menubar=no,status=no,width='+width2+',height='+height2+',top='+posy+',left='+posx+'');
   pop_zoom.focus
  }

var pop_zoom = null;
function pop_up2(url,width2,height2)
  {

   if (navigator.appName == 'Netscape')
    {
     posx = window.screenX + ((window.innerWidth - width2)/2);
     posy = window.screenY + ((window.innerHeight - height2)/2);	
    }
   else if(navigator.appName == 'Microsoft Internet Explorer')
    {
     posx = (screen.width - width2)/2;
     posy = (screen.height - height2)/2;
    }
     else
      {
       posx=0;
       posy=0;
      }
   pop_zoom=window.open(url,'pop_zoom','scrollbars=yes,menubar=no,status=no,width='+width2+',height='+height2+',top='+posy+',left='+posx+'');
   pop_zoom.focus
  }


function validate_site_search(f)
  {
   if (f.keyword.value == '')
     return false;
   if(f.action_search[0].selected)
	document.form_search.action='index.php';
   else
	document.form_search.action='catalog/index.php?action=catalog';
   return true;
  }
  
function validate_site_search_catalog(f)
  {
   if (f.keyword.value == '')
     return false;
     
   if(f.cat_search[0].selected)
	document.form_search.action='../index.php';
   else
	document.form_search.action='index.php?action=catalog';
   return true;
  }
