// Following script is for Pocell Inc.
// Created by Alex Shi, Stonix.com
// Copyright 2000, Stonix.com. All Rights Reserved

//detect browser - only for MSIE and Netscape
N=(navigator.appName.indexOf("Netscape")!=-1);
M=(navigator.appName.indexOf("Microsoft")!=-1);

var attr1 = "toolbar=0,location=0,directories=0,menubar=0,scrollbars,resizable,width=400,height=450,copyhistory=0";
var attr_small = "toolbar=0,location=0,directories=0,menubar=0,scrollbars,resizable=0,top=30,left=30,width=250,height=150,copyhistory=0";


if(document.images){
    for( i=1; i<6; i++ ){
        eval('image'+i+'on = new Image();');
        eval('image'+i+'on.src = \"images/bt'+i+'_on.gif\"');
        eval('image'+i+'off = new Image();');
        eval('image'+i+'off.src = \"images/bt'+i+'_off.gif\"');
    }
}

function turnOn(num){
    if(document.images){
        document['image'+num].src = eval('image'+num+'on.src');
    }
}

function turnOff(num){
    if(document.images){
        document['image'+num].src = eval('image'+num+'off.src');
    }
}

function myWindow(url,win_attr) { 
    var newwin=window.open(url,'',win_attr); 
    return false;
}

function formValidator(theForm)
{
  if (theForm.full_name.value == "")
  {
    alert("Please enter a value for the \"Full name\" field.");
    theForm.full_name.focus();
    return (false);
  }

  if (theForm.phone.value == "")
  {
    alert("Please enter a value for the \"Telephone number\" field.");
    theForm.phone.focus();
    return (false);
  }

  if (theForm.email.value == "")
  {
    alert("Please enter a value for the \"Email\" field.");
    theForm.email.focus();
    return (false);
  }

  if (theForm.comment.value == "")
  {
    alert("Please enter a value for the \"Comment\" field.");
    theForm.comment.focus();
    return (false);
  }

  return (true);
}
