
function Go(there) {
window.location.href=there;
}

function JumpPage(whereto) {
newpage = whereto.options[whereto.selectedIndex].value;

if (newpage == "idiot") { alert('Please select where you want to go to');
      return false; }
window.location.href = newpage;
}

function Search() {

var Temp= window.search.q;
if  (Temp.value == "") 
    { alert('Please enter one or more words to search for'); return false; }
return true; 
}

function Printit() {

if (window.print != null){
   document.title='Visit www.picotech.com for more information';
   window.print();
   } else {
           alert('Please select PRINT from the FILE menu to print this page');} 
}

function hasClass(obj) {
     var result = false;
     if (obj.getAttributeNode("class") != null) {
         result = obj.getAttributeNode("class").value;
     }
     return result;
  }   

 function Stripe(id) {

    var even = false;
  
    var evenColor = arguments[1] ? arguments[1] : "#FBF9F9";  // #EFEDED
    var oddColor = arguments[2] ? arguments[2] : "#EBF5FF";	// #DAEDFE
  
    var table = document.getElementById(id);
    if (! table) { return; }
    
    var tbodies = table.getElementsByTagName("tbody");

    for (var h = 0; h < tbodies.length; h++) {
      var trs = tbodies[h].getElementsByTagName("tr");
 
      for (var i = 0; i < trs.length; i++) {

	    if (!hasClass(trs[i]) && ! trs[i].style.backgroundColor) {
 
          var tds = trs[i].getElementsByTagName("td");
          var ths = trs[i].getElementsByTagName("th");

          for (var j = 0; j < tds.length; j++) {
        
            var mytd = tds[j];

	        if (! hasClass(mytd) && ! mytd.style.backgroundColor) {
        	 mytd.style.backgroundColor = even ? evenColor : oddColor;  
            }
          }
           for (var j = 0; j < ths.length; j++) {
        
            var mytd = ths[j];
            if (! hasClass(mytd) && ! mytd.style.backgroundColor) {
		      mytd.style.backgroundColor = even ? evenColor : oddColor;
              }
          }
        }
        even =  ! even;
      }
    }
  }

function Ruler()
{
 if (document.getElementById && document.createTextNode)
  {
   var tables=document.getElementsByTagName('table');
   for (var i=0;i<tables.length;i++)
   {
    if(tables[i].className=='ruler')
    {
     var trs=tables[i].getElementsByTagName('tr');
     for(var j=0;j<trs.length;j++)
     {
      if(trs[j].parentNode.nodeName=='TBODY' && trs[j].parentNode.nodeName!='TFOOT')
       {
       trs[j].onmouseover=function(){this.className='ruled';return false}
       trs[j].onmouseout=function(){this.className='';return false}
     }
    }
   }
  }
 }
}

function NoButt(theButton)
{
 theButton.value="Wait...";
 theButton.disabled = true;
 theButton.form.submit();
}

defaultStatus='Pico Technology PC oscilloscopes and data acquisition products';

