function testCalc(f){var perc=f.admin_percentage.value;perc = parseFloat(perc)/100;var val1=25*perc;var val2=30*perc;var val3=23*perc;var res_text=document.getElementById("result_text").innerHTML;if (res_text.indexOf("[RESULT1]") != -1) res_text = res_text.split("[RESULT1]").join(val1);if (res_text.indexOf("[RESULT2]") != -1) res_text = res_text.split("[RESULT2]").join(val2);if (res_text.indexOf("[RESULT3]") != -1) res_text = res_text.split("[RESULT3]").join(val3);var delem = document.getElementById("show_results");delem.innerHTML = res_text;}function calc1(form) { a=eval(form.a.value)	b=eval(form.b.value)	c=eval(form.c.value)	d=a+b-c	form.ans1.value = d	form.ans122.value = d}function calc2(form) {	a=eval(form.d.value)	b=eval(form.ans122.value)	c=eval(form.e.value)	d=a-b-c	form.ans2.value = d	e=eval(form.c.value)	f=e*.25	form.ans3.value = f	g=eval(form.ans2.value)	h=eval(form.c.value)	i=g-h	j=i*.2	form.ans4.value = j	a=eval(form.d.value)	form.ans7.value = a		b=eval(form.e.value)	form.ans8.value = b}function calc3(form) {	a=eval(form.f.value)	b=eval(form.ans2.value)	c=a/100	d=c*b	form.ans5.value = d	e=eval(form.ans3.value)	f=eval(form.ans4.value)	g=eval(form.ans5.value)	h=e+f	i=h+g	form.ans6.value = i	form.ans62.value = i	}function calc4(form) {	c=eval(form.ans7.value)	d=eval(form.ans8.value)	e=eval(form.g.value)	f=c-d	g=f-e	form.ans9.value = g	h=eval(form.ans9.value)	i=eval(form.ans62.value)	j=h-i	form.ans10.value = j		//Campaign optimizer tracking code	var pixel = document.createElement("IMG")	pixel.height = 1	pixel.width = 1	pixel.src = 'http://pixel.optimaster.com/ciceron/pixel2.asp?ty=5'	document.body.appendChild(pixel)}