var objontopY = 270; function dokeydown(event,obj1,str1){ if (event.keyCode == 13){ switch (str1) { case "news": newssearch(obj1); break; case "faq": productssearch(obj1); break; default : break; } } } function changetypesid(str1){ document.forms[0].action='index.asp?TYPESID=' + str1; donochange(); } function newssearch(obj1){ if (obj1.value!='請輸入關鍵字'){ document.forms[0].action='index.asp'; donochange(); }else{ alert('請輸入關鍵字'); obj1.focus(); obj1.select(); } } function faqsearch(obj1){ if (obj1.value!='請輸入關鍵字'){ document.forms[0].action='faq.asp'; donochange(); }else{ alert('請輸入關鍵字'); obj1.focus(); obj1.select(); } } function donochange(){ document.forms[0].ckda.value='1'; document.forms[0].submit(); } function changenewpage(str1){ document.forms[0].PAGE.value=str1; donochange(); } function changenewspage(str1){ document.forms[0].PAGE.value=str1; donochange(); } function getDocWidth(){ return (document.all? getTrueBody().scrollLeft+getTrueBody().clientWidth : pageXOffset+window.innerWidth-15); } function getDocHeight(){ return (document.all? Math.min(getTrueBody().scrollHeight, getTrueBody().clientHeight) : Math.min(window.innerHeight)); } function getTrueBody(){ return ( (!window.opera && document.compatMode && document.compatMode!="BackCompat") || window.opera)? document.documentElement : document.body } function changeproductpics(obj1,sf2){ var x1 = ''; document.getElementById("MAINPIC").innerHTML = ''; if (document.getElementById("xPIC0")) {document.getElementById("xPIC0").className='';} if (document.getElementById("xPIC1")) {document.getElementById("xPIC1").className='';} if (document.getElementById("xPIC2")) {document.getElementById("xPIC2").className='';} if (document.getElementById("xPIC3")) {document.getElementById("xPIC3").className='';} if (document.getElementById("xPIC4")) {document.getElementById("xPIC4").className='';} if (document.getElementById("xPIC5")) {document.getElementById("xPIC5").className='';} obj1.className='this'; } function showpopproduct(ox,oy,EXIF1,EXIF2,EXIF3,EXIF4,EXIF5,EXIF6){ var popupElement = document.getElementById("xx"); var x = (getDocWidth() - popupElement.offsetWidth)/2-100+ox; var y = objontopY + oy; var s=""; s += "" popupElement.innerHTML = s; popupElement.style.left = x+"px" popupElement.style.top = y+"px" popupElement.style.visibility='visible'; } function closepopproduct(){ document.getElementById("xx").style.visibility='hidden'; } function objsetheight(sobj,sh){ switch (sobj) { case 1: if (isNaN(sh)==false){ try{ findObj("header").style.height=sh + 'px'; } catch(e) { } if(findObj("common_flash_obj1")){ findObj("common_flash_obj1").height=sh; }else{ if (document.embeds.length!=0){ for (i=0;i 0 && parent.frames.length) { theDoc = parent.frames[theObj.substring(p+1)].document; theObj = theObj.substring(0,p); } if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj]; for (i=0; !foundObj && i < theDoc.forms.length; i++) foundObj = theDoc.forms[i][theObj]; for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) foundObj = findObj(theObj,theDoc.layers[i].document); if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj); return foundObj; } function setObjHeight(sobj, sh){ if (isNaN(sobj)==false){ if (isNaN(sh)==false){ if(findObj("dd_flash_obj" + sobj)){ findObj("dd_flash_obj" + sobj).height=sh; }else{ if (document.embeds.length!=0){ for (i=0;iclose

' s+='' s+='

名稱:'+S1+'

' s+='

型號:'+S2+'

' s+='

適用相機:

' s+='
'+S3+'
' s+='

'+S4+'

' s+='' document.getElementById('XXY').innerHTML = s; document.getElementById('XXY').style.display=''; } function favorite() { if (navigator.appName!="Netscape"){ window.external.AddFavorite("http://www.ricohdigital.com.tw/", "RICOH DIGITAL - RICOHƦ۾x"); }else{ window.sidebar.addPanel("RICOH DIGITAL", "http://www.ricohdigital.com.tw/", ""); } } function swfAlert(mmsg) { alert(mmsg); }