	function showhide(id){ 
		ID = document.getElementById(id); 

		if(ID.style.display == '') 
			ID.style.display = 'none'; 
		else 
			ID.style.display = ''; 
	}
	
	function show(id){
		ID = document.getElementById(id); 
		ID.style.display = ''; 
	}
	
	function hide(id){ 
		ID = document.getElementById(id); 
		ID.style.display = 'none'; 
	}
	
	function merkkiLaskuri(kentta, laskuri, rajoitus) {
		if (kentta.value.length > rajoitus) // Poistetaan ylimääräiset merkit
		kentta.value = kentta.value.substring(0, rajoitus);
		
		else 
		laskuri.value = rajoitus - kentta.value.length;
	}
	
	function hide_timeout(lohko, aika){
		setTimeout('hide("' + lohko + '")', aika);
	}
	
	function addQuote(el,tag) { 
	
		document.getElementById(el).value = document.getElementById(el).value + "\[QUOTE\] " + tag + " \[/QUOTE\]\r";
	
	}
	
	function logohide() {
	
		var myWidth = 0;
		
		if( typeof( window.innerWidth ) == 'number' ) {
			//Non-IE
			myWidth = window.innerWidth;
		}
		else if( document.documentElement && document.documentElement.clientWidth ) {
			//IE 6+ in 'standards compliant mode'
			myWidth = document.documentElement.clientWidth;
		}
		else if( document.body && document.body.clientWidth ) {
			//IE 4 compatible
			myWidth = document.body.clientWidth;
		}
		
		if(myWidth < 900){
			hide("header_logo");
		}
		
	}

