function clean_string_no_space(input_object) {
        var input_string = input_object.value;

        //  remove all non alpha numeric
        var first_pass = input_string.replace(/[^a-zA-Z0-9\-\ ]/g, "");
        var second_pass = first_pass.replace(/\s+/g, "-");
        var third_pass = second_pass.replace(/\s+$/, "");
        input_object.value = third_pass;
    }
// cleans the string and leaves no white space at all
cleans the string and leaves no white space at all
cleans the string and leaves no white space at all
function clean_string_no_space(input_object) {
        var input_string = input_object.value;
        var first_pass = input_string.replace(/[^a-zA-Z0-9\-\ ]/g, "");
        var second_pass = first_pass.replace(/\s+/g, "-");
        var third_pass = second_pass.replace(/\s+$/, "");
        input_object.value = third_pass;
    }
function clean_string_no_space ( input_object ) { var input_string = input_object . value ; var first_pass = input_string . replace ( / [^a-zA-Z0-9\-\ ] / g , "" ) ; var second_pass = first_pass . replace ( / \s+ / g , "-" ) ; var third_pass = second_pass . replace ( / \s+$ / , "" ) ; input_object . value = third_pass ; }
cleans the string and leaves no white space at all
cleans the string and leaves no white space at all
//  remove all non alpha numeric