﻿function CrossPagePost(url) {
    $('#Form1').append('<input name="IsCustomCrossPagePost" type="hidden" value="1" />');
    $('#Form1').attr('action', url);
    $('#Form1').submit();
}
function UrlRewriteOtelSonuc(il, ilce) {
    if (ilce != undefined) {
        return FormatRewriteName(il) + '_' + FormatRewriteName(ilce) + '_Otelleri,otel_sonuc.aspx';
    }
    else {
        return FormatRewriteName(il) + '_Otelleri,otel_sonuc.aspx';
    }
}
function FormatRewriteName(input) {
    return input.toString().replace('Ç', 'C').replace('ç', 'c').replace('Ğ', 'G').replace('ğ', 'g').replace('İ', 'I').replace('ı', 'i').replace('Ö', 'O').replace('ö', 'o').replace('Ş', 'S').replace('ş', 's').replace('Ü', 'U').replace('ü', 'u').replace(/[.?!:’&"'*|<>‘\/]/gi, '').replace(/[ ,]/gi,'_').replace('__','_');
}