skinning script works in fiddle but not live
Been up all night cant figure it out guys; heres the fiddle link: where it works: http://jsfiddle.net/8cypx/12/

and heres the page live where it doesnt:

http://apecharmony.co.uk/Untitled-2.php

Once you click "click it should check to see if domain has a value if not it dresses up a div as an error box. the "click" will become a button and there will be an input text box but as there is no domain the result should just be open dialog. works in fiddle but not live code:

    <link rel="stylesheet" href="http://code.jquery.com/ui/1.8.21/themes/base/jquery-ui.css" type="text/css" media="all" />
    
    <div onclick="check_domain_input()">Click</div>
    
    <div id="dialog" title="Attention!" style="display:none">
        Please enter a domain name to search for.
    </div>
    
    <script>
        function check_domain_input()
        {        
            $( "#dialog" ).dialog(); // Shows the new alert box.
        
            var domain_val = document.getElementsByName('domain');
            
            if (domain_val[0].value.length > 0)
            {
                return true;
            }
            
            $( "#dialog" ).dialog();
        
            return false;
        }
    </script>
skinning script works in fiddle but not live
===

Been up all night cant figure it out guys; heres the fiddle link: where it works: http://jsfiddle.net/8cypx/12/

and heres the page live where it doesnt:

http://apecharmony.co.uk/Untitled-2.php

Once you click "click it should check to see if domain has a value if not it dresses up a div as an error box. the "click" will become a button and there will be an input text box but as there is no domain the result should just be open dialog. works in fiddle but not live code:

    <link rel="stylesheet" href="http://code.jquery.com/ui/1.8.21/themes/base/jquery-ui.css" type="text/css" media="all" />
    
    <div onclick="check_domain_input()">Click</div>
    
    <div id="dialog" title="Attention!" style="display:none">
        Please enter a domain name to search for.
    </div>
    
    <script>
        function check_domain_input()
        {        
            $( "#dialog" ).dialog(); // Shows the new alert box.
        
            var domain_val = document.getElementsByName('domain');
            
            if (domain_val[0].value.length > 0)
            {
                return true;
            }
            
            $( "#dialog" ).dialog();
        
            return false;
        }
    </script>