// (C) Netlogic, 2003

window.onload = function() {
	ValidateForms();
	CreateBaloon();
	//другие функции привязываемые к onload
}
function rollImg(src, price, obj, color_id, price, is_photo)
{
	document.getElementById('main_img').src = '/foto/storefront/' + src;
	if (this.obj !== undefined)
	this.obj.style.backgroundColor = "";
	this.obj = obj;
	obj.style.backgroundColor = "silver";
	document.getElementById('color_id').value=color_id;
	if (!is_photo) {
			document.getElementById('price').innerHTML = price;
		if (parseFloat(price) != 0) {
			document.getElementById('no_price_block').style.display = 'none';
			document.getElementById('has_price_block').style.display = 'block';
		}
		else {		
			document.getElementById('has_price_block').style.display = 'none';
			document.getElementById('no_price_block').style.display = 'block';
		}
	}
}