function writeCodeOptions(parts) {	if (document.getElementById) {  // if DOM compliant browser		htmlTitle = 'Uses <!-- and //--> to bracket a script';		xhtmlTitle = 'Uses //<![CDATA[ and // ]] to bracket a script';		langTitle = 'Language property is discontinued in XHTML 1.0 Strict and XHTML 1.1';		document.writeln('<form method="post" action="#">');		document.writeln('<p class="noindent">Script comments:');		document.writeln('<input type="radio" name="version" id="html" checked="checked" onclick="changeCommentTag(' + "'HTML'" + ', parts);" \/> <label for="html" title="' + htmlTitle + '">HTML<\/label> &nbsp;');		document.writeln('<input type="radio" name="version" id="xhtml" onclick="changeCommentTag(' + "'XHTML'" + ', parts);" \/> <label for="xhtml" title="' + xhtmlTitle + '">XHTML<\/label>, &nbsp;&nbsp;&nbsp;');		document.writeln('<input type="checkbox" name="lang" id="lang" checked="checked" onclick="changeLanguage(0, parts);" \/> <label for="lang" title="' + langTitle + '">Show Language Property<\/label><\/p>');		document.writeln('<\/form>');		}	}function changeCommentTag(version, parts) {	lt = String.fromCharCode(60); gt = String.fromCharCode(62);	if (version == 'HTML') {		tagStart = lt + '!--';		tagEnd = '//--' + gt;		}	else {		tagStart = '// ' + lt + '![CDATA[';		tagEnd = '// ]]' + gt;		}	for (i = 1; i <= parts; i++) {		document.getElementById('startComment'+i).firstChild.nodeValue = tagStart;		document.getElementById('endComment'+i).firstChild.nodeValue = tagEnd;		}	}function changeLanguage(formNum, parts) {	if (document.forms[formNum].lang.checked) property = ' language="javascript"'	else property = '';	for (i = 1; i <= parts; i++) document.getElementById('lang'+i).firstChild.nodeValue = property;	}
