
function URLDecode(psEncodeString){
  // Create a regular expression to search all +s in the string
  var lsRegExp = /\+/g;
  // Return the decoded string
  return unescape(String(psEncodeString).replace(lsRegExp, " "));
}
//-- Creates and applies Zebra tables alternating rows to tables with Class name .zebra-tbl automatically
//-- from there you can define the CSS styling for each rows cell :) Simple but effective solution!
function ZebraTables(){
	theTable = jQuery.find("table.zebra-table");
	jQuery(theTable).each(function(i){
		if (this){
			jQuery(this).find("tr").each(function(i){
				var zclass = (i%2 == 0) ? 'odd' : 'even';
				jQuery(this).addClass(zclass);
			});
		}
	});
}
//-- Creates and applies Zebra tables alternating rows to Unordered Lists with Class name .zebra-tbl automatically
//-- from there you can define the CSS styling for each rows cell :) Simple but effective solution!
function ZebraUL(){
	theUL = jQuery(document).find("ul.zebra-ul");
	jQuery(theUL).each(function(i){
		if (this){
		 jQuery(this).find("li").each(function(i){
			 var zclass = (i%2 == 0) ? 'odd' : 'even';
			 jQuery(this).addClass(zclass);
		 });
		}
	});
}
//-- BlurFocusText function handles the default text
function BlurFocusText(){
	theText = jQuery('input.blur-focus');
	jQuery(theText).each(function(i){
		if (this){
			jQuery(this).blur(function(){
				if(this.value=='') this.value=this.defaultValue;
			});
			jQuery(this).focus(function(){
				if(this.value==this.defaultValue) this.value='';
			});
		}
	});
}
jQuery(document).ready(function(){
	//Site wide JS code here
	ZebraTables();
	ZebraUL();
	BlurFocusText();
});