function obj_var(ver) {
  var obj = "";
  obj += "<object classid='CLSID:B15F56CB-322F-4C33-A3B2-DEB6CE8BB15E' codebase='http://down.iprivacy.co.kr/iprivacy/atxipvp.cab#version="+ver+"' width='0' height='0' id='atxp' style='display:none;'>";  
  obj += "<param name='pcode' value=''>";
  obj += "<param name='window' value=''>";
  obj += "</object>";
  return obj;
}

function draw_obj(src) {
  document.write(src);
}

function run_atx(p) { 
  browser = navigator.userAgent.toLowerCase();  
  if(browser.indexOf("msie") > 0){ 
    atx = document.getElementById('atxp');  
    if(typeof(atx) != "undefined" && atx != null && atx.object != null){
      atx.pcode = p;
      atx.run();      
    } else alert('¸ÕÀú ¿¢Æ¼ºê¿¢½º¸¦ ¼³Ä¡ÇÏ¼¼¿ä.');
  }else alert('ÀÎÅÍ³Ý ÀÍ½ºÇÃ·Î·¯¿¡¼­¸¸ ¼³Ä¡ °¡´ÉÇÕ´Ï´Ù.');
}

function run_atx2(p) { 
  browser = navigator.userAgent.toLowerCase();  
  if(browser.indexOf("msie") > 0){ 
    atx = document.getElementById('atxp');
    if(typeof(atx) != "undefined" && atx != null && atx.object != null){      
      atx.window = window;
      atx.pcode = p;
      atx.run();      
    }    
  }
}
