/*
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='width:100%; height:100%; z-index:10000; background-color:#000; filter:alpha(opacity=40); opacity:0.4; -moz-opacity:0.4; left:0px; top:0px; position:fixed;';
/*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+' |