if (document.all) {
document.writeln('<p>if (document.all) = true</p>');
} else {
document.writeln('<p>if (document.all) = false</p>');
}
if (document.all("id")) {
document.writeln('<p>if (document.all("id") = true</p>');
} else {
document.writeln('<p>if (document.all("id")) = false</p>');
}
document.writeln('<p>document.all("id") = ' + document.all("id") + '</p>');