var mobile=0; var tablet=0; function isMobile() {return mobile;} function isTablet() {return tablet;} function isPhone() {if (mobile && tablet==0) return 1; else return 0;}