var movieName = "imap";

function thisMovie(movieName) {
  if (navigator.appName.indexOf ("Microsoft") !=-1) {
    return window[movieName]
  }	else {
    return document[movieName]
  }
}

function movieIsLoaded (theMovie) {
  if (typeof(theMovie) != "undefined") {
    return theMovie.PercentLoaded() == 100;
  } else {
    return false;
  }
}

function doswf(cmd){
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/js/",cmd);
  }
}
function doswfoption(id){
var x=document.getElementById(id)
alert(x.options[x.selectedIndex].text)
}

function dovarswf(v, cmd){
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).SetVariable("changevar",v);
    doswf(cmd);
  }
}

function dosubmit(){
document.getElementById("thisForm").submit()
}

function changemap(){
parent.doswf(document.getElementById("mapdisplay").value);
}

function changegeo(){
parent.dovarswf(document.getElementById("geo").value,'changegeo');
}

function changeind(i){
parent.dovarswf(i,'changedset');
}

function clear(){
parent.doswf('clearprint')
}
