function putDatesIntoFrame(_framename,_from,_to,_width,_height){
	$(function(){
		$(_from).each(function(){
			var source = $(this).html()
				.replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&amp;/g, "&");
			var iframe = document.createElement("iframe");
			iframe.src = "javascript:false;";
			iframe.width = _width;
			iframe.height = _height;
			iframe.name = _framename;
			iframe.frameborder = "0";
			iframe.style.border = "none";
			$(_to).append(iframe);
			var doc = iframe.contentDocument || iframe.contentWindow.document;
			doc.open();
			doc.write( source );
			doc.close();
			$(this).html("");
		});
	});
}

function checkAll(_ChNames, _Value){
	$("input[@name='"+_ChNames+"']").each(function(){
		this.checked = _Value;
	});
}
