

var MouseOverTopMenu;
var MouseOverTopMenuID;
var MouseOverLeftMenu;
var MouseOverLeftMenuID;
var FlagActive;
var xmlHttp

var radiofile;


function showLink(id,Link)
{ 
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  //alert ("Your browser does not support AJAX!");
  return;
  } 
  
var url=Link;

xmlHttp.onreadystatechange=function loadLink() 
{ 
		var idImg
		if (xmlHttp.readyState==4)
		{ 
		document.getElementById(id).innerHTML=xmlHttp.responseText;
		}
}

xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}



function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}


/****************************************************************************************************/
/* Show Date Time */



function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
		
/*function setclock(nowvb){

				var now = new Date(nowvb);	
									
				var tmpsec ;
				
				tmpsec = now.getSeconds()+1;
				now.setSeconds(tmpsec);
				
	var curhour=now.getHours();
	var curminute=now.getMinutes();
	var cursecond=now.getSeconds();
	var curmonth=now.getMonth();
	var curday=now.getDate();
	var curyear=now.getYear();
	if (curmonth==0 )
				sdate = "January";
	else if(curmonth==1)
				sdate = "February";
	else if(curmonth==2)
				sdate = "March";
	else if(curmonth==3)
				sdate = "April";
	else if(curmonth==4)
				sdate = "May";
	else if(curmonth==5)
				sdate = "June";
	else if(curmonth==6)
				sdate = "July";
	else if(curmonth==7)
				sdate = "August";
	else if(curmonth==8)
				sdate = "September";
	else if(curmonth==9)
				sdate = "October";
	else if(curmonth==10)
				sdate = "November";
	else if(curmonth==11)
				sdate = "December";
	
	date="";
	time="";
	if (curhour >= 12 ){
			curhour=curhour - 12 ;
			ampm="PM";
	}
	else ampm="AM";
	if (curhour==0)  curhour="12"
				curhour=" " + curhour;
	date=curday +" " +sdate +","+" "+curyear;
	//alert(cursecond);
	
	if(curminute<10) 
		curminute="0" + curminute;
	if(cursecond<10) 
		cursecond="0" + cursecond;
	
	time=curhour + ":" + curminute+":"+cursecond+" "+ ampm;
	I_top_menu1_lbl_datetime.innerHTML="&nbsp;<span>" + date +" " + time + "</span>";
		
	window.setTimeout("setclock(now)",1000);
	
}*/

/*function setclock(){
	now=new Date();
	var curhour=now.getHours();
	var curminute=now.getMinutes();
	var cursecond=now.getSeconds();
	var curmonth=now.getMonth();
	var curday=now.getDate();
	var curyear=now.getYear();
	if (curmonth==0 )
				sdate = "January";
	else if(curmonth==1)
				sdate = "February";
	else if(curmonth==2)
				sdate = "March";
	else if(curmonth==3)
				sdate = "April";
	else if(curmonth==4)
				sdate = "May";
	else if(curmonth==5)
				sdate = "June";
	else if(curmonth==6)
				sdate = "July";
	else if(curmonth==7)
				sdate = "August";
	else if(curmonth==8)
				sdate = "September";
	else if(curmonth==9)
				sdate = "October";
	else if(curmonth==10)
				sdate = "November";
	else if(curmonth==11)
				sdate = "December";
	
	//if(cursecond.length==1) 
	//	cursecond="0"+cursecond;
	//if(curmonth.length==1)
	//	curmonth="0"+curmonth;
	
	now=null;
	date="";
	time="";
	if (curhour >= 12 ){
			curhour=curhour - 12 ;
			ampm="PM";
	}
	else ampm="AM";
	if (curhour==0)  curhour="12"
				curhour=" " + curhour;
	date=curday +" " +sdate +","+" "+curyear;
	//alert(cursecond);
	
	if(curminute<10) 
		curminute="0" + curminute;
	if(cursecond<10) 
		cursecond="0" + cursecond;
	
	time=curhour + ":" + curminute+":"+cursecond+" "+ ampm;
	I_top_menu1_lbl_datetime.innerHTML="&nbsp;<span>" + date +" " + time + "</span>";
		
	/if(FlagActive==true )
	{
		document.focus();	
		FlagActive=false;	
			
	}
		
	window.setTimeout("setclock()",1000);
}*/


function setclock2(){
	now=new Date();
	var curhour=now.getHours();
	var curminute=now.getMinutes();
	var cursecond=now.getSeconds();
	var curmonth=now.getMonth();
	var curday=now.getDate();
	var curyear=now.getYear();
	if (curmonth==0 )
				sdate = "Jan";
	else if(curmonth==1)
				sdate = "Feb";
	else if(curmonth==2)
				sdate = "Mar";
	else if(curmonth==3)
				sdate = "Apr";
	else if(curmonth==4)
				sdate = "May";
	else if(curmonth==5)
				sdate = "Jun";
	else if(curmonth==6)
				sdate = "Jul";
	else if(curmonth==7)
				sdate = "Aug";
	else if(curmonth==8)
				sdate = "Sep";
	else if(curmonth==9)
				sdate = "Oct";
	else if(curmonth==10)
				sdate = "Nov";
	else if(curmonth==11)
				sdate = "Dec";
	
	//if(cursecond.length==1) 
	//	cursecond="0"+cursecond;
	//if(curmonth.length==1)
	//	curmonth="0"+curmonth;
	
	now=null;
	date="";
	time="";
	if (curhour >= 12 ){
			curhour=curhour - 12 ;
			ampm="PM";
	}
	else ampm="AM";
	if (curhour==0)  curhour="12"
				curhour=" " + curhour;
	date=curday +" " +sdate +","+curyear;
	//alert(cursecond.lengths);
	time=curhour + ":" + curminute+":"+cursecond+" "+ ampm;
	I_top_menu21_lbl_datetime.innerHTML="&nbsp;<span>" + date +" " + time + "</span>";						
	window.setTimeout("setclock2()",1000);
}
/****************************************************************************************************/


/////////////////////////////////////////////////////////////////////
// Set Cookies
/////////////////////////////////////////////////////////////////////
function SetCookies(hCookies, dExpires, sDomain, sPath, bSecure)
{
    var sExpires;
    if (dExpires)
    {
    sExpires = dExpires.toGMTString();
    }

    for (var sKey in hCookies)
    {
  	var sCookie = escape(sKey) + "=" + escape(hCookies[sKey]);
  	if (sExpires)
  	{
  	    sCookie += ("; expires=" + sExpires);
  	}
  	if (sDomain)
  	{
  	    sCookie += ("; domain=" + sDomain);
  	}
   	if (sPath)
  	{
  	    sCookie += ("; path=" + sPath);
  	}
  	if (bSecure)
  	{
  	    sCookie += ("; secure");
  	}

    setCookie(sCookie);
    }
}


// Show Sub Menu
function show_subitem(id){
	
	reset_mouse_out_topmenu();
	hide_subitem();
	var subitem=document.getElementById(id);
	subitem.style.display = '';
	MouseOverTopMenu=1;
	mouse_over_topmenu(MouseOverTopMenuID);
	
}
/////////////////////////////////////////////
// Hide All Sub Menu
function hide_subitem(){
	/*subitem1.style.display='none';*/
	subitem2.style.display='none';
	/*subitem3.style.display='none';*/
	/*subitem4.style.display='none';
	subitem5.style.display='none';*/
	/*subitem6.style.display='none';*/
	/*subitem7.style.display='none';*/
}
function mouse_over_topmenu(id){

	var menu =document.getElementById(id);
	menu.className='TopMenu2';
}
function mouse_out_topmenu(id){

	var menu =document.getElementById(id);
	menu.className='TopMenu';
}
function reset_mouse_out_topmenu(){
	/*topmenu1.className='TopMenu';*/
	topmenu2.className='TopMenu';
	/*topmenu3.className='TopMenu';*/
	/*topmenu4.className='TopMenu';
	topmenu5.className='TopMenu';*/
	/*topmenu6.className='TopMenu';*/
	/*topmenu7.className='TopMenu';*/
}


/////////////////////////////////////////////
// Hide Top Sub Menu Auto
function timer_hide_subitem(){
	if(MouseOverTopMenu==0)
	{
		reset_mouse_out_topmenu();
		mouse_out_topmenu(MouseOverTopMenuID);
		hide_subitem();
	}
	if(MouseOverLeftMenu==0)
	{
		hide_submenu();
	}
	window.setTimeout("timer_hide_subitem()",2000);
}

