
function bodyMargin() {
	if (document.body.clientWidth < 780) {		
	document.body.style.marginLeft = "5px";
	}
}

function recountOnlinePrice()
{
	var i = 0;
	var tP = 0;
	var rP = 0;
	while( document.getElementById( 'room' + i + 'Id' ) != null )
	{
		rP = 0;
		var p = Math.round( document.getElementById( 'room' + i + 'Price' ).value * 10 );
		var c = Math.round( document.getElementById( 'room' + i + 'Count' ).value );
//		if ( document.getElementById( 'room' + i + 'Select' ).checked )
		{
			rP = p * c;
		}
//		alert( rP.toFixed( 1 ) );
		document.getElementById( 'room' + i + 'TotalPrice' ).innerHTML = ( rP / 10 ).toFixed( 1 );
		tP += rP;
		i++;
	}
	document.getElementById( 'totalPrice' ).value          = ( tP / 10 ).toFixed( 1 );
	document.getElementById( 'totalPriceBlock' ).innerHTML = ( tP / 10 ).toFixed( 1 );
}
		

function activateWaitScreen()
{
	document.getElementById( 'waitImage' ).style.display = '';
	new Effect.Appear( 'waitScreen', { duration: 0, from: 0.0, to: 0.8 } );
//	sleep( 300 );
	return true;
}

