function ErrHandler(message, url, line){
	var strMsg;
	var strJSErr;
	strJSErr = "JavaScript Error: " + message + " at line " + line;
	strMsg = strJSErr;

	//alert(strMsg);

	window.status = strMsg;
	return true;
}

//function SendData_Click( evaluationArgument ){
//	return document.SIMplyPublish.EvalScript( document.form1.textfield.value );
//}


function ComponentNotifyContainer(p1) {
// document.form1.textfield.value = p1;
}

function CustomError(p1) {
// document.form1.textfield.value = p1;
}

function LoadFinished(p1) {
// document.form1.textfield.value = p1;
}

function CustomMouseDown(p1, p2, p3, p4, p5) {
// document.form1.textfield.value = "mouseDown: " + p1 + "," + p2 + "," + p3 + "," + p4 + "," + p5
}

function CustomMouseUp(p1, p2, p3, p4, p5) {
// document.form1.textfield.value = "mouseUp: " + p1 + "," + p2 + "," + p3 + "," + p4 + "," + p5
}

function MouseOverModel(p1, p2, p3, p4, p5) {
// document.form1.textfield.value = "mouseUp: " + p1 + "," + p2 + "," + p3 + "," + p4 + "," + p5
}

function KeyDown(p1, p2) {
// document.form1.textfield.value = "KeyDown: " + p1 + "," + p2;
}

function KeyUp(p1, p2) {
// document.form1.textfield.value = "KeyUp: " + p1 + "," + p2;
}

function SystemInfo(param) {
// document.form1.textfield.value = param;
}


function DoIt(aEvent) {
	//Make the Explorer/VBScript identical to the Navigator/JavaScript
	// change " to \"
	i = aEvent.indexOf("\"")
	while (i != -1) {
		aEvent = aEvent.substring(0,i) + "\\\"" + aEvent.substring(i+1,aEvent.length)
		i = aEvent.indexOf("\"",i+2)
	}
	// change single quotes to double quote
	i = aEvent.indexOf("'")
	while (i != -1) {
		aEvent = aEvent.substring(0,i) + "\"" + aEvent.substring(i+1,aEvent.length)
		i = aEvent.indexOf("'", i+1)
	}

	eval(aEvent)
}
