if ((navigator.userAgent.match(/iPhone/i) != null) || (navigator.userAgent.match(/iPod/i) != null)) { document.getElementById(“chmobile”).style.display = “block”; document.getElementById(“ch”).style.display = “none”; }