function textLimit(field, maxlen) 
{
	if (field.value.length > maxlen) 
	{
		field.value = field.value.substring(0, maxlen);
		alert('Antalet tecken får ej överskrida 600 stycken och därför kapas antalet nu');
	}
}

function postForm()
{
	document.the_form.action = 'setcookie.php';	
	document.the_form.submit();
}

function deleteCookie()
{
	document.the_form.action = 'deleteCookie.php';	
	document.the_form.submit();
}
