function body_load() {  
  if(typeof parent.IsChild != "function")
    location.href = get_model_url();

  parent.adjust_iframe_right_height(document.body.scrollHeight);
  timerID = setInterval("hide_loading()",500);
  
}

function get_model_url() {
  var s = location.href;
  var i = s.indexOf("repair_right.aspx");
  s = s.substring(0,i);
  return s + "repair.aspx?no=" + document.getElementById("hld_no").value + "&SLanguage=" + document.getElementById("langNormal").value;
}

function add_shortcut() {
  document.getElementById("copyArea").value = get_model_url();
  r = document.getElementById("copyArea").createTextRange();
  r.select();
  r.execCommand("copy"); 
  parent.window.scrollTo(0,0);
  alert(document.getElementById("hld_shortcut_ok").value);
}

function add_favorite() {
  window.external.AddFavorite(get_model_url(),"ASUS Support--Repair(" + document.getElementById("lbl_service_name").innerHTML + ")");
}
