// Asynchronous JavaScript Extensible var IMG_SEARCH_UP = '../images/bgfillSrUp.jpg'; var IMG_SEARCH_OVER = '../images/bgfillSrOv.jpg'; var IMG_SEARCH_DOWN = '../images/bgfillSrDo.jpg'; var existBSB = false; var existSM = false; var frmMedia = ''; var frmSelMobile = ''; var btSearchMedia = ''; var searchMedia = ''; var checkMobile = ''; var checkMobile2 = ''; var selMobile = ''; function xDocument(){ this.init = function(){ if(document.barTopMenu!=null){ frmMedia = document.barTopMenu; if(frmMedia.brs!=null){ btSearchMedia = frmMedia.brs; existBSB = true; } if(frmMedia.searchMedia!=null){ searchMedia = frmMedia.searchMedia; existSM = true; } }else{ alert('you need add a from in this space called barTopMenu.'); } if(document.frmSelMobile!=null){ frmSelMobile = document.frmSelMobile; if(document.getElementById('remMobile')!=null){ checkMobile = document.getElementById('remMobile'); } if(frmSelMobile.rememberMobile!=null){ selMobile = frmSelMobile.rememberMobile; } } if(document.frmInit!=null){ frmInit = document.frmInit; if(document.getElementById('remMobile2')!=null){ checkMobile2 = document.getElementById('remMobile2'); } if(frmInit.rememberMobile!=null){ selMobile2 = frmInit.rememberMobile; } } } this.changeSelectionMobile = function(){ if(selMobile.value == 0){ selMobile.value = 1; selMobile2.value = 1; checkMobile.src = 'images/selchk.gif'; checkMobile2.src = 'images/selchk.gif'; }else{ selMobile.value = 0; selMobile2.value = 0; checkMobile.src = 'images/sel.gif'; checkMobile2.src = 'images/sel.gif'; } } }