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(url, 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 cmfChangeShop(id, len) {
	cmfAjaxSendCache('/mainAjax/shop/shop.php', {id: id, len: len});
}
function cmfContactSity(value, id) {
	cmfAjaxSendCache('/mainAjax/user/gorod.php', {id: id, value: value});
}
function cmfContactSityBasket(value, id) {
	cmfAjaxSendCache('/mainAjax/user/gorod.php', {id: id, value: value, isBasket: 1});
}

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