<!--
	/*
	function HideQSPID()
	{
		var elem = document.getElementById('lblQSPID');
		if (elem)
			elem.className = 'csHide';
		elem = document.getElementById('txtQSPID');
		if (elem)
			elem.className = 'csHide';
		elem = document.getElementById('lblStar');
		if (elem)
		elem.className = 'csHide';
		elem = document.getElementById('lblStar1');
		if (elem)
		elem.className = 'csHide';
		elem = document.getElementById('lblMsg1');
		if (elem)
		elem.className = 'csHide';
	}
	
	function ShowQSPID()
	{
		document.getElementById('lblQSPID').className = 'csShow';
		document.getElementById('txtQSPID').className = 'csShowQSPID';
		document.getElementById('lblStar').className = 'csShow';
		var elem = document.getElementById('lblStar1');
		if (elem)
		elem.className = 'csShow';
		elem = document.getElementById('lblMsg1');
		if (elem)
		elem.className = 'csShow';
	}
		
	function UpdateScreen()
	{
		//alert('Called');
	
		var myElem = eval(document.getElementById('rdbtnList' + '' + '_0')); 
		if (myElem.checked)
		{
			HideQSPID();
		}
		else
		{
			var myElem1 = eval(document.getElementById('rdbtnList' + '' + '_1')); 
			var accElem = document.getElementById('ucAccountLookPop_tbAccount');
			var acct = accElem.value.substring(0,3);
			if (myElem1.checked && acct == '710')
			{
				ShowQSPID();
			}
			else
			{
				HideQSPID();
			}
		}
		
	}
	*/
	
	function StudentIDCheck(fulf_account_id)
	{
		//Make Ajax call to registration page and determine if we need to capture Student ID
		QSPStore_Web.Registration.StudentIDCheck(fulf_account_id,CallBack_StudentIDCheck);
	}
	function StudentIDCheckGS(fulf_account_id)
	{
		//Make Ajax call to registration page and determine if we need to capture Student ID
		QSPStore_Web.RegistrationGS.StudentIDCheck(fulf_account_id,CallBack_StudentIDCheck);
	}
	
	function CallBack_StudentIDCheck(res)
	{
		//res will be a string value in the format "[true|false]|[Description]"
		//alert(res.value);
		var arrRes = res.value.split('|')
		var bShowID = arrRes[0];
		var sDescr = arrRes[1];
		//If QSPStore_Web.Registration.StudentIDCheck returns true show the fields
		if(bShowID == "true")
		{
			ShowStudentID();
			SetBubbleHelp('imgHelp', sDescr);
		}
		else
		{
			HideStudentID();
		}
	}
	
	function HideStudentID()
	{
		var elem = document.getElementById('htmlRow_StudIDLbl');
		if (elem)
			elem.style.display = 'none';
		elem = document.getElementById('htmlRow_StudIDTxt');
		if (elem)
			elem.style.display = 'none';
	}
	
	function ShowStudentID()
	{
		var elem = document.getElementById('htmlRow_StudIDLbl');
		if (elem)
			elem.style.display = '';
		elem = document.getElementById('htmlRow_StudIDTxt');
		if (elem)
			elem.style.display = '';
	}
	
	function QSPIDMessage()
	{
		var accElem = document.getElementById('ucAccountLookPop_tbAccount');
		var acct = accElem.value.substring(0,3);
		//The values that are returned are being set by a resource file and sent to the client in Register.aspx.cs
		if (acct == '710')
		{
			return sQSPIDnoteGift;
		}
		else
		{
			return sQSPIDnoteMMB;
		}
	}
	
	//-->
