
function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
}

//var main = new getObj('dvMain');

function openNews( id )
{
	window.open("moreNews.aspx?id="+id,"news","height=400,width=630,scrollbars=1,resizable=0");
}
function openNewsUS( id )
{
	window.open("../moreNews.aspx?id="+id,"news","height=400,width=630,scrollbars=1,resizable=0");
}

//footH.style.height = h;



var newwindow = ''

function popitup(url) {
	if (newwindow.location && !newwindow.closed) 
	{ newwindow.location.href = url; newwindow.focus(); } 
else 
	{ newwindow=window.open(url,'htmlname','width=470,height=356,resizable=1') ; }
}

function tidy()
{
if (newwindow.location && !newwindow.closed) { newwindow.close(); } 
}

//Routines specifically for popup feedback windows

var fbwindow
function fbpopitup(url) {
if (fbwindow && !fbwindow.closed) 
	{ fbwindow.location.href = url; fbwindow.focus(); } 
else 
	{ fbwindow=window.open(url,'fhtmlname','width=520,height=420,resizable=1,scrollbars=1,top=50,left=10'); }
}

function fbtidy(){
if (fbwindow && !fbwindow.closed) {fbwindow.close(); } }
