/* ====================================================================== */
function back_to_main(which) {

var textstring;
  textstring = "../im_main.php?pagenum="+which;

  if ( window.name == "mother") {
    //window.location.replace("../index_main"+which+".html");
    //parent.middle.location.replace("../index_main"+which+".html");
    parent.mother.location.replace(textstring);
  }
  else {
    if ( parent.window.name == "mother") {
      //parent.location.replace("../index_main"+which+".html");
      parent.location.replace(textstring);
    }
    else {
      //parent.window.location.replace("../index.html");
      //window.location.replace("../index.html");
      //alert (textstring);
      window.location.replace(textstring);
    }
  }
}

/* ====================================================================== */
function back_to_somewere() {

  if ( window.name != "mother") {
    window.location.replace("index.html");
  }
  else {
    history.back();   
  }
}  

/* ====================================================================== */
function put_to_top(filename) {

  if ( window.name == "middle") {
    parent.window.frames[1].location.replace(filename);
  }
}                                                                           

/* ====================================================================== */
function put_to_top2(filename) {

  if ( window.name == "middle") {
    parent.window.frames[2].location.replace(filename);
  }
}                                                                           

/* ====================================================================== */
function jumpMenu(targ,selObj,restore){ //v3.0
  if (selObj.options[selObj.selectedIndex].value != "")
    eval("parent."+targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

/* ====================================================================== */
function change_status(newstatus) {
	window.status=newstatus;
}
