function body_load() {
  parent.adjust_iframe_right_height(document.body.scrollHeight);
  timerID = setInterval("hide_loading()",500);
  
  document.getElementById("img_search").onclick = img_search_click;

}

function get_model_url() {
  var s = location.href;
  var i = s.indexOf("repair_query.aspx");
  s = s.substring(0,i);
  return s + "service.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--Service(" + document.getElementById("lblservicename").innerHTML + ")");
}

function img_search_click() {
window.open(document.getElementById("ddlCountry")[document.getElementById("ddlCountry").selectedIndex].value +'&user_type=' +document.getElementById("ddlCustomerType")[document.getElementById("ddlCustomerType").selectedIndex].value , '', 'width=800, height=750, toolbar=yes, location=yes, directories=yes, status=yes, menubar=yes, scrollbars=yes, copyhistory=yes, resizable=yes');
return;

  //if (document.getElementById("select2")[document.getElementById("select2").selectedIndex].value == "0")
    //return;
}


