cSongId		=	false;

function gE(e) {
	return	document.getElementById(e);
}

function	copyClipboard(id) {
var	t		= document.formPlayList[id];
	code	= t.value;

if (code.length>0) {
	if (window.clipboardData) {
			window.clipboardData.setData("Text", code);
			alert("Your Windows Media Video Code has been copied to the ClipBoard! \n\n Simply PASTE (Ctrl+V) this into your html document.");
	}else{
			t.focus();
			t.select();
			alert("Use Right Mouse Button & Select COPY!");
	}
} else
		alert("You do not have anything to Copy!");
}

function	copyClipboard2(id) {
var	t		= document.formPlayList2[id];
	code	= t.value;

if (code.length>0) {
	if (window.clipboardData) {
			window.clipboardData.setData("Text", code);
			alert("Your Realplayer Video Code has been copied to the ClipBoard! \n\n Simply PASTE (Ctrl+V) this into your html document.");
	}else{
			t.focus();
			t.select();
			alert("Use Right Mouse Button & Select COPY!");
	}
} else
		alert("You do not have anything to Copy!");
}

function	copyClipboard3(id) {
var	t		= document.formPlayList3[id];
	code	= t.value;

if (code.length>0) {
	if (window.clipboardData) {
			window.clipboardData.setData("Text", code);
			alert("Your Quicktime Video Code has been copied to the ClipBoard! \n\n Simply PASTE (Ctrl+V) this into your html document.");
	}else{
			t.focus();
			t.select();
			alert("Use Right Mouse Button & Select COPY!");
	}
} else
		alert("You do not have anything to Copy!");
}

function	copyClipboard4(id) {
var	t		= document.formPlayList4[id];
	code	= t.value;

if (code.length>0) {
	if (window.clipboardData) {
			window.clipboardData.setData("Text", code);
			alert("Your Windows Media Audio Code has been copied to the ClipBoard! \n\n Simply PASTE (Ctrl+V) this into your html document.");
	}else{
			t.focus();
			t.select();
			alert("Use Right Mouse Button & Select COPY!");
	}
} else
		alert("You do not have anything to Copy!");
}

function	copyClipboard5(id) {
var	t		= document.formPlayList5[id];
	code	= t.value;

if (code.length>0) {
	if (window.clipboardData) {
			window.clipboardData.setData("Text", code);
			alert("Your Realplayer Audio Code has been copied to the ClipBoard! \n\n Simply PASTE (Ctrl+V) this into your html document.");
	}else{
			t.focus();
			t.select();
			alert("Use Right Mouse Button & Select COPY!");
	}
} else
		alert("You do not have anything to Copy!");
}

function	copyClipboard6(id) {
var	t		= document.formPlayList6[id];
	code	= t.value;

if (code.length>0) {
	if (window.clipboardData) {
			window.clipboardData.setData("Text", code);
			alert("Your Quicktime Video Code has been copied to the ClipBoard! \n\n Simply PASTE (Ctrl+V) this into your html document.");
	}else{
			t.focus();
			t.select();
			alert("Use Right Mouse Button & Select COPY!");
	}
} else
		alert("You do not have anything to Copy!");
}

function	copyClipboard9(id) {
var	t		= document.formPlayList9[id];
	code	= t.value;

if (code.length>0) {
	if (window.clipboardData) {
			window.clipboardData.setData("Text", code);
			alert("Your Forum Code has been copied to the ClipBoard! \n\n Simply PASTE (Ctrl+V) this into your html document.");
	}else{
			t.focus();
			t.select();
			alert("Use Right Mouse Button & Select COPY!");
	}
} else
		alert("You do not have anything to Copy!");
}

function vTrim(str) {
	str						=	str.replace(/^\s+/,'');
	str						=	str.replace(/\s+$/,'');
	return						str;
}

function ucwords(str) {
     return str.toLowerCase().replace(/\w+/g,function(s){
          return s.charAt(0).toUpperCase() + s.substr(1);
     })
}

function getLink3() {
	var	check	=	document.formPlayList3.chbox.checked;
	var	check3	=	document.formPlayList3.chbox3.checked;

	var	t		=	check ? "autostart='1'" : "autostart='0'";
	var	t2		=	check3?cSongName+" ("+cBandName+")<p>":"";
		return 		"<style>.hov:hover{background-color:yellow}</style><div id='Title' style='font:bold 11px verdana'><a class='hov' style='display:block;width:300px;border:solid 2px black;padding:5px' href=\"http://www.musicremedy.com"+chSong+"\" target='_blank'>"+t2+"<object classid='clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b' width='320' height='300' codebase='http://www.apple.com/qtactivex/qtplugin.cab##version=6,0,2,0'><param name='controller' value='true'><param name='type' value='video/quicktime'><param name='autoplay' value='true'><param name='target' value='myself'><param name='src' value='http://www.musicremedy.com/"+cASX+""+vQuick+".qtl'><param name='pluginspage' value='http://www.apple.com/quicktime/download/indext.html'><embed controller='true' target='myself' src='http://www.musicremedy.com/"+cASX+""+vQuick+".qtl' type='video/quicktime' bgcolor='000000' border='0' pluginspage='http://www.apple.com/quicktime/download/' width='320' height='300' cache='true' kioskmode='true' loop='true' scale='ASPECT' volume='100'></embed></object></a><p style=\"margin:3px 0px\"><a href='http://www.musicremedy.com/'>Video Code provided by MusicRemedy.Com</a></p></div>";
}

