valstarget = ""; frametarget = 0;
f = typeof parent.parent.parent.frames["index_target1"];
if((f == "undefined") || (f == "null") || (f == "")) {
  try_again();
  write_target();
}
else {
  basetarget = "index_main_target2";
  valstarget = basetarget;
  write_target();
}

function try_again() {
  f = typeof parent.frames[0];
  if((f == "undefined") || (f == "null") || (f == "")) {basetarget = "_top";}
  else {basetarget = "_top"; frametarget = 1;}
}

function write_target() {
  target = "<base target=" + (basetarget) + ">";
  document.write(target);
}

function get_site(url,loc) {
  f = typeof loc;
  if((f == "undefined") || (f == "null") || (f == "")) {loc = "";}
  if(frametarget == 1) {
    if((loc == "")||(loc == 0)) {parent.parent.frames[1].location.replace(url);}
    else if(loc == 1) {parent.frames[0].location.replace(url);}
    else if(loc == 2) {parent.frames[1].location.replace(url);}
    else {top.location.replace(url);}
  }
  else {top.location.replace(url);}
}
