<!-- Script Begin
function fillForm(form) {
	var framesetQuery = "";
	if ( window.top.location.search != 0 ) {
		framesetQuery = window.top.location.search;
	} 
	else {
		framesetQuery = "?OpenFrameset";
	}
	var instId = getParameter(framesetQuery,"instId");
	form.instId.value=instId;
	var currency = getParameter(framesetQuery,"currency");
	form.currency.value=currency;
	var testMode=getParameter(framesetQuery,"testMode");
	form.testMode.value=testMode;
	var hideCurrency=getParameter(framesetQuery,"hideCurrency");
	form.hideCurrency.value=hideCurrency;
	var cartId = getParameter(framesetQuery,"cartId");
	form.cartId.value=cartId;
	var desc = getParameter(framesetQuery,"desc");
	form.desc.value=desc;
	var amount=getParameter(framesetQuery,"amount");
	form.amount.value=amount;
	var MC_fund=getParameter(framesetQuery,"MC_fund");
	form.MC_fund.value=MC_fund;
	var MC_tshirt=getParameter(framesetQuery,"MC_tshirt");
	form.MC_tshirt.value=MC_tshirt;
	var honoree = getParameter(framesetQuery,"honoree");
	form.honoree.value=honoree;
	var MC_anon = getParameter(framesetQuery,"MC_anon");
	form.MC_anon.value=MC_anon;
	var MC_correspondence = getParameter(framesetQuery,"MC_correspondence");
	form.MC_correspondence.value=MC_correspondence;
	var MC_special = getParameter(framesetQuery,"MC_special");
	form.MC_special.value=MC_special;
	return true;
}

function getParameter ( queryString, parameterName ) {
// Add "=" to the parameter name (i.e. parameterName=value)
var parameterName = parameterName + "=";
if ( queryString.length > 0 ) {
// Find the beginning of the string
begin = queryString.indexOf ( parameterName );
// If the parameter name is not found, skip it, otherwise return the value
if ( begin != -1 ) {
// Add the length (integer) to the beginning
begin += parameterName.length;
// Multiple parameters are separated by the "&" sign
end = queryString.indexOf ( "&" , begin );
if ( end == -1 ) {
end = queryString.length
}
// Return the string
return unescape ( queryString.substring ( begin, end ) );
}
// Return "null" if no parameter has been found
return "null";
}
}


function initFormArgs(form) {
init();
fillForm(form);
}
// Script End -->

