// $Rev: 21746 $ $URL: svn://subversion.gepro/kokes/_verze_branch/10.10/Kokes/web/files/ie.js $ 
function getIEDOMDocument(){
  var progIDs=['Msxml2.DOMDocument.6.0','Msxml2.DOMDocument.5.0','Msxml2.DOMDocument.4.0','Msxml2.DOMDocument.3.0','Msxml2.DOMDocument'];
  for(var i=0;i<progIDs.length;i++) {
    try{var xmlDOM=new ActiveXObject(progIDs[i]);return xmlDOM;} catch (ex) {}
  }
  return null;
}
function getIEXMLHHTP(){
 if(window.XMLHttpRequest){var ajx=new XMLHttpRequest();return ajx;} 
 else if (window.ActiveXObject) {
  var progIDs=['MSXML2.XMLHTTP.3.0','MSXML2.XMLHTTP','Microsoft.XMLHTTP'];
  for(var i=0;i<progIDs.length;i++) {
    try{var ajx=new ActiveXObject(progIDs[i]);return ajx;} catch (ex) {}
  }
 }
 return null;
}

