
function checkInput(obj, str){
  if (obj.value == ""){
      alert("Please enter \"" + str + "\".");
      obj.focus();
      return (false);
  }
  return (true);
}

function checkSelect(obj, str){
  if (obj.options[0].selected) {
    alert("Please select " + str + ".");
    obj.focus();
    return (false)
  }

  return true;
}

function popup(url)
{ 

// for 800x600 display, the size should be approx 200x250
// adjust for other screen resolutions

w = 350  // * (screen.width/800) 
sh = screen.height
if (sh <= 480) {h = 380} 
if (sh <= 600) {h = 380} 
if (sh > 600) {h = 400} 

PopWin = window.open(url,"Test", 'scrollbars=yes,location=no,width=' + w + ',height=' + h); 
} 

function popup2(url)
{ 

// for 800x600 display, the size should be approx 200x250
// adjust for other screen resolutions

w = 200  // * (screen.width/800) 
sh = screen.height
if (sh <= 480) {h = 140} 
if (sh <= 600) {h = 140} 
if (sh > 600) {h = 160} 

PopupWindow = window.open(url,"Test", 'scrollbars=yes,location=no,width=' + w + ',height=' + h); 
} 

function mailpage()
  {
     mail_str = "mailto:?subject=..";
     mail_str += "&body=..line1";
     mail_str += "...line 2 ...";

     location.href = mail_str;
   }
   
function openWindow(url, w, h) {
         var attributes = "width=" + w + ",height=" + h + ",";
         attributes += "resizable=yes,scrollbars=yes,status=no,";
         attributes += "menubar=no,toolbar=yes,location=no,directories=no";
         var popWin = window.open(url, 'popWin', attributes);
         popWin.focus();
       }


var pressedItemuz1gg = "-1";

function xppr(im)
{
  var i=new Image();
  i.src='images/bt'+im;
  return i;
} 

function xpeuz1gg(id)
{ 
x=id.substring(0,id.length-1);
xe=id.substring(id.length-1,id.length);

if (pressedItemuz1gg==x&&(xe=='n'||xe=='o')) 
return;

if (xe=='c')
  {
    if (pressedItemuz1gg!='-1')
      {
        document['xpwb'+pressedItemuz1gg].src=eval('xpwb'+pressedItemuz1gg+'n'+'.src');
        if(pressedItemuz1gg.indexOf('e')!=-1) 
           document['xpwb'+pressedItemuz1gg+'e'].src=eval('xpwb'+pressedItemuz1gg+'n'+'e.src');
      }
    pressedItemuz1gg=x;
  } 
  
  document['xpwb'+x].src=eval('xpwb'+id+'.src');
  if(id.indexOf('e')!=-1)document['xpwb'+x+'e'].src=eval('xpwb'+id+'e.src');
}
 
xpwbuz1ggn=xppr('uz1gg_0.gif');
xpwbuz1ggo=xppr('uz1gg_1.gif');
xpwbuz1ggc=xppr('uz1gg_2.gif');
xpwbfz1ggn=xppr('fz1gg_0.gif');
xpwbfz1ggo=xppr('fz1gg_1.gif');
xpwbfz1ggc=xppr('fz1gg_2.gif');
xpwb2z1ggn=xppr('2z1gg_0.gif');
xpwb2z1ggo=xppr('2z1gg_1.gif');
xpwb2z1ggc=xppr('2z1gg_2.gif');
xpwbhz1ggn=xppr('hz1gg_0.gif');
xpwbhz1ggo=xppr('hz1gg_1.gif');
xpwbhz1ggc=xppr('hz1gg_2.gif');
xpwbkz1ggn=xppr('kz1gg_0.gif');
xpwbkz1ggo=xppr('kz1gg_1.gif');
xpwbkz1ggc=xppr('kz1gg_2.gif');
if(pressedItemuz1gg!='-1')
  xpeuz1gg(pressedItemuz1gg+'c');


// Menu with Prices button

var pressedItemty3w4 = "-1";

function xppr(im)
{
   var i=new Image();
   i.src='images/bt'+im;
   return i;
}

function xpety3w4(id)
{
x=id.substring(0,id.length-1);
xe=id.substring(id.length-1,id.length);

if (pressedItemty3w4==x&&(xe=='n'||xe=='o'))
return;

if (xe=='c')
{
  if (pressedItemty3w4!='-1')
    {
      document['xpwb'+pressedItemty3w4].src=eval('xpwb'+pressedItemty3w4+'n'+'.src');
        if(pressedItemty3w4.indexOf('e')!=-1)
          document['xpwb'+pressedItemty3w4+'e'].src=eval('xpwb'+pressedItemty3w4+'n'+'e.src');
    }
  pressedItemty3w4=x;
}

document['xpwb'+x].src=eval('xpwb'+id+'.src');
if(id.indexOf('e')!=-1)
   document['xpwb'+x+'e'].src=eval('xpwb'+id+'e.src');
}

xpwbty3w4n=xppr('ty3w4_0.gif');
xpwbty3w4o=xppr('ty3w4_1.gif');
xpwbty3w4c=xppr('ty3w4_2.gif');
xpwb5y3w4n=xppr('5y3w4_0.gif');
xpwb5y3w4o=xppr('5y3w4_1.gif');
xpwb5y3w4c=xppr('5y3w4_2.gif');
xpwbay3w4n=xppr('ay3w4_0.gif');
xpwbay3w4o=xppr('ay3w4_1.gif');
xpwbay3w4c=xppr('ay3w4_2.gif');
xpwb0y3w4n=xppr('0y3w4_0.gif');
xpwb0y3w4o=xppr('0y3w4_1.gif');
xpwb0y3w4c=xppr('0y3w4_2.gif');
xpwbzy3w4n=xppr('zy3w4_0.gif');
xpwbzy3w4o=xppr('zy3w4_1.gif');
xpwbzy3w4c=xppr('zy3w4_2.gif');
xpwb3y3w4n=xppr('3y3w4_0.gif');
xpwb3y3w4o=xppr('3y3w4_1.gif');
xpwb3y3w4c=xppr('3y3w4_2.gif');
if(pressedItemty3w4!='-1')
   xpety3w4(pressedItemty3w4+'c');





