var endDate = new Date();endDate.setFullYear(2006,10,16);var dateNow = new Date();var diff = endDate-dateNow;vDays = Math.round(diff/1000/60/60/24);pctime = Math.round(vDays/45 * 100);var est = 15;var cur = 15;//var est = 15;//var cur = 16.2;var total = 20;var now = 27.7;pcf = Math.round(cur/est*100);pce = Math.round(now/total*100);function totaliser(vw){	if (pctime<50){		lhs = (100-pctime)+'%';		rhs = '&nbsp;';	}else{		rhs = (100-pctime)+'%';		lhs = '&nbsp;';	}	//document.write('<p align=center class="small"><b>Time elapsed since start of appeal</b><br><table border=0 cellspacing=1 bgcolor=\"#000000\" width=\"'+vw+'\"><tr>');		//document.write('<td bgcolor=\"#FFFF00\" class=\"small\" width=\"'+(vw-((vw/100)*pctime))+'\" align=right><font color=\"#FFFFFF\">'+lhs+'</font></td><td bgcolor=\"#FFFFFF\" class=\"small\" width=\"'+((vw/100)*pctime)+'\">'+rhs+'</td>');		//document.write('</tr></table><br><b>Funds raised since start of appeal</b><br>');		//document.write('<table border=0 cellspacing=1 bgcolor=\"#000000\" width=\"'+vw+'\"><tr>');	//if (pcf>50){	//	lhs = pcf+'% estimated scrap value (minimum target)';	//	rhs = '&nbsp;';	//}else{	//	rhs = pcf+'% estimated scrap value (minimum target)';	//	lhs = '&nbsp;';	//}	//if (pcf>=(100-pctime)){	//	col = '#FFFF00';	//	fcol = '#000000';	//}else{	//	col = '#FF0000';	//	fcol = '#FFFFFF';	//}	//if (pcf>89) col = '#88FF00';	//document.write('<td colspan=2 bgcolor=\"'+col+'\" class=\"small\" width=\"'+((vw/100)*pcf)+'\" align=right><font color=\"'+fcol+'">'+lhs+'</font></td>')	//if (pcf<100) document.write('<td bgcolor=\"#FFFFFF\" class=\"small\" width=\"'+(vw-((vw/100)*pcf))+'\">'+rhs+'</td>');	//document.write('</tr>');//</table></p>');			//document.write('<p align=center><table border=0 cellspacing=1 bgcolor=\"#000000\" width=\"'+vw+'\">');	//document.write('<tr>');	//if (pce>50){	//	lhs = pce+'% full appeal target';	//	rhs = '&nbsp;';	//}else{	//	rhs = pce+'% full appeal target';	//	lhs = '&nbsp;';	//}	//if (pce>=0){	//	col = '#FFFF00';	//	fcol = '#000000';	//}else{	//	col = '#FF0000';	//	fcol = '#FFFFFF';	///}	//if (pce>89) col = '#88FF00';	//document.write('<td bgcolor=\"'+col+'\" class=\"small\" width=\"'+((vw/100)*100)+'\" align=right><font color=\"'+fcol+'">'+lhs+'</font></td>')	//if (pce<100) document.write('<td bgcolor=\"#FFFFFF\" class=\"small\" width=\"'+(vw-((vw/100)*pce))+'\">'+rhs+'</td>');	//document.write('</tr></table></p>');}
