function AddToListEN()
{
	if(document.Form1.txtNewLookupValueEN.value != "")
	{
	var addFlag=true
	   for (I=0;I<document.Form1.lstLookupValuesEN.length; I++)
		{	
			if (document.Form1.lstLookupValuesEN[I].value == document.Form1.txtNewLookupValueEN.value) 
			{	
			   addFlag=false		
			   break;
			}
		}
		if(addFlag)
		{
			document.Form1.hdnLookupValuesEN.value = ""
			document.Form1.lstLookupValuesEN.length = document.Form1.lstLookupValuesEN.length + 1;
			ListLen = document.Form1.lstLookupValuesEN.length;

			document.Form1.lstLookupValuesEN[ListLen-1].text = document.Form1.txtNewLookupValueEN.value;
			document.Form1.lstLookupValuesEN[ListLen-1].value = document.Form1.txtNewLookupValueEN.value;
			for (I=0;I<document.Form1.lstLookupValuesEN.length; I++)
			{	
				if (document.Form1.lstLookupValuesEN[I].value != "") 
				{			
					document.Form1.hdnLookupValuesEN.value = document.Form1.hdnLookupValuesEN.value + ">>" + document.Form1.lstLookupValuesEN[I].text;
				}
			}
			document.Form1.txtNewLookupValueEN.value = "";
		}
		else
		{
		alert("you enter this value later")
		}
	}
}
function AddToListAR()
{
	if(document.Form1.txtNewLookupValueAR.value != "")
	{
	   var addFlag=true
	   for (I=0;I<document.Form1.lstLookupValuesAR.length; I++)
		{	
			if (document.Form1.lstLookupValuesAR[I].value == document.Form1.txtNewLookupValueAR.value) 
			{	
			   addFlag=false		
			   break;
			}
		}
		if(addFlag)
		{
			document.Form1.hdnLookupValuesAR.value = ""
			document.Form1.lstLookupValuesAR.length = document.Form1.lstLookupValuesAR.length + 1;
			ListLen = document.Form1.lstLookupValuesAR.length;

			document.Form1.lstLookupValuesAR[ListLen-1].text = document.Form1.txtNewLookupValueAR.value;
			document.Form1.lstLookupValuesAR[ListLen-1].value = document.Form1.txtNewLookupValueAR.value;
			for (I=0;I<document.Form1.lstLookupValuesAR.length; I++)
			{		
				if (document.Form1.lstLookupValuesAR[I].value != "") 
				{
					document.Form1.hdnLookupValuesAR.value = document.Form1.hdnLookupValuesAR.value + ">>" + document.Form1.lstLookupValuesAR[I].text;
				}
			}
			document.Form1.txtNewLookupValueAR.value = "";
		}
		else
		{
		alert("you enter this value later")
		}
	}
}
function AddToListFR()
{
	if(document.Form1.txtNewLookupValueFR.value != "")
	{
	   var addFlag=true
	   for (I=0;I<document.Form1.lstLookupValuesFR.length; I++)
		{	
			if (document.Form1.lstLookupValuesFR[I].value == document.Form1.txtNewLookupValueFR.value) 
			{	
			   addFlag=false		
			   break;
			}
		}
		if(addFlag)
		{
			document.Form1.hdnLookupValuesFR.value = ""
			document.Form1.lstLookupValuesFR.length = document.Form1.lstLookupValuesFR.length + 1;
			ListLen = document.Form1.lstLookupValuesFR.length;

			document.Form1.lstLookupValuesFR[ListLen-1].text = document.Form1.txtNewLookupValueFR.value;
			document.Form1.lstLookupValuesFR[ListLen-1].value = document.Form1.txtNewLookupValueFR.value;
			for (I=0;I<document.Form1.lstLookupValuesFR.length; I++)
			{		
				if (document.Form1.lstLookupValuesFR[I].value != "") 
				{			
					document.Form1.hdnLookupValuesFR.value = document.Form1.hdnLookupValuesFR.value + ">>" + document.Form1.lstLookupValuesFR[I].text;
				}
			}
			document.Form1.txtNewLookupValueFR.value = "";
		}
		else
		{
		alert("you enter this value later")
		}
	}
}
function AddToListGR()
{
	if(document.Form1.txtNewLookupValueGR.value != "")
	{
	   var addFlag=true
	   for (I=0;I<document.Form1.lstLookupValuesGR.length; I++)
		{	
			if (document.Form1.lstLookupValuesGR[I].value == document.Form1.txtNewLookupValueGR.value) 
			{	
			   addFlag=false		
			   break;
			}
		}
		if(addFlag)
		{
			document.Form1.hdnLookupValuesGR.value = ""
			document.Form1.lstLookupValuesGR.length = document.Form1.lstLookupValuesGR.length + 1;
			ListLen = document.Form1.lstLookupValuesGR.length;

			document.Form1.lstLookupValuesGR[ListLen-1].text = document.Form1.txtNewLookupValueGR.value;
			document.Form1.lstLookupValuesGR[ListLen-1].value = document.Form1.txtNewLookupValueGR.value;
			for (I=0;I<document.Form1.lstLookupValuesGR.length; I++)
			{		
				if (document.Form1.lstLookupValuesGR[I].value != "") 
				{			
					document.Form1.hdnLookupValuesGR.value = document.Form1.hdnLookupValuesGR.value + ">>" + document.Form1.lstLookupValuesGR[I].text;
				}
			}
			document.Form1.txtNewLookupValueGR.value = "";
		}
		else
		{
		alert("you enter this value later")
		}
	}
}
function AddToListSP()
{
	if(document.Form1.txtNewLookupValueSP.value != "")
	{
	   var addFlag=true
	   for (I=0;I<document.Form1.lstLookupValuesSP.length; I++)
		{	
			if (document.Form1.lstLookupValuesSP[I].value == document.Form1.txtNewLookupValueSP.value) 
			{	
			   addFlag=false		
			   break;
			}
		}
		if(addFlag)
		{
			document.Form1.hdnLookupValuesSP.value = ""
			document.Form1.lstLookupValuesSP.length = document.Form1.lstLookupValuesSP.length + 1;
			ListLen = document.Form1.lstLookupValuesSP.length;

			document.Form1.lstLookupValuesSP[ListLen-1].text = document.Form1.txtNewLookupValueSP.value;
			document.Form1.lstLookupValuesSP[ListLen-1].value = document.Form1.txtNewLookupValueSP.value;
			for (I=0;I<document.Form1.lstLookupValuesSP.length; I++)
			{		
				if (document.Form1.lstLookupValuesSP[I].value != "") 
				{			
					document.Form1.hdnLookupValuesSP.value = document.Form1.hdnLookupValuesSP.value + ">>" + document.Form1.lstLookupValuesSP[I].text;
				}
			}
			document.Form1.txtNewLookupValueSP.value = "";
		}
		else
		{
		alert("you enter this value later")
		}
	}
}
function RemoveFromListEN()
{
	for (I=0;I<document.Form1.lstLookupValuesEN.length; I++)
	{
		if (document.Form1.lstLookupValuesEN[I].selected == true && document.Form1.lstLookupValuesEN[I].value != "") 
		{
			document.Form1.lstLookupValuesEN[I] = null;
			I= I -1
		}
	}
	
	document.Form1.hdnLookupValuesEN.value = "";

	for (I=0;I<document.Form1.lstLookupValuesEN.length; I++)
	{
		if (document.Form1.lstLookupValuesEN.options[I].text != "") 
		{
			document.Form1.hdnLookupValuesEN.value = document.Form1.hdnLookupValuesEN.value + ">>" + document.Form1.lstLookupValuesEN.options[I].text;
		}
	}
}
function RemoveFromListAR()
{
	for (I=0;I<document.Form1.lstLookupValuesAR.length; I++)
	{
		if (document.Form1.lstLookupValuesAR[I].selected == true && document.Form1.lstLookupValuesAR[I].value != "") 
		{
			document.Form1.lstLookupValuesAR[I] = null;
			I= I -1
		}
	}

	document.Form1.hdnLookupValuesAR.value = "";

	for (I=0;I<document.Form1.lstLookupValuesAR.length; I++)
	{
		if (document.Form1.lstLookupValuesAR.options[I].text != "") 
		{
			document.Form1.hdnLookupValuesAR.value = document.Form1.hdnLookupValuesAR.value + ">>" + document.Form1.lstLookupValuesAR.options[I].text;
		}
	}
}			
function RemoveFromListFR()
{
	for (I=0;I<document.Form1.lstLookupValuesFR.length; I++)
	{
		if (document.Form1.lstLookupValuesFR[I].selected == true && document.Form1.lstLookupValuesFR[I].value != "") 
		{
			document.Form1.lstLookupValuesFR[I] = null;
			I= I -1
		}
	}

	document.Form1.hdnLookupValuesFR.value = "";

	for (I=0;I<document.Form1.lstLookupValuesFR.length; I++)
	{
		if (document.Form1.lstLookupValuesFR.options[I].text != "") 
		{
			document.Form1.hdnLookupValuesFR.value = document.Form1.hdnLookupValuesFR.value + ">>" + document.Form1.lstLookupValuesFR.options[I].text;
		}
	}
}
function RemoveFromListGR()
{
	for (I=0;I<document.Form1.lstLookupValuesGR.length; I++)
	{
		if (document.Form1.lstLookupValuesGR[I].selected == true && document.Form1.lstLookupValuesGR[I].value != "") 
		{
			document.Form1.lstLookupValuesGR[I] = null;
			I= I -1
		}
	}

	document.Form1.hdnLookupValuesGR.value = "";

	for (I=0;I<document.Form1.lstLookupValuesGR.length; I++)
	{
		if (document.Form1.lstLookupValuesGR[I].options[I].text != "") 
		{
			document.Form1.hdnLookupValuesGR.value = document.Form1.hdnLookupValuesGR.value + ">>" + document.Form1.lstLookupValuesGR.options[I].text;
		}
	}
}
function RemoveFromListSP()
{
	for (I=0;I<document.Form1.lstLookupValuesSP.length; I++)
	{
		if (document.Form1.lstLookupValuesSP[I].selected == true && document.Form1.lstLookupValuesSP[I].value != "") 
		{
			document.Form1.lstLookupValuesSp[I] = null;
			I= I -1
		}
	}

	document.Form1.hdnLookupValuesSP.value = "";

	for (I=0;I<document.Form1.lstLookupValuesSP.length; I++)
	{
		if (document.Form1.lstLookupValuesSP[I].options[I].text != "") 
		{
			document.Form1.hdnLookupValuesSP.value = document.Form1.hdnLookupValuesSP.value + ">>" + document.Form1.lstLookupValuesSP.options[I].text;
		}
	}
}
function HandleControlSelection()
{

	if (document.Form1.drpControl.value == '')
	{
		document.Form1.txtFieldName.disabled = true;
		document.Form1.chkRequired.disabled = true;
		document.Form1.chkUseInSearch.disabled = true;
		document.Form1.chkUseInSummary.disabled= true;
		document.Form1.drpDataType.disabled = true;
		document.Form1.txtLength.disabled = true;
		
		try
		{
			document.Form1.txtDisplayNameEN.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtDisplayNameAR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtDisplayNameFR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtDisplayNameGR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtDisplayNameSP.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitEN.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitAR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitFR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitGR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitSP.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueEN.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesEN.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueAR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesAR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueFR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesFR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueGR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesGR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueSP.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesSP.disabled = true;
		}
		catch(e)
		{}
}
	else if (document.Form1.drpControl.value ==1)
	{
		document.Form1.txtFieldName.disabled = false;
		document.Form1.chkRequired.disabled = false;
		document.Form1.chkUseInSearch.disabled = false;
		document.Form1.chkUseInSummary.disabled = false;
		document.Form1.drpDataType.disabled = false;
		document.Form1.txtLength.disabled = false;
		try
		{
			document.Form1.txtDisplayNameEN.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtDisplayNameAR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtDisplayNameFR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtDisplayNameGR.disabled = false;
		}
		catch(e)
		{}
        try
		{
			document.Form1.txtDisplayNameSP.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitEN.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitAR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitFR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitGR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitSP.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueEN.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesEN.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueAR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesAR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueFR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesFR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueGR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesGR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueSP.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesSP.disabled = true;
		}
		catch(e)
		{}
	}
	else if (document.Form1.drpControl.value ==2)
	{
		document.Form1.txtFieldName.disabled = false;
		document.Form1.chkRequired.disabled = false;
		document.Form1.chkUseInSearch.disabled = true;
		document.Form1.chkUseInSummary.disabled = true;
		document.Form1.drpDataType.disabled = false;
		document.Form1.txtLength.disabled = false;
		try
		{
			document.Form1.txtDisplayNameEN.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtDisplayNameAR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtDisplayNameFR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtDisplayNameGR.disabled = false;
		}
		catch(e)
		{}
        try
		{
			document.Form1.txtDisplayNameSP.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitEN.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitAR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitFR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitGR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitSP.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueEN.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesEN.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueAR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesAR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueFR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesFR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueGR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesGR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueSP.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesSP.disabled = true;
		}
		catch(e)
		{}
	}
	else if (document.Form1.drpControl.value ==3)
	{
		document.Form1.txtFieldName.disabled = false;
		document.Form1.chkRequired.disabled = true;
		document.Form1.chkUseInSearch.disabled = false;
		document.Form1.chkUseInSummary.disabled = false;
		document.Form1.drpDataType.disabled = true;
		document.Form1.txtLength.disabled = true;
		try
		{
			document.Form1.txtDisplayNameEN.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtDisplayNameAR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtDisplayNameFR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtDisplayNameGR.disabled = false;
		}
		catch(e)
		{}
        try
		{
			document.Form1.txtDisplayNameSP.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitEN.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitAR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitFR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitGR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitSP.disabled = true;
		}
		catch(e)
		{}
		try	
		{
			document.Form1.txtNewLookupValueEN.disabled = true;
		}
		catch(e)
		{}
		try	
		{
			document.Form1.lstLookupValuesEN.disabled = true;
		}
		catch(e)
		{}
		try	
		{
			document.Form1.txtNewLookupValueAR.disabled = true;
		}
		catch(e)
		{}
		try	
		{
			document.Form1.lstLookupValuesAR.disabled = true;
		}
		catch(e)
		{}
		try	
		{
			document.Form1.txtNewLookupValueFR.disabled = true;
		}
		catch(e)
		{}
		try	
		{
			document.Form1.lstLookupValuesFR.disabled = true;
		}
		catch(e)
		{}
		try	
		{
			document.Form1.txtNewLookupValueGE.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesGE.disabled = true;
		}
		catch(e)
		{}
		try	
		{
			document.Form1.txtNewLookupValueGR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesGR.disabled = true;
		}
		catch(e)
		{}
	}
	else if (document.Form1.drpControl.value ==4)
	{
		document.Form1.txtFieldName.disabled = false;
		document.Form1.chkRequired.disabled = false;
		document.Form1.chkUseInSearch.disabled = false;
		document.Form1.chkUseInSummary.disabled = true;
		document.Form1.drpDataType.disabled = true;
		document.Form1.txtLength.disabled = true;
		try
		{
			document.Form1.txtDisplayNameEN.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtDisplayNameAR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtDisplayNameFR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtDisplayNameGR.disabled = false;
		}
		catch(e)
		{}
        try
		{
			document.Form1.txtDisplayNameSP.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitEN.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitAR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitFR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitGR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitSP.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueEN.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesEN.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueAR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesAR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueFR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesFR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueGR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesGR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueSP.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesSP.disabled = false;
		}
		catch(e)
		{}
	}
	else if (document.Form1.drpControl.value ==5)
	{
		document.Form1.txtFieldName.disabled = false;
		document.Form1.chkRequired.disabled = false;
		document.Form1.chkUseInSearch.disabled = false;
		document.Form1.chkUseInSummary.disabled = false;
		document.Form1.drpDataType.disabled = true;
		document.Form1.txtLength.disabled = true;
		try
		{
			document.Form1.txtDisplayNameEN.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtDisplayNameAR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtDisplayNameFR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtDisplayNameGR.disabled = false;
		}
		catch(e)
		{}
        try
		{
			document.Form1.txtDisplayNameSP.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitEN.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitAR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitFR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitGR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitSP.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueEN.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesEN.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueAR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesAR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueFR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesFR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueGR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesGR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueSP.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesSP.disabled = false;
		}
		catch(e)
		{}
	}
	else if (document.Form1.drpControl.value ==6)
	{
		document.Form1.txtFieldName.disabled = false;
		document.Form1.chkRequired.disabled = false;
		document.Form1.chkUseInSearch.disabled = false;
		document.Form1.chkUseInSummary.disabled = true;
		document.Form1.drpDataType.disabled = true;
		document.Form1.txtLength.disabled = true;
		try
		{
			document.Form1.txtDisplayNameEN.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtDisplayNameAR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtDisplayNameFR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtDisplayNameGR.disabled = false;
		}
		catch(e)
		{}
        try
		{
			document.Form1.txtDisplayNameSP.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitEN.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitAR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitFR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitGR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitSP.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueEN.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesEN.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueAR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesAR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueFR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesFR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueGR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesGR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueSP.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesSP.disabled = true;
		}
		catch(e)
		{}
	}
	else if (document.Form1.drpControl.value ==7)
	{
		document.Form1.txtFieldName.disabled = false;
		document.Form1.chkRequired.disabled = false;
		document.Form1.chkUseInSearch.disabled = false;
		document.Form1.chkUseInSummary.disabled = true;
		document.Form1.drpDataType.disabled = true;
		document.Form1.txtLength.disabled = true;
		try
		{
			document.Form1.txtDisplayNameEN.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtDisplayNameAR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtDisplayNameFR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtDisplayNameGR.disabled = false;
		}
		catch(e)
		{}
        try
		{
			document.Form1.txtDisplayNameSP.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitEN.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitAR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitFR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitGR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitSP.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueEN.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesEN.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueAR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesAR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueFR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesFR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueGR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesGR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueSP.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesSP.disabled = true;
		}
		catch(e)
		{}
	}
	else if (document.Form1.drpControl.value ==8)
	{
		document.Form1.txtFieldName.disabled = false;
		document.Form1.chkRequired.disabled = false;
		document.Form1.chkUseInSearch.disabled = false;
		document.Form1.chkUseInSummary.disabled = false;
		document.Form1.drpDataType.disabled = true;
		document.Form1.txtLength.disabled = true;
		try
		{
		document.Form1.txtDisplayNameEN.disabled = false;
		}
		catch(e)
		{}
		try
		{
		document.Form1.txtDisplayNameAR.disabled = false;
		}
		catch(e)
		{}
		try
		{
		document.Form1.txtDisplayNameFR.disabled = false;
		}
		catch(e)
		{}
		
		try
		{
			document.Form1.txtDisplayNameGR.disabled = false;
		}
		catch(e)
		{}
        try
		{
			document.Form1.txtDisplayNameSP.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitEN.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitAR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitFR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitGR.disabled = true;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtUnitSP.disabled = true;
		}
		catch(e)
		{}
		try
		{
		document.Form1.txtNewLookupValueEN.disabled = false;
		}
		catch(e)
		{}
		try
		{
		document.Form1.lstLookupValuesEN.disabled = false;
		}
		catch(e)
		{}
		try
		{
		document.Form1.txtNewLookupValueAR.disabled = false;
		}
		catch(e)
		{}
		try
		{
		document.Form1.lstLookupValuesAR.disabled = false;
		}
		catch(e)
		{}
		try
		{
		document.Form1.txtNewLookupValueFR.disabled = false;
		}
		catch(e)
		{}
		try
		{
		document.Form1.lstLookupValuesFR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueGR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesGR.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.txtNewLookupValueSP.disabled = false;
		}
		catch(e)
		{}
		try
		{
			document.Form1.lstLookupValuesSP.disabled = false;
		}
		catch(e)
		{}
	}
}

function HandleDataTypeSelection()
{
	if (document.Form1.drpDataType.selectedIndex == 1)
	{
		document.Form1.txtLength.disabled = false;
	}
	else
	{
		document.Form1.txtLength.disabled = true;
	}
}

