function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			if ( oldonload ) {
				oldonload();
			}
			func();
		}
	}
}

////////////////
//
//	COMPATIBILITY FIXES
//
////////////////

//THIS STOPS INTERNET EXPLORER MAKING SILLY FLICKERS WITH MOUSEOVERS
try {
	document.execCommand ( "BackgroundImageCache", false, true );
} catch ( err ) {
}

var stored_redirect_url = "";

function please_redirect_now ( ) {
	window.location = stored_redirect_url;
}

function please_redirect_shortly ( param_timeout ) {
	setTimeout ( "please_redirect_now()", param_timeout );
}

function highlight_obj( object_id, color_value ) {
	if( color_value == null ) color_value = 'red';
	obj = document.getElementById( object_id );
	obj.style.color = color_value;
}

function form_submit_do(param_form_id) {
	document.getElementById( param_form_id ).submit();
}

function form_submit_call(param_form_id) {
	// IE6 hack
	setTimeout(function(){form_submit_do(param_form_id)}, 50);
}