// Avoid popups
function ignore() { return true }
window.onerror = ignore

// Hide NS bug
if ( document.layers ) {
	document.write( '<style type="text/css">\n' )
	document.write( '.radiobg { background-color: #aabbcc; }\n' )
	document.write( '<' + '/style>\n' ) 
}

// Set focus to textarea
function setfocus() {
	if ( window.focus )
		document.forms[0].elements[0].focus()
}

// Avoid emtpy submissions
function isempty() {
	with ( document.forms[0].elements[0] ) {
		if ( value.search ) { 
			var re = /^\s*$/
			if ( value.search(re) ) 
				return false
			value = ''
			return true
		}
        	return value == '' ? true : false
	}
}
