function printVersion() {
	if (document.getElementById) var page_body = document.getElementById("content");
	else if (document.all) var page_body = document.all("content");
	var settings = "top=50,left=50,titlebar=no,menubar=1,toolbar=0,width=600,height=500,scrollbars=1,resize=1,resizable=1";
	print_win = open("about:blank", "print_win", settings);
	//print_win.document.write("<p>"+document.getElementById("content").innerHTML+"</p>\n");
	print_win.document.write(page_body.innerHTML);
	print_win.document.title = window.document.title;
	print_win.print();
	return false;
}
var wch = false;
window.onload = function () {
	
	if (document.all && !window.opera) {
		
		window.onresize = function () {
			if(document.documentElement.clientWidth) {
				sObj = document.getElementsByTagName('body')[0].style;
				sObj.width = (document.documentElement.clientWidth<1000) ? '990px' : ((document.documentElement.clientWidth>1230) ? '1230px' : 'auto');

				if (document.getElementById('headerColored'))
					document.getElementById('headerColored').style.width = (document.documentElement.clientWidth<1010) ? '695px' : 'auto';
			}
		}
		window.onresize();
	}
}

function fixWidth (object) {
	if (object.offsetWidth==706) object.style.width='700px';
}

var popUpWin=0;

function popUpWindow(URLStr, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width='+width+',height='+height);

}