<!--
//opens a new window in the middle of the screen
function openWindow(page, name, w, h, scroll)
{
    var winl = (screen.width - w) / 2;
    var wint = (screen.height - h) / 2;
    winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
    win = window.open(page, name, winprops)
    if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

//clears the status bar
function clearStatus()
{
    window.status='';


}

//displays the inputed textin the status bar
function makeStatus(text)
{
    window.status=text;
    return true;
}

if (document.images)
      {
        img01on=new Image(120,30);
        img01on.src="images/homeup.jpg";
        img01off=new Image(120,30);
        img01off.src="images/homedown.jpg";

        img02on=new Image(120,30);
        img02on.src="images/vitaminsup.jpg";
        img02off=new Image(120,30);
        img02off.src="images/vitaminsdown.jpg";

        img03on=new Image(120,30);
        img03on.src="images/winwinshippingup.jpg";
        img03off=new Image(120,30);
        img03off.src="images/winwinshippingdown.jpg";

        img04on=new Image(120,30);
        img04on.src="images/linksup.jpg";
        img04off=new Image(120,30);
        img04off.src="images/linksdown.jpg";

        img05on=new Image(120,30);
        img05on.src="images/contactusup.jpg";
        img05off=new Image(120,30);
        img05off.src="images/contactusdown.jpg";
      }

function imgOn(imgName)
{
    if (document.images)
    {
        document[imgName].src=eval (imgName + "on.src");
    }
}

function imgOff(imgName)
{
    if (document.images)
    {
        document[imgName].src=eval (imgName +"off.src");
    }
}

//allows the form submission by returns true if the actual input matches the
    // desired data structure, otherwise halts the submission by returning false
function validate(form)
{
//Variables
    var acceptchar = /[^a-zA-z\'\ \-]/    //contains a list of acceptable characters for name.  a through z, A through Z, ', -, and " "
    var acceptemail = /[^a-zA-z0-9\@\.\ \-\_]/    //contains a list of acceptable characters for email.  a through z, A through Z, numbers, @, ', -, "." and " "
		var acceptnum = /[^0-9\(\)\ \-]/      //contains a list of acceptable characters for phone.  0 through 9, parentheses, -, and " " 

//if name contains a character not in the accepted list, displays a pop-up 
    // window informing the user of the error, returns the cursor to 
		// the name field, and returns false

    if (acceptchar.test(form.name.value))
		{
		    alert ("Invalid characters!  Only letters, apostrophes, hyphens, and spaces are permitted.");
				form.name.focus();
				return false;
		}

//if email contains a character not in the accepted list, displays a pop-up window informing
    // the user of the error, returns the cursor to the email field,
		// and returns false
		
    if (acceptemail.test(form.email.value))
		{
		    alert ("Invalid email address!");
				form.email.focus();
				return false;
		}					

//if phone contains a character not in the accepted list, displays a pop-up 
    // window informing the user of the error, returns the cursor to 
		// the phone field, and returns false
		
		if (acceptnum.test(form.phone.value))
		{
		    alert ("Invalid telephone number!");
				form.phone.focus();
				return false;
		}					
//if all fields are inputed correctly, returns true 
	  return true;
}
-->