﻿// JScript 文件

function go()
{
    var cateno = document.getElementById('hid_cateno') ? document.getElementById('hid_cateno').value : '0';
    var a = document.getElementById('hid_area')&&document.getElementById('hid_area').value!='' ? document.getElementById('hid_area').value : '100';
    //window.location.href = window.location.pathname + '?cateno='+cateno + '&a='+document.getElementById('<%= sel_area.ClientID %>').value;
    
    var url=window.location.pathname.indexOf('_')>0?window.location.pathname.substr(0,window.location.pathname.indexOf('_')):window.location.pathname.split('.')[0];
    window.location.href = url+'_'+cateno+'_'+a+'.html';
}


function go_aspx()
{
    var cateno= document.getElementById('hid_cateno') ? document.getElementById('hid_cateno').value : '';
    window.location.href = window.location.pathname + '?cate='+cateno + '&a='+document.getElementById('hid_area').value;
}

function turnUrl()
{ 
    var cateno = document.getElementById('hfCate') ? document.getElementById('hfCate').value : '0';
    var a = document.getElementById('hfArea')&&document.getElementById('hfArea').value!='' ? document.getElementById('hfArea').value : '0';
    var url=window.location.pathname.indexOf('_')>0?window.location.pathname.substr(0,window.location.pathname.indexOf('_')):window.location.pathname.split('.')[0];
    window.location.href = url+'_'+cateno+'_'+a+'.html';
}
