﻿  function sure(item) {
            return window.confirm("Are you sure you want to delete the " + item + "?");
        }
        function Search() {
            var keys = $("#txtKeywords"), ek, o;
            //document.location = "SearchJobs.aspx?keywords=" + keys;
            if (keys.val() == "Enter Keywords") {
                ek = 1;
                keys.val("");
            }
            o = $.param($.map($.grep($("#aspnetForm")
                .find(".s")
                .serializeArray(),
                function (f, i) {
                    return f.value;
                }), function (f, i) {
                    return {
                        name: f.name.replace("m$TopSection$TopContent$ddl", ""),
                        value: f.value
                    }
                }));

            ek && keysBlur.call(keys[0]);
            document.location = "AdvancedSearchJobs.aspx?do=search&" + o;
            return false;
        }

        function keysFocus() {
            var txt = $(this);
            if (txt.val() == "Enter Keywords")
                txt.val("");
        }
        function keysBlur() {
            var txt = $(this);
            if (txt.val() == "")
                txt.val("Enter Keywords");
        }
        $(function () {
            $(".s").change(function () {
                $.cookie(this.id, this.value, { expires: 14, path:"/" });
            }).each(function (i, e) {
                var v = $.cookie(e.id);
                if (v != null && !window.DoNotReadFromCookies) {
                    e.value = v;
                }
            });
            $('#Testimonials').cycle('fade');
            $("#txtKeywords").focus(keysFocus).blur(keysBlur);
        });
