﻿

function GetInnerText(obj) 
{
  if (document.all) 
  {
    return obj.innerText;
  } 
  else
  {
    return obj.textContent;
  }
}

function SetInnerText(obj,value) 
{
  if (document.all) 
  {
   obj.innerText = value;
  } 
  else
  {
   obj.textContent = value;
  }
}

function swapNode(node1, node2){    
  var parentNode=node1.parentNode;        
  parentNode.replaceChild(node1,node2);
  parentNode.insertBefore(node2,node1);
} 

function Window_Print(canClose)
{
  var timeout=setTimeout("Window_Print_Sub("+canClose+")", 500);		
}

function Window_Print_Sub(canClose)
{
  window.print();
  if(canClose)
    window.close(); 	
}


