

	function RetreiveValues(Division)
			{
				     
				var intDisplayCount,intLoopDisplay;
				var intFormatCount,intLoopFormat;
				var strDisplayVal = "";
				var strFormatVal = "";
				
				
				intFormatCount = document.forms[0].FormatMarkedForDisplay.length;
										
				 for ( intLoopFormat = 0 ; intLoopFormat < intFormatCount ; intLoopFormat++ )
					if ( document.forms[0].FormatMarkedForDisplay[intLoopFormat].checked == true )
						strFormatVal =strFormatVal +","+document.forms[0].FormatMarkedForDisplay[intLoopFormat].value;
					
								
				if (Division.indexOf("-HT")>0)
				{
					if (strDisplayVal=="")
						strDisplayVal="HT";
				}
				if (Division.indexOf("-SE")>0)
				{
					if (strDisplayVal=="")
						strDisplayVal="SE";
				}
				if (Division.indexOf("-IS")>0)
				{
					if (strDisplayVal=="")
						strDisplayVal="IS";
				}
				if (Division.indexOf("-SCH")>0)
				{
					if (strDisplayVal=="")
						strDisplayVal="SC";
				}
				if (Division.indexOf("-HR")>0)
				{
						if (strDisplayVal=="")
						strDisplayVal="HR";
				}
				
							
					
				if (strFormatVal=="")
					//habeeba
					strFormatVal="NET,INT,EBI,VHS,VDX,VTK,POS,CD-ROM,VCD,NDO,WKB,WBK,MAN,HBK,HDO,CRD,DVD,MIS,SRV,AUD,Manual,Póster,Folleto,DVO";
					//strFormatVal="INT,EBI,VHS,VDX,VTK,POS,CD-ROM,VCD,NDO,WKB,WBK,MAN,HBK,HDO,CRD,DVD,MIS,SRV,AUD,Manual,Póster,Folleto";
					//strFormatVal="NET,VHS,IND,DVD,VTK,HBK,POS,MAN,FRM,VDX,VCD,INT,CD-ROM,WKB,CRD,STW";
					//strFormatVal VHS = VHS+VTK+VDX;
					
				
				return(strDisplayVal+";"+strFormatVal+";");		
				
			}
			



/* Script for Check Box functionality */

function fnRemoveCheckForAll()
		{
			document.forms[0].AllDivision.checked = false;				 
		}
			
			
		function fnCheckAllDivisions()
			{
				var intLoop;
				for ( intLoop = 0 ; intLoop < document.forms[0].ItemMarkedForDisplay.length ; intLoop++ )
					if ( document.forms[0].ItemMarkedForDisplay[intLoop].checked )
					{				
						document.forms[0].AllDivision.checked = false;
						for ( intLoop = 0 ; intLoop < document.forms[0].ItemMarkedForDisplay.length ; intLoop++ )
						{
						document.forms[0].ItemMarkedForDisplay[intLoop].checked = false;
						document.forms[0].AllDivision.checked = true;						
						}
						break;
					}
			}
			
			/* Functions added for format */
			
			function fnRemoveCheckForAll1()
			{
				document.forms[0].AllFormat.checked = false;
			}
			
			
			/*function check()
			{
			
				var intLoop;
				for ( intLoop = 0 ; intLoop < document.forms[0].FormatMarkedForDisplay.length ; intLoop++ )
					if ( document.forms[0].FormatMarkedForDisplay[intLoop].checked )
					{
						document.forms[0].FormatMarkedForDisplay[intLoop].checked = true;
					}
					else
					{
					document.forms[0].FormatMarkedForDisplay[intLoop].checked = false;
					}
					document.forms[0].AllFormat.checked = false;
			}*/
			
			
			function fnCheckAllDivisions1()
			{
				
				var intLoop;
				for ( intLoop = 0 ; intLoop < document.forms[0].FormatMarkedForDisplay.length ; intLoop++ )
					if ( document.forms[0].FormatMarkedForDisplay[intLoop].checked )
					{
				
						document.forms[0].AllFormat.checked = false;
						for ( intLoop = 0 ; intLoop < document.forms[0].FormatMarkedForDisplay.length ; intLoop++ )
						{
						document.forms[0].FormatMarkedForDisplay[intLoop].checked = false;
						document.forms[0].AllFormat.checked = true;
						}
						break;
					}
			}
			
			
			
				
			/* Newly Added function for checkbox functionality ends here*/
			
			/* EnterKey Trapping Script */ 
function clickButton(e, buttonid)
{ 
/*alert('1'+window.event);
alert('2'+e);*/
      var evt = e ? e : window.event;    
      var bt = document.getElementById(buttonid);      
      if (bt)
      {       
/*alert(':1:'+evt.keyCode);
alert(':2:'+evt.which);*/
          if (evt.keyCode == 13)
          { 
         
               bt.click(); 
               return false; 
          } 
          else if (evt.which == 13)
          { 
               bt.click(); 
               return false; 
          } 
          else 
          return true;
     } 
}
			/* EnterKey Trapping Script */ 
