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.gallery_show_target2.location.replace(url);
    }
    else {top.location.replace(url);}
  }
  f = typeof parent.frames.gallery_show_target2;
  if((f == "undefined") || (f == "null") || (f == "") || (loc == "")) {
    top.location.replace(url);
  }
  else {parent.frames.gallery_show_target2.location.replace(url);}
}
 
function load_vals() {//Load values into banner
  df = document.forms[0];
  if(valstarget == "index_main_target2") {
    if(reported == 1) {return;} //Dodges JavaScript error if different site
    reported = 2;
    pppfd = parent.parent.parent.frames[0].document.forms[0];
    pppfd.codes.value = (df.a0.value) +", "+(df.a1.value);   
  }
}
