function stopError()
{
	return true;
}
//window.onerror = stopError;

//function popImage(page, windowName, wide, high)
function popImage(page, windowName, wide, high)
{
//	alert(page);
	var chrome = "channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=1,status=0,toolbar=0";
	
	var pad = 20;
	wide = wide + pad;
	high = high + pad;

//	var win = window.open(page, "_lstruck", "width=" + wide + ",height=" + high + ",innerWidth=" + wide + ",innerHeight=" + high + chrome);
	var win;
	if ( wide )
	{
		win = window.open(page, windowName, "width=" + wide + ",height=" + high + ",innerWidth=" + wide + ",innerHeight=" + high + chrome);
	}
	else
	{
		win = window.open(page, windowName, chrome);
	}
	win.focus();
	return false;
}

function resize(wide, high)
{
	if (self.innerHeight) // all except Explorer
	{
		self.innerWidth = wide;
		self.innerHeight = high;
		return true;
	}
	else
	{
		resizeTo(wide, high);
	}
/*	
	else if (document.documentElement && document.documentElement.clientHeight)
		// Explorer 6 Strict Mode
	{
		document.documentElement.clientWidth = wide;
		document.documentElement.clientHeight = high;
		return true;
	}
	else if (document.body) // other Explorers
	{
		document.body.clientWidth = wide;
		document.body.clientHeight = high;
		return true;
	}
*/
	
	return false;
}

function closeButton(closeButton, wide, high)
{
	document.write("<a href=" + '"javascript:window.close();"><img src="' + closeButton + '" width="' + wide + '"' + 'height="' + high + '" alt="Close Window"></a>');
	return false;
}





