var SizeButton=' width=56" height="17" ';

function InitCHK(cod){
	var element = document.getElementById(cod);
  	element.onselectstart = function () { return false; } // ie
  	element.onmousedown = function () { return false; } // mozilla
}
function ChangeCHK(num){
	var chkcod = "chk"+num;
	var divcod = "div"+num;		
	var txtcod = "txt"+num;	
	if (document.getElementById(chkcod).checked ){
		document.getElementById(chkcod).checked=false;
		document.getElementById(chkcod).style.display='none';
		document.getElementById(divcod).className="newcheck";// chk_off
		$('.newcheck div').html('<img src="/img/but/iphonebutton_off.png"  '+SizeButton+' border="0">'); //text('Activar Canal');
	}else {
		document.getElementById(chkcod).checked=true;		
		document.getElementById(divcod).className="newcheck";// chk_on
		//$('.newcheck div').text('Apagar Canal');
		$('.newcheck div').html('<img src="/img/but/iphonebutton_on.png"  '+SizeButton+' border="0">');//text('Apagar Canal');		
	}
	document.getElementById(txtcod).onselectstart = function () { return false; } // ie
  	document.getElementById(txtcod).onmousedown = function () { return false; } // mozilla	
	Site.ActiveSwitch(chkcod,false);
}
function ActiveCHK(num){
	var chkcod = "chk"+num;
	var divcod = "div"+num;		
	var txtcod = "txt"+num;	
	try{
		document.getElementById(chkcod).checked=true;		
		document.getElementById(divcod).className="newcheck"; // chk_on
		document.getElementById(chkcod).style.display='none';	
		$('.newcheck div').html('<img src="/img/but/iphonebutton_on.png" '+SizeButton+' border="0">');//text('Apagar Canal');
	}catch(err){}
}
function InactiveCHK(num){
	var chkcod = "chk"+num;
	try{document.getElementById(chkcod).checked=false;	}catch(err){}	
}
