/**
* marquee the text
*/
var version = "other";
var browserName = navigator.appName;
var browserVer = parseInt(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 3) version = "n3";
else if (browserName == "Netscape" && browserVer < 3) version = "n2";
else if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) version = "e4";
else if (browserName == "Microsoft Internet Explorer" && browserVer < 4) version = "e3";
/**
* marquee start
* @param listSize text's line number
* @param lineHeight test's line height
*/
function marqueeStart(width, height, scrollAmount, direction, behavior){
    //alert("width= " + width + "\nheight= " + height + "\nscrollAmount= " + scrollAmount + "\ndirection= " + direction + "\nbehavior= " + behavior);
    if(width == null || width == "0"){
        width = "300";
    }
    if(height == null || height == "0"){
        height = "100";
    }
    if(scrollAmount == null || scrollAmount == "0"){
        scrollAmount = "2";
    }
    if(direction == null){
        direction = "up";
    }
    if(behavior == null){
        behavior = "scroll";
    }
    //alert("width= " + width + "\nheight= " + height + "\nscrollAmount= " + scrollAmount + "\ndirection= " + direction + "\nbehavior= " + behavior);
    if (version == "e4"){
        document.write("<marquee behavior='" + behavior + "' direction='" + direction + "' width='" + width + "' height='" + height + "' scrollamount='" + scrollAmount + "' scrolldelay='90' onmouseover='this.stop()' onmouseout='this.start()'>");
    }
}
/**
* marquee end
*/
function marqueeEnd(){
    if (version == "e4"){
        document.write("</marquee>");
    }
}

function selectAll(allck, name)
{
   subs=allck.form.namedItem(name);
  if(subs==null) return;
if(subs.tagName=="INPUT") subs.checked=allck.checked;
else
  for(i=0;i<subs.length;i++)
{
  subs[i].checked=allck.checked;
}

}

