// JavaScript Document
function ValidateLockers()
{
	if (document.frmeasyspec.hidlockers.value == 1)
	{
		
		var arr = new Array(6);
		arr[0] = "0";
		arr[1] = "A";
		arr[2] = "B";
		arr[3] = "C";
		arr[4] = "D";
		arr[5] = "E";
		arr[6] = "F";		
		
		if (document.frmeasyspec.lockers_materialoptions.selectedIndex == 0)
		{
			alert ("Choose Lockers Material Options");return false;
		}
		//1	Aquasafe
		if (document.frmeasyspec.lockers_materialoptions.selectedIndex == 1)
		{
			if ((document.frmeasyspec.lc_selaqua1.selectedIndex == 0) || (document.frmeasyspec.lc_selaqua2.selectedIndex == 0))
			{ alert ("Choose Lockers > Aquasafe options"); return false; }
			else
			{
				document.frmeasyspec.frmlockersvalues.value = "LA" + arr[document.frmeasyspec.lc_selaqua1.selectedIndex]+ arr[document.frmeasyspec.lc_selaqua2.selectedIndex];
	
			}
		}
		
		//2	Hadrian Emperor	
		if (document.frmeasyspec.lockers_materialoptions.selectedIndex == 2)
		{
			if ((document.frmeasyspec.lc_selaqua3.selectedIndex == 0) || (document.frmeasyspec.lc_selaqua4.selectedIndex == 0))
			{ alert ("Choose Lockers > Hadrian Emperor options"); return false; }
			else
			{
				document.frmeasyspec.frmlockersvalues.value = "LBA" + arr[document.frmeasyspec.lc_selaqua3.selectedIndex]+ arr[document.frmeasyspec.lc_selaqua4.selectedIndex];
	
			}
		}
		
		//3	Hadrian Gladiator
		if (document.frmeasyspec.lockers_materialoptions.selectedIndex == 3)
		{
			if ((document.frmeasyspec.lc_selaqua5.selectedIndex == 0) || (document.frmeasyspec.lc_selaqua6.selectedIndex == 0))
			{ alert ("Choose Locker > Hadrian Gladiator options"); return false; }
			else
			{
				document.frmeasyspec.frmlockersvalues.value = "LBB" + arr[document.frmeasyspec.lc_selaqua5.selectedIndex]+ arr[document.frmeasyspec.lc_selaqua6.selectedIndex];
	
			}
		}
		//alert (document.frmeasyspec.frmlockersvalues.value);	
}
	else
	{
		document.frmeasyspec.frmlockersvalues.value = "";	
	}
	
	return true;
}
