/* Plugins.js is meant to hold all of a sites plugin code. Instead of linking to many different files, we can improve performance by including plugin code directly in this one file. There can and should be exceptions to this usage. An extremely large plugin only used on one rarely visited page, for example, might be better off in a separate download, only accessed on the target page. Most of the time, however, it’s safe to just paste in minified versions of all your plugins here for easy access. make sure to leave all copyright information in tact. When minifying your scripts, use this service on the "Simple" setting: http://closure-compiler.appspot.com/home */

/* PLUGIN DIRECTORY
What you can find in this file [listed in order they appear] 
	
	1.) Copy Input Values: To make use of this function, place this onblur event on the input field with the correct value and replace copyToID with the ID of the input field you want the value copied to: onblur="putvalue(this,'copyToID');"
	
	2.) Email Address RegEx Validator
	
	3.) 
	
*/

// ---- Copy Input Values ---- //
	function putvalue(obj,obj1){if(obj.focus){document.getElementById(obj1).value=obj.value}else{document.getElementById(obj1).value='';}};

// ---- Email Address RegEx Validator ---- //
	function isValidEmailAddress(emailAddress){
		var emailPattern=new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);
		return emailPattern.test(emailAddress);
	};


