<!--
function email(who,where) {
document.write('<a href="mailto:'+who+'@'+where+'">'+who+'@'+where+'</a>');
}

function paypal(project,price,subscription) {

	if (project=="") {
		project="Where most needed";
	}

	if (price=="") {
		price="50";
	}

document.write('<form name="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="paypal">');
document.write('<table width="0%" border="0"><tr>');
	if (subscription=="") {
		document.write('<input type="hidden" name="cmd" value="_cart">');
		document.write('<input type="hidden" name="add" value="1">');
		document.write('<input type="hidden" name="mrb" value="R-3WH47588B4505740X">');
	}
	if (subscription=="1" || subscription=="3") {
		document.write('<input type="hidden" name="cmd" value="_xclick-subscriptions">');
        document.write('<input type="hidden" name="p3" value="'+subscription+'">');
        document.write('<input type="hidden" name="t3" value="M">');
		document.write('<input type="hidden" name="src" value="1">');
		document.write('<input type="hidden" name="sra" value="1">');
	}
document.write('<input type="hidden" name="business" value="info@iOrphan.org">');
document.write('<input type="hidden" name="receiver_email" value="info@iOrphan.org">');
document.write('<input type="hidden" name="no_shipping" value="0">');
document.write('<input type="hidden" name="no_note" value="0">');
document.write('<input type="hidden" name="return" value="http://www.iOrphan.org">');
document.write('<input type="hidden" name="cancel_return" value="http://www.iOrphan.org">');
document.write('<input type="hidden" name="item_name" value="'+project+'">');

	if (subscription=="") {
		document.write('<td>$<input type="text" size="4" name="amount" value="'+price+'"></td>');
	}
	if (subscription=="1" || subscription=="3") {
 		document.write('<td>$<input type="text" size="4" name="a3" value="'+price+'"></td>');
	}

document.write('<td><select name="currency_code" size="1">');
document.write('<option value=USD>$ USD</option>');
document.write('<option value=EUR>&#8364; EUR</option>');
document.write('<option value=GBP>&pound; GBB</option>');
document.write('<option value=JPY>&yen; JPY</option>');
document.write('<option value=AUD>A$ AUD</option>');
document.write('<option value=CAD>C$ CAN</option>');
document.write('</select></td>');

	if (subscription=="") {
		document.write('<td valign="bottom"><input name="Product" type="submit" value="Donate Once"></td>');
	}
	if (subscription=="1") {
		document.write('<td valign="bottom"><input name="Product" type="submit" value="Donate Monthly"></td>');
	}
	if (subscription=="3") {
		document.write('<td valign="bottom"><input name="Product" type="submit" value="Donate Quarterly"></td>');
	}
document.write('</tr></table>');
document.write('</form>');
}

function check() {
	document.write('<br><span class="subtitle">Donate by Bank Check or Money Order</span><br>');
	document.write('1. Please write a check or money order (in any currency) payable to Ascent Russian Orphan Aid Foundation.<br>');
	document.write('2. Include a note with your e-mail address and a project you want to support.<br>');
	document.write('3. Mail the check to the following address:<br>');
	document.write('Ascent Russian Orphan Aid Foundation <br>');
	document.write('10421 Thimble Berry Drive<br>Anchorage, AK 99515<br>');
}

function cart() {
document.write('</form>');
document.write('<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">');
document.write('<input type="hidden" name="cmd" value="_cart">');
document.write('<input type="hidden" name="display" value="1">');
document.write('<input type="hidden" name="bn" value="wa_dw_4.0.0">');
document.write('<input type="hidden" name="business" value="info@iOrphan.org">');
document.write('<input type="hidden" name="receiver_email" value="info@iOrphan.org">');
document.write('<input type="hidden" name="mrb" value="R-3WH47588B4505740X">');
document.write('<input type="image" name="submit" src="http://images.paypal.com/images/view_cart_02.gif" border="0" alt="View Cart">');
document.write('</form>');
}

function donate(project,price) {
	document.write('<br><span class="subtitle">Donate Online Using Your Credit Card</span><br>');
	document.write('<table border="1">');
	document.write('<tr><th>Donate Once</th><th>Donate Monthly</th><th>Donate Quarterly</th></tr>');
	document.write('<tr><td>');
  	paypal(project,price,'') 
	document.write('</td><td>');
	paypal(project,price,'1') 
	document.write('</td><td>');
	paypal(project,price,'3') 
	document.write('</td></tr></table>');
  	document.write('Please enter amount (type over default $50), select currency and click corresponding DONATE button above. All payments are made securely and privately through <a href="https://www.paypal.com/mrb/pal=N54UUNEEJ26K2" target="_blank">PayPal</a>. They charge us 2.5% fee, but your donation is available to us immediately. Existing PayPal users select "More Funding Options" on the next page to use your credit card.<br>');
	check()
}
//-->
