<!--
//var ie4up = ( ( navigator.appName == "Microsoft Internet Explorer" ) && ( parseInt ( navigator.appVersion ) >= 4 ) );
//if ( ie4up ) { window.onload = resetStuff };
window.onload = resetStuff;
document.onclick = chgSelected;
function resetStuff ( ) {
var colSel = document.all.tags ( "select" )
for ( i = 0; i < colSel.length; i ++ ) {
colSel.item ( i ).selectedIndex = colSel.item ( i ).defaultSelected;
}
}
function chgSelected ( ) {
var objSrc = window.event.srcElement;
if ( objSrc.tagName == "label" ) {
if ( document.all ( objSrc.htmlFor ).selectedIndex < document.all ( objSrc.htmlFor ).options.length - 1 ) {
document.all ( objSrc.htmlFor ).selectedIndex ++;
}
else {
document.all ( objSrc.htmlFor ).selectedIndex = 0;
}
chgFont ( );
}
}
function showID ( ) {
objSrc = window.event.srcElement;
window.status = objSrc.tagName + ", " + objSrc.id + ", " + objSrc.className;
}
function chgFont ( ) {
var sStyle = fStyle.options ( fStyle.selectedIndex ).value;
var sVariant = fVariant.options ( fVariant.selectedIndex ).value;
var sWeight = fWeight.options ( fWeight.selectedIndex ).value;
var sSize = fSize.options ( fSize.selectedIndex ).value;
var sFamily = fFamily.options ( fFamily.selectedIndex ).value;
theDiv.style.fontStyle = sStyle;
theDiv.style.fontVariant = sVariant;
theDiv.style.fontWeight = sWeight;
theDiv.style.fontSize = sSize + "pt";
theDiv.style.fontFamily = sFamily;
theSyntax.innerText = "Syntax { font: " + sStyle + " " + sVariant + " " + sWeight + " " + sSize + "pt " + sFamily + " }";
}
//-->