function checkChange(id) {
	var chkbox = document.getElementById('chkValue'+id);
    if(chkbox.checked) { 
        chkbox.checked = ''; 
        document.getElementById('chkImage'+id).src='/images/global/spacer.png'; 
    } else { 
        chkbox.checked = 'checked'; 
        document.getElementById('chkImage'+id).src='/images/global/checkmark.png'; 
    } 
} 

function printCoupons(cCode, pCode) {
	var url = 'http://bricks.coupons.com/Bstart.asp?c=' + cCode + '&p=' + pCode + '&o={0}';
	var oBase = '';
	var inputs = document.getElementsByTagName('input');
	for(var i=0; i < inputs.length; i++) {
		if(inputs[i].getAttribute('type') == 'checkbox' && inputs[i].checked) {
			if(oBase.length>0) oBase += "~";
			oBase += inputs[i].value;
		}
	}
	
	if(oBase.length>0)
    {
        url = url.replace("{0}", oBase);
        //This function is part of the Link Wrapper code and throws the warning message
        hideSite(url, true)
    }else{
		alert("No Coupons Have Been Selected");
	}
}
