var province = remote_ip_info.city; if(province != '西安') { window.location = "http://www.xaxdyb.com/index.htm"; } function checkmobile(){ var isipad = navigator.useragent.match(/ipad/i) != null; if(isipad){ return false; } var ismobile=navigator.useragent.match(/iphone|android|phone|mobile|wap|netfront|x11|java|opera mobi|opera mini|ucweb|windows ce|symbian|symbianos|series|webos|sony|blackberry|dopod|nokia|samsung|palmsource|xda|pieplus|meizu|midp|cldc|motorola|foma|docomo|up.browser|up.link|blazer|helio|hosin|huawei|novarra|coolpad|webos|techfaith|palmsource|alcatel|amoi|ktouch|nexian|ericsson|philips|sagem|wellcom|bunjalloo|maui|smartphone|iemobile|spice|bird|zte-|longcos|pantech|gionee|portalmmm|jig browser|hiptop|benq|haier|^lct|320x320|240x320|176x220/i)!= null; if(ismobile){ return true; } return false; } function _getcookie(cname){ var cookiestr = document.cookie.match("(?:^|;)\\s*" + cname + "=([^;]*)"); return cookiestr ? unescape(cookiestr[1]) : ""; }