function textcheck()
{
	elementNumber = 0;
	textCookie = "";
	bob = 0;
	for(i=0;i<17;i++)
	{
		checkBool = 0;
		test1 = document.textchoice.elements[elementNumber].options[document.textchoice.elements[elementNumber].selectedIndex].value;
		textCookie = textCookie + document.textchoice.elements[elementNumber].selectedIndex + ',';
		elementNumber++;
		test2 = document.textchoice.elements[elementNumber].value;
		textCookie = textCookie + test2 + ',';
		elementNumber++;
		test3 = document.textchoice.elements[elementNumber].options[document.textchoice.elements[elementNumber].selectedIndex].value;
		textCookie = textCookie + document.textchoice.elements[elementNumber].selectedIndex + ',';
		elementNumber++

		if(test1 == "font")
		{
			if(test2 == "Farbe" || test2 == "Colour")
			{
				if(test3 == "size")
				{
					if(!document.textchoice.elements[elementNumber].checked)
					{
						if(!document.textchoice.elements[elementNumber+1].checked)
						{
							if(!document.textchoice.elements[elementNumber+2].checked)
							{
								if(!document.textchoice.elements[elementNumber+3].checked)
									checkBool = 1;
								else
									checkBool = 0;
							}
							else
								checkBool = 0;
						}
						else
							checkBool = 0;
					}
					else
						checkBool = 0;
				}
				else
					checkBool=0;
			}
			else
				checkBool=0;
		}
		else
			checkBool = 0;

		if(checkBool == 0)
		{
			switch(i)
			{
				case 0:
					textstring += 'table, tr, td, li, p, div \n\t{\n\t\t';
				break;
				case 1:
					textstring += '.btext\n\t{\n\t\t';
				break;
				case 2:
					textstring += '.blacktext10\n\t{\n\t\t';
				break;
				case 3:
					textstring += '.blacktext12\n\t{\n\t\t';
				break;
				case 4:
					textstring += '.lightbluetext8\n\t{\n\t\t';
				break;
				case 5:
					textstring += '.orangetext15 \n\t{\n\t\t';
				break;
				case 6:
					textstring += '.redtext\n\t{\n\t\t';
				break;
				case 7:
					textstring += '.redbtext\n\t{\n\t\t';
				break;
				case 8:
					textstring += '.text\n\t{\n\t\t';
				break;
				case 9:
					textstring += '.whitetext12\n\t{\n\t\t';
				break;
				case 10:
					textstring += '.nametext\n\t{\n\t\t';
				break;
				case 11:
					textstring += 'a:active, a:visited, a:link\n\t{\n\t\t';
				break;
				case 12:
					textstring += 'a:hover  \n\t{\n\t\t';
				break;
				case 13:
					textstring += 'a.navbar:active, a.navbar:visited, a.navbar:link \n\t{\n\t\t';
				break;
				case 14:
					textstring += 'a.navbar:hover\n\t{\n\t\t';
				break;
				case 15:
					textstring += 'a.redlink:active, a.redlink:visited, a.redlink:link  \n\t{\n\t\t';
				break;
				case 16:
					textstring += 'a.redlink:hover  \n\t{\n\t\t';
				break;
			}
		}
		if(test1 != "font")
			textstring += ' font-family:' + test1+ ';';

		if(test2 != "Farbe")
			textstring += ' color:' + test2 + ';';

		if(test3 != "size")
			textstring += ' font-size:' + test3 + '; ';

		if (document.textchoice.elements[elementNumber].checked) {
			textCookie = textCookie + '1,';
			textstring += 'font-weight: ' + document.textchoice.elements[elementNumber].value + '; ';
		}
		else
			textCookie = textCookie + '0,';

		elementNumber++;

		if (document.textchoice.elements[elementNumber].checked) {
			textCookie = textCookie + '1,';
			textstring += 'text-decoration: ' + document.textchoice.elements[elementNumber].value + '; ';
		}
		else
			textCookie = textCookie + '0,';

		elementNumber++;

		if (document.textchoice.elements[elementNumber].checked) {
			textCookie = textCookie + '1,';
			textstring += 'font-style: ' + document.textchoice.elements[elementNumber].value + '; ';
		}
		else
			textCookie = textCookie + '0,';

		elementNumber++;

		if (document.textchoice.elements[elementNumber].checked) {
			textCookie = textCookie + '1,';
			textstring += 'text-decoration: ' + document.textchoice.elements[elementNumber].value + '; ';
		}
		else
			textCookie = textCookie + '0,';

		elementNumber++;

		if(checkBool==0)
			textstring += '\n\t}\n'
	}

	setCookie("text", textCookie, now);
}