function generalScripts()
{
	this.creationTime = new Date().getTime();
	
	String.prototype.trim = function()
	{
		return this.replace(/(^\s+|\s+$)/, '');
	}
	
	
	
	
	function showHide(thisDiv, slide, className)
	{
		if (slide=='') slide=false;
		
		if (document.getElementById(thisDiv).style.display == 'none')
		{
			if (className != '') $("."+className).css('display', 'none');
			if (!slide) document.getElementById(thisDiv).style.display = 'block';
			else $("#"+thisDiv).slideDown("normal");
		}
		else
		{
			if (!slide) document.getElementById(thisDiv).style.display = 'none';
			else $("#"+thisDiv).slideUp("normal");
		}
	}
	this.showHide = showHide;
	
	
	function showOnCondition(myValue, myCondition, myTarget)
	{
		//alert(myValue + " = " + myCondition);
		
		if (myValue == myCondition)
		{
			$("#"+myTarget).slideDown("normal");
		}
		else
		{
			$("#"+myTarget).slideUp("normal");
		}
	}
	this.showOnCondition = showOnCondition;
	
}

