function CheckIsIE()
{
if (navigator.appName.toUpperCase() == 'MICROSOFT INTERNET EXPLORER') { return true;}
else { return false; }
}



/*************************************************************************
  This code is from Dynamic Web Coding at http://www.dyn-web.com/
  See Terms of Use at http://www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!

  but I modified it a lot...
*************************************************************************/


function loadExternal(url) {

var currentfr=document.getElementById("buffer")
if (currentfr.addEventListener)
currentfr.addEventListener("load", displayExternal, false)
else if (currentfr.attachEvent){
currentfr.detachEvent("onload", displayExternal) // Bug fix line
currentfr.attachEvent("onload", displayExternal)
}

  if ( window.frames['buffer'] ) {
    window.frames['buffer'].location = url;
    var lyr = document.getElementById? document.getElementById('display'): document.all? document.all['display']: null;
    if ( lyr && typeof lyr.innerHTML != "undefined" ) {
      lyr.innerHTML = '';
    }
    return false;
  }
  return true; // other browsers follow link
}

function myprint() {
print();
//var adrese=window.location;
//alert (adrese);
//if(location.search==""){
//adrese=adrese+"?print=1";
//}else {
//adrese=adrese+"&print=1";
//}
//alert (adrese);
//loadExternal (adrese);

}

// called when documents loaded into iframe (from their body's onload attribute)
function displayExternal() {
     buffer.focus();
     //alert ("print");
     buffer.print();


}


