function SubmitLogin()
{
	var targetname;
	targetname = "IBANK3_1";
	// In the new window the toolbar has been turned on while in development so that we can use the back button
	if(window.name != targetname)
	{
   	var ScreenHeight
      var ScreenWidth
      ScreenHeight = screen.height;
      ScreenWidth = screen.width;
      var newWindow = window.open("LoginLoading.asp",targetname,"toolbar=yes,menubar=no,location=no,hotkeys=no,directories=no,scrollbars=yes,resizable=yes,status=yes,personalbar=no,self.resizeTo("+ScreenWidth+","+ScreenHeight+"),width="+ScreenWidth+",height="+ScreenHeight);
      newWindow.moveTo(0,0);
	}
	document.IBForm.target = targetname;
	
	document.IBForm.NAME.value = document.IBForm.iName.value
	document.IBForm.PASSWORD.value = document.IBForm.iPassword.value
	document.IBForm.CAPTCHA.value = document.IBForm.iCaptcha.value
	document.IBForm.iName.value = ""
	document.IBForm.iPassword.value = ""
	document.IBForm.iCaptcha.value = ""
	if(window.name != targetname)
	   newWindow.focus();
	return SubmitForm();
}

function checkKey(evt)
{
	if (evt.keyCode == 13)
	{
		SubmitLogin();
	}
}
