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(''+modelName+''); popWin.document.write('
'); popWin.document.write(''+modelName+''); popWin.document.write('
'+modelName+'
'); popWin.document.write('

'); popWin.document.write(''); } function setCopyright(element){ var date = parseInt(element.innerText); var year = new Date().getFullYear(); if(year > date) element.innerText = date + "-" + year; else element.innerText = date; } function redirectTo(url){ window.location = url; } function roll_over(img_name, img_src) { document[img_name].src = img_src; } function newwindow(page) { window.open(page,'newwindow','toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=800,height=560,left=10,top=10'); } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i