function cmfCommentAdd(form, url) {
	return cmfAjaxSend(url, { form: form });
}

function cmfProductChangeImage(img, count, obj) {
	cmfGetId('productImg').src = img;
	for(var i=0; i<count; i++) {
		cmfGetId('productImgList' + i).disabled='';
	}
	obj.disabled='disabled';
}

function cmfOpenImage(url, width, height) {
	var id = 'image';
	window_top =20+ (screen.height - height) / 2;
	window_left =20+ (screen.width - width) / 2;
	window.open(cmfGetId(url).src, id, 'width='+(width+40)+', height='+(height+20)+', top='+window_top+', left='+window_left+', toolbar=0, statusbar=0, location=0, scrollbars=yes, resizable=0');
	return false;
}

function cmfMenuVisible(k) {	cmfVisibleHidden('section'+ k);
}