// Left Menu
function mouse_over_leftmenu(id){
	hide_submenu();
	var menu =document.getElementById(id);
	menu.className='LeftMenuOver';
	//alert(id) ;
}
function mouse_over_leftmenu_arrow(id){
	hide_submenu();
	var menu =document.getElementById(id);
	menu.className='LeftMenuOverarrow';
}

function mouse_over_leftmenuspan(id){
	
	if (id != 'smartdata2')
	{
	// ++++ Case not menu download in eFin smart Data +++
		hide_submenu();
	}
	var menu =document.getElementById(id);
	menu.className='LeftMenuOverSpan';
}

function reset_mouse_out_leftpmenu(id){

var menu =document.getElementById(id);

/*if (id == 'stockfocus' ||id == 'download' ||id == 'aboutus' || id== 'smartdata' || id== 'smartdata2')*/
if (id == 'download' ||id == 'aboutus' || id== 'smartdata' || id== 'smartdata2')
{
		menu.className='LeftMenuSpan';
}
else
{
		menu.className='LeftMenu';
}


/*menu.className='LeftMenu';*/



	/*portal.className='LeftMenu';
	tfex.className='LeftMenu';
	afet.className='LeftMenu';
	quote.className='LeftMenu';
	news.className='LeftMenu';
	graph.className='LeftMenu';
	research.className='LeftMenu';
	stockfocus.className='LeftMenuSpan';
	webboard.className='LeftMenu';
	ir.className='LeftMenu';
	manual.className='LeftMenu';
	download.className='LeftMenuSpan';
	faq.className='LeftMenu';
	aboutus.className='LeftMenuSpan';
	disclaimer.className='LeftMenu';
	sitemap.className='LeftMenu';*/
	
	
	

}
function reset_mouse_out_leftpmenu_arrow(id){

var menu =document.getElementById(id);

/*if (id == 'stockfocus' ||id == 'download' ||id == 'aboutus')*/
if (id == 'download' ||id == 'aboutus')
{

		menu.className='LeftMenuSpan2';
}
else
{

		menu.className='LeftMenu2';
}

/*menu.className='LeftMenuSpan';*/
	/*portal.className='LeftMenu2';
	tfex.className='LeftMenu2';
	afet.className='LeftMenu2';
	quote.className='LeftMenu2';
	news.className='LeftMenu2';
	graph.className='LeftMenu2';
	research.className='LeftMenu2'
	stockfocus.className='LeftMenuSpan2';
	webboard.className='LeftMenu2';
	ir.className='LeftMenu2';
	manual.className='LeftMenu2';
	download.className='LeftMenuSpan2';
	faq.className='LeftMenu2';
	aboutus.className='LeftMenuSpan2';
	disclaimer.className='LeftMenu2';
	sitemap.className='LeftMenu2';*/

}

function hide_submenu(){
	if(isdefined('stockfocussub')){
		stockfocussub.style.display='none';   
	}
	
	if(isdefined('downloadsub')){
		downloadsub.style.display='none';
	}
	
	if(isdefined('aboutussub')){
		aboutussub.style.display='none';
	}
    
    if(isdefined('smartdatasub')){
		smartdatasub.style.display='none';
	}
	if(isdefined('smartdatasub2')){
		smartdatasub2.style.display='none';
	}
}

function show_leftsubitem(id){
	
	//reset_mouse_out_topmenu();
    if (id != 'smartdatasub2')
	{
	hide_submenu();
	}   
	var subitem=document.getElementById(id);
	subitem.style.display = '';
	
	
	MouseOverLeftMenu=1;
	//mouse_over_topmenu(MouseOverTopMenuID);
	
}

function newwin(url,name){
	var props; 
	props = "toobar=yes,left=0,top=0,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width="+screen.width+" ,height="+screen.height;
	opennew = window.open(url,name,props);
	
}

function newwinResearch(url,name){
	var props; 
	props = "toobar=yes,left=0,top=0,location=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width="+screen.width+" ,height="+screen.height;
	opennew = window.open(url,name,props);	
}

function newwinTrainingOnline(url,name){


	var props; 
	props = "toobar=yes,left=0,top=0,location=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width=820 ,height=600;"
	opennew = window.open(url,name,props);
	
}

function newwinActivities(url,name){


	var props; 
	props = "toobar=yes,left=0,top=0,location=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=790 ,height=560;"
	opennew = window.open(url,name,props);
	
}

// +++++ edit by nut 2009-04-22  support HelpOnline Menu Feedback +++++
function newwinFeedback(url,name){
	var props; 
	props = "toobar=yes,left=0,top=0,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=380,height=575;"
	opennew = window.open(url,name,props);
	
}

/*function newsmart(url,name){
	var prop; 
	prop = "toobar=yes,left=0,top=0,location=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width=500,height=400";
	opensmart = window.open(url,name,prop);
	
}*/

//Revision 03/06/2008 (AON)

runtimeVersion = "2.0.0";

function HasRuntimeVersion(v)
{
  var va = GetVersion(v);
  var i;

  var a = navigator.userAgent.match(/\.NET CLR [0-9.]+/g);
  if (a != null)
    for (i = 0; i < a.length; ++i)
      if (CompareVersions(va, GetVersion(a[i])) <= 0)
		return true;
  return false;
}

function GetVersion(v)
{
  var a = v.match(/([0-9]+)\.([0-9]+)\.([0-9]+)/i);
    return a.slice(1);
}

function CompareVersions(v1, v2)
{
  for (i = 0; i < v1.length; ++i)
  {
    var n1 = new Number(v1[i]);
    var n2 = new Number(v2[i]);
    if (n1 < n2)
      return -1;
    if (n1 > n2)
      return 1;
  }
  return 0;
}

/*-->
</SCRIPT>*/

function newsmart(url,name){
 var prop; 
 prop = "toobar=yes,left=0,top=0,location=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=495,height=528,left=200,top=0";
 opensmart = window.open(url,name,prop);
}
 
function newsmart2(url,name){
 var prop; 
 prop = "toobar=yes,left=0,top=0,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=435,height=360,left=200,top=200";
 opensmart = window.open(url,name,prop);
}

//End Revision 03/06/2008 (AON)


function showfindex()														
{			
	findex.style.display="block";
	trade.style.display='none';
	//fex.style.display='none';
	findmenu.style.backgroundColor="#336699";
	findmenu.style.color="#FFFFFF";
	findmenu.style.fontWeight="bold";
	//fexmenu.style.backgroundColor="#E7E7E7";
	trademenu.style.backgroundColor="#E7E7E7";
	trademenu.style.color="#000000";
	trademenu.style.fontWeight="normal";
	//alert ("Hello ind")
}

function showtrade()														
{			
	trade.style.display="block";
	findex.style.display='none';
	//fex.style.display='none';	
	trademenu.style.backgroundColor="#336699";
	trademenu.style.color="#FFFFFF";
	trademenu.style.fontWeight="bold";
	findmenu.style.backgroundColor="#E7E7E7";
	findmenu.style.color="#000000";
	findmenu.style.fontWeight="normal";
	//fexmenu.style.backgroundColor="#E7E7E7";															
	//alert ("Hello ex")
}

function showset()														
{			
	graphset.style.display="block";
	graphset50.style.display='none';														
	graphset100.style.display='none';	
	graphmai.style.display='none';	
	m_set.style.backgroundColor="#336699";
	m_set.style.color="#FFFFFF"
	m_set.style.fontWeight='bold';
	m_set50.style.backgroundColor="#E7E7E7";
	m_set50.style.color="#000000"
	m_set50.style.fontWeight='normal';
	m_set100.style.backgroundColor="#E7E7E7";	
	m_set100.style.color="#000000"
	m_set100.style.fontWeight='normal';
	m_mai.style.backgroundColor="#E7E7E7";	
	m_mai.style.color="#000000"
	m_mai.style.fontWeight='normal';														
	//alert ("Hello ex")
}

function showset50()														
{			
	graphset.style.display="none";
	graphset50.style.display='block';														
	graphset100.style.display='none';	
	graphmai.style.display='none';	
	m_set.style.backgroundColor="#E7E7E7";
	m_set.style.color="#000000"
	m_set.style.fontWeight='normal';
	m_set50.style.color="#FFFFFF"
	m_set50.style.fontWeight='bold';
	m_set50.style.backgroundColor="#336699";
	m_set100.style.backgroundColor="#E7E7E7";	
	m_set100.style.color="#000000"
	m_set100.style.fontWeight='normal';
	m_mai.style.backgroundColor="#E7E7E7";	
	m_mai.style.color="#000000"
	m_mai.style.fontWeight='normal';														
	//alert ("Hello ex")
}	

