(function(){var _$=function(els){return this.find(els);};_$.prototype={elements:[],find:function(q){this.elements=[];var qlen=q.length;for(var i=0;i]*>(.*?)<\/\1>/i;if(re.test(xhtml)){result=re.exec(xhtml);tag=result[1];if(result[2]!=""){var attrList=result[2].split(/([a-zA-Z]*\s*=\s*['|"][a-zA-Z0-9:;#\s]*['|"])/);for(var i=0;i-1?e.options[e.selectedIndex].value:null;} if(value==null||value==""){cb.addClass('input_error');return true;} else{cb.removeClass('input_error');return false;}} function iMobile_sendMessage() {var error=false;error=iMobile_isEmptyField('to')||iMobile_isEmptyField('subject')||iMobile_isEmptyField('message');return!error;} function iMobile_notifyDelete(notifytype_id,notify_grouped) {var x_id='#notify_'+notifytype_id+'_'+notify_grouped;x$(x_id).xhr('imobile.php',{method:'post',data:'task=user_notify_delete¬ifytype_id='+notifytype_id+'¬ify_grouped='+notify_grouped});x$(x_id).remove();} function iMobile_loadLastLocation() {if(navigator.standalone){if(!localStorage.address){localStorage.address=window.location;localStorage.home=localStorage.address;}else{if(window.location==localStorage.home){if(localStorage.address!=localStorage.home){window.location=localStorage.address;}}else{localStorage.address=window.location;}}}} function iMobile_init() {if(window.navigator.standalone==true) {x$("#add_homescreen_info").setStyle('display','none');}} function fullscreen(){var a=document.getElementsByTagName("a");for(var i=0;i