function CheckSearchForm(f){
   if(f.text.value=="search" || f.text.value==""){
      alert("Please, type text to search");
      f.text.focus();
      return false;
   }
   return true;
}

function ToDay(){
   var d=new Date()
   var weekday=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
   var monthname=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
   document.write(weekday[d.getDay()] + " ")
   document.write(d.getDate() + ". ")
   document.write(monthname[d.getMonth()] + " ")
   document.write(d.getFullYear())
}

//Specify the marquee's width (in pixels)
var marqueewidth=180
//Specify the marquee's height
var marqueeheight=112
//Specify the marquee's scroll speed (larger is faster)
var speed=1
//Specify the marquee contents
var marqueecontents='<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center"><tr><td><font face="Arial, Helvetica, sans-serif" size="2" color="#003399">We believe in supporting optimal health and well-being worldwide through the provision of Nutrient Delivery Systems - supplemental nutrients in a form resembling food.</font></td></tr></table>'

function regenerate(){
   window.location.reload();
}

function MakeBoard(){
   if (document.all){
      document.write('<marquee direction="up" scrollAmount='+speed+' style="width:'+marqueewidth+';height:'+marqueeheight+'">'+marqueecontents+'</marquee>')
   }
}

function regenerate2(){
   if (document.layers){
      setTimeout("window.onresize=regenerate",450)
      intializemarquee()
   }
}

function intializemarquee(){
   document.cmarquee01.document.cmarquee02.document.write(marqueecontents)
   document.cmarquee01.document.cmarquee02.document.close()
   thelength=document.cmarquee01.document.cmarquee02.document.height
   scrollit()
}

function scrollit(){
   if (document.cmarquee01.document.cmarquee02.top>=thelength*(-1)){
      document.cmarquee01.document.cmarquee02.top-=speed
      setTimeout("scrollit()",100)
   }else{
      document.cmarquee01.document.cmarquee02.top=marqueeheight
      scrollit()
   }
}

window.onload=regenerate2
