//#---------------------------------------------------------------------#
//#	DESCRIPTION		:	Basic											#
//#	AUTHOR			:	Kithsir Lihinikaduwa							#
//# CREATE DATE		:	JAN 12, 2004									#
//#	LAST CHANGED	:	JAN 12, 2004									#
//#	CHANGER			:	Kithsiri										#
//#	PURPOSE			:													#
//#	LINE NO(S)		:													#
//#---------------------------------------------------------------------#


	function changeC(daItem,daStyle) {
		document.getElementById(daItem).className = daStyle;
	}

	function loadintoIframe(iframeid, url){
		switch (iframeid)
		{
			case '0':
					top.artist_frame0.location.href=url;
				break;
			case '1':
					top.artist_frame1.location.href=url;
				break;
			case '2':
					
					top.artist_frame2.location.href=url;
				break;
			case '22':
					var pid;
					pid	=	top.artist_frame2.SUBFRAME.PID.value;
					top.artist_frame2.location.href=url + pid;
				break;
			case '3':
					top.artist_frame3.location.href=url;
				break;
		
		}
		
	}


	function changebg(mid,mcolor){
		document.getElementById(mid).style.bgColor	=	mcolor;
	}


function showUpload(){
	document.getElementById('updis').innerHTML	=	document.getElementById('updis1').innerHTML;
}

var win = null;

function launchPlayer(page_path,RadioId) {
  win = window.open(page_path +'LihiniRadio.lak?RadioId=' + RadioId, 'player', 'width=420,height=380,scrollbars=no,resizable=no,status=yes');
  if (!win) {
	
    
	var answer = confirm ('Opening the player window failed. You may have to allow popups for the player to open correctly.\n Do you want to Launch stand-alone Windows Media Player')
	if (answer)	location='mms://www.lihinimedia.com:7001/'+RadioId;

  }
  else {
    win.focus();
  }
}

function launchPlayer1(page_path,RadioPage,RadioId) {
		win = window.open(page_path  + RadioPage, 'player', 'width=420,height=500,scrollbars=no,resizable=no,status=yes');
  if (!win) {
	
    
	var answer = confirm ('Opening the player window failed. You may have to allow popups for the player to open correctly.\n Do you want to Launch stand-alone Windows Media Player')
	if (answer)	location='mms://www.lihinimedia.com:7001/'+RadioId;

  }
  else {
    win.focus();
  }
}

function launchPlayer2(page_path,RadioPage,RadioId) {
		win = window.open(page_path  + RadioPage, 'player', 'width=420,height=380,scrollbars=no,resizable=no,status=yes');
  if (!win) {
	
    
	var answer = confirm ('Opening the player window failed. You may have to allow popups for the player to open correctly.\n Do you want to Launch stand-alone Windows Media Player')
	if (answer)	location='mms://www.lihinimedia.com:7001/'+RadioId;

  }
  else {
    win.focus();
  }
}

function updating(obt){
	obt.value='Loading';
	obt.style.color='#CC0000';
}

