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 += "
名稱:'+S1+'
' s+='型號:'+S2+'
' s+='適用相機:
' 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); }