// executes an onchange function after 750ms (or specified delay)
function safeOnChange1( code, delay )
{
	delay = delay || 750;
	window.clearTimeout( soc_id );
	soc_id = window.setTimeout( code, delay );
}
// global timer ID for the safeOnChange1 function.
var soc_id = null;

// once the onchange event is called the focus is set to the
// document body to prevent further scrolling
function safeOnChange2( code )
{
	document.body.focus( );
	eval( code );
}

// once the onchange event is called a variable is set to prevent
// the onchange code from running again
function safeOnChange3( code )
{
	if( !soc_submitted )
	{
		eval( code )
		soc_submitted = true;
	}
}
// global submitted flag for the safeOnChange3 function
var soc_submitted = false;