// Quite simple script for executing a lightwindow call on a option box selection
// (C) bkits.at
// $Rev: 165 $
function nav2(ref)
   {   
   // decide whether the national or international pos
   if (ref == 'nat') {
	   l = document.navform_nat.navlist.options[document.navform_nat.navlist.selectedIndex].value;
	   t = document.navform_nat.navlist.options[document.navform_nat.navlist.selectedIndex].text;
	   document.navform_nat.navlist.selectedIndex = 0;
   } else {
	   l = document.navform_int.navlist.options[document.navform_int.navlist.selectedIndex].value;
	   t = document.navform_int.navlist.options[document.navform_int.navlist.selectedIndex].text;
	   document.navform_int.navlist.selectedIndex = 0;
   }
   if (l == "#") { return; }      
   myLightWindow = new lightwindow();
   myLightWindow.activateWindow({
   href: l, 
   title: 'Point of sale for ' + t,
   width: 600,
   height: 350,
   type: 'external'
	 });
   }
