function over(id, color, menu) {
	if (id == "") {return false;}
	if (color == "") {
		document.all(id).style.backgroundColor = "";
		}
	else {
		document.all(id).style.backgroundColor = '#'+color;
		}
	if (menu != "no") {
		document.all(id).style.cursor = 'pointer';
		}
}
function out(id, color, menu) {
	if (id == "") {return false;}
	if (color == "") {
		document.all(id).style.backgroundColor = '';
		}
	else {
		document.all(id).style.backgroundColor = '#'+color;
		}
	if (menu != "no") {
		document.all(id).style.cursor = '';
	}
}


function addBasket(id) {
	req = new AJAX_Request();
	req.Set('_action', 'add');
	req.Set('id', id);
	req.Send("/basket/process.html", 'get');

	req = new AJAX_Request();
	req.Set('_action', 'getModule');
	req.Send("/basket/process.html", 'get');
	document.all("basketModule").innerHTML = req.responseText;

	if (confirm('Товар был успешно добавлен в корзину.\n\n\Хотите сразу перейти к оформлению заказа?')) {
		document.location="/basket/index.html";
		}
	}

function removeBasket(id) {
	req = new AJAX_Request();
	req.Set('_action', 'remove');
	req.Set('id', id);
	req.Send("/basket/process.html", 'get');

	req = new AJAX_Request();
	req.Set('_action', 'getFull');
	req.Send("/basket/process.html", 'get');
	document.all("basketBody").innerHTML = req.responseText;

	req = new AJAX_Request();
	req.Set('_action', 'getModule');
	req.Send("/basket/process.html", 'get');
	document.all("basketModule").innerHTML = req.responseText;

	}




