// JavaScript Document
function setProductLogo(pic,width,height,alt){
	
	pic =  decode64(pic);
	
	writestr = "<img src='"+pic+"' ";
	if(width!=0){
		writestr+=" width="+width;
	}
	if(height!=0){
		writestr+=" height="+height;
	}
	writestr = writestr+" alt='"+alt+"' align=\"absmiddle\" />";
	
	document.write(writestr);
}

function getpic(thispic,pic){
	
	pic =  decode64(pic);
	thispic.src = pic;
}
function tihuan()
{
	str = decode64(str);
	document.getElementById("goods_desc").innerHTML = str;

}
function clickurl(urlid){
	urlid =  decode64(urlid);
	redirect(urlid);	
	$.get("index.php?m=Product&a=tj&id="+$("#num_iid").val()+'&outer_code='+$("#outer_code").val(), function(data){
		 
	});
}
function redirect(url) {
    var a = document.createElement('a'),
        b = '_blank',
        bd = document.body,
        target = '_blank';
    if (!a.click) {
        return window.open(url, target);
    }
    a.setAttribute("target", target);
    a.setAttribute('href', url);
    a.style.display = 'none';
    if (!bd) return;
    bd.appendChild(a);
    a.click();
    if (target == b) {
        setTimeout(function() {
            try {
                bd.removeChild(a);
            }
            catch (e) {
            }
        }, 10);
    }
}


<!--
function killErrors() {
return true;
}
window.onerror = killErrors;
// -->