function getLink2() {
	var	check	=	document.formPlayList2.chbox.checked;
	var	check3	=	document.formPlayList2.chbox3.checked;

	var	t		=	check ? "autostart='1'" : "autostart='0'";
	var	t2		=	check3?cSongName+" ("+cBandName+")<p>":"";
		t		=	"<style>.hov:hover{background-color:yellow}</style><div id='Title' style='font:bold 11px verdana'><a class='hov' style='display:block;width:300px;border:solid 2px black;padding:5px' href=\"http://www.musicremedy.com"+chSong+"\" target='_blank'>"+t2+"<object width='320' height='240' id='rvocx' classid='clsid:cfcdaa03-8be4-11cf-b84b-0020afbbccfa'><param name='src' value='http://www.musicremedy.com/"+cASX+""+vReal+".rpm'><param "+t+" value='true'><param name='controls' value='imagewindow'><param name='console' value='one'><param name='loop' value='false'><embed src='http://www.musicremedy.com/"+cASX+""+vReal+".rpm' width='320' height='240' loop='false' type='audio/x-pn-realaudio-plugin' controls='imagewindow' "+t+" console='one' nojava='true'></embed></object><!-- control starts --><object id='rvocx' classid='clsid:cfcdaa03-8be4-11cf-b84b-0020afbbccfa' width='320' height='143'><param name='src' value='http://www.musicremedy.com/"+cASX+""+vReal+".rpm'><param "+t+" value='true'><param name='controls' value='controlpanel'><param name='console' value='one'><embed src='http://www.musicremedy.com/"+cASX+""+vReal+".rpm' width='320' height='143' controls='controlpanel' type='audio/x-pn-realaudio-plugin' console='one' "+t+" nojava='true'></embed></object></a><p style=\"margin:3px 0px\"><a href='http://www.musicremedy.com/'>Video Code provided by MusicRemedy.Com</a></p></div>";

		return		t;
}
function getLink13() {
		return		"<style>li {padding:5px 0px}</style><style>.hov:hover{background-color:yellow}</style><div id='Title' style='font:bold 11px verdana'><h1 style='font:bold 13px;display:inline'>Watch Videos:</h1><a class='hov' title='Click here to play video' style='display:block;width:300px;border:solid 2px black;padding:10px' href=\"http://www.musicremedy.com"+chSong+"\" target='_blank'>"+ucwords(cSongName)+" ("+ucwords(cBandName)+")</a> <a href='http://www.musicremedy.com/' >Video Codes by MusicRemedy.Com</a></div>";
}
function getLink1() {
	var	check	=	document.formPlayList.chbox.checked;
	var	check3	=	document.formPlayList.chbox3.checked;

	var	t		=	check ? "autostart='1'" : "autostart='0'";
	var	t2		=	check3?cSongName+" ("+cBandName+")<p>":"";
		t		=	"<style>.hov:hover{background-color:yellow}</style><div id='Title' style='font:bold 11px verdana'><a class='hov' style='display:block;width:300px;border:solid 2px black;padding:5px' href=\"http://www.musicremedy.com"+chSong+"\" target='_blank'>"+t2+"<embed name='RAOCXplayer' src='http://www.musicremedy.com/"+cASX+""+vWindows+".asx' type='application/x-mplayer2' width='300' height='300' "+t+" ShowControls='1' ShowStatusBar='0' loop='true' EnableContextMenu='0' DisplaySize='0' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/'></embed></a><p style=\"margin:3px 0px\"><a href='http://www.musicremedy.com/'>Video Code provided by MusicRemedy.Com</a></p></div>";

		return		t;
}


function setTxtArea6() {
	var	check				=	document.formPlayList3.chbox2.checked;
	var tA					=	document.formPlayList3.link1;
		if(check)	tA.value=	getLink13();
		else		tA.value=	getLink3();
}
function setTxtArea5() {
	var	check			=	document.formPlayList3.chbox2.checked;
	if(!check) {
		var	tA			=	document.formPlayList3.link1;
			tA.value	=	getLink3();
	}
}
function setTxtArea4() {
	var	check				=	document.formPlayList2.chbox2.checked;
	var tA					=	document.formPlayList2.link1;
		if(check)	tA.value=	getLink13();
		else		tA.value=	getLink2();
}
function setTxtArea3() {
	var	check			=	document.formPlayList2.chbox2.checked;
	if(!check) {
		var	tA			=	document.formPlayList2.link1;
			tA.value	=	getLink2();
	}
}
function setTxtArea2() {
	var	check				=	document.formPlayList.chbox2.checked;
	var tA					=	document.formPlayList.link1;
		if(check)	tA.value=	getLink13();
		else		tA.value=	getLink1();
}
function setTxtArea() {
	var	check			=	document.formPlayList.chbox2.checked;
	if(!check) {
		var	tA			=	document.formPlayList.link1;
			tA.value	=	getLink1();
	}
}