
function setActiveStyleSheet(title) {
  var i, a, main;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
      a.disabled = true;
      if(a.getAttribute("title") == title) a.disabled = false;
    }
  }
}

function checkStyles() 
{
	if (window.name == "printWin")
	{
		if (document.all)
		{
			//ie change styles
			document.styleSheets[0].href = "/SibatMain/HEB/projCSS/printfriendly.css";
		}
		else if (document.getElementById)
		{
			//mozilla change styles
			document.styleSheets[0].disabled = true;
			document.styleSheets[1].disabled = false;
		}
	}
}

document.onload=checkStyles();