<!--

function calculation2 ()
{
	var version = navigator.userAgent;   //check if IE6 to fix layout of pict
var findIE6 = version.indexOf('MSIE 6');  //check if IE6 to fix layout of pict
	
	if (document.all){
	document.all.affcontent.src="affordable2.php";
	document.all.affcontent.style.visibility="visible";
	}
	if (document.getElementById){
	document.getElementById("affcontent").src="affordable2.php";
	document.getElementById("affcontent").style.visibility="visible";	
	}
	if(findIE6 != -1)
   {
	if (document.getElementById){
	document.getElementById("affcontent").src="affordable2.php";
	document.getElementById("affcontent").style.visibility="visible"
   }
   }
}

function calculation3 (theprice, theid)
{
	
	var id = theid;
	var price = theprice;
    var minprice;
	var maxprice;
	minprice = parseFloat(price) - 2000;
	maxprice = parseFloat(price) + 2000;
	if (document.all){
	document.all.affcontent.src="affordable.php?maxprice=" + maxprice + "&minprice=" + minprice + "&id=" + id;
	document.all.affcontent.style.visibility="visible";
	}
	if (document.getElementById){
	document.getElementById("affcontent").src="affordable.php?maxprice=" + maxprice + "&minprice=" + minprice + "&id=" + id;
	document.getElementById("affcontent").style.visibility="visible";	
	}
}



//-->