function showset100()														
{			
	graphset.style.display="none";
	graphset50.style.display='none';														
	graphset100.style.display='block';	
	graphmai.style.display='none';	
	m_set.style.backgroundColor="#E7E7E7";
	m_set.style.color="#000000";
	m_set.style.fontWeight='normal';
	m_set50.style.backgroundColor="#E7E7E7";
	m_set50.style.color="#000000";
	m_set50.style.fontWeight='normal';
	m_set100.style.backgroundColor="#336699";
	m_set100.style.color="#FFFFFF";
	m_set100.style.fontWeight='bold';	
	m_mai.style.backgroundColor="#E7E7E7";	
	m_mai.style.color="#000000";
	m_mai.style.fontWeight='normal';														
	//alert ("Hello ex")
}	

function showmai()														
{			
	graphset.style.display="none";
	graphset50.style.display='none';														
	graphset100.style.display='none';	
	graphmai.style.display='block';	
	m_set.style.backgroundColor="#E7E7E7";
	m_set.style.color="#000000";
	m_set.style.fontWeight='normal';	
	m_set50.style.backgroundColor="#E7E7E7";
	m_set50.style.color="#000000";
	m_set50.style.fontWeight='normal';	
	m_set100.style.backgroundColor="#E7E7E7";	
	m_set100.style.color="#000000";
	m_set100.style.fontWeight='normal';	
	m_mai.style.backgroundColor="#336699";	
	m_mai.style.color="#ffffff";
	m_mai.style.fontWeight='bold';														
	//alert ("Hello ex")
}	

function showefi()														
{			
	setefi.style.display="block";
	setbrok.style.display='none';
	setlis.style.display='none';														
	setot.style.display='none';	
	setal.style.display='none';	
	
	efi.style.color='white';
	brok.style.color='black';
	lis.style.color='black';	
	ot.style.color='black';
	al.style.color='black';
	
	efi.style.fontWeight='bold';
	brok.style.fontWeight='normal';
	lis.style.fontWeight='normal';
	ot.style.fontWeight='normal';
	al.style.fontWeight='normal';
	
	efi.style.backgroundColor="#336699";
	//efi.style.stringname.fontcolor="#FFFFFF";
	brok.style.backgroundColor="#E7E7E7";
	lis.style.backgroundColor="#E7E7E7";	
	ot.style.backgroundColor="#E7E7E7";
	al.style.backgroundColor="#E7E7E7";
	
							
	//alert ("Hello ex")
}
function showbrok()														
{			
	setefi.style.display='none';
	setbrok.style.display="block";
	setlis.style.display='none';														
	setot.style.display='none';	
	setal.style.display='none';	
	
	efi.style.color='black';
	brok.style.color='white';
	lis.style.color='black';	
	ot.style.color='black';
	al.style.color='black';
	
	efi.style.fontWeight='normal';
	brok.style.fontWeight='bold';
	lis.style.fontWeight='normal';
	ot.style.fontWeight='normal';
	al.style.fontWeight='normal';
	
	efi.style.backgroundColor="#E7E7E7";
	brok.style.backgroundColor="#336699";
	lis.style.backgroundColor="#E7E7E7";	
	ot.style.backgroundColor="#E7E7E7";	
	al.style.backgroundColor="#E7E7E7";							
	//alert ("Hello ex")
	
}
function showlis()														
{			
	setefi.style.display='none';
	setbrok.style.display='none';
	setlis.style.display="block";														
	setot.style.display='none';	
	setal.style.display='none';	
	
	efi.style.color='black';
	brok.style.color='black';
	lis.style.color='white';	
	ot.style.color='black';
	al.style.color='black';
	
	efi.style.fontWeight='normal';
	brok.style.fontWeight='normal';
	lis.style.fontWeight='bold';
	ot.style.fontWeight='normal';
	al.style.fontWeight='normal';
	
	efi.style.backgroundColor="#E7E7E7";
	brok.style.backgroundColor="#E7E7E7";
	lis.style.backgroundColor="#336699";	
	ot.style.backgroundColor="#E7E7E7";			
	al.style.backgroundColor="#E7E7E7";						
	//alert ("Hello ex")
}
function showot()														
{			
	setefi.style.display='none';
	setbrok.style.display='none';
	setlis.style.display='none';														
	setot.style.display="block";
	setal.style.display="none";
		
	efi.style.color='black';
	brok.style.color='black';
	lis.style.color='black';	
	ot.style.color='white';
	al.style.color='black';
	
	efi.style.fontWeight='normal';
	brok.style.fontWeight='normal';
	lis.style.fontWeight='normal';
	ot.style.fontWeight='bold';
	al.style.fontWeight='normal';
	
	efi.style.backgroundColor="E7E7E7";
	brok.style.backgroundColor="#E7E7E7";
	lis.style.backgroundColor="#E7E7E7";	
	ot.style.backgroundColor="#336699";	
	al.style.backgroundColor="#E7E7E7";								
	//alert ("Hello ex")
}
function showal()														
{			
	setefi.style.display='none';
	setbrok.style.display='none';
	setlis.style.display='none';														
	setot.style.display="none";
	setal.style.display="block";
		
	efi.style.color='black';
	brok.style.color='black';
	lis.style.color='black';	
	ot.style.color='black';
	al.style.color='white';
	
	efi.style.fontWeight='normal';
	brok.style.fontWeight='normal';
	lis.style.fontWeight='normal';
	ot.style.fontWeight='normal';
	al.style.fontWeight='bold';
	
	efi.style.backgroundColor="E7E7E7";
	brok.style.backgroundColor="#E7E7E7";
	lis.style.backgroundColor="#E7E7E7";	
	ot.style.backgroundColor="#E7E7E7";	
	al.style.backgroundColor="#336699";								
	//alert ("Hello ex")
}

		
function showptt()														
{			
	setgold.style.display='none';
	setptt.style.display="block";
	
	ptt.style.backgroundColor="#336699";
	gold.style.backgroundColor="#E7E7E7";
	
	gold.style.color='black';	
	ptt.style.color='white';
	
	gold.style.fontWeight='normal';
	ptt.style.fontWeight='bold';
	

}
function showgold()														
{			
	setgold.style.display="block";
	setptt.style.display='none';
	
	ptt.style.backgroundColor="#E7E7E7";
	gold.style.backgroundColor="#336699";
	
	ptt.style.color='black';	
	gold.style.color='white';
	
	ptt.style.fontWeight='normal';
	gold.style.fontWeight='bold';
}


function writetext(text)
{
	document.write(text);
}



/// Main Config
//var td = document.getElementByID('body_column');
//td.style.width=screen.width-400;
function write_flash(height,width,cx,cy,name)
{
	a="<OBJECT codeBase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0'"
	a+="height='"+ height +"' width='"+ width +"' classid='clsid:D27CDB6E-AE6D-11CF-96B8-444553540000' VIEWASTEXT>"
	a+="<PARAM NAME='_cx' VALUE='"+ cx +"'>"
	a+="<PARAM NAME='_cy' VALUE='"+ cy +"'>"
	a+="<PARAM NAME='FlashVars' VALUE=''>"
	a+="<PARAM NAME='Movie' VALUE='" +name+ "'>"
	a+="<PARAM NAME='Src' VALUE='" +name+ "'>"
	a+="<PARAM NAME='WMode' VALUE='transparent'>"
	a+="<PARAM NAME='Play' VALUE='-1'>"
	a+="<PARAM NAME='Loop' VALUE='-1'>"
	a+="<PARAM NAME='Quality' VALUE='High'>"
	a+="<PARAM NAME='SAlign' VALUE=''>"
	a+="<PARAM NAME='Menu' VALUE='-1'>"
	a+="<PARAM NAME='Base' VALUE=''>"
	a+="<PARAM NAME='AllowScriptAccess' VALUE=''>"
	a+="<PARAM NAME='Scale' VALUE='ShowAll'>"
	a+="<PARAM NAME='DeviceFont' VALUE='0'>"
	a+="<PARAM NAME='EmbedMovie' VALUE='0'>"
	a+="<PARAM NAME='BGColor' VALUE=''>"
	a+="<PARAM NAME='SWRemote' VALUE=''>"
	a+="<PARAM NAME='MovieData' VALUE=''>"
	a+="<PARAM NAME='SeamlessTabbing' VALUE='1'>"
	a+="<PARAM NAME='Profile' VALUE='0'>"
	a+="<PARAM NAME='ProfileAddress' VALUE=''>"
	a+="<PARAM NAME='ProfilePort' VALUE='0'>"
	a+="<PARAM NAME='AllowNetworking' VALUE='all'>"
	a+="<embed src='" +name+ "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer'"
	a+="type='application/x-shockwave-flash' height='"+ height +"' width='"+ width +"'></embed>"
		a+="</OBJECT>"
			
			writetext(a);

}

