
<!-- hide from old browsers
	
	//=======================================================================
	//	Global Variables
	//=======================================================================
	 var SectionCount0055cfbbcbb241c29ec3b58ac4fad7f8			=	-1,
		 CurrentScreenIndexf9e8a1ba9bbf43e4a12819cbd7100fef		=	0,
		 CurrentDisplayDivID421609f3eb5740a195812895ca7100df	=	-1
		 Top16b299ab2ffb4dc0acecadca34245313					=	100,
		 Left15f47de1edbc41fcab82eea8e5893379					=	30,
		 Width9d5670dd2f36433296ff6f2d98ac29d4					=	390,
		 Heighte477e5f05d014527ab5d1b12e6747152					=	321, 
		 winec1f6b511be84278bda0219cf01c902a					=   "WindowPopup";

		
  //=====================================================		
	function PageControl_SetDivTopLeftWidthHeight(argTop,argLeft,argWidth,argHeigth)
  //=====================================================	
	{
		Top16b299ab2ffb4dc0acecadca34245313		=	argTop;
		Left15f47de1edbc41fcab82eea8e5893379	=	argLeft;
		Width9d5670dd2f36433296ff6f2d98ac29d4	=	argWidth;
		Heighte477e5f05d014527ab5d1b12e6747152	=	argHeigth
	}	 
	
  //=====================================================		
	function PageControl_DisplayDivScreen(argDivName,argNextValue)
  //=====================================================	
	{
		var Element6b8e0ecdee0142708ec2f566d876357 = "";
		
		if(SectionCount0055cfbbcbb241c29ec3b58ac4fad7f8 < 0)
		{  	
			//Execute once the page is loaded. one deal only.		
			for(var i = 0; i < 500; i++)
		    {	
				Element6b8e0ecdee0142708ec2f566d876357 = document.getElementById(argDivName + '_' + i);
				
				if(Element6b8e0ecdee0142708ec2f566d876357 == "undefined" || Element6b8e0ecdee0142708ec2f566d876357 == null)
				{
					
					SectionCount0055cfbbcbb241c29ec3b58ac4fad7f8 = i;					
					break;
				}
			}
		}
		
		if(SectionCount0055cfbbcbb241c29ec3b58ac4fad7f8 < 1)
		{
			alert("No records found.");			
		}
		else
		{	
			CurrentScreenIndexf9e8a1ba9bbf43e4a12819cbd7100fef += argNextValue;
			
			if(CurrentScreenIndexf9e8a1ba9bbf43e4a12819cbd7100fef < 0)
			{
				CurrentScreenIndexf9e8a1ba9bbf43e4a12819cbd7100fef++;
				alert("You are viewing the first set of records.");
			}						
			else if(SectionCount0055cfbbcbb241c29ec3b58ac4fad7f8 <= CurrentScreenIndexf9e8a1ba9bbf43e4a12819cbd7100fef)
			{
				CurrentScreenIndexf9e8a1ba9bbf43e4a12819cbd7100fef--;
				alert("You are viewing the last set of records.");	
			}
			
			else
			{ 						
				if( -1 < CurrentDisplayDivID421609f3eb5740a195812895ca7100df )
				{				  
					document.getElementById(argDivName + '_' + CurrentDisplayDivID421609f3eb5740a195812895ca7100df).style.display = "none";
				}
				
				for(var i=0; i < SectionCount0055cfbbcbb241c29ec3b58ac4fad7f8; i++)
				{
					if( i == CurrentScreenIndexf9e8a1ba9bbf43e4a12819cbd7100fef)
					{						
						Element6b8e0ecdee0142708ec2f566d876357 = document.getElementById(argDivName + '_' + i);						
						Element6b8e0ecdee0142708ec2f566d876357.style.top = Top16b299ab2ffb4dc0acecadca34245313 + "px";	
						Element6b8e0ecdee0142708ec2f566d876357.style.left = Left15f47de1edbc41fcab82eea8e5893379 + "px";	
						Element6b8e0ecdee0142708ec2f566d876357.style.width = Width9d5670dd2f36433296ff6f2d98ac29d4 + "px";
						Element6b8e0ecdee0142708ec2f566d876357.style.height = Heighte477e5f05d014527ab5d1b12e6747152 + "px";
						Element6b8e0ecdee0142708ec2f566d876357.style.display = "inline";
						CurrentDisplayDivID421609f3eb5740a195812895ca7100df = i;
						
						break;
					}
				}			
			}
		}		
	}		
	
	//=======================================================
		function PageControl_WindowResizeWidthHeight(argWidth,argHeight) 
	//=======================================================	
		{
		
			window.resizeTo(argWidth, argHeight) ;
		}
	
	//=================================================
		function PageControl_WindowPositionLeftTop(argLeft,argTop)
	//=================================================
		{
			window.moveTo(argLeft, argTop);
		}
	
	//===============================================
		function PageControl_WindowPopupTarget(argTarget)
	//===============================================		
		{
			window.status=0											               
			winec1f6b511be84278bda0219cf01c902a = window.open(argTarget,'winec1f6b511be84278bda0219cf01c902a','toolbar=0,scrollbars=1,menubar=0,location=0,resizable=1,directories=0,status=0,width=650,height=600');
			winec1f6b511be84278bda0219cf01c902a.focus();	
		}
		
	//===============================================
		function PageControl_WindowPopupDefaultSetting()
	//===============================================		
		{
			window.status=0			
			PageControl_WindowPositionLeftTop(50,50);
			PageControl_WindowResizeWidthHeight(680,550);	
		} 

	
	//==============================================================
		function PageControl_WindowPopupTargetClassName(argTarget,argClassName)
	//==============================================================
		{      			
			
			var strPopWindow = argTarget + "?ClassName=" + argClassName                   
			//var Win = window.open(strPopWindow,'','toolbar=0,scrollbars=1,menubar=0,location=0,resizable=1,directories=0,status=0,width='+(650)+',height='+(500)+',left=50,top=20');
			winec1f6b511be84278bda0219cf01c902a = window.open(strPopWindow,'winec1f6b511be84278bda0219cf01c902a','toolbar=0,scrollbars=1,menubar=0,location=0,resizable=1,directories=0,status=0,width=400,height=300');
			winec1f6b511be84278bda0219cf01c902a.focus();				
		}
		
		
	//=======================================================================
		function PageControl_WindowPopupTargetWindowSetting(argTarget,argWindowSettings)
	//=======================================================================   
		{      			               
			winec1f6b511be84278bda0219cf01c902a = window.open(argTarget,'winec1f6b511be84278bda0219cf01c902a',argWindowSettings);
			winec1f6b511be84278bda0219cf01c902a.focus();				
		}
		
	
	//=======================================================================
		function PageControl_MultipleDeleteConfirm()
	//=======================================================================   
		{      			               
			if(confirm("Are you sure?\n You would like to delete these records."))			
			{					
				return true;
			}
			
			return false;
			
		}
		
		//=======================================================================
		function PageControl_SubmitDeleteConfirm(argMessage)
		//=======================================================================   
		{      			               
			if(confirm(argMessage))			
			{					
				window.document.forms[0].submit();
			}						
			
		}

		function PageControl_test()
			{
				if(confirm("Are you sure?\n records."))			
				{
				 return true;
				 }
				 return false;
				
			}
 //===============================================			
    function PageControl_GetDate(CtrlName)    
  //===============================================    
    {   
    /****************************************************      
    Use Javascript method (window.open) to PopUp a new window    
    which contain a Calendar Control. In the meantime, we'll    
    pass the Parent Form Name and Request Control Name in the QueryString!      
    *****************************************************/        
		ChildWindow = window.open('DatePicker.aspx?FormName=' + document.forms[0].name + '&CtrlName=' + CtrlName, "PopUpCalendar", "width=270,height=270,top=200,left=200,toolbars=no,scrollbars=no,status=no,resizable=no");    
    }   
    
  //===============================================    
    function PageControl_CheckWindow()   
  //===============================================    
    {      
		ChildWindow.close();   
    }
	
  //===============================================    
    function PageControl_Trim(s)   
  //=============================================== 
   {   			
      while (s.substring(0,1) == ' ') {
        s = s.substring(1,s.length);
      }
      
      while (s.substring(s.length-1,s.length) == ' ') {
        s = s.substring(0,s.length-1);
      }
      
      return s;
    }
    
	// done hiding 
	-->

