function error() { return true; }
window.onerror = error;


function ascribo_DoFSCommand(asdff) {}

function ShowJSWindow(at1, at2, at3)
{
	asdf = open(at1, at2, at3);
	asdf.focus();
}

function ASCRiBO_background(value)
{
document.getElementsByTagName("BODY")[0].bgColor = value;
}

function ASCRiBO_push(value)
{
	getFlashObject4Push().SetVariable("_root.FUNCTION_PACK.ASC_JSCRIPTCOMM.GETCOMMAND", value);
	setFocus();
}

function hazScroll()
{
	getFlashObject4Push().SetVariable("_root.FUNCTION_PACK.ASC_JSCRIPTCOMM.SCROLLMOUSE", event.wheelDelta);
}

function setFocus()
{
	if (browser.indexOf("gecko") == -1)
	{
		var asc = document.getElementById("ascribo");
		
		if (asc != null && typeof(asc.focus) == "function")
			asc.focus();
	}
}

function getFlashObject4Push()
{
	if (browser.indexOf("gecko") != -1)
		return document.getElementsByTagName("embed")[0];
	else
		return document.getElementById("ascribo");
}
