function handleModal(id) {
	//var yoffset = posTop();
	var height = document.documentElement.clientHeight - 433;
	var width = document.documentElement.clientWidth - 599;
	height = height/2;
	width = width/2;
	var box = document.getElementById(id); 
	if (box.style.visibility == "visible") {
		//alert("closing box \n" + "box open is: " + openbox);
		if ( openbox == id ) {
			//alert("looks like we are closing the same service shown, doing nothing.");
			return;
			/*var startbox = document.getElementById('services-image-box');	
			startbox.style.visibility = "visible";*/
		}
		box.style.visibility = "hidden"; 
		
	} 
	else { 
		//alert("opening box. \nBox opened is: " + openbox);
		var openedbox = document.getElementById(openbox);
		openedbox.style.visibility = "hidden"; 
		/*if (openedbox.style.visibility == "visible") { 
			openedbox.style.visibility = "hidden"; 
			alert("closed an already open box"); 
		}*/
		box.style.visibility = "visible";
	}
	openbox = id;
	
}

function formatURI() {
	var theform = document.getElementById('bp-form');
	var inp1 = document.getElementById('bp-form');
	inp1 = document.createElement("INPUT");
	//inp1.setAttribute("value","paypal-forward.php?amount="+form.amount-paid.value);
	inp1.setAttribute("type","hidden");
	inp1.setAttribute("value","paypal-forward.php?amount="+document.getElementById('bp-amountpaid').value);
	inp1.setAttribute("name","good_url");
	theform.insertBefore(inp1, document.getElementsByTagName('input').item(2));
	return true;
}

function removeText(input) {
	if(input.value == "") { input.value = "(Muncie, Kokomo, Columbus)"; }
	else { input.value = ""; }
}