﻿// JScript File
function checkIfEnter(e)
{
    //alert("test");
	var iCode;
	if (e.keyCode) iCode = e.keyCode;
	else if (e.which) iCode = e.which;
	var keyChar = String.fromCharCode(iCode);
	if(keyChar == "\r")
	{
		submitForm("")
		return false;
	}
}
function checkIfEnter2(e)
{
    //alert("test");
	var iCode;
	if (e.keyCode) iCode = e.keyCode;
	else if (e.which) iCode = e.which;
	var keyChar = String.fromCharCode(iCode);
	if(keyChar == "\r")
	{
		submitForm2("")
		return false;
	}
}
function submitForm()
{
    var ilosc;
    //ilosc = document.forms.length;

    //alert(ilosc);
    
    //var theForm = document.forms[0];
    //var theForm = document.forms.aspnetForm;
    //theForm.submit();
    //return false;	
    
    
    WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$ultra_marketLogin$LoginLinkButton", "", true, "ctl00$ultra_marketLogin", "", false, true));
    return false;	
}
function submitForm2()
{
    WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$MainContent$ultra_marketLogin$LoginLinkButton", "", true, "ctl00$MainContent$ultra_marketLogin", "", false, true));
    return false;	
}
