<!-- hide script from older browsers

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=250,height=150,left=250,top=150');");
}

function popUp2(URL2) {
newWindow=window.open(URL2,'newWindow','toolbar=no,menubar=no,resizable=yes,scrollbars=yes,status=no,location=no,width=250,height=200,left=250,top=150');
}

function popUpPR(URL3) {
newWindow=window.open(URL3,'newWindow','toolbar=no,menubar=no,resizable=yes,scrollbars=yes,status=no,location=no,width=500,height=350,left=250,top=150');
}

function popUp4(URL4) {
newWindow=window.open(URL4,'newWindow','toolbar=no,menubar=no,resizable=yes,scrollbars=yes,status=no,location=no,width=250,height=295,left=250,top=150');
}

function popUp5(URL5) {
newWindow=window.open(URL5,'NewShippingPrices','toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,location=no,width=280,height=400');
}

function popUpSecurity(URL6) {
newWindow=window.open(URL6,'newWindow','toolbar=no,menubar=no,resizable=yes,scrollbars=yes,status=no,location=no,width=500,height=400,left=250,top=150');
}


var howLong = 18000;

t = null;
function closeMe() {
t = setTimeout("self.close()", howLong);
}


var downStrokeField;
function autojump(fieldName,nextFieldName,fakeMaxLength)
{
var myForm=document.forms[document.forms.length - 1];
var myField=myForm.elements[fieldName];
myField.nextField=myForm.elements[nextFieldName];

if (myField.maxLength == null)
   myField.maxLength=fakeMaxLength;

myField.onkeydown=autojump_keyDown;
myField.onkeyup=autojump_keyUp;
}

function autojump_keyDown()
{
this.beforeLength=this.value.length;
downStrokeField=this;
}

function autojump_keyUp()
{
if (
   (this == downStrokeField) && 
   (this.value.length > this.beforeLength) && 
   (this.value.length >= this.maxLength)
   )
   this.nextField.focus();
downStrokeField=null;
}


// copyright 1999 Idocs, Inc. http://www.idocs.com
// Distribute this script freely but keep this notice in place
function numbersonly(myfield, e, dec)
{
var key;
var keychar;

if (window.event)
   key = window.event.keyCode;
else if (e)
   key = e.which;
else
   return true;
keychar = String.fromCharCode(key);

// control keys
if ((key==null) || (key==0) || (key==8) || 
    (key==9) || (key==13) || (key==27) )
   return true;

// numbers
else if ((("0123456789").indexOf(keychar) > -1))
   return true;

// decimal point jump
else if (dec && (keychar == "."))
   {
   myfield.form.elements[dec].focus();
   return false;
   }
else
   return false;
}

// copyright 1999 Idocs, Inc. http://www.idocs.com
// Distribute this script freely but keep this notice in place
function numbersmostly(myfield, e, dec)
{
var key;
var keychar;

if (window.event)
   key = window.event.keyCode;
else if (e)
   key = e.which;
else
   return true;
keychar = String.fromCharCode(key);

// control keys
if ((key==null) || (key==0) || (key==8) || 
    (key==9) || (key==13) || (key==27) )
   return true;

// numbers
else if ((("0123456789-").indexOf(keychar) > -1))
   return true;

// decimal point jump
else if (dec && (keychar == "."))
   {
   myfield.form.elements[dec].focus();
   return false;
   }
else
   return false;
}


function setTabFocus(idx) 
{ 
for (el=0; el<document.forms[0].elements.length; el++) { 
if (document.forms[0].elements[el].tabIndex == idx) document.forms[0].elements[el].focus(); 
} 
} 


/*------------------------------------------------------------
	Document Text Sizer- Copyright 2003 - Taewook Kang.  All rights reserved.
	Coded by: Taewook Kang (txkang.REMOVETHIS@hotmail.com)
	Web Site: http://txkang.com
	Script featured on Dynamic Drive (http://www.dynamicdrive.com)
	
	Please retain this copyright notice in the script.
	License is granted to user to reuse this code on 
	their own website if, and only if, 
	this entire copyright notice is included.
--------------------------------------------------------------*/

//Specify affected tags. Add or remove from list:
var tgs = new Array( 'div','td','tr');

