var con_sub		= 'contact_submit';
var con_txt		= 'contact_text';

function init32()
{
	document.getElementById(con_sub).onclick	= checkForm;
}

function checkForm()
{
	if (document.getElementById(con_txt).value.length < 1)
	{
		document.getElementById(con_txt).style.borderColor		= '#F00';
		document.getElementById(con_txt).style.backgroundColor	= '#fee';
		
		alert('Du m\xe5ste skriva ett meddelande i "Meddelande"-rutan.');
	}
}

function submitForm()
{
	return document.getElementById(con_txt).value.length < 1 ? false : true;
}

function getService(hrefStr)
{
	//id = id < 4 || id > 0 ? id : 0;
	//alert('service_' + hrefStr);
	document.getElementById('content').innerHTML = document.getElementById('service_' + hrefStr).innerHTML;
	document.getElementById('content').style.display = 'block';
	window.location = '#' + hrefStr;
	
	return false;
}

window.onload = init32;