function FocusUsername() 
{
      if(frmGeneral.username == null) return;
      frmGeneral.username.value='enter your username';
      frmGeneral.username.select();
      frmGeneral.username.focus();
}

var CtrlKey=false;

function DoKeyTraps() { document.onkeydown = register;	document.onkeyup = register;}

function register(e)
{
	if (!e) e = window.event;
      CtrlKey=e['ctrlKey'];
      if (e.type=='keyup') CtrlKey=false;
}

function HomePage()
{
    document.location.href='/il_home/il_home.asp';
}

function LoadICIS()
{
     if(parent!=this)
     {
          
          document.location.href='http://www.icispricing.com';
     }
     else
     {
          document.location.href='http://www.icispricing.com';
     }
}

function passwordKeyPress()
{
	if (event.keyCode == 13) {
		doLogin();
	}

}
function usernameKeyPress()
{
	if (event.keyCode == 13) {
		frmGeneral.password.focus();
	}

}

function doNavFromBox(box)
{
	var boxValue;
	boxValue=box.options[box.selectedIndex].value;
	pageNav('BOX'+boxValue);
}