function write_flashbanner2(name,height,width)
{

								a ="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+width+"' height='"+height+"' VIEWASTEXT>"
									 //a+="<PARAM NAME='WMode' VALUE='transparent'>"
                                  a+="<param name='movie' value='"+name+"'>"
                                  a+="<param name='quality' value='high'>"
                                  a+="<embed src='images/banner.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></embed>"
                                a+="</object>"
                                
                                writetext(a);

                                
  // <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="159" height="72">                             

}

function write_flashafet(name,height,width)
{
                       a="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='158' height='70'>"
                                                a+="<PARAM NAME='WMode' VALUE='transparent'>"
                                                //a+="<param name='regframename' value='_blank'>"
                                                a+="<param name='movie' value='images/afet158.swf'>"
                                                a+="<param name='quality' value='high'>"
                                                
                                                a+="<embed src='images/afet158.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='158' height='70'></embed>"
                                           a+="</object>"
                                            
                           writetext(a);
                  
                                            
}

function write_flashgossip(name,height,width)
{
									a="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='218' height='40'>"
                                      //a+="<PARAM NAME='WMode' VALUE='transparent'>"
                                      a+="<param name='movie' value='images/gossip.swf'>"
                                      a+="<param name='quality' value='high'>"
                                      
                                      a+="<embed src='images/gossip.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='218' height='40'></embed>"
                                  a+="</object>"
                                  
                                 writetext(a);
  
                                  }

function write_flashmanage(name,height,width)
{

a="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='158' height='70'>"
									//a+="<PARAM NAME='WMode' VALUE='transparent'>"
									a+="<param name='movie' value='images/manage.swf'>"
                                    a+="<param name='quality' value='high'>"
                                                  
                                                  a+="<embed src='images/manage.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='158' height='70'></embed>"
                                            a+="</object>"
                                              
                                 writetext(a);              
 }                                             
                                              
function write_flashsociety(name,height,width)
{
                  a="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='159' height='72'>"
                  //a+="<PARAM NAME='WMode' VALUE='transparent'>"
                  a+="<param name='movie' value='images/society.swf'>"
                  a+="<param name='quality' value='high'>"
                  
                  a+="<embed src='images/society.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='159' height='72'></embed>"
                  a+="</object>"
                                            
                                            writetext(a);
}

function write_flashbanner(name,height,width)
{                                
                                
                             
  a="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+width+"' height='"+height+"'>"
                                a+="<PARAM NAME='WMode' VALUE='transparent'>"
                                a+="<param name='movie' value='"+name+"'>"
                                a+="<param name='quality' value='high'>"
                                
                                a+="<embed src='images/banner218.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></embed>"
                              a+="</object>"
     
		writetext(a);
}



function write_flash_lifestyle(height,width,cx,cy,name)
{

		 a = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+width+"' height='"+height+"' VIEWASTEXT>"
         //a+="<PARAM NAME='WMode' VALUE='transparent'>"
         a+= "<param name='movie' value='"+name+"'>"
         a+= "<param name='quality' value='high'>"
         
         a+= "<embed src='"+name+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></embed>"
         a+= "</object>"
            
            writetext(a);
   
}
function play_multi(height,width,name)
{
		
		b="<object id='WinMedia'"
		b+="codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701,902'" 
		b+="type='application/x-oleobject' height='"+ height +"'"
		b+="standby='Loading Microsoft? Windows? Media Player components...' width='"+ width +"'"
		b+="classid='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95'>"
		b+="<param name='FileName' value='"+ name +"'>"
		b+="<param name='AutoStart' value='True'>"
		b+="<param name='ShowControls' value='True'>"
		b+="<param name='ShowStatusBar' value='True'>"
		b+="<param name='ShowDisplay' value='False'>"
		b+="<param name='AutoRewind' value='True'>"
		b+="<param name='enableContextMenu' value='false'>"
		b+="</object>"
       
		writetext(b);

}

    
function OpenReal(filename,name) { 

	

	var WindowName=name; 
    var left=(screen.width-380)/2;
    var top=(screen.height-405)/2; 
    strFeatures = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=380,height=405,left="+left+",top="+top+""; 
    winmulti1 = window.open(filename, WindowName, strFeatures); 
    //var position_x = screen.width/2; 
    //var position_y = (screen.height-255)/2; 
    //Real.moveTo(position_x, position_y); 
    winmulti1.focus(); 
    } 
    
    function OpenReal2(filename) { 
     
   
var WindowName="real2"; 
    var left=(screen.width-300)/2; 
	var top = (screen.height-325)/2
    strFeatures = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=325,left="+left+",top="+top+""; 
   Real2 = window.open(filename, WindowName, strFeatures); 
    	
    // var position_x = screen.width/2; 
   // var position_y = (screen.height-255)/2; 
    
    //  Real2.moveTo(position_x, position_y); 
  
    Real2.focus(); 
    } 
    
    function OpenReal3(filename) { //webboard notify
     
   
var WindowName="real3"; 
    var left=(screen.width-300)/2; 
	var top = (screen.height-325)/2
    strFeatures = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=490,height=350,left="+left+",top="+top+""; 
   Real3 = window.open(filename, WindowName, strFeatures); 
    	
    // var position_x = screen.width/2; 
   // var position_y = (screen.height-255)/2; 
    
    //  Real2.moveTo(position_x, position_y); 
  
    Real3.focus(); 
    } 
    
    function OpenReal_audio(filename,name) { 
    var WindowName=name; 
    var left=(screen.width-380)/2;
    var top=(screen.height-205)/2;
     
    strFeatures = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=380,height=205,left="+left+",top="+top+""; 
    winaudio = window.open(filename, WindowName, strFeatures); 
    //var position_x = screen.width/2; 
    //var position_y = (screen.height-255)/2; 
    //Real.moveTo(position_x, position_y); 
    winaudio.focus(); 
    } 
    
    function OpenMultimedia(filename,multi,w,h) { 
	/*var WindowName="winmulti"; */
    var left=(screen.width-w)/2; 
    var top = (screen.height-h)/2
    strFeatures = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width="+w+",height="+h+",left="+left+",top="+top+""; 
    winmulti = window.open(filename, multi, strFeatures); 
    //var position_x = screen.width/2; 
    //var position_y = (screen.height-255)/2; 
   // Real.moveTo(position_x, position_y); 
    winmulti.focus(); 
    } 
    
    function OpenVoteDetail(filename,w,h) { 
	var WindowName="vote"; 
    var left=screen.width+10; 
    strFeatures = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width="+w+",height="+h+",left="+left+",top=0"; 
    Vote = window.open(filename, WindowName, strFeatures); 
    var position_x = screen.width/2; 
    var position_y = (screen.height-255)/2; 
    Vote.moveTo(position_x, position_y); 
    Vote.focus(); 
    
    }
    
    function  CreateControl(DivID,CodeBase,ClassID,Width,Height,URL,PLAY)
{
  var d = document.getElementById(DivID);
  d.innerHTML ='<OBJECT codeBase='+CodeBase+' classid='+ClassID+' width='+Width+' height='+Height+'><PARAM NAME="movie" VALUE='+URL+'><PARAM NAME="play" VALUE= '+PLAY+'><embed src='+URL+' quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width='+Width+' height='+Height+'></embed></OBJECT>';
}

//@@@@@@@@@@@@@@@@@@@@@@@@@ Plan eFin Radio @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
function LiveRadio(filename,name,w,h) { 
	var WindowName=name; 
	var left=(screen.width-w)/2; 
	var top =(screen.height)/4;
    strFeatures = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width="+w+",height="+h+",left="+left+",top="+top+""; 
    liveRadio = window.open(filename, WindowName, strFeatures); 
    
   liveRadio.focus(); 
} 

function RadioService(filename,w,h) { 
	var WindowName="ServRadio"; 
	var left=(screen.width)/2; 
	var top =(screen.height)/2;
    strFeatures = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width="+w+",height="+h+",left="+left+",top="+top+""; 
    ServRadio = window.open(filename, WindowName, strFeatures); 
    
    ServRadio.focus(); 
} 

