// JavaScript Document

function goSetHeight() {
	  if (parent == window) return;
	  else parent.setIframeHeight('content');
	}
        function validate(zAttributes)
        {

            if (zAttributes != '') 
                {
                document.getElementById('txtAttributes').value = zAttributes;
                //document.getElementById('txtItems').value = zItems;
                document.getElementById('txtProductCountStart').value = '0';
                document.getElementById('txtAction').value = 'ATTRIBUTE_SEARCH';
                
                document.getElementById('cmdParamSearch').click();
                }
            else
                {
                alert("Please select a command from the associated menus")
                }
        }
        
        
        function RemoveAttribute(zAttribute)
        {

            if (zAttribute != '') 
                {
                //document.getElementById('txtAttributes').value = zAttributes;
                //document.getElementById('txtItems').value = zItems;
                document.getElementById('txtProductCountStart').value = '0';
                document.getElementById('txtAction').value = 'REMOVE_ATTRIBUTE';
                document.getElementById('txtActionValue').value = zAttribute;
                
                document.getElementById('cmdParamSearch').click();
                }
            else
                {
                alert("Please select a command from the associated menus")
                }
        }
        
        function DoAction(zActionID,zValue)
        {

            //if (confirm('Are you sure you want to search?'))
            //{
                if (zActionID != '') 
                    {
                    document.getElementById('txtAction').value = zActionID;
                    document.getElementById('txtActionValue').value = zValue;
                    //document.getElementById('cmdAction').click();
		    document.getElementById('cmdParamSearch').click();
                    }
                else
                    {
                    alert("Please select a command from the associated menus")
                    }
            //}
        }
         
        function QueryAction(zAction,zActionID,zValue)
        {

            if (confirm(zAction))
            {
                if (zActionID != '') 
                    {
                    document.getElementById('txtAction').value = zActionID;
                    document.getElementById('txtActionValue').value = zValue;
                    document.getElementById('<%=cmdParamSearch.ClientID%>').click();
                    }
            }
                        
        }
        
        function DoTree(zActionID,zValue)
        {

            //if (confirm('Are you sure you want to search?'))
            //{
                if (zActionID != '') 
                    {
                    document.getElementById('txtAction').value = zActionID;
                    document.getElementById('txtActionValue').value = zValue;
                    document.getElementById('cmdParamSearch').click();
                    }
                else
                    {
                    alert("Please select a command from the associated menus")
                    }
            //}
        }
        
        function SetPage(zValue)
        {

            //if (confirm('Are you sure you want to search?'))
            //{
                if (zActionID != '') 
                    {
                    document.getElementById('txtAction').value = zActionID;
                    document.getElementById('txtActionValue').value = zValue;
                    
                    //document.getElementById('cmdAction').click();
                    }
                else
                    {
                    alert("Please select a command from the associated menus")
                    }
            //}
        }
        
        function ShowPopUp(zUrl,Width,Height)
        {
            var zFeatures = 'center=yes;resizable=no,menubar=no,toolbar=no,titlebar=no,scrollbars=yes,status=no,height=' + Height + ',width=' + Width ; 
            window.open(zUrl,'', zFeatures);
        }
function TABLE1_onclick() {

}

