The following codes Quote: document.write('<a'+link+'" target="_blank"><img src="'+adBanner+'" width="125" height="125" alt="'+alt+'" title="'+title+'" /></a>'); Is causing this error message: Quote: document type does not allow element "a" here The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements Does anyone have any suggestion on how to fix the above dilemma? Thanks. Can the document write be written in a different way other than the one shown above in this thread? Thanks in advance!