/*---------------- this section calculate the price for offers ------------------*/
var tariff = 0;
function countTariff(e){
	var actualValue = parseInt(this.value, 10);
	if(this.checked && actualValue > 0){
			tariff = parseInt((tariff + actualValue),10);
	}
	else if(actualValue > 0){
			tariff = parseInt((tariff - actualValue),10);
	}
	document.getElementById('total_f').value = tariff;
}
function loadTariff(id)
{
	var el = document.getElementById(id);
	if(el) {
		var x = el.getElementsByTagName('input');
		for (var i=0;i<x.length;i++)
		{
			addEvent(x[i], 'click', countTariff);
		}
		
	}
}

function reloadPageDropDown( src, dropdown ){
	document.location = src + "&" + dropdown + "=" + document.getElementById(dropdown).value;
}//end 

var bookmarkurl = "";
var bookmarktitle = "";
function addbookmark(site){
	bookmarkurl = "http://www." + site;
	bookmarktitle = site;
	if (document.all);
		window.external.AddFavorite(bookmarkurl,bookmarktitle)
}