﻿function popup(gid,wi,hi)
{
	var h=null;
	h = window.open(gid,"help", "left=" + (screen.width- wi)/2 + ",top=" + (screen.height-hi)/2 + ",width=" + wi + ",height=" + hi + ",scrollbars=1");
	window.onfocus=function()
	{
		if(h && !h.closed)
		{
			h.focus();
		}
	}
}

function Inventory(gid,wi,hi)
{
	var h=null;
	h = window.open(pid,"help", "left=" + (screen.width- wi)/2 + ",top=" + (screen.height-hi)/2 + ",width=" + wi + ",height=" + hi + ",scrollbars=1");
	window.onfocus=function()
	{
		if(h && !h.closed)
		{
			h.focus();
		}
	}
}


// JScript File for WebhtmlEditor textBox, the button click insert the text in the textBox Inlcuded by geetha 31/05/2008//


 //Initializtion required for your project.
            function WebHtmlEditor1_Initialize(oEditor)
            {
                showEvent(0, "Initialize " + oEditor.ID);
            }
            
            function ButtonClick(ButtonId,txtBoxId) {
                            
              var txt=document.getElementById(ButtonId);
              var abc = txt.value;
              var editor = iged_getById(txtBoxId);
              editor.insertAtCaret(abc); //Modified by team  7Q For Issue #:1299
//              if (editor = null)
//              iged_insText(abc);
              
              }
               /* var edit = iged_getById(txtBoxID);
                if(!edit)return;
                var txt = edit.getText();
                txt += text;
                edit.setText(txt);*/
            
            
          /*  function ButtonClick(text,WebTextEdit1)
            {

               var txt = document.getElementById("Submit");
               var abc= txt.value;

                var editor = iged_getById("WebHtmlEditor1");
                iged_insText(abc);

            }*/

