function ChangeView(obj) {
    document.getElementById("imgProductInfo").src = obj.src.replace('uploads100', 'uploads');
    ResizeImage(document.getElementById("imgProductInfo"));
    if (typeof (DisabledMagnifier) == 'undefined') {
        if (typeof (magnifierImg) != "undefined" &&
            (document.firstChild.nodeValue == null || document.firstChild.nodeValue.toLowerCase().indexOf('transitional.') != -1)) {
            var imgUrl = obj.src.toLowerCase();
            imgUrl = imgUrl.indexOf('_') != -1 ? imgUrl.substring(0, imgUrl.indexOf('_')) + '_Old' + imgUrl.substring(imgUrl.indexOf('_')) : imgUrl.replace('.jpg', '_Old.jpg');
            magnifierImg = imgUrl.replace('uploads100', 'uploads_old');
            magnifier.init({
                cont: document.getElementById('divPic'),
                scale: 3,
                bind: false
            });
        }
    }
}

function ProInit(ostr) {
    var imgProInfo = document.getElementById('imgProductInfo'); if (imgProInfo.width > 200 && typeof (imgresize) == 'undefined') { imgProInfo.width = 200; }
    var divProduct = document.getElementById("ProductSimpleIntro"); if (divProduct) {
        var td = divProduct.parentNode; var spanODD = document.createElement("span");
        spanODD.innerHTML = ostr; var as = td.getElementsByTagName("a");
        for (var i = 0; i < as.length; i++) { if (as[i].href.toLowerCase().indexOf("sendmessage") > -1) { td.replaceChild(spanODD, as[i]); } }
    }
}
