window.onload = function () {
	if( arguments.callee.actions){
		for(var ii=0;ii < arguments.callee.actions.length;ii++){
			if(typeof arguments.callee.actions[ii] === "function"){
				arguments.callee.actions[ii]();
			}		
		}
	}
};

function addLoadEvent(func){
	if(window.onload.actions === undefined)window.onload.actions = Array();
	window.onload.actions.push(func);
}

function initsIFR(){
  if(typeof sIFR == "function"){	
    
	sIFR.replaceElement(
    named ({
        sSelector	:	"h1",
        sFlashSrc	:	"/www/swf/lucida_sans_bold.swf",
        sColor		:	"#000000",		
        sWmode		:	"transparent",
        sCase		: 	"upper"		
      })
    );	
	
  }
}	


if (typeof addLoadEvent == 'function'){
	addLoadEvent(function(){
		initsIFR();
	});
}

function toggle_field (sender) {
	var selects = document.getElementsByTagName("select");
	for (var i = 0; i < selects.length; i++) {
		selects[i].disabled = !sender.checked;	
	}
}

function change_box() {
  $('pw1').style.display = 'none';
  $('pw2').style.display = '';
  $('password').focus();
}

function restore_box() {
	if($F('password') == '') {
	  $('pw1').style.display = '';
	  $('pw2').style.display = 'none';
	}
}
