<!-- Beginning of JavaScript -------------------
// DynWrite() function, Jim Ley - news://comp.lang.javascript
//
// Classify browser :
DocDom=DocLay=DocAll=false
DocDom = (document.getElementById?true:false) // NS6 also IE5
if (!DocDom) {
  DocLay = (document.layers?true:false)  // NS4
  DocAll = (document.all?true:false)    // IE4
}
// Test for Opera
if (DocDom) {DocDom = false ; for (var i in document) {DocDom = true ; break}}

// Remove the next block for production :
// if (DocAll) alert('DocAll is set.')
// if (DocLay) alert('DocLay is set.')
// if (DocDom) alert('DocDom is set.')

DocStr="return false"
if (DocLay) DocStr="return document.layers[id]"
if (DocAll) DocStr="return document.all[id]"
if (DocDom) DocStr="return document.getElementById(id)"
GetRef=new Function("id", DocStr)

if (DocAll || DocDom) {
  DynWrite=new Function("id", "S", "GetRef(id).innerHTML=S; return true")
} else if (DocLay) {
  DynWrite=new Function("id", "S", "var x=GetRef(id).document;"+"x.open('text/html'); x.write(S); x.close(); return true")
} else {
  DynWrite=new Function("return false")
}

NS7 = NS6 = IE5 = NS4 = IE4 = false
if (navigator.appName.indexOf("Netscape")>=0 && parseFloat(navigator.vendorSub)>=7) {
  NS7 = true
} else if (navigator.appName.indexOf("Netscape")>=0 && parseFloat(navigator.appVersion)>=5) {
  NS6 = true
} else if (document.layers) {
  NS4 = true
} else if (document.all) {
  var iMSIE=parseInt(navigator.appVersion.indexOf("MSIE"))
  var iVer = (iMSIE>=1) ? parseInt(navigator.appVersion.charAt(iMSIE+5)) : 0
  if (iVer >=5) {IE5 = true} else {IE4 = true}
}
// Test for Opera
var flag = false ; for (var i in document) {flag = true ; break}
if (!flag) NS7 = NS6 = IE5 = NS4 = IE4 = false

// -- End of JavaScript code -------------- -->
