function GTalkStart(aHrefEl)
{
/*
	var iframe = document.createElement('iframe');
	document.body.appendChild(iframe);
	//iframe.style.display = 'none';
	//iframe.src = aHrefEl.href;
	iframe.src = 'http://taranteya:8020/user_area';
	iframe.id  = 'if-gtalk';
	iframe.onload = createTable('if-gtalk');
*/
window.open(aHrefEl.href,'_blank','width=300,height=445,toolbar=0,status=0,menubar=0,location=0,resizable=1,scrollbars=0');
//createTable(aHrefEl);
}


function createTable(id)
{
/*
alert(id);
var i = document.getElementById(id);
alert( i );
	if (i.contentDocument) {
    var d = i.contentDocument;
    } else if (i.contentWindow) {
        var d = i.contentWindow.document;
    } else {
        var d = window.frames[id].document;
    }

alert(d.body);
*/

var gTalk = new Ext.Panel({
    title: 'Google Talk',
    layout:'fit',
    frame : false,
    width : 380,
    height: 550,
    items: {
        html: '<iframe style="overflow-x:hidden; overflow-y:hidden; width:100%; height:100%" frameborder="0" scrolling="no" src="'+id.href +'"></iframe>',
        border: false
    },

    buttons: [{
	          text: 'Cancel',
	          handler : function(){
	             window.tableWindow.hide();
	           }
	        }]

});
	    gTalk.render(Ext.get('internall_call_gtalk'));

		window.tableWindow =  new Ext.Window({
				    width : 380,
					autoHeight: true,
					plain: true,
					closable: false,
					layout: 'fit',
					resazible: true,
					items: [gTalk],
					modal:true
		});

		return window.tableWindow.show();

}

