//
// CM Web Deveopment Javascript Code
// 

/******************************************************************************
* Define Browser Check
******************************************************************************/
// used to check Browser Type

function browserCheck {
   if ( (navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4)) {
	window.location.href="/netscape.html";
   }
}

/******************************************************************************
* Define Reload of Page on Change
******************************************************************************/
// Used to reload the main page with the proper mission selected

function reload(){
   var val= document.main.mission.value;
   var val2 = '';
      for (i=0;i<document.main.action.length;i++)
         {
            if (document.main.action[i].checked)
               {
                  val2 = document.main.action[i].value;
               }
       }
   self.location='index.html?mission=' + val + '&action=' + val2;
}

/******************************************************************************
* Define new Window Popup.
******************************************************************************/
// Used to make a pop up window containing another URL

function popup(mylink, windowname){
   if (! window.focus)return true;
      var href;
      if (typeof(mylink) == 'string')
         href=mylink;
      Else
         href=mylink.href;
         window.open(href, windowname, 'width=400,height=200,scrollbars=no');
         return false;
   }


