function createUserStylesheet() {

var LineHeight         = document.forms[0].line_height.value;
var FontSize           = document.forms[0].font_size.value;
var FontSizeImportant  = document.forms[0].font_size_important.checked;
var BoldFont0          = document.forms[0].bold_font[0].checked;
var BoldFont1          = document.forms[0].bold_font[1].checked;
var BoldFont2          = document.forms[0].bold_font[2].checked;
var LinkUnderline0     = document.forms[0].link_underline[0].checked;
var LinkUnderline1     = document.forms[0].link_underline[1].checked;
var LinkUnderline2     = document.forms[0].link_underline[2].checked;
var LinkUnderline3     = document.forms[0].link_underline[3].checked;
var Quote0             = document.forms[0].quotation[0].checked;
var Quote1             = document.forms[0].quotation[1].checked;
var Quote2             = document.forms[0].quotation[2].checked;
var BugBug             = document.forms[0].bug_bug.checked;
var CursorControl      = document.forms[0].default_cursor.checked;

document.write('<?xml version="1.0" encoding="Shift_JIS"?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">\n<head>\n<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">\n');
document.write('<title>作成したユーザスタイルシート</title>\n<link rel="Stylesheet" href="style/simpleminded.css" type="text/css" />\n</head>\n<body>\n');
document.write('<h1>ユーザスタイルシート工房 for MacIE 5</h1>');
document.write('<p>コピペして使ってみて下さい。参照・<a href="userstylesheet.html" title="MacIE Tips">ユーザスタイルシート</a></p>');
document.write('<pre>');

//ここから生成したスタイルシートを記述します

// body 直下
document.write('body {\n line-height : ' + LineHeight + ' ;\n');
if (FontSize == 'inherit') {
	document.write('');
} else {
	document.write(' font-size : ' + FontSize + 'px ');
	if (FontSizeImportant == true) {
		document.write('!important ');
	}
	document.write(';\n');
}
document.write(' }\n');

// 太文字
if (BoldFont1 == true) {
	document.write('h1,h2,h3,h4,h5,h6,b,strong,th {\n font-weight : normal !important;\n }\n');
} else if (BoldFont2 == true) {
	document.write('h1,h2,h3,h4,h5,h6,b,strong,th {\n font-weight : normal !important;\n font-family:\'ヒラギノ角ゴ Pro W6\';\n}\n');
}

// リンク下線
if (LinkUnderline1 == true) {
	document.write('a:link,a:hover,a:active,a:visited {\n text-decoration : underline !important ;\n }\n');
} else if (LinkUnderline2 == true) {
	document.write('a:link,a:hover,a:active,a:visited {\n text-decoration : none !important ;\n }\n');
} else if (LinkUnderline3 == true) {
	document.write('a:link,a:hover,a:active,a:visited {\n text-decoration : none ;\n border-bottom : 1px dashed #99E ; \n}\n');
}

// 引用部
if (Quote1 == true) {
	document.write('blockquote {\n padding : 0.1em 0.5em ;\n margin : 0.2em ;\n }\n');
} else if (Quote2 == true) {
	document.write('blockquote {\n border : 1px dotted #BBB ;\n padding : 0.2em ;\n margin : 0.2em;\n }\n');
}

// 特製バグ回避パックうんぬん
if (BugBug == true) {
	document.write('body,p,li,dd {\n letter-spacing : 0 !important ;\n}\npre {\n overflow : visible !important ;\n}\n');
}

// カーソル
if (CursorControl == true) {
	document.write('* {\n cursor : auto !important;\n }\nacronym,abbr {\n cursor : help ;\n }\n');
}
//ここまで！

document.write('</pre>\n');
document.write('<p><input type="button" onclick="window.location.reload();" value="やり直す"></p>');
document.write('</body>\n</html>');

}