function addChan(n) {
	if (ch2.indexOf("," +n+ ",")==-1)
	ch2=ch2+n+",";
	}
	
function delChan(n)	{
	ch2=
		ch2.substring(0,ch2.indexOf(n+",")) +
		ch2.substring(ch2.indexOf(n+",")+n.length+1,ch2.length);
	}
	
function throwIt(cid){
	document.location.href="/rp/channels/?c="+cid+"&ch2="+ch2+"&PV="+PV+"&PT="+PT+"&LI="+LI+"&LP="+LP+"&CO="+CO+"&DC="+DC; 
	}
	
function passIt(){
	document.location.href="/rp/channels/?ch2="+ch2+"&PV="+PV+"&PT="+PT+"&LI="+LI+"&LP="+LP+"&CO="+CO+"&DC="+DC; 
	}

function imageChange(key,i) {
	if(key=='on') {
		eval("document.plusimage"+i+".src='http://i.real.com/g/pics/rp/chnl_plus_off.gif';");
		if(imageChange.arguments.length<=2)
			eval("document.minusimage"+i+".src='http://i.real.com/g/pics/rp/chnl_minus_on.gif';");
		eval("document.upimage"+i+".src='http://i.real.com/g/pics/rp/chnl_up_on.gif';");
		eval("document.downimage"+i+".src='http://i.real.com/g/pics/rp/chnl_down_on.gif';");
		}
	else if(key=='off') {
		eval("document.plusimage"+i+".src='http://i.real.com/g/pics/rp/chnl_plus_on.gif';");
		eval("document.minusimage"+i+".src='http://i.real.com/g/pics/rp/chnl_minus_off.gif';");
		eval("document.upimage"+i+".src='http://i.real.com/g/pics/rp/chnl_up_off.gif';");	
		eval("document.downimage"+i+".src='http://i.real.com/g/pics/rp/chnl_down_off.gif';");
	}
}
