// executes an onchange function after 750ms (or specified delay)
function safeOnChange( 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;
