// JavaScript Document
function ValidatePrivacy()
{
	if (document.frmeasyspec.hidprivacy.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";		
		
		//1	Axis
		if (document.frmeasyspec.p_cubicletype.selectedIndex == 0)
		{
			alert ("Choose Cubicles > Privacy Screens type"); return false;
		}
				
		//1	Axis
		if (document.frmeasyspec.p_cubicletype.selectedIndex == 1)
				document.frmeasyspec.frmprivacyvalues.value = "PS1A";
		//2	Impact		
		if (document.frmeasyspec.p_cubicletype.selectedIndex == 2)
				document.frmeasyspec.frmprivacyvalues.value = "PS2A";
				
		//3	Splash
		if (document.frmeasyspec.p_cubicletype.selectedIndex == 3)
				document.frmeasyspec.frmprivacyvalues.value = "PS3A";
				
		//4	Ultima
		if (document.frmeasyspec.p_cubicletype.selectedIndex == 4)
		{
			if (document.frmeasyspec.p_selultima1.selectedIndex == 0)
			{ alert ("Choose Cubicles > Privacy Screens > Ultima options"); return false; }
			else
			{
				document.frmeasyspec.frmprivacyvalues.value = "PS4" + arr[document.frmeasyspec.p_selultima1.selectedIndex];
	
			}
		}
		//5	Minima			
		if (document.frmeasyspec.p_cubicletype.selectedIndex == 5)
		{
			if (document.frmeasyspec.p_selminima1.selectedIndex == 0)
			{ alert ("Choose Cubicles > Privacy Screens > Minima options"); return false; }
			else
			{
				document.frmeasyspec.frmprivacyvalues.value = "PS5" + arr[document.frmeasyspec.p_selminima1.selectedIndex];
	
			}
		}
		
		//6	Linea
		if (document.frmeasyspec.p_cubicletype.selectedIndex == 6)
		{
			if (document.frmeasyspec.p_sellinea1.selectedIndex == 0)
			{ alert ("Choose Cubicles > Privacy Screens > Linea options"); return false; }
			else
			{
				document.frmeasyspec.frmprivacyvalues.value = "PS6" + arr[document.frmeasyspec.p_sellinea1.selectedIndex];
	
			}
		}
		
		//7	Truline
			if (document.frmeasyspec.p_cubicletype.selectedIndex == 7)
		{
			if (document.frmeasyspec.p_seltruline1.selectedIndex == 0)
			{ alert ("Choose Cubicles > Privacy Screens > Truline options"); return false; }
			else
			{
				document.frmeasyspec.frmprivacyvalues.value = "PS7" + arr[document.frmeasyspec.p_seltruline1.selectedIndex];
	
			}
		}
		
		//8	Coolite
		if (document.frmeasyspec.p_cubicletype.selectedIndex == 8)
				document.frmeasyspec.frmprivacyvalues.value = "PS8A";
		//9	Aqualine
		if (document.frmeasyspec.p_cubicletype.selectedIndex == 9)
				document.frmeasyspec.frmprivacyvalues.value = "PS9A";
	
		//11 Playtime
		if (document.frmeasyspec.p_cubicletype.selectedIndex == 10)
		{
			if ((document.frmeasyspec.p_selplaytime1.selectedIndex == 0) )
			{ alert ("Choose Cubicles > Privacy Screens > All Playtime options"); return false; }
			else
			{
				document.frmeasyspec.frmprivacyvalues.value = "PS10" + arr[document.frmeasyspec.p_selplaytime1.selectedIndex];
			}
		}
		//12 Urban
		if (document.frmeasyspec.p_cubicletype.selectedIndex == 11)
				document.frmeasyspec.frmprivacyvalues.value = "PS11A";
		//13 Acorn
		if (document.frmeasyspec.p_cubicletype.selectedIndex == 12)
		{	
			if (document.frmeasyspec.p_selacron1.selectedIndex == 0)
				{ alert ("Choose Cubicles > Privacy Screens > Acorn Options"); return false; }
			else
				{ document.frmeasyspec.frmprivacyvalues.value = "PS12" + arr[document.frmeasyspec.p_selacron1.selectedIndex];
				 }								
		}
		//alert (document.frmeasyspec.frmprivacyvalues.value);	

	}
	else
	{
		document.frmeasyspec.frmprivacyvalues.value = "";
	}
	return true;
}