//writeCookie("xqin","XQIn.cn",2); //写入Cookie,名称为 xqin,值为XQin.cn,时间为2个小时 //alert("读取Cookie[xqin]的值为:" + readCookie("xqin")); //读取Cookie xqin 的值 function readCookie(name) { var cookieValue = ""; var search = name + "="; if(document.cookie.length > 0) { offset = document.cookie.indexOf(search); if (offset != -1) { offset += search.length; end = document.cookie.indexOf(";", offset); if (end == -1) end = document.cookie.length; cookieValue = unescape(document.cookie.substring(offset, end)) } } return cookieValue; } function writeCookie(name, value, hours) { var expire = ""; if(hours != null) { expire = new Date((new Date()).getTime() + hours * 3600000); expire = "; expires=" + expire.toGMTString(); } document.cookie = name + "=" + escape(value) + expire+";path=/"; } //游船搜索列表的分类搜索 function SortBy() { form1.submit(); } //游船 cruise-price.asp 页面搜索 function PriceSearch(CRI_SN) { var cri_ray=readCookie('pricecri_sn'); var cri=cri_ray.split("/"); //alert(cri_ray) for (var ii=0;ii