function GetWindowWidth(){var n=0,t=0;return typeof innerWidth=="number"?(n=window.innerWidth,t=window.innerHeight):document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)?(n=document.documentElement.clientWidth,t=document.documentElement.clientHeight):document.body&&(document.body.clientWidth||document.body.clientHeight)&&(n=document.body.clientWidth,t=document.body.clientHeight),n}function loading(n){if(!document.getElementById("AjaxLoading")){var t=(GetWindowWidth()-36)/2,i='<div id="AjaxLoading" onclick="loading(false)" style="background:#fff url(../js/AjaxLoading.gif) no-repeat center;display:none;width:36px;height:36px;line-height:36px;position:fixed;_position:absolute;top:40%;left:'+t+'px;z-index:99999999;border:solid 1px #fff;border-radius:36px"><!----><\/div>';jQuery("body").append(i)}typeof n=="undefined"||n?jQuery("#AjaxLoading").show():jQuery("#AjaxLoading").fadeOut()}function CheckEmailValue(n,t){t||(t="Invalid email !");return/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(n)?!0:!1}function ResetInputContact(n){jQuery(n+" input").val("");jQuery(n+" textarea").val("")}Array.prototype.indexOf||(Array.prototype.indexOf=function(n,t){for(var i=t||0,r=this.length;i<r;i++)if(this[i]===n)return i;return-1});