function prepare_url(str){var re=/[^a-zA-z0-9_\-]+/g;newstr=str.replace(re,"-");return newstr};