	
	// Javascript Extensions Library

	function $(i){
		return document.getElementById(i);
	}
	
	function global(vr,vl){
		if(vl == null || vl == "" || vl == "undefined"){ vl = null; }
		window[vr].val = vl;
	}
	
	function validateEmail(email){
		return email.replace(/^[\w\d._-]{2,}@[\w\d.-]{2,}\.[\w]{2,4}$/gi, 1);
	}
	
	function show(id){
		$(id).style.display = "block";
	}
	
	function hide(id){
		$(id).style.display = "none";
	}
	
	// Input Focus And Blur
	
	var focus = [];
	function inputFocus(e, t){
		if(focus[e.id] == null){
			if(t == true){
				e.type = "password";
			}
			focus[e.id] = e.value;
			e.value = "";	
		}
	}
	
	function inputBlur(e, t){
		if(e.value == ""){
			e.value = focus[e.id];
			focus[e.id] = null;
			
			if(t == true){
				e.type = "text";
			}
		}
	}

	