//Specify spectrum of different font sizes:
var szs = new Array( 'xx-small','x-small','small','medium','large','x-large','xx-large' );
var startSz = 2;

function ts( trgt,inc ) {
	if (!document.getElementById) return
	var d = document,cEl = null,sz = startSz,i,j,cTags;
	
	sz += inc;
	if ( sz < 0 ) sz = 0;
	if ( sz > 6 ) sz = 6;
	startSz = sz;
		
	if ( !( cEl = d.getElementById( trgt ) ) ) cEl = d.getElementsByTagName( trgt )[ 0 ];

	cEl.style.fontSize = szs[ sz ];

	for ( i = 0 ; i < tgs.length ; i++ ) {
		cTags = cEl.getElementsByTagName( tgs[ i ] );
		for ( j = 0 ; j < cTags.length ; j++ ) cTags[ j ].style.fontSize = szs[ sz ];
	}
}


var exit=true;

function noexitmenu(menulink){

exit=false;
location = menulink;
}

function exitwindow()

{

var url = '/exit.html';

var win = 'toolbar=0,directories=0,menubar=0,scrollbars=0,resizable=0,width=540,height=400';

if (exit)

open(url,'WindowName',win); }



function enterwindow()

{

var url = '/enter.html';

var win = 'toolbar=0,directories=0,menubar=0,scrollbars=0,resizable=0,width=540,height=414';

open(url,'WindowName',win); }




function submitonce(theform){
//if IE 4+ or NS 6+
if (document.all||document.getElementById){
//screen thru every element in the form, and hunt down "submit" and "reset"
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit")
//disable em
tempobj.disabled=true
}
}
}


function confirm1()
{
var agree = confirm ("To receive your FREE 15-pack of Baked Pasta Soy Chips, as part of the October Special Offer, you must select an additional box of Baked Pasta Soy Chips and add it to your shopping cart.");
if (agree)
        return true ;
else
        window.location="https://secure.revivalsoy.com/order/checkout.lasso"
        return false ;
}




var popupLinkConfig = new Array;

popupLinkConfig["weightvideo"] = new Array ( "weightvideo", "width=570,height=280,scrollbars=no,resizable=no,status=no,toolbar=no,location=no,menubar=no");
popupLinkConfig["slradioshow"] = new Array ( "slradioshow", "width=250,height=150,scrollbars=no,resizable=no,status=no,toolbar=no,location=no,menubar=no");
popupLinkConfig["glucosechart"] = new Array ( "glucosechart", "width=550,height=620,scrollbars=yes,resizable=no,status=no,toolbar=no,location=no,menubar=no");
popupLinkConfig["soychipsupsell"] = new Array ( "upsell", "width=600,height=400,scrollbars=no,resizable=no,status=no,toolbar=no,location=no,menubar=no");

// ==========================================================================
window.onload = initPage;  
// Note: Make sure that no other javscripts assign a fuction to window.onload
// There can be only one function tied to window.onload at a time.

function initPage() {
  initPopupLinks();
  // place here any other code you wish to run when the page loads.
}

function initPopupLinks()
{
  if (!document.getElementsByTagName) return true;
  var pageLinks = document.getElementsByTagName("a");
  for (var i = 0; i < pageLinks.length; i++) 
  {
    if (((pageLinks[i].className != null) && 
         (pageLinks[i].className != "")) ||
        ((pageLinks[i].parentNode.className != null) && 
         (pageLinks[i].parentNode.className != "")))
    {
      var linkClass = " " + pageLinks[i].className + " ";
      if ((linkClass == "  ") && (pageLinks[i].parentNode.className != ""))
      {
        linkClass = " " + pageLinks[i].parentNode.className + " ";
      }
      for (var theKey in popupLinkConfig) 
      {
        if (linkClass.indexOf(" " + theKey + " ") > -1)
        {
          if ((pageLinks[i].target == "") || (pageLinks[i].target == null))
          {
            pageLinks[i].target = (popupLinkConfig[theKey][0] != "") ? popupLinkConfig[theKey][0] : theKey;
          }
          pageLinks[i].settings = popupLinkConfig[theKey][1];
          pageLinks[i].onclick = popUpper;
        }
      }
    }
  }
  return true;
}

function popUpper()
{
  newWin = window.open(this.href, this.target, this.settings);
  newWin.focus();
  return false;
}




-->
