function getStyle(layer) {
	if( document.getElementById ) {
		return document.getElementById( layer ).style
	} else if( document.all ) {
		return document.all[layer].style
	} else {
		return document[layer]
	}
}

function getObj(obj) {
	if( document.getElementById ) {
		return document.getElementById(obj)
	} else if( document.all ) {
		return document.all[obj]
	} else {
		return document[obj]
	}
}

function popitup(url)
{
	newwindow=window.open(url,'name','height=800,width=600,scrollbars=yes,resizable=1');
	if (window.focus) {newwindow.focus()}
	return false;
}

function popitup2(url)
{
	newwindow=window.open(url,'name','height=800,width=600,scrollbars=yes,resizable=1');
	if (window.focus) {newwindow.focus()}
	return false;
}

function updateSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
	//Non-IE
	myWidth = window.innerWidth;
	myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	//IE 6+ in 'standards compliant mode'
	myWidth = document.documentElement.clientWidth;
	myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	//IE 4 compatible
	myWidth = document.body.clientWidth;
	myHeight = document.body.clientHeight;
  }
  getStyle('line').height = myHeight - 171 + "px";
  getStyle('innercontent').height = myHeight - 203 + "px";
  getStyle('innercontent').width = myWidth - 386 + "px";
  //content.setAttribute("style","height:"+myHeight - 280);
  setTimeout('updateSize()',10);
}