function newWindow2() {
               weathWindow = window.open('http://weather.msn.com/local.aspx?wealocations=wc:USCA0671', 'weathWin', 'width=490,height=625,scrollbars=yes', 'align=right')
       }                

function newWindow3() {                  
     soundWindow = window.open('../cgi-bin/sound/quiz.cgi', 'soundWin', 'width=400,height=400,scrollbars=yes')
}

function clearbox(FrmValIn,local)
{ local.value = "";

//    {local.value = clearValue;}
}


function WM_imageSwap(daImage, daSrc){
  var objStr,obj;

  // Check to make sure that images are supported in the DOM.
  if(document.images){
    // Check to see whether you are using a name, number, or object
    if (typeof(daImage) == 'string') {
      // This whole objStr nonesense is here solely to gain compatability
      // with ie3 for the mac.
      objStr = 'document.' + daImage;
      obj = eval(objStr);
      obj.src = daSrc;
    } else if ((typeof(daImage) == 'object') && daImage && daImage.src) {
      daImage.src = daSrc;
    }
  }
}



function WM_preloadImages() {
  // Don't bother if there's no document.images
  if (document.images) {
    if (typeof(document.WM) == 'undefined'){
      document.WM = new Object();
    }
    document.WM.loadedImages = new Array();
    // Loop through all the arguments.
    var argLength = WM_preloadImages.arguments.length;
    for(arg=0;arg<argLength;arg++) {
      // For each arg, create a new image.
      document.WM.loadedImages[arg] = new Image();
      // Then set the source of that image to the current argument.
      document.WM.loadedImages[arg].src = WM_preloadImages.arguments[arg];
    }
  }
}


 
 function openScript(url, width, height) {
         var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=yes,status=yes' );
 }
  
 
 function MM1_openBrWindow() {
    var window1=window.open("", "help1", "toolbar=no,directories=no,menubar=no,scrollbars=auto,width=360,height=120,left=0,top=0,scrollY=0,scrollX=0");
    window1.document.write("<html><head><title>SOD</title></head><body bgcolor=#ffffff>");
    window1.document.write("<font color=#000000><b>");
    window1.document.write("<center><font face=\"verdana,arial\"><font size=2><b>SOD - \"Stop on Demand\"</b></font></FONT></center><BR> ");
    window1.document.write("<form><font face=\"verdana,arial\"><font size=2><I>Stops only when requested by passenger or when a passenger is waiting at the stop location.</I><BR>");
    window1.document.write("<center><FONT SIZE=1><input type='button' value=Close onClick=window.close()></FONT></form></center>");
    window1.document.write("</body></html>");
    window1.document.close();
 }
 


