function WhiteColarCheck()
{
	if (document.Form1.chkWhiteCollar.checked==true)
	{	
		if (window.confirm("If White Collar and Cuff Click - 'Ok' \n\nIf only White Collar Click - 'Cancel'")== true)
		{
			document.Form1.chkWhiteCuff.checked=true;
			//added by anto
			CheckShortSleeves()
					
		}
		else
		{
			document.Form1.chkWhiteCuff.checked=false;
			 //added by anto
		}
	}
	else
	{
		document.Form1.chkWhiteCuff.checked=false;
		 //added by anto
	}
}



function WhiteCuffCheck()
{
	if (document.Form1.chkWhiteCuff.checked==true)
	{
		if (document.Form1.chkWhiteCollar.checked==false)
		{
			if (confirm("White Cuff cannot be Checked without White Collar \nIf Your Want White Collar Click - 'Ok'")==true)
			   {	
			    document.Form1.chkWhiteCollar.checked=true;
			 	CheckShortSleeves();	 //added by anto
				}
			else
				{
				document.Form1.chkWhiteCuff.checked=false;
				}
		}
		else //added by anto
		{
		CheckShortSleeves();
		}
	}
	else
	{
	//EnableShortSleeves();//added by anto	
	}
}

function CheckShortSleeves()
{
	if(document.forms[0].gbrShortSleeveSelection.checked==true ||document.forms[0].gbrShortSleeveSelection.checked==true||document.forms[0].gbrShortSleeveSelection.checked==true)
	{
		alert("White Cuff cannot be Checked with ShortSleeve \nIf You Want White Cuff first select Long Sleeve's")
		/*{
		document.forms[0].dlShortSleeves__ctl0_gbrShortSleeveSelection.checked=false;
		document.forms[0].dlShortSleeves__ctl1_gbrShortSleeveSelection.checked=false;
		document.forms[0].dlShortSleeves__ctl2_gbrShortSleeveSelection.checked=false;
		document.forms[0].dlLongSleeves__ctl0_gbrLongSleeveSelection.checked=true;
						
		} */
	document.Form1.chkWhiteCuff.checked = false;
	
	}
}
/*

function CheckShortSleeves()
{
	if(document.forms[0].dlShortSleeves__ctl0_gbrShortSleeveSelection.checked==true ||document.forms[0].dlShortSleeves__ctl1_gbrShortSleeveSelection.checked==true||document.forms[0].dlShortSleeves__ctl2_gbrShortSleeveSelection.checked==true)
	{
		if (confirm("White Cuff cannot be Checked with ShortSleeve \nIf Your Want White Cuff Click  - 'Ok'")==true)
		{
		document.forms[0].dlShortSleeves__ctl0_gbrShortSleeveSelection.checked=false;
		document.forms[0].dlShortSleeves__ctl1_gbrShortSleeveSelection.checked=false;
		document.forms[0].dlShortSleeves__ctl2_gbrShortSleeveSelection.checked=false;
		document.forms[0].dlLongSleeves__ctl0_gbrLongSleeveSelection.checked=true;
						
		}
		else
		{
		document.Form1.chkWhiteCuff.checked = false;
		
		}
	}
}


*/

function EnableStyle()
{
var obj = document.getElementById('ibtnSaveTop');
var obj1 = document.getElementById('ibtnSaveStyle');
if (document.Form1.chkSaveStyle.checked == false)
{
		document.Form1.txtStyleName.value="";
		document.Form1.txtStyleName.readOnly = true;
		document.Form1.txtStyleName.style.backgroundColor="#cccccc";
		if ((obj != null) && (obj1 != null)){
			obj.style.visibility = "hidden";
			obj1.style.visibility = "hidden";}
}
else
{
	document.Form1.txtStyleName.readOnly = false;
	document.Form1.txtStyleName.style.backgroundColor="#ffffff";
	if ((obj != null) && (obj1 != null)){
			obj.style.visibility = "visible";
			obj1.style.visibility = "visible";
		}
}
}
function SetSelection()
{
	alert(document.Form1.lbMonoLocation.innerText);
}