function DisplayControl(greyedOut,obj)
	{
		//alert('DisplayControl')
		this.questionArray = greyedOut;
		this.dataObj = obj;
	}
	
DisplayControl.prototype.shouldDisplay = function(q)
	{
		var i = 0;
		var aLength = this.questionArray.length
		while(i <= this.questionArray.length)
			{
				if(this.questionArray[i] == q)//ie question15
					{
						var buttonArray = document.aboutYourCards.q16; //get number of buttons in question 16
						if(this.dataObj._dataArray[q] == 0)//since there's only one question in this array we don't need to check for a specific question no. If more questions are added, then we will need to look for a specific question.
							{
								document.getElementById('grey1').style.color = '#CCCCCC';
								document.getElementById('grey2').style.color = '#CCCCCC';
								document.getElementById('grey3').style.color = '#CCCCCC';
								for (var i=0; i<buttonArray.length; i++)
		  							{
										document.aboutYourCards.q16[i].disabled = true;
		  							}
								this.dataObj._dataArray[16] = 0;//set default value for question16
				
							}
						else if(this.dataObj._dataArray[q] != 0)
							{
								document.getElementById('grey1').style.color = '#000000';
								document.getElementById('grey2').style.color = '#000000';
								document.getElementById('grey3').style.color = '#000000';
								for (var i=0; i<buttonArray.length; i++)
		  							{
										document.aboutYourCards.q16[i].disabled = false;
		  							}
							}
					}
				i++;
			}
	}


	
	
	
