
	
	function changeType(id) //Doesn't work with IE7 :(
	{
		var obj = document.getElementById(id);
		obj.type = 'password';
	}
	
	function clearText(id)
	{
		var obj = document.getElementById(id);
		obj.value = '';
	}

	function showhideAuto(id)
	{ 
		if (document.getElementById)
		{ 
			var obj = document.getElementById(id); 
			if (obj.className = 'hide')
			{ 
				//alert(obj.className);
				obj.className = 'show'; 
			} 
			else 
			{ 
				//alert(obj.className);
				obj.className = 'hide'; 
			} 
		} 
	}
	
	function showhideTag(typeOfTag)
	{ 
		if (document.getElementById)
		{ 
			{ 
				currentForm = document.forms[0];
				var elementsInputs;
				elementsInputs = currentForm.getElementsByTagName(typeOfTag);
				for (var intCounter = 0; intCounter < elementsInputs.length; intCounter++)
				{
					//validerar textboxar så att de inte är tomma
					if (elementsInputs[intCounter].className.indexOf("showHide") >= 0)
					{	
						
						if (elementsInputs[intCounter].className == "showHide hide")
						{
							elementsInputs[intCounter].className = 'showHide show'; 
						}
						else 
					 	{
							elementsInputs[intCounter].className = 'showHide hide'; 
						}
					}
				}
			}
		} 
	}
	
	