function RadioClick(index)
{
	if(inttime > Tstart_arr[index] && inttime < Tstop_arr[index])
	{
		radiofile="N";
		Radio_Efin("EFIN","EFIN");	
		flag=false;
	
		//alert('inttime < '+Tstart_arr[index]+ '&& inttime >' +Tstop_arr[index])
		
	}
	else if(inttime < Tstop_arr[index])
	{	
		radiofile="N";
		Radio_Efin("EFIN","EFIN");	
		flag=false;
		
		//alert('inttime < stop time');
		chkpicnews(type_arr[index]);
	}
	else
	{
		radiofile="O";	
		Radio_Efin("EFIN",file_arr[index]+'.asf');
		flag=true;
		
		window.Form1.hiddens.value=type_arr[index];
		//alert('inttime >= stop time');
		
		
		chkpicnews(type_arr[index]);
		
	}
}


function chkpicnews(str)														
{	
	switch (str)
	{

	case "SN":	
		p1.style.display="block";
		p2.style.display='none';
		p3.style.display='none';
		p4.style.display='none';
		p5.style.display='none';
		p6.style.display='none';
		p7.style.display='none';
		p8.style.display='none';
		p9.style.display='none';
		p10.style.display='none';
		p11.style.display='none';
		p12.style.display='none';
		p13.style.display='none';
		p14.style.display='none';
		break;

	case "CN":														
		p1.style.display='none';
		p2.style.display="block";
		p3.style.display='none';
		p4.style.display='none';
		p5.style.display='none';
		p6.style.display='none';
		p7.style.display='none';
		p8.style.display='none';
		p9.style.display='none';
		p10.style.display='none';
		p11.style.display='none';
		p12.style.display='none';
		p13.style.display='none';
		p14.style.display='none';
		break;
		
	case "MM" :																
		p1.style.display='none';
		p2.style.display='none';
		p3.style.display="block";
		p4.style.display='none';
		p5.style.display='none';
		p6.style.display='none';
		p7.style.display='none';
		p8.style.display='none';
		p9.style.display='none';
		p10.style.display='none';
		p11.style.display='none';
		p12.style.display='none';
		p13.style.display='none';
		p14.style.display='none';
		break;

	case "SU1":															
		p1.style.display='none';
		p2.style.display='none';
		p3.style.display='none';
		p4.style.display="block";
		p5.style.display='none';
		p6.style.display='none';
		p7.style.display='none';
		p8.style.display='none';
		p9.style.display='none';
		p10.style.display='none';
		p11.style.display='none';
		p12.style.display='none';
		p13.style.display='none';
		p14.style.display='none';
		break;
		
	case "SU2":															
		p1.style.display='none';
		p2.style.display='none';
		p3.style.display='none';
		p4.style.display="block";
		p5.style.display='none';
		p6.style.display='none';
		p7.style.display='none';
		p8.style.display='none';
		p9.style.display='none';
		p10.style.display='none';
		p11.style.display='none';
		p12.style.display='none';
		p13.style.display='none';
		p14.style.display='none';
		break;

	case "MS" :															
		p1.style.display='none';
		p2.style.display='none';
		p3.style.display='none';
		p4.style.display='none';
		p5.style.display="block";
		p6.style.display='none';
		p7.style.display='none';
		p8.style.display='none';
		p9.style.display='none';
		p10.style.display='none';
		p11.style.display='none';
		p12.style.display='none';
		p13.style.display='none';
		p14.style.display='none';
		break;
		
	case "ER":															
		p1.style.display='none';
		p2.style.display='none';
		p3.style.display='none';
		p4.style.display="none";
		p5.style.display='none';
		p6.style.display='none';
		p7.style.display='none';
		p8.style.display='none';
		p9.style.display='block';
		p10.style.display='none';
		p11.style.display='none';
		p12.style.display='none';
		p13.style.display='none';
		p14.style.display='none';
		break;
		
	case "ER1":															
		p1.style.display='none';
		p2.style.display='none';
		p3.style.display='none';
		p4.style.display="none";
		p5.style.display='none';
		p6.style.display='block';
		p7.style.display='none';
		p8.style.display='none';
		p9.style.display='none';
		p10.style.display='none';
		p11.style.display='none';
		p12.style.display='none';
		p13.style.display='none';
		p14.style.display='none';
		break;
	case "ER2":															
		p1.style.display='none';
		p2.style.display='none';
		p3.style.display='none';
		p4.style.display="none";
		p5.style.display='none';
		p6.style.display='none';
		p7.style.display='none';
		p8.style.display='none';
		p9.style.display='none';
		p10.style.display='block';
		p11.style.display='none';
		p12.style.display='none';
		p13.style.display='none';
		p14.style.display='none';
		break;
	case "ER3":															
		p1.style.display='none';
		p2.style.display='none';
		p3.style.display='none';
		p4.style.display="none";
		p5.style.display='none';
		p6.style.display='none';
		p7.style.display='none';
		p8.style.display='none';
		p9.style.display='none';
		p10.style.display='none';
		p11.style.display='block';
		p12.style.display='none';
		p13.style.display='none';
		p14.style.display='none';
		break;
	case "ER4":															
		p1.style.display='none';
		p2.style.display='none';
		p3.style.display='none';
		p4.style.display="none";
		p5.style.display='none';
		p6.style.display='none';
		p7.style.display='none';
		p8.style.display='none';
		p9.style.display='none';
		p10.style.display='none';
		p11.style.display='none';
		p12.style.display='block';
		p13.style.display='none';
		p14.style.display='none';
		break;
	case "ER5":															
		p1.style.display='none';
		p2.style.display='none';
		p3.style.display='none';
		p4.style.display="none";
		p5.style.display='none';
		p6.style.display='none';
		p7.style.display='none';
		p8.style.display='none';
		p9.style.display='none';
		p10.style.display='none';
		p11.style.display='none';
		p12.style.display='none';
		p13.style.display='block';
		p14.style.display='none';
		break;
	case "ER6":															
		p1.style.display='none';
		p2.style.display='none';
		p3.style.display='none';
		p4.style.display="none";
		p5.style.display='none';
		p6.style.display='none';
		p7.style.display='none';
		p8.style.display='none';
		p9.style.display='none';
		p10.style.display='none';
		p11.style.display='none';
		p12.style.display='none';
		p13.style.display='none';
		p14.style.display='block';
		break;
	case "ER7":															
		p1.style.display='none';
		p2.style.display='none';
		p3.style.display='none';
		p4.style.display="none";
		p5.style.display='none';
		p6.style.display='none';
		p7.style.display='none';
		p8.style.display='block';
		p9.style.display='none';
		p10.style.display='none';
		p11.style.display='none';
		p12.style.display='none';
		p13.style.display='none';
		p14.style.display='none';
		break;
	case "IQ":															
		p1.style.display='none';
		p2.style.display='none';
		p3.style.display='none';
		p4.style.display="none";
		p5.style.display='none';
		p6.style.display='none';
		p7.style.display='block';
		p8.style.display='none';
		p9.style.display='none';
		p10.style.display='none';
		p11.style.display='none';
		p12.style.display='none';
		p13.style.display='none';
		p14.style.display='none';
		break;
	case "SB":															
		p1.style.display='none';
		p2.style.display='none';
		p3.style.display='none';
		p4.style.display="none";
		p5.style.display='none';
		p6.style.display='none';
		p7.style.display='none';
		p8.style.display='block';
		p9.style.display='none';
		p10.style.display='none';
		p11.style.display='none';
		p12.style.display='none';
		p13.style.display='none';
		p14.style.display='none';
		break;
		
	default:													
		p1.style.display='none';
		p2.style.display='none';
		p3.style.display='none';
		p4.style.display="none";
		p5.style.display='none';
		p6.style.display='block';
		p7.style.display='none';
		p8.style.display='none';
		p9.style.display='none';
		p10.style.display='none';
		p11.style.display='none';
		p12.style.display='none';
		p13.style.display='none';
		p14.style.display='none';
		break;	
	}

}

function Radio_Efin(channel,file) {
	var file;
	var r;

	r="<object id='WinMedia' codebase='http://activex.microsoft.com"
	r=r+"/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701,902' "
	r=r+"type='application/x-oleobject' height='52' standby='Loading Microsoft? "
	r=r+"Windows? Media Player components...' width='300' classid='CLSID:22D6F312"
	r=r+"-B0F6-11D0-94AB-0080C74C7E95' VIEWASTEXT>"
	r=r+"	<param name='FileName' value='"+file+"'>"
	r=r+"	<param name='AutoStart' value='True'>"
	r=r+"	<param name='ShowControls' value='True'>"
	r=r+"	<param name='ShowStatusBar' value='True'>"
	r=r+"	<param name='ShowDisplay' value='False'>"
	r=r+"	<param name='AutoRewind' value='True'>"
	r=r+"	<param name='enableContextMenu' value='True'>"
	r=r+"	<param name='Volume' value='150'>"
	r=r+"</object>"

	window.radio.innerHTML=r;
}

