﻿// JScript File

 function InnerText(elementId, text)
 {
      document.getElementById(elementId).innerText = text;      
  }
  
  function InnerHtml(elementId, text)
  { 
       document.getElementById(elementId).innerHTML  = text;      
  }

 function OpenPopup(url, width, height)
 {
    window.open(url, '', 'width=' + width + ', height=' + height + ', left=' + ((screen.width - width) / 2) + ', top=' + ((screen.height - height) / 2));
 }


 function WorkaroundEmbed(DivTag, CodeToInsert) 
 {
	if (document.getElementById) {

	// This browser supports 'getElementByID'
	var WorkaroundHTML = document.getElementById(DivTag);
	WorkaroundHTML.innerHTML = CodeToInsert;
	} else {
	// This browser is older and does not
	// support 'getElementByID'
	document.write(CodeToInsert);
	}
 }
 
