Okay, since you guys are so helpful and smart, here's another one that's got me
stumped. Why does dom.getElementsByTagName work when assigned to a variable,
but document.getElementsByTagName doesn't? Example below.

function reportSkuCondMeta() {

// Read current document's SKU_Condition meta tag

var dom = dw.getDocumentDOM(); // get the dom of the current document

var skuCondMeta = dom.getElementsByTagName("meta");

for ( counter = 0; counter < skuCondMeta.length; counter++)
{
if (skuCondMeta[counter].name == "SKU_Condition") // now I want the DOM of
the extension form

// the following code returns error "displaySku has no properties"
var displaySku = document.getElementsByTagName("input");
for ( iter = 0; iter < displaySku.length; iter++)
{
if (document.displaySku[iter].name == "sku_cond")
document.displaySku[iter].value = skuCondMeta[counter].content;
}

// the following code runs just fine
/* for ( iter = 0; iter < document.getElementsByTagName("input").length;
iter++)
{
if (document.getElementsByTagName("input")[iter].name == "sku_cond")
document.getElementsByTagName("input")[iter].value =
skuCondMeta[counter].content;
} */
}
}

Of course, for ease of formatting and elegance, I want to do the second of the
two uses of document.getElementsByTagName, but I can't get it to work. Any
ideas on this would be great.

Thanks!
-Scott