function TestWinMedia1(path)
{
	var w;

	w="<OBJECT id='wm' height='62' width='200' align='middle' classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6' VIEWASTEXT>"
	w=w+"	<PARAM NAME='URL' VALUE='"+path+"'>"
	w=w+"	<PARAM NAME='rate' VALUE='1'>"
	w=w+"	<PARAM NAME='balance' VALUE='0'>"
	w=w+"	<PARAM NAME='currentPosition' VALUE='0'>"
	w=w+"	<PARAM NAME='defaultFrame' VALUE=''>"
	w=w+"	<PARAM NAME='playCount' VALUE='1'>"
	w=w+"	<PARAM NAME='autoStart' VALUE='0'>"
	w=w+"	<PARAM NAME='currentMarker' VALUE='0'>"
	w=w+"	<PARAM NAME='invokeURLs' VALUE='-1'>"
	w=w+"	<PARAM NAME='baseURL' VALUE=''>"
	w=w+"	<PARAM NAME='volume' VALUE='50'>"
	w=w+"	<PARAM NAME='mute' VALUE='0'>"
	w=w+"	<PARAM NAME='uiMode' VALUE='full'>"
	w=w+"	<PARAM NAME='stretchToFit' VALUE='0'>"
	w=w+"	<PARAM NAME='windowlessVideo' VALUE='0'>"
	w=w+"	<PARAM NAME='enabled' VALUE='-1'>"
	w=w+"	<PARAM NAME='enableContextMenu' VALUE='-1'>"
	w=w+"	<PARAM NAME='fullScreen' VALUE='0'>"
	w=w+"	<PARAM NAME='SAMIStyle' VALUE=''>"
	w=w+"	<PARAM NAME='SAMILang' VALUE=''>"
	w=w+"	<PARAM NAME='SAMIFilename' VALUE=''>"
	w=w+"	<PARAM NAME='captioningID' VALUE=''>"
	w=w+"	<PARAM NAME='enableErrorDialogs' VALUE='0'>"
	w=w+"	<PARAM NAME='_cx' VALUE='5292'>"
	w=w+"	<PARAM NAME='_cy' VALUE='1640'>"
	w=w+"	<embed src='"+path+"' width='210' height='62' quality='high' id='wm' type='audio/x-ms-wax'"
	w=w+"	autostart='0' AllowScriptAccess='never' enablecontextmenu='0'> </embed>"
	w=w+"</OBJECT>"

	writetext(w);
}

function TestWinMedia2(path)
{
	var w1;
	
	w1="<OBJECT id='wm' height='62' width='200' align='middle' classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6' VIEWASTEXT>"
	w1+="	<PARAM NAME='URL' VALUE='"+path+"'>"
	w1+="	<PARAM NAME='rate' VALUE='1'>"
	w1+="	<PARAM NAME='balance' VALUE='0'>"
	w1+="	<PARAM NAME='currentPosition' VALUE='0'>"
	w1+="	<PARAM NAME='defaultFrame' VALUE=''>"
	w1+="	<PARAM NAME='playCount' VALUE='1'>"
	w1+="	<PARAM NAME='autoStart' VALUE='0'>"
	w1+="	<PARAM NAME='currentMarker' VALUE='0'>"
	w1+="	<PARAM NAME='invokeURLs' VALUE='-1'>"
	w1+="	<PARAM NAME='baseURL' VALUE=''>"
	w1+="	<PARAM NAME='volume' VALUE='50'>"
	w1+="	<PARAM NAME='mute' VALUE='0'>"
	w1+="	<PARAM NAME='uiMode' VALUE='full'>"
	w1+="	<PARAM NAME='stretchToFit' VALUE='0'>"
	w1+="	<PARAM NAME='windowlessVideo' VALUE='0'>"
	w1+="	<PARAM NAME='enabled' VALUE='-1'>"
	w1+="	<PARAM NAME='enableContextMenu' VALUE='-1'>"
	w1+="	<PARAM NAME='fullScreen' VALUE='0'>"
	w1+="	<PARAM NAME='SAMIStyle' VALUE=''>"
	w1+="	<PARAM NAME='SAMILang' VALUE=''>"
	w1+="	<PARAM NAME='SAMIFilename' VALUE=''>"
	w1+="	<PARAM NAME='captioningID' VALUE=''>"
	w1+="	<PARAM NAME='enableErrorDialogs' VALUE='0'>"
	w1+="	<PARAM NAME='_cx' VALUE='5292'>"
	w1+="	<PARAM NAME='_cy' VALUE='1640'>"
	w1+="	<embed src='"+path+"' width='210' height='62' quality='high' id='wm' type='audio/x-ms-wax'"
	w1+="		autostart='0' AllowScriptAccess='never' enablecontextmenu='0'> </embed>"
	w1+="</OBJECT>"
	
	writetext(w1);

}

function TestWinMedia3(path)
{
	var w2;
	
	w2="<OBJECT id='wm' height='62' width='200' align='absMiddle' classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6' VIEWASTEXT>"
	w2+="	<PARAM NAME='URL' VALUE='"+path+"'>"
	w2+="	<PARAM NAME='rate' VALUE='1'>"
	w2+="	<PARAM NAME='balance' VALUE='0'>"
	w2+="	<PARAM NAME='currentPosition' VALUE='0'>"
	w2+="	<PARAM NAME='defaultFrame' VALUE=''>"
	w2+="	<PARAM NAME='playCount' VALUE='1'>"
	w2+="	<PARAM NAME='autoStart' VALUE='0'>"
	w2+="	<PARAM NAME='currentMarker' VALUE='0'>"
	w2+="	<PARAM NAME='invokeURLs' VALUE='-1'>"
	w2+="	<PARAM NAME='baseURL' VALUE=''>"
	w2+="	<PARAM NAME='volume' VALUE='50'>"
	w2+="	<PARAM NAME='mute' VALUE='0'>"
	w2+="	<PARAM NAME='uiMode' VALUE='full'>"
	w2+="	<PARAM NAME='stretchToFit' VALUE='0'>"
	w2+="	<PARAM NAME='windowlessVideo' VALUE='0'>"
	w2+="	<PARAM NAME='enabled' VALUE='-1'>"
	w2+="	<PARAM NAME='enableContextMenu' VALUE='-1'>"
	w2+="	<PARAM NAME='fullScreen' VALUE='0'>"
	w2+="	<PARAM NAME='SAMIStyle' VALUE=''>"
	w2+="	<PARAM NAME='SAMILang' VALUE=''>"
	w2+="	<PARAM NAME='SAMIFilename' VALUE=''>"
	w2+="	<PARAM NAME='captioningID' VALUE=''>"
	w2+="	<PARAM NAME='enableErrorDialogs' VALUE='0'>"
	w2+="	<PARAM NAME='_cx' VALUE='5292'>"
	w2+="	<PARAM NAME='_cy' VALUE='1640'>"
	w2+="	<embed src='"+path+"' width='210' height='62' quality='high' id='wm' type='audio/x-ms-wax'"
	w2+="	autostart='0' AllowScriptAccess='never' enablecontextmenu='0'> </embed>"
	w2+="</OBJECT>"

	writetext(w2);
}
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

function write_banner_popup_index(name)
{
	a ="<OBJECT codeBase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 width='460' height='345' name='banner'><PARAM NAME='movie' VALUE='"+name+"'>"
	a =a+"<PARAM NAME='quality' VALUE='high'><embed src='"+name+"' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='460' height='345'></embed></OBJECT>"
	writetext(a);
}

function Open_popup_index(filename) { 
    var WindowName="popup_index"; 
   /* var left=(screen.width-380)/2;*/
   /* var top=(screen.height-205)/2;*/
     
    //strFeatures = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=380,height=205,left="+left+",top="+top+""; 
    strFeatures = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=464,height=345,left=0,top=0"; 
    popup_index = window.open(filename, WindowName, strFeatures); 
    //var position_x = screen.width/2; 
    //var position_y = (screen.height-255)/2; 
    //Real.moveTo(position_x, position_y); 
    if (popup_index){
    popup_index.focus();} 
} 
    
var num    
function calcHeight(id)
{
	try{
		var the_height=
			document.getElementById(id).contentWindow.
			document.body.scrollHeight;

		//change the height of the iframe
		document.getElementById(id).height=
			the_height;
	}catch(e)
	{
		//alert(e.message);
	} 
 
 if (num == 0)
 {
 num++;
 setTimeout("calcHeight('"+id+"')",1000);
 }
}

