function tablecheck()
{
	elementNumber = 0;
	var tableBool = 0;

	textstring += '\n.comment { Table info }\ntable table { border: 0px }\ntable table table table{border:0px}\n'

	user_input = document.tablechoice.borderthick.options[document.tablechoice.borderthick.selectedIndex].value
	tableCookie = document.tablechoice.borderthick.selectedIndex + ',';

	if(user_input != "0px")
	{
		if(tableBool == 0)
		{
			textstring += 'table table table \n\t{ \n';
			tableBool++;
		}
			textstring += '\t\tborder-width: ' + user_input + ';\n';
	}

	elementNumber++;
	user_input = document.tablechoice.tableStyle.options[document.tablechoice.tableStyle.selectedIndex].value
	tableCookie = tableCookie + document.tablechoice.tableStyle.selectedIndex + ',';

	if(user_input != "none")
	{
		if(tableBool == 0)
		{
			textstring += 'table table table \n\t{ \n';
			tableBool++;
		}
			textstring += '\t\tborder-style: ' + user_input + ';\n';
	}

	elementNumber++;
	user_input = document.tablechoice.colorbutton3.value
	tableCookie = tableCookie +  user_input + ',';

	if(user_input != "Farbe")
	{
		if(tableBool == 0)
		{
			textstring += 'table table table \n\t{ \n';
			tableBool++;
		}
		textstring += '\t\tborder-color: ' + user_input + ';\n';
		}

	elementNumber++;
	var test = document.forms['tablechoice'].elements[elementNumber];
	tableCookie = tableCookie + test.value + ',';

	if(test.value)
	{
		if(tableBool == 0)
		{
			textstring += 'table table table \n\t{ \n';
			tableBool++;
		}
		textstring += '\t\tbackground-image:url(' + test.value + ');\n\t\tbackground-repeat: repeat; \n\t\tbackground-attachment: scroll;\n';
	}
	elementNumber++;
	user_input = document.tablechoice.colorbutton4.value

	tableCookie = tableCookie + user_input + ',';

	if(user_input != "Farbe")
	{
		if(tableBool == 0)
		{
			textstring += 'table table table \n\t{ \n';
			tableBool++;
		}
		textstring += '\t\tbackground-color: ' + user_input + ';\n';
	}
	if(tableBool != 0)
		textstring += '\t}\n';

	elementNumber++;
	setCookie("table", tableCookie, now);

}