
//Rich, 20 Nov 2007 - Javascript to blink text inside textbox
window.Blink = function(args)
{
	// Set the color and seconds below, e.g., [args,'COLOR',SECONDS]
 	args = (/,/.test(args))?  args.split(/,/):  [args,'#ffffff',1000000];
 	var whoA = document.getElementById(args[0]);
 	var whoB = document.getElementById('tbTechslateCheck');
	whoB.style.display = 'none';
 	if (whoA.value == whoB.value)
 	{
 		var count = parseInt(args[2]);
 		if (--count <=0) 
 			{
  				whoA.style.color = '';
  				if(whoA.focus) whoA.focus()	;
 			} 
 		else 
 			{
  				args[2]=count+'';
  				whoA.style.color=(count%2==0)? '': args[1];
 	 			args='\"'+args.join(',')+'\"';
  				setTimeout("Blink("+args+")",500);
 			}
 	}
}

// Multiple onload function created by: Simon Willison
// http://simon.incutio.com/archive/2004/05/26/addLoadEvent

function addLoadEvent(func) 
{
  var oldonload = window.onload;
  if (typeof window.onload != 'function') 
  {
    window.onload = func;
  } 
  else 
  {
    window.onload = function() 
	{
      if (oldonload) 
      {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(function() {
  // Set the field name below of where to place the focus and blinking color
  Blink('tbTechslate');
});