function calcWidthHeight(id)
{
	try{
		var the_height=
			document.getElementById(id).contentWindow.
			document.body.scrollHeight;
		  
		var the_width=
			document.getElementById(id).contentWindow.
			document.body.scrollWidth;
		//change the height of the iframe
		document.getElementById(id).height=
			the_height;
		document.getElementById(id).width=
			the_width;
	}catch(e)
	{
		//alert(e.message);
	}
}

function DelayFrame(id)
{
	setTimeout("calcHeight('"+id+"')",1000);
}

function DelayFrameSize(id)
{
	setTimeout("calcWidthHeight('"+id+"')",1000);
}
function set_timeout()
{
	setTimeout("window.parent.close()",1000);
}
    
 //********  manual  *****
 
 function audio_manual(filename,w,h) { 
	var WindowName="manual"; 
	var left=(screen.width)/2; 
	var top =(screen.height)/2;
    strFeatures = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width="+w+",height="+h+",left="+left+",top="+top+""; 
    manual = window.open(filename, WindowName, strFeatures); 
    
    manual.focus(); 
}    

function play_multi_manual(height,width,name)
{
		
		b="<object id='WinMedia'"
		b+="codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701,902'" 
		b+="type='application/x-oleobject' height='"+ height +"'"
		b+="standby='Loading Microsoft? Windows? Media Player components...' width='"+ width +"'"
		b+="classid='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95'>"
		b+="<param name='FileName' value='"+ name +"'>"
		b+="<param name='AutoStart' value='True'>"
		b+="<param name='ShowControls' value='True'>"
		b+="<param name='ShowStatusBar' value='True'>"
		b+="<param name='ShowDisplay' value='False'>"
		//b+="<param name='AutoRewind' value='True'>"
		b+="<param name='enableContextMenu' value='false'>"
		b+="</object>"
       
		writetext(b);

}   

function OpenSCBS(name){
	var props; 
	props = "toobar=yes,left=0,top=0,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width="+screen.width+" ,height="+screen.height;
	opennew = window.open('http://res.scbsonline.com/efin23.php3?loginname=23&brk=23i',name,props);
	
} 

function Radio(channel, file, browser){
 var radio = file;
	var d;
	var key = browser;

	switch(key)
	{
	case 1 :
	d="<embed filename='"+radio+"' name='WinMedia' showcontrols='1' ShowDisplay='0' autostart='1' showstatusbar='1' pluginspage='http://www.microsoft.com/windows/windowsmedia/download/AllDownloads.aspx/' type='application/x-mplayer2' width='300' height='48'></embed>"
	break;
	case 2 :
	d="<embed type='application/x-mplayer2' pluginspage='http://www.microsoft.com/windows/windowsmedia/download/AllDownloads.aspx/' filename='"+radio+"' name='WinMedia' showcontrols='1' showstatusbar='1' width='300' height='48'></embed>"
	break;
	default :
		d="<embed filename='"+radio+"' name='WinMedia' showcontrols='1' ShowDisplay='0' autostart='1' showstatusbar='1' pluginspage='http://www.microsoft.com/windows/windowsmedia/download/AllDownloads.aspx/' type='application/x-mplayer2' width='300' height='48'></embed>"
	break;
	}
	
	writetext(d);
}
//--------------------------------------------------------------
function click() {
	if (event.button==2) alert('Copyright eFinanceThai.com');
} 

document.onmousedown=click
//--------------------------------------------------------------
function showTFEXValue()														
{	
	setShowVal.style.display="block";		
	setShowVol.style.display='none';
	
	val.style.backgroundColor="#336699";
	vol.style.backgroundColor="#E7E7E7";
	
	vol.style.color='black';	
	val.style.color='white';
	
	vol.style.fontWeight='normal';
	val.style.fontWeight='bold';
}
function showTFEXVolumn()														
{			
	setShowVol.style.display="block";
	setShowVal.style.display='none';
	
	val.style.backgroundColor="#E7E7E7";
	vol.style.backgroundColor="#336699";
	
	val.style.color='black';	
	vol.style.color='white';
	
	val.style.fontWeight='normal';
	vol.style.fontWeight='bold';
}

//+++++++++++++++++++27/06/2008+++++++++++++++++++++++++++++++++++//
function OpenNewPopup(filename,name,width,height,top,left) { 
	var WindowName=name; 
	
    strFeatures = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width="+width+",height="+height+",left="+left+",top="+top+""; 
    newPopup = window.open(filename, WindowName, strFeatures); 
    
   newPopup.focus(); 
} 

//++++++++++++2008-07-15+++++++++++++++++++++++++++++++++++++++++
var userTimeout;
function user_refresh()
{	
	parent.frames['frame_refreshSession'].location='/stamp_session.aspx';	
	setTimeout("user_refresh()",Number(userTimeout));
	//alert("test");

}

//+++ Function Get Selected Value of DropdownList or RadiobuttonList----Create on 02/09/08 +++
function GetVal(objectID)
{
	var a = '';
	var f = document.forms[0];
	var e = f.elements[objectID];

	for (var i=0; i < e.length; i++)
	{
		if (e[i].checked)
		{
			a = e[i].value;
			break;
		}
	}
	return a;
}




/*  Action tracker nut edit 2009-3-12 */
function ActionTrackerCount(cutsomer_id,customer_name,keyName)
{
	
	if(cutsomer_id=="0")
	{		
		try{			
			//alert(ActionName(keyName));						//don't Remark for Test Action Tracker name
			track_action(ActionName(keyName));			
		}catch(e)
		{
		}
	}
}

