var errCount = 0
var msgCount = 0
var errors = Array()
var errDescribe = Array()

function handleError(e, description) {
	errCount++
	errCountLabel.removeChild(errCountLabel.firstChild)
	errCountLabel.appendChild(labelDocument.createTextNode(errCount))
	errors.push(e)
	errDescribe.push(description)
	//alert(e)
}

function consoleClick() {
	window.open("/preview/common/errors/errorlist.html"  , "errBox" , "width=400,height=400,toolbars=no,resize=yesscrollbars=yes")
}

function getErrors() {
	return errors
}

function getDescriptions() {
	return errDescribe
}
