//This function is for submitting MemberRegistrationForm
function memberRegistrationSubmit(clickType)
{
	if(clickType == 'Cancel')
	{
		if(confirm("Do you want to cancel ?"))
		{
			document.memberRegistrationForm.clickType.value = clickType;			
			document.memberRegistrationForm.submit();
		}
	}
	else
	{
		document.memberRegistrationForm.clickType.value = clickType;		
		document.memberRegistrationForm.submit();
	}
}

function cookiesSubmit(userId, password)
{
	if((userId !="") && (password !=""))
	{	
		document.memberLeftForm.userId.value = userId;		
		document.memberLeftForm.password.value = password;		
		
		document.memberLeftForm.clickType.value = "signIn";		
		document.memberLeftForm.submit();
	}
	else
	{
		document.quickSearch.searchText.focus();
	}
}

function checkLoginId()
{	
	document.getElementById("checkId").innerHTML="<b>Checking...</b>";
	document.getElementById("idCheck").innerHTML="";
	var loginId =document.getElementById("memberLoginId").value;
	$.getJSON("/logincheck", {"loginId": loginId},	function(data){
		$("#idCheck").html(data.resultData);
	});
	document.getElementById("checkId").innerHTML="<a href='#chcek' onClick='javascript:checkLoginId()'>Check Availability </a>";	
}
