function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function open_window(theURL) { //v2.0
  window.open(theURL,"","toolbar=yes,scrollbars=yes,resizable=yes,width=700");
}
function open_movie(theURL) { //v2.0
  window.open(theURL,"","toolbar=no,locationbar=no,scrollbars=no,resizable=yes,width=500,height=400");
}
function attach_file( p_script_url ) {
      // create new script element, set its relative URL, and load it
      script = document.createElement( 'script' );
      script.src = p_script_url;
      document.getElementsByTagName( 'head' )[0].appendChild( script );
}
function trim(str){
   return str.replace(/^\s*|\s*$/g,"");
}
function filterNumericInput(ev){
  var isExplorer = (-1 != navigator.appName.search("Explorer"));

  var code = (isExplorer ? ev.keyCode : ev.charCode);
  
  if((code ==44) || (code==46) || (code==0)) { return true; }
  if (code < 48 || code > 57) {
    if (code != 8) {
      if(isExplorer)
        ev.keyCode = 0;
      else
        ev.preventDefault();
    }
  }
}
//-- begin: Scroller's Algorithm -->
function start() {
	if (document.all) iemarquee(ticker);
	else if (document.getElementById)
		ns6marquee(document.getElementById('ticker'));
}
function iemarquee(whichdiv){
   iediv=eval(whichdiv)
   sheight += 0;
   iediv.style.pixelTop=sheight
   iediv.innerHTML=msg 
   sizeup=iediv.offsetHeight
   ieslide()
}      
function ieslide(){
   if (iediv.style.pixelTop>=sizeup*(-1)){
       iediv.style.pixelTop-=sspeed
       setTimeout("ieslide()",100)
   }
   else{
      iediv.style.pixelTop=sheight
      ieslide()
   }
}
function ns6marquee(whichdiv){
   ns6div=eval(whichdiv)
   sheight += 50;
   ns6div.style.top=sheight + "px";
   ns6div.innerHTML=msg
   sizeup=ns6div.offsetHeight
   ns6slide()
}
function ns6slide(){
   if (parseInt(ns6div.style.top)>=sizeup*(-1)){
       theTop = parseInt(ns6div.style.top)-sspeed
       ns6div.style.top = theTop + "px";
       setTimeout("ns6slide()",100)
   }
   else {
       ns6div.style.top = sheight + "px";
       ns6slide()
   }
}
