
<!--  Start of the script for the vertical menu bar -->
<!--
/*
Cool Table Menu
By Clarence Eldefors (http://www.freebox.com/cereweb) with modifications from javascriptkit.com
Visit http://javascriptkit.com for this and over 400+ other scripts
*/



function movein(which,html){
which.style.background='coral'
if (document.getElementById)
document.getElementById("boxdescription").innerHTML=html
else
boxdescription.innerHTML=html
}

function movein2(which,html){
if (document.getElementById)
document.getElementById("boxdescription").innerHTML=html
else
boxdescription.innerHTML=html
}

function movein3(which,html){
if (document.getElementById)
document.getElementById("address_box").innerHTML=html
else
Address_box.innerHTML=html
}

function moveout(which){
which.style.background='#c9c9c9'
if (document.getElementById)
document.getElementById("boxdescription").innerHTML='&nbsp;'
else
boxdescription.innerHTML='&nbsp;'
}

function moveout2(which){
if (document.getElementById)
document.getElementById("boxdescription").innerHTML='&nbsp;'
else
boxdescription.innerHTML='&nbsp;'
}

function moveout3(which){
if (document.getElementById)
document.getElementById("address_box").innerHTML='&nbsp;'
else
Address_box.innerHTML='&nbsp;'
}

//-->

<!--  End of the script for the vertical menu bar -->

<!--  Start of the script to swap the photos -->

<!-- Original:  Nicholas Lupien (smylex@aol.com) -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
var rand1 = 0;
var useRand = 0;

images = new Array;
images[1] = new Image();
images[1].src = "web/images/frontpage/rsl-328.jpg";
images[2] = new Image();
images[2].src = "web/images/frontpage/virtex4.jpg";
images[3] = new Image();
images[3].src = "web/images/frontpage/351closeup.jpg";
images[4] = new Image();
images[4].src = "web/images/frontpage/339closeup.jpg";
images[5] = new Image();
images[5].src = "web/images/frontpage/probes.jpg";
images[6] = new Image();
images[6].src = "web/images/frontpage/351s.jpg";
images[7] = new Image();
images[7].src = "web/images/frontpage/384.jpg";
images[8] = new Image();
images[8].src = "web/images/frontpage/145.jpg";
images[9] = new Image();
images[9].src = "web/images/frontpage/395q.jpg";
images[10] = new Image();
images[10].src = "web/images/frontpage/camera.jpg";
images[11] = new Image();
images[11].src = "web/images/frontpage/Picture 0001.jpg";




function swapPic() {
var imgnum = images.length - 1;
do {
var randnum = Math.random();
rand1 = Math.round((imgnum - 1) * randnum) + 1;
} while (rand1 == useRand);
useRand = rand1;
document.randimg.src = images[useRand].src;
}
//  End -->


<!-- end of the script to swap the photos -->


<!--  Start of the script for the Horizontal menu bar -->
// form_prompt.js
// 
// prompt for a form textbox by putting a description in there initially, but
// remove this as soon as the user focusses it for typing genuine content
// 
// by Smylers


function SetPromptText(ID, Text)
// sets the element with the specified ID to have the specified prompt text;
// better than simply hardcoding the prompt text with a value="" attribute on
// that element, so that the text only appears in JavaScript-enabled browsers
// (where it magically disappears) and doesn't get in the way of those without
// JavaScript
{
  var Textbox = document.getElementById(ID);

  // Only set the prompt text if the box is currently empty; reloading the page
  // or moving back to it may mean there's already content in there, in which
  // case it should be left alone:
  if (Textbox.value == '')
    Textbox.value = Text;

  // If it currently contains a value that isn't the default text then just
  // leave it alone:
  else if (Textbox.value != Text)
    return;

  // Either the default text has just been set, or the page has been reloaded
  // with the default text in it carried over from last time.  In either case
  // set up an event handler that will clear the text as soon as the box is
  // focussed:
  Textbox.onfocus = function() { ClearPromptText(Textbox) };
}

function ClearPromptText(Textbox)
// clears the text from the specified textbox -- assumed to have been invoked
// from its onfocus event handler -- and disables the event handler so that
// this doesn't get invoked again and clear any text the user types
{
  Textbox.value = '';
  Textbox.onfocus = null;
}




<!-- Code for the 374 comport thing -->


var WinTwo

function Opencomport()
{
WinTwo = window.open ("http://www.sundance.com/web/files/smt374comport/s374comport.asp", "ad", "toolbar=no,location=no,directories=no,status=yes, menubar=no,scrollbar=no,scroll=no,resizable=no,copyhistory=no,width=880,height=480")
}


window.onerror=null;

var WinTwo

function CloseWindow()
{

     if (WinTwo != null ) 
			{
			WinTwo.close() 
    		}
}

<!-- Code for the Acronym description box for the home page -->
function OpenAcronymDescriptions()
{
WinTwo = window.open ('./web/files/Acc.htm', 'ad', 'toolbar=no,location=no,directories=no,status=yes, menubar=no,scrollbar=yes,scroll=no,resizable=no,copyhistory=no,width=600,height=330')
}


<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin -->
function checkNotBlank(myForm) {
if (myForm.STRFilter.value == "Search our products"){
alert("Please enter something to search for.")
return (false)
}

return (true)
}
<!-- End -->

