function backgroundcheck()
{
	elementNumber=0;
	var testNumber =0;
	var urlCheckBool = 0;
	var bodyBackBool = 0;

	// Discover chosen value of color select box.

	user_input = document.backgroundchoice.colorbutton1.value
	backCookie = user_input + ',';
	if(user_input!='Farbe')
	{
		textstring += '.comment { Background info }\nbody \n\t{ \n \t\tbackground-color: ' + user_input + ';\n';
		bodyBackBool = 1;
	}
	elementNumber++;
	// Retrieve the desired background URL
	var test = document.forms['backgroundchoice'].elements[elementNumber];
	if(test.value)
	{
		if(bodyBackBool == 0)
		{
			textstring += '.comment { Background info }\nbody \n\t{ \n \t\tbackground-image:url(' + test.value + ');\n';
			bodyBackBool++;
		}
		else
			textstring += '\t\tbackground-image:url(' + test.value + ');\n';
		urlCheckBool = 1
	}
	backCookie = backCookie + test.value + ',';
	elementNumber++;


// Retrieve the desired thickness info
	user_input = document.backgroundchoice.bordthick.options[document.backgroundchoice.bordthick.selectedIndex].value
	backCookie = backCookie + document.backgroundchoice.bordthick.selectedIndex  + ',';
	if(user_input!='0px')
	{
		if(bodyBackBool==0)
		{
			textstring += '.comment { Background info }\nbody \n\t{ \n';
			bodyBackBool++;
		}
		user_input = document.forms['backgroundchoice'].elements[elementNumber+4].value
		if(user_input != "Farbe")
			textstring += '\t\tborder-color:' + user_input + ';\n';

		backCookie = backCookie + user_input + ',';
		user_input = document.backgroundchoice.bordthick.options[document.backgroundchoice.bordthick.selectedIndex].value
		textstring += '\t\tborder-width:' + user_input + ';\n';
		textstring += '\t\tborder-style:solid;\n'
	}
	else
		backCookie = backCookie + 'Farbe,';

	elementNumber = elementNumber+2;

	if(urlCheckBool==1)
	{
		if(document.backgroundchoice.elements[elementNumber-2].checked)
		{
			backCookie = backCookie + '1,0,,';
			textstring += '\t\tbackground-repeat:repeat; \n\t}\n';
		}
		else
		{
			user_input = document.backgroundchoice.placement.options[document.backgroundchoice.placement.selectedIndex].value;
			backCookie = backCookie + '0,1,' + document.backgroundchoice.placement.selectedIndex + ',';
			textstring += '\t\tbackground-attachment:fixed;\n\t\tbackground-position:' + user_input + ';\n\t\tbackground-repeat:no-repeat;\n\t}\n';
		}
	}
	else
	{
		backCookie = backCookie + '1,0,,';
		if(bodyBackBool != 0)
			textstring += '\t}\n';
	}
	elementNumber = elementNumber + 2;
	setCookie("back", backCookie, now);
}