function redirectTo(url){ window.location = url; } function show(layerName) { document.getElementById(layerName).style.display = ''; document.getElementById(layerName).style.visibility = "visible"; } function hide(layerName) { document.getElementById(layerName).style.display = 'none'; document.getElementById(layerName).style.visibility = "hidden"; } function showTAB(tab_name) { document.getElementById(last_tab).className = 'tab'; var curr = document.getElementById(tab_name); curr.className='tab_hover'; hide(last_tab+'_data'); show(tab_name+'_data'); last_tab=tab_name; } last_prodtab = 'tabFeatures'; function showProd(layerName) { document.getElementById(layerName).style.display = ''; } function hideProd(layerName) { document.getElementById(layerName).style.display = 'none'; } function showProductTAB(tab_name) { document.getElementById(last_prodtab).className = 'tabproduct'; var curr = document.getElementById(tab_name); curr.className='tabproduct_hover'; hideProd(last_prodtab+'_data'); showProd(tab_name+'_data'); last_prodtab=tab_name; } function previewImage(imgPath,modelName){ width = 600; height = 600; if(window.innerWidth){ LeftPosition =(window.innerWidth-width)/2; TopPosition =((window.innerHeight-height)/4)-50; } else{ LeftPosition =(parseInt(window.screen.width)- width)/2; TopPosition=((parseInt(window.screen.height)-height)/2)-50; } attr = 'resizable=no,scrollbars=no,width=' + width + ',height=' + height + ',screenX=500,screenY=500,left=' + LeftPosition + ',top=' + TopPosition + ''; popWin=open('', 'new_window', attr); popWin.document.write('