function ieSub()
{
	var inputs = document.getElementsByTagName("input");
	for(var i=0;i<inputs.length;i++)
	{
		if(inputs[i].className.indexOf("sub-btn") !=-1)
		{
			inputs[i].onmouseover = function()
			{
				this.className += " hover";
			}
			inputs[i].onmousedown = function()
			{
				this.className = this.className.replace("hover", "active");
			}
			inputs[i].onmouseup = function()
			{
				this.className = this.className.replace("active", "hover");
			}
			inputs[i].onmouseout = function()
			{
				this.className = this.className.replace(" hover", "");
				this.className = this.className.replace(" active", "");
			}
		}
	}
}
if (window.addEventListener)
	window.addEventListener("load", ieSub, false);
else if (window.attachEvent)
	window.attachEvent("onload", ieSub);
function inputFocusText()
{
	var inputs = document.getElementsByTagName("input");
	for(var i=0;i<inputs.length;i++)
	{
		if(inputs[i].type == "text")
		{
			inputs[i].onfocus = function()
			{
				this.className = this.className +=" text-focus";
			}
			inputs[i].onblur  = function()
			{
				this.className = this.className.replace(" text-focus", "");
			}
		}
	}
}
if (window.addEventListener)
	window.addEventListener("load", inputFocusText, false);
else if (window.attachEvent)
	window.attachEvent("onload", inputFocusText);