function ActionName(key)
{
	var Name;
	var afet_symbol;
	var keyName=key;
	
	/* afet */
	if (key.indexOf("afet_")!= -1){	
		key = keyName.substring(0,5);
	}
	
	/* invertor station */	
	if (key.indexOf("ir_")!= -1){	
		key = keyName.substring(0,3);
	}
	
	if (key.indexOf("BrokerResearch_")!= -1){	
		key = keyName.substring(0,15);
	}
	
	switch (key)
	{
	/* public Relation */
	case "public_efinancethai":	
		Name = "link(PUBLIC_eFinanceThai)";break;
	case "public_brokermember":	
		Name = "link(PUBLIC_BrokerMember)";break;
	case "public_listedfirm":	
		Name = "link(PUBLIC_ListedFirm)";break;
	case "public_others":	
		Name = "link(PUBLIC_Others)";break;
	case "public_all":	
		Name = "link(PUBLIC_All)";break;
	/* set index */
	case "set_index_value":														
		Name = "link(SETIndex_Value)";break;		
	case "set_50_value":														
		Name = "link(SET50_Value)";break;	
	case "set_100_value":														
		Name = "link(SET100_Value)";break;	
	case "mai_value":														
		Name = "link(Mai_Value)";break;	
	case "foreign_indices":														
		Name = "link(Foreign_Indices)";break;		
	case "exchange_rate":														
		Name = "link(Exchange_Rate)";break;
	/* tfex trading */
	case "tfex_trading_volume":														
		Name = "link(TFEXTrading_Volume)";break;		
	case "tfex_trading_value":														
		Name = "link(TFEXTrading_Value)";break;	
	/* afet */
	case "afet_":
		Name = "link(AFET_"+keyName.substring(5,keyName.length)+"_Price)";break;		
	/* PPT and Gold */		
	case "oil_price":														
		Name = "link(Oil_Price)";break;	
	case "gold_price":														
		Name = "link(Gold_Price)";break;		
	/* eFin Smart Portal */
	case "menu_eFinSmartPortal":														
		Name = "link(MENU_eFinSmartPortal)";break;	
	/* Real-Time Portal Beta */
	case "menu_RealTimePortalBeta":														
		Name = "link(MENU_RealTimePortalBeta)";break;	
	/* Real-Time Portal */
	case "menu_RealTimePortal":														
		Name = "link(MENU_RealTimePortal)";break;			
	/* Real-Time AFET */
	case "menu_RealTimeAFET":														
		Name = "link(MENU_RealTimeAFET)";break;		
	/* Real-Time Quote */
	case "menu_RealTimeQuote":														
		Name = "link(MENU_RealTimeQuote)";break;		
	/* Real-Time Graph */
	case "menu_RealTimeGraph":														
		Name = "link(MENU_RealTimeGraph)";break;	
	/* eFin Smart Data */
	case "menu_eFinSmartData_Aboutplugin":														
		Name = "link(MENU_eFinSmartData_Aboutplugin)";break;	
	case "menu_eFinSmartData_promotion&price":														
		Name = "link(MENU_eFinSmartData_Promotion&Price)";break;	
	case "menu_eFinSmartData_usercontact":														
		Name = "link(MENU_eFinSmartData_UserContact)";break;	
	case "menu_eFinSmartData_setupprogram":														
		Name = "link(MENU_eFinSmartData_SetupProgram)";break;	
	case "menu_eFinSmartData_usermanual":														
		Name = "link(MENU_eFinSmartData_UserManual)";break;	
	case "menu_eFinSmartData_FAQ":														
		Name = "link(MENU_eFinSmartData_FAQ)";break;	
	/* Trial User */
	case "menu_trialuser":														
		Name = "link(MENU_TrialUser)";break;

	/* Stock Focus */
	case "menu_StockFocus":
		Name = "link(MENU_StockFocus)";break;
	case "menu_StockFocus_Main":														
		Name = "link(MENU_StockFocus_Main)";break;
	case "menu_StockFocus_Directors":														
		Name = "link(MENU_StockFocus_Directors)";break;	
	case "menu_StockFocus_Shareholders":														
		Name = "link(MENU_StockFocus_Shareholders)";break;	
	case "menu_StockFocus_Financial":														
		Name = "link(MENU_StockFocus_Financial)";break;	
	case "menu_StockFocus_Investment":														
		Name = "link(MENU_StockFocus_Investment)";break;	
	case "menu_StockFocus_Calendar":														
		Name = "link(MENU_StockFocus_Calendar)";break;	
	case "menu_StockFocus_PaidUp":														
		Name = "link(MENU_StockFocus_PaidUp)";break;	
	case "menu_StockFocus_Rights_Benefits":														
		Name = "link(MENU_StockFocus_Rights_Benefits)";break;	
	case "menu_StockFocus_SignHistory":														
		Name = "link(MENU_StockFocus_SignHistory)";break;	
	case "menu_StockFocus_Tradingby_Investor":														
		Name = "link(MENU_StockFocus_Tradingby_Investor)";break;	
	case "menu_StockFocus_BrokerRanking":														
		Name = "link(MENU_StockFocus_BrokerRanking)";break;	
	case "menu_StockFocus_SecurityStatistics":														
		Name = "link(MENU_StockFocus_SecurityStatistics)";break;			
	/* Web Board */
	case "menu_WebBoard":														
		Name = "link(MENU_WebBoard)";break;	
	/* Investor Relations */
	case "menu_InvestorRelations":														
		Name = "link(MENU_InvestorRelations)";break;			
	/* Disclaimer */
	case "menu_disclaimer":														
		Name = "link(MENU_Disclaimer)";break;		
	/* Sitemap */
	case "menu_sitemap":														
		Name = "link(MENU_Sitemap)";break;	
	/* Training Center */
	case "menu_TrainingCenter":														
		Name = "link(MENU_TrainingCenter)";break;
	/* Help Online */
	case "menu_helponline":														
		Name = "link(MENU_HelpOnline)";break;
	/* User Manual */
	case "menu_Usermanual":														
		Name = "link(MENU_UserManual)";break;
	/* Q&A /FAQ */
	case "menu_faq":														
		Name = "link(MENU_FAQ)";break;
	/* Search Solution */
	case "menu_searchsolution":														
		Name = "link(MENU_SearchSolution)";break;
	/* Feedback */
	case "menu_feedback":														
		Name = "link(MENU_Feedback)";break;		
	/* Bank Rate */
	case "menu_BankRate":														
		Name = "link(MENU_BankRate)";break;	
	/* Free Float */
	case "menu_FreeFloat":														
		Name = "link(MENU_FreeFloat)";break;	
	/* Turnover List */
	case "menu_TurnoverList":														
		Name = "link(MENU_TurnoverList)";break;	
	/* Bond */
	case "menu_Bond":														
		Name = "link(MENU_Bond)";break;	
	/* About Us */
	case "menu_CompanyWebsite":														
		Name = "link(MENU_Aboutus_CompanyWebsite)";break;	
	case "menu_Organization":														
		Name = "link(MENU_Aboutus_Organization)";break;	
	case "menu_BoardofDirector":														
		Name = "link(MENU_Aboutus_BoardofDirector)";break;	
	case "menu_Product&Services":														
		Name = "link(MENU_Aboutus_ProductServices)";break;	
	case "menu_eFinMember":														
		Name = "link(MENU_Aboutus_eFinMember)";break;	
	case "menu_JobOpportunities":														
		Name = "link(MENU_Aboutus_JobOpportunities)";break;	
	case "menu_eFinCalendar":														
		Name = "link(MENU_Aboutus_eFinCalendar)";break;	
	case "menu_eFinClub":														
		Name = "link(MENU_Aboutus_eFinClub)";break;	
	case "menu_eFinEvents":														
		Name = "link(MENU_Aboutus_eFinEvents)";break;	
	case "menu_ContentSchedules":														
		Name = "link(MENU_Aboutus_ContentSchedules)";break;	
	case "menu_Promotion":														
		Name = "link(MENU_Aboutus_Promotion)";break;	
	case "menu_ContactUs":														
		Name = "link(MENU_Aboutus_ContactUs)";break;	
	/* Download */
	case "menu_DownloadeFinSmartPortal":														
		Name = "link(MENU_Download_eFinSmartPortal)";break;		
	case "menu_DownloadeFinSetupProgram":														
		Name = "link(MENU_Download_eFinSetupProgram)";break;	
	case "DownloadSetupRealTimeVersion2.0":														
		Name = "link(Download_Setup_RealTime_2.0)";break;	
	case "DownloadSetupRealTimeVersion2.1":														
		Name = "link(Download_Setup_RealTime_2.1)";break;	
	case "DownloadSetupRealTimeAfet":														
		Name = "link(Download_Setup_RealTime_Afet)";break;	
	case "menu_DownloadAcrobatReader":														
		Name = "link(MENU_Download_AcrobatReader)";break;	
	case "menu_DownloadFlashPlayer":														
		Name = "link(MENU_Download_FlashPlayer)";break;
	case "menu_DownloadMultimediaSolution":														
		Name = "link(MENU_Download_MultimediaSolution)";break;
	/* invertor station */	
	case "ir_":
		Name = "link(IR_LISTED_"+keyName.substring(3,keyName.length)+")";break;	
	/* Broker Research */	
	case "menu_BrokerResearch":														
		Name = "link(MENU_BrokerResearch)";break;		
	case "BrokerResearch_":
		Name = "pdf("+keyName+")";break;						
	default:
		break;	
	}
	
	return Name;

}

/*  Action tracker nut edit 2009-3-12 */

/* Add For Fix Left Menu */
function isdefined(variable)
{
    return (typeof(window[variable]) == "undefined")?  false: true;
}


//++++++++++++   Create By Nut Support HelpOnline_SRC_1.4.0  2009-10-13 +++++++
function play_multi_HelpOnline(name)
{
		
		var width = (screen.width)-30
		var height = (screen.height)-120
		b="<object id='WinMedia'"
		b+="codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701,902'" 
		b+="type='application/x-oleobject' height='"+ height +"'"
		b+="standby='Loading Microsoft? Windows? Media Player components...' width='"+ width +"'"
		b+="classid='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95'>"
		b+="<param name='FileName' value='"+ name +"'>"
		b+="<param name='AutoStart' value='True'>"
		b+="<param name='ShowControls' value='True'>"
		b+="<param name='ShowStatusBar' value='True'>"
		b+="<param name='ShowDisplay' value='False'>"
		b+="<param name='AutoRewind' value='True'>"
		b+="<param name='AutoSize' value='True'>"
		b+="<param name='StretchToFit' value='True'>"
		b+="<param name='enableContextMenu' value='false'>"
		b+="</object>"       
     
		writetext(b);

}
function OpenReal_HelpOnline(filename) { 
    
	var WindowName="Multi"; 
    var left=0; 
	var top =0;
	var width = screen.width;
	var height = screen.height;
    strFeatures = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width="+ width +",height=" + height +",left="+left+",top="+top+""; 
	Multi = window.open(filename, WindowName, strFeatures);  
		if(Multi != null)
		{    
		Multi.focus(); 
		}
    } 
//++++++++++++  End Create By Nut Support HelpOnline_SRC_1.4.0  2009-10-13 +++++++   

//Support Trainning Online
String.prototype.trim = function() {   return this.replace(/^\s+|\s+$/g,"");}
String.prototype.ltrim = function() {   return this.replace(/^\s+/g,"");}
String.prototype.rtrim = function() {   return this.replace(/\s+$/g,"");}