/*
Powered by ly200.com http://www.ly200.com
广州联雅网络科技有限公司 020-83226791
*/
var doc=document.documentElement || document.body;
var isIe=(document.all)?true:false;
var ie_version;
if(isIe){
var version=navigator.appVersion.split(';');
var trim_version=version[1].replace(/[ ]/g, '');
if(trim_version=='MSIE7.0'){
ie_version=7;
}else if(trim_version=='MSIE6.0'){
ie_version=6;
}
}
try{document.execCommand('BackgroundImageCache', false, true);}catch(e){};
function $_(obj){
return document.getElementById(obj)?document.getElementById(obj):'';
}
function set_number(obj, float){
p=float==1?/[^\d-.]/g:/[^\d]/g;
obj.value=obj.value.replace(p, '');
}
function product_review_show_star(v){
for(i=1; i<=5; i++){
$_('rating_'+i).src='/images/lib/product/x1.jpg';
}
for(i=1; i<=v; i++){
$_('rating_'+i).src='/images/lib/product/x0.jpg';
}
}
function div_mask(){
var div_mask=document.createElement('div');
div_mask.setAttribute('id', 'div_mask');
div_mask.style.cssText='z-index:10000; background-color:#000; filter:alpha(opacity=40); opacity:0.4; -moz-opacity:0.4; left:0px; top:0px; position:absolute;';
div_mask.style.height=(doc.scrollHeight>doc.clientHeight?doc.scrollHeight:doc.clientHeight)+'px';
div_mask.style.width=doc.scrollWidth+'px';
document.body.appendChild(div_mask);
}
function pop_info_tips(tips){ //弹出信息
if(!is_array(tips)){
if(tips!='' && tips!=undefined){
tips=tips.split('|'); //如果提交过来的数据不是数组,则用|分割
}else{
return;
}
}else if(tips.length==0){
return;
}
div_mask();
var info='';
var e=clear_repeat(tips);
for(var i=0; i
'+info+' |