<?php
 require '/home/users/web/b997/moo.moscow/mysql/vars.php';

if (isset($_POST['stage']))
{
	if (process_form()) {
	header("Location:http://www.moscowhelp.org/en/confirm.html");  
	exit(); 
}
else {

}

} else {
fill_form();
unset($_POST['stage']);
}

 function fill_form() {
?>
<html>
<head>
<title> moscowhelp.org: Help Beslan children</title>
<LINK rel="stylesheet" type="text/css" href="../css/styles.css">
</head>
<body bgcolor=white>

<iframe src="head.frame.html" height=190 width=100% scrolling=no frameborder=0 target="_top">

</iframe>
<table width="985" border=0 cellspacing=0 cellpadding=0>
	<tr height=10>
		<td width=181> <!-- the left menu -->
		</td>

		<td width=9> <!-- whitespace on the left -->
		</td>

		<td width=635> <!-- central box -->
		</td>

		<td width=10> <!-- whitspace on the right -->
		</td>

	

		<td valign=top width=150 rowspan=6> <!-- right pics -->
			<iframe src="pics.frame.html" width=150 height=100% frameborder=0 scrolling=no target="_top">
						</iframe>
		</td>
	</tr>	

	<tr valign=top>
		<td width=181>
			<iframe src="left.frame.html" width=181 height=800 frameborder=0 scrolling=no target="_top">
						</iframe>
		</td>

		<td width=9></td>
		
		<td>
			<table width=100% height=700 cellspacing=0 cellpadding=0 border=0>
	<tr height=20 valign=center align=center>
		<td bgcolor="#ffffff" class=topbox width=20></td>
		<td colspan=2 class=topbox>
			<!-- BEGIN TOP TEXT -->
		VIRTUAL FAMILY		<!-- END TOP TEXT -->
		</td>
	</tr>
 
	<tr height=100% valign=top>
		<td class=topbox></td>
		<td class=bottombox><!-- BEGIN BOTTOM TEXT -->



<FORM action <?= $_SERVER['PHP_SELF'] ?>  method="post" onSubmit="return validateForm(this)">
<DIV><FONT face=Arial size=2>Dear Donor:<BR>We are initiating a Virtual Family 
program in which donor families in America and Western Europe will be able to 
"adopt" a family in Beslan. <BR>If you decide to participate, please indicate the 
types of assistance that you would be willing to provide by checking the boxes 
below:<BR>&nbsp;</FONT>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 cellSpacing=1 
width="100%" border=0>
  <TBODY>
  <TR>
    <TD width=="100%" bgColor=#cccccc colSpan=3><FONT face=Arial 
      size=2><STRONG>1. Minor assistance</STRONG></FONT></TD></TR>
  <TR>
    <TD width="5%">&nbsp;</TD>
    <TD width="87%"><FONT face=Arial size=2>I am just interested in 
      corresponding with a family in Beslan. I am only able to provide minor 
      financial assistance, send holiday gifts etc.</FONT> </TD>
    <TD vAlign=bottom align=left width="8%">&nbsp;<input type="checkbox" name="MinorAssist" value="Y"></TD></TR>
<TR>
    <TD width="5%" >&nbsp;</TD>
    <TD width="87%"><FONT face=Arial size=2>If you are prepared to assist more 
      than one family, please indicate the number of families to which you are 
      prepared to provide this direct assistance:</FONT></TD>
    <TD vAlign=bottom align=left width="8%"><FONT face=Arial size=2><SELECT 
      size=1 name=MinorQTY> <OPTION value=1 selected>1</OPTION> <OPTION 
        value=2>2</OPTION> <OPTION value=3>3</OPTION> <OPTION value=4>4</OPTION> 
        <OPTION value=5>5</OPTION> <OPTION value=6>6</OPTION> <OPTION 
        value=7>7</OPTION> <OPTION value=8>8</OPTION> <OPTION 
      value=9>9</OPTION></SELECT></FONT></TD></TR>
  <TR>

  <TR>
    <TD width="100%" bgColor=#cccccc colSpan=3>
      <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><STRONG><FONT face=Arial 
      size=2>2. Substantial one-time assistance</FONT></STRONG></P></TD></TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD colSpan=2 bgColor=#cccccc>
      <P align=left><B><FONT face=Arial size=2 >This option is for those who 
      cannot commit to a long-term involvement but are prepared to make 
      a&nbsp;one-time substantial direct contribution to a specific family in 
      Beslan that needs it.<BR>Recipients of this assistance will be selected 
      based on the child's need for surgery that has to be performed outside 
      Russia, or the family's need to pay for costly long-term care for severely 
      handicapped children.<BR>You may also opt to offer a substantial 
      contribution to more than one family.</FONT></B></P></TD></TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD ><FONT face=Arial size=2>Please indicate the amount of a 
      one-time contribution</FONT></TD>
    <TD vAlign=bottom align=left width=183><FONT face=Arial size=2><SELECT 
      size=1 name=OneTimeUSD> <OPTION value=0 selected>n/a</OPTION> <OPTION 
        value=500>$500</OPTION> <OPTION value=1000>$1,000</OPTION> <OPTION 
        value=2000>$2,000</OPTION> <OPTION value=3000>$3,000</OPTION> <OPTION 
        value=4000>$4,000</OPTION> <OPTION 
      value=5000>$5,000</OPTION></SELECT></FONT></TD></TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD ><FONT face=Arial size=2>If you are prepared to assist more 
      than one family, please indicate the number of families to which you are 
      prepared to provide this direct assistance:</FONT></TD>
    <TD vAlign=bottom align=left width=183><FONT face=Arial size=2><SELECT 
      size=1 name=OneTimeQTY> <OPTION value=1 selected>1</OPTION> <OPTION 
        value=2>2</OPTION> <OPTION value=3>3</OPTION> <OPTION value=4>4</OPTION> 
        <OPTION value=5>5</OPTION> <OPTION value=6>6</OPTION> <OPTION 
        value=7>7</OPTION> <OPTION value=8>8</OPTION> <OPTION 
      value=9>9</OPTION></SELECT></FONT></TD></TR>
  <TR>
    <TD  bgColor=#cccccc colSpan=3><FONT face=Arial 
      size=2><STRONG>3. I would like to provide continuous direct financial 
      assistance for a period of 3 years or more to a specific family in Beslan 
      that needs it</STRONG></FONT></TD></TR>
  <TR>
    <TD >&nbsp;</TD>
    <TD ><FONT face=Arial size=2>Please indicate the monthly amount 
      to which you are prepared to commit to a recipient family:</FONT></TD>
    <TD vAlign=bottom align=left width=183><FONT face=Arial size=2><SELECT 
      size=1 name=MonthlyUSD> <OPTION value=0 selected>n/a</OPTION> <OPTION 
        value=50>$50</OPTION> <OPTION value=100>$100</OPTION> <OPTION 
        value=200>$200</OPTION> <OPTION value=300>$250</OPTION> <OPTION 
        value=400>$400</OPTION> <OPTION 
  value=500>$500</OPTION></SELECT></FONT></TD></TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD><FONT face=Arial size=2>If you are prepared to assist more 
      than one family, please indicate the number of families to which you are 
      prepared to provide this direct assistance:</FONT></TD>
    <TD vAlign=bottom align=left width=183><FONT face=Arial size=2><SELECT 
      size=1 name=MonthlyQTY> <OPTION value=1 selected>1</OPTION> <OPTION 
        value=2>2</OPTION> <OPTION value=3>3</OPTION> <OPTION value=4>4</OPTION> 
        <OPTION value=5>5</OPTION> <OPTION value=6>6</OPTION> <OPTION 
        value=7>7</OPTION> <OPTION value=8>8</OPTION> <OPTION 
      value=9>9</OPTION></SELECT></FONT></TD></TR>
  <TR>
    <TD  bgColor=#cccccc colSpan=3><FONT face=Arial 
      size=2><STRONG>4.&nbsp;Host family</STRONG></FONT></TD></TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD><FONT face=Arial size=2>I would like to serve as a host 
      family and pay for expenses associated with a trip&nbsp;by the child and 
      the child's parent or guardian to your place of residence. The expenses 
      will include visa costs ($120 per person for 2 people), tickets (around 
      $300 round-trip to Europe, $700 to USA for 2 people), board during their 
      stay, as well as possible other expenses of your choice, such as medical 
      examinations, counseling etc. You will host a family in which a child 
      either needs minor medical assistance and psychological rehabilitation, or 
      a major medical procedure such as surgery, the payment for which has been 
      arranged by another donor or hospital (or you, if you answer "yes" to the 
      next question). Please indicate the number of <B>families</B> that you are 
      prepared to host over the next 12 months:</FONT></TD>
    <TD vAlign=bottom align=left ><FONT face=Arial size=2><SELECT 
      size=1 name=HostQTY> <OPTION value=0 selected>n/a</OPTION> <OPTION 
        value=1>1</OPTION> <OPTION value=2>2</OPTION> <OPTION value=3>3</OPTION> 
        <OPTION value=4>4</OPTION> <OPTION value=5>5</OPTION> <OPTION 
        value=6>6</OPTION> <OPTION value=7>7</OPTION> <OPTION value=8>8</OPTION> 
        <OPTION value=9>9</OPTION></SELECT></FONT></TD></TR>
  <TR>
    <TD  bgColor=#cccccc colSpan=3><FONT face=Arial 
      size=2><STRONG>5. Surgeries for children which cannot be performed in 
      Russia</STRONG></FONT></TD></TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD  bgColor=#cccccc colSpan=2>
      <P align=left><B><FONT face=Arial size=2>Please choose one of the 
      following options</FONT></B></P></TD></TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD><FONT face=Arial size=2>I can pay for surgery <B>in 
      addition</B> to serving as a host family. Please indicate the maximum 
      amount you can commit:<BR>(This option requires a "yes" answer to question 
      4 above)</FONT></TD>
    <TD vAlign=bottom align=left width=183><FONT face=Arial size=2><SELECT 
      size=1 name=SurgeryUSD> <OPTION value=0 selected>n/a</OPTION> <OPTION 
        value=5000>$5,000</OPTION> <OPTION value=10000>$10,000</OPTION> <OPTION 
        value=15000>$15,000</OPTION> <OPTION value=20000>$20,000</OPTION> 
        <OPTION value=25000>$25,000</OPTION></SELECT></FONT></TD></TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD><FONT face=Arial size=2>I can arrange for the local 
      hospital to conduct the surgery pro bono, <B>in addition</B> to serving as 
      host for the following number of families:<BR>(This option requires a 
      "yes" answer to question 4 above)</FONT></TD>
    <TD vAlign=bottom align=left><FONT face=Arial size=2><SELECT 
      size=1 name=HopsitalHostQTY> <OPTION value=0 selected>n/a</OPTION> 
        <OPTION value=1>1</OPTION> <OPTION value=2>2</OPTION> <OPTION 
        value=3>3</OPTION> <OPTION value=4>4</OPTION> <OPTION value=5>5</OPTION> 
        <OPTION value=6>6</OPTION> <OPTION value=7>7</OPTION> <OPTION 
        value=8>8</OPTION> <OPTION value=9>9</OPTION></SELECT></FONT></TD></TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD><FONT face=Arial size=2>I can pay for surgery or arrange 
      for the local hospital to conduct the surgery pro bono for the following 
      number of children:<BR>However, I <B>cannot be the host </B>(the 
      Foundation will use one of the host families to provide housing and pay 
      for travel)</FONT></TD>
    <TD vAlign=bottom align=left><FONT face=Arial size=2><SELECT 
      size=1 name=HospitalQTY> <OPTION value=0 selected>n/a</OPTION> <OPTION 
        value=1>1</OPTION> <OPTION value=2>2</OPTION> <OPTION value=3>3</OPTION> 
        <OPTION value=4>4</OPTION> <OPTION value=5>5</OPTION> <OPTION 
        value=6>6</OPTION> <OPTION value=7>7</OPTION> <OPTION value=8>8</OPTION> 
        <OPTION value=9>9</OPTION></SELECT></FONT></TD></TR>
  <TR>
    <TD bgColor=#cccccc colSpan=3><FONT face=Arial 
      size=2><STRONG>6. Education assistance</STRONG></FONT></TD></TR>
  <TR>
    <TD bgColor=>&nbsp;</TD>
    <TD bgColor=#cccccc colSpan=2><B><FONT face=Arial size=2>Please 
      indicate if you can arrange for any of the following: </FONT></B></TD></TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD><FONT face=Arial size=2>I am prepared to give one or more 
      children from Beslan scholarships to pay for their college education. 
      Please indicate the number of children you can sponsor:<BR>Note: the 
      Foundation will make arrangements to make such scholarships 
      tax-deductible</FONT></TD>
    <TD vAlign=bottom align=left><FONT face=Arial size=2><SELECT 
      size=1 name=ScholarshipQTY> <OPTION value=0 selected>n/a</OPTION> 
        <OPTION value=1>1</OPTION> <OPTION value=2>2</OPTION> <OPTION 
        value=3>3</OPTION> <OPTION value=4>4</OPTION> <OPTION value=5>5</OPTION> 
        <OPTION value=6>6</OPTION> <OPTION value=7>7</OPTION> <OPTION 
        value=8>8</OPTION> <OPTION value=9>9</OPTION></SELECT></FONT></TD></TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD><FONT face=Arial size=2>I am associated with an educational 
      institution which will be willing to give one or more children from Beslan 
      a scholarship to cover all expenses for a 4-year course of 
    studies.</FONT></TD>
    <TD vAlign=bottom align=left width=183>&nbsp;</TD></TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD>
      <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><FONT face=Arial 
      size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Please indicate the name of the 
      institution:</FONT></P></TD>
    <TD vAlign=bottom align=left width=183><TEXTAREA name=UniversityNAME rows=2 cols=20></TEXTAREA></TD></TR>
  <TR>
    <TD><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;</FONT></TD>
    <TD>
      <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">&nbsp;&nbsp;&nbsp; <FONT 
      face=Arial size=2>&nbsp; Please indicate the number of children it can 
      sponsor:</FONT></P></TD>
    <TD vAlign=bottom align=left width=183><FONT face=Arial size=2><SELECT 
      size=1 name=UniversityQTY> <OPTION value=0 selected>n/a</OPTION> <OPTION 
        value=1>1</OPTION> <OPTION value=2>2</OPTION> <OPTION value=3>3</OPTION> 
        <OPTION value=4>4</OPTION> <OPTION value=5>5</OPTION> <OPTION 
        value=6>6</OPTION> <OPTION value=7>7</OPTION> <OPTION value=8>8</OPTION> 
        <OPTION value=9>9</OPTION></SELECT></FONT></TD></TR></TBODY></TABLE></DIV>
<DIV>&nbsp; 
<P><FONT face=Arial>Please provide the following information (all fields are 
required)</FONT></P>
<div id="error"><i><font color="#FF0000">&nbsp</font></i></div>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD class=PPRLabelText width=212 bgColor=#e9e9e9><FONT face=Arial 
      size=2>First Name</FONT></TD>
    <TD width=639 bgColor=#e9e9e9><FONT face=Arial size=2><INPUT 
      class=PPRField  maxLength=64 size=80 name=FirstName 
      autocomplete="OFF"></FONT></TD></TR>
  <TR>
    <TD class=PPRLabelText width=202 bgColor=#e9e9e9><FONT face=Arial 
      size=2>Last Name</FONT></TD>
    <TD width=649 bgColor=#e9e9e9><FONT face=Arial size=2><INPUT 
      class=PPRField  maxLength=64 size=80 name=LastName 
      autocomplete="OFF"></FONT></TD></TR>
  <TR>
    <TD class=PPRLabelText width=202 bgColor=#e9e9e9><FONT face=Arial 
      size=2>Language</FONT></TD>
    <TD width=649 bgColor=#e9e9e9><FONT face=Arial size=2><SELECT 
      name=Language size="1"> <OPTION value=Russian>Russian<OPTION value=Dutch>Dutch<OPTION 
        value=English selected>English<OPTION value=Finnish>Finnish<OPTION 
        value=French>French<OPTION value=German>German<OPTION 
        value=Italian>Italian<OPTION value=Japanese>Japanese<OPTION 
        value=Korean>Korean<OPTION value=Norwegian>Norwegian<OPTION 
        value='Portuguese (Brazil)'>Portuguese (Brazil)<OPTION value=Spanish>Spanish<OPTION 
        value=Swedish>Swedish</OPTION></SELECT><NOSCRIPT></NOSCRIPT> 
      </FONT></TD></TR>
  <TR>
    <TD width=420 bgColor=#e9e9e9><FONT face=Arial size=2>Country</FONT></TD>
    <TD width=649 bgColor=#e9e9e9><FONT face=Arial size=2><SELECT 
        name=Country size="1"> <OPTION id=AF value=Afghanistan>Afghanistan<OPTION id=AL 
        value=Albania>Albania<OPTION id=DZ value=Algeria>Algeria<OPTION id=AS 
        value='American Samoa'>American Samoa<OPTION id=AD value='American Samoa'>Andorra<OPTION id=AO 
        value=Angola>Angola<OPTION id=AI value=Anguilla>Anguilla<OPTION 
        id=AR value=Argentina>Argentina<OPTION id=AM value=Armenia>Armenia<OPTION id=AW 
        value=Aruba>Aruba<OPTION id=AU value=Australia>Australia<OPTION id=AT 
        value=Austria>Austria<OPTION id=AZ value=Azerbaijan>Azerbaijan<OPTION id=BH value=Bahrain>Bahrain<OPTION id=BY 
        value=Belarus>Belarus<OPTION id=BE value=Belgium>Belgium<OPTION id=BZ 
        value=Belize>Belize<OPTION id=BA value='Bosnia and Herzegovina'>Bosnia
        and Herzegovina<OPTION id=BR 
        value=Brazil>Brazil<OPTION id=BG 
        value=Bulgaria>Bulgaria<OPTION id=CA value=Canada>Canada<OPTION 
        id=CL value=Chile>Chile<OPTION id=CN value=China>China<OPTION id=HR value='Croatia (Hrvatska)'>Croatia
        (Hrvatska)<OPTION id=CU 
        value=Cuba>Cuba<OPTION id=CY value=Cyprus>Cyprus<OPTION id=CZ value='Czech Republic'>Czech
        Republic<OPTION id=DK 
        value=Denmark>Denmark<OPTION id=EG 
        value=Egypt>Egypt<OPTION id=EE 
        value=Estonia>Estonia<OPTION id=FI 
        value=Finland>Finland<OPTION id=FR value=France>France<OPTION id=GE 
        value=Georgia>Georgia<OPTION id=DE value=Germany>Germany<OPTION id=GI value=Gibraltar>Gibraltar<OPTION id=GR 
        value=Greece>Greece<OPTION id=GL value=Greenland>Greenland<OPTION id=GD 
        value=Grenada>Grenada<OPTION id=HK 
        value='Hong Kong SAR'>Hong Kong SAR<OPTION id=HU value=Hungary>Hungary<OPTION id=IS 
        value=Iceland>Iceland<OPTION id=IN value=India>India<OPTION id=ID 
        value=Indonesia>Indonesia<OPTION id=IE value=Ireland>Ireland<OPTION id=IL 
        value=Israel>Israel<OPTION id=IT value=Italy>Italy<OPTION id=JP value=Japan>Japan<OPTION id=KZ value=Kazakhstan>Kazakhstan<OPTION id=KR 
        value=Korea>Korea<OPTION id=KG 
        value=Kyrgyzstan>Kyrgyzstan<OPTION id=LV 
        value=Latvia>Latvia<OPTION id=LI value=Liechtenstein>Liechtenstein<OPTION id=LT 
        value=Lithuania>Lithuania<OPTION id=LU value=Luxembourg>Luxembourg<OPTION id=MK value='Macedonia, Former Yugoslav Republic of'>Macedonia,
        Former Yugoslav Republic of<OPTION id=MY value=Malaysia>Malaysia<OPTION id=MT 
        value=Malta>Malta<OPTION id=MD 
        value=Moldova>Moldova<OPTION id=MC value=Monaco>Monaco<OPTION id=MN 
        value=Mongolia>Mongolia<OPTION id=NL 
        value=Netherlands>Netherlands<OPTION 
        id=NC value='New Caledonia'>New Caledonia<OPTION id=NZ value='New Zealand'>New
        Zealand<OPTION id=NO value=Norway>Norway<OPTION id=PL value=Poland>Poland<OPTION id=PT 
        value=Portugal>Portugal<OPTION id=RO 
        value=Romania>Romania<OPTION id=RU value=Russia>Russia<OPTION id=SM value='San Marino'>San
        Marino<OPTION id=SA 
        value='Saudi Arabia'>Saudi Arabia<OPTION id=YU 
        value='Serbia and Montenegro'>Serbia and Montenegro<OPTION id=SK 
        value=Slovakia>Slovakia<OPTION id=SI value=Slovenia>Slovenia<OPTION id=ZA 
        value='South Africa'>South Africa<OPTION id=ES value=Spain>Spain<OPTION id=SE value=Sweden>Sweden<OPTION id=CH 
        value=Switzerland>Switzerland<OPTION id=TJ value=Tajikistan>Tajikistan<OPTION id=TR value=Turkey>Turkey<OPTION id=TM 
        value=Turkmenistan>Turkmenistan<OPTION 
        id=UA value=Ukraine>Ukraine<OPTION id=AE value='United Arab Emirates'>United
        Arab Emirates<OPTION 
        id=UK value='United Kingdom'>United Kingdom<OPTION id=US value='United States' selected>United
        States<OPTION id=UZ value=Uzbekistan>Uzbekistan</SELECT><NOSCRIPT></NOSCRIPT> 
  </FONT></TD></TR>
  <TR>
    <TD class=PPRLabelText width=202 bgColor=#e9e9e9><FONT face=Arial 
      size=2>State</FONT></TD>
    <TD width=649 bgColor=#e9e9e9><LABEL for=Region><FONT face=Arial 
      size=2><SELECT class=PPRField id=Region name=Region size="1"> 
        <OPTION value=n/a selected>[Choose One]<OPTION id=1003 
        value=Alabama>Alabama<OPTION id=1040 value=Alaska>Alaska<OPTION id=1945 
        value=Arizona>Arizona<OPTION id=1951 value=Arkansas>Arkansas<OPTION id=5599 value=California>California<OPTION id=7636 
        value=Colorado>Colorado<OPTION id=7798 value=Connecticut>Connecticut<OPTION id=8831 
        value=Delaware>Delaware<OPTION id=9130 value='District of Columbia'>District
        of Columbia<OPTION id=11032 value=Florida>Florida<OPTION id=12004 
        value=Georgia>Georgia<OPTION id=13656 value=Hawaii>Hawaii<OPTION id=14713 
        value=Idaho>Idaho<OPTION id=14808 value=Illinois>Illinois<OPTION id=14882 
        value=Indiana>Indiana<OPTION id=14987 value=Iowa>Iowa<OPTION id=16121 
        value=Kansas>Kansas<OPTION id=16480 value=Kentucky>Kentucky<OPTION id=19283 
        value=Louisiana>Louisiana<OPTION id=19840 value=Maine>Maine<OPTION id=20487 
        value=Maryland>Maryland<OPTION id=20543 value=Massachusetts>Massachusetts<OPTION 
        id=21196 value=Michigan>Michigan<OPTION id=21412 
        value=Minnesota>Minnesota<OPTION id=21502 value=Mississippi>Mississippi<OPTION 
        id=21512 value=Missouri>Missouri<OPTION id=21789 value=Montana>Montana<OPTION 
        id=22869 value=Nebraska>Nebraska<OPTION id=23035 value=Nevada>Nevada<OPTION 
        id=23097 value='New Hampshire'>New Hampshire<OPTION id=23117 value='New Jersey'>New
        Jersey<OPTION id=23132 value='New Mexico'>New Mexico<OPTION id=23161 
        value='New York'>New York<OPTION id=23611 value='North Carolina'>North
        Carolina<OPTION 
        id=23624 value='North Dakota'>North Dakota<OPTION id=24230 
        value=Ohio>Ohio<OPTION id=24293 value=Oklahoma>Oklahoma<OPTION id=24561 
        value=Oregon>Oregon<OPTION id=25623 value=Pennsylvania>Pennsylvania<OPTION 
        id=27664 value='Rhode Island'>Rhode Island<OPTION id=31410 value='South Carolina'>South
        Carolina<OPTION id=31418 value='South Dakota'>South Dakota<OPTION id=33025 
        value=Tennessee>Tennessee<OPTION id=33145 value=Texas>Texas<OPTION id=34626 
        value=Utah>Utah<OPTION id=35022 value=Vermont>Vermont<OPTION id=35364 
        value=Virginia>Virginia<OPTION id=35841 value=Washington>Washington<OPTION 
        id=36208 value='West Virginia'>West Virginia<OPTION id=36684 
        value=Wisconsin>Wisconsin<OPTION id=36927 
      value=Wyoming>Wyoming</OPTION></SELECT></FONT></LABEL></TD></TR>
  <TR>
    <TD class=PPRLabelText width=202 bgColor=#e9e9e9><FONT face=Arial 
      size=2>Address</FONT></TD>
    <TD width=649 bgColor=#e9e9e9><FONT face=Arial size=2><INPUT 
      class=PPRField  maxLength=64 size=80 name=Street 
      autocomplete="OFF"></FONT></TD></TR>
  <TR>
    <TD class=PPRLabelText width=202 bgColor=#e9e9e9><FONT face=Arial 
      size=2>ZIP Code</FONT></TD>
    <TD width=649 bgColor=#e9e9e9><FONT face=Arial size=2><INPUT 
      class=PPRField  maxLength=15 size=25 name=PostalCode 
      autocomplete="OFF"></FONT></TD></TR>
  <TR>
    <TD class=PPRLabelText width=202 bgColor=#e9e9e9><FONT face=Arial 
      size=2>Phone number</FONT></TD>
    <TD width=649 bgColor=#e9e9e9><FONT face=Arial size=2><INPUT 
      class=PPRField  maxLength=15 size=25 name=PhoneNumber 
      autocomplete="OFF"></FONT></TD></TR>
  <TR>
    <TD class=PPRLabelText width=202 bgColor=#e9e9e9><FONT face=Arial 
      size=2>E-mail address</FONT></TD>
    <TD width=649 bgColor=#e9e9e9><FONT face=Arial size=2><INPUT 
      class=PPRField  maxLength=50 size=80 name=EMail 
      autocomplete="OFF"></FONT></TD></TR>
  <TR>
    <TD class=PPRLabelText width=202 bgColor=#e9e9e9><FONT face=Arial 
      size=2>Comment</FONT></TD>
    <TD class=PPCheckRadio width=649 bgColor=#e9e9e9><TEXTAREA name=Comment rows=4 cols=60></TEXTAREA></TD></TR>
   <TR>
    <TD class=PPRLabelText width=202 bgColor=#e9e9e9><FONT face=Arial 
      size=2>Are you one of our donors?</FONT></TD>
    <TD class=PPCheckRadio width=649 bgColor=#e9e9e9><FONT face=Arial 
      size=2><SELECT class=PPRField name=IsDonor size="1">
<option value="">&nbsp;</option>
   <option value="Y">Yes</option>
        <option value="N">No</option>
        
      </SELECT></FONT></LABEL></TD></TR></TBODY></TABLE></DIV>
<INPUT  type = "hidden" name="stage" value="fill">
      
<P><INPUT type=submit value=Submit name=B1><INPUT type=reset value=Reset name=B2></P>
</FORM>


<?php

}
function process_form() {

	/* Connecting, selecting database */
	require '/home/users/web/b997/moo.moscow/mysql/vars.php';
//	require 'vars.php';
	$link = mysql_connect($dbserver, $dbuser, $dbpassword)
	or die("Could not connect : " . mysql_error());
	mysql_select_db($db) or die("Could not select database");
	mysql_query("SET NAMES 'cp1251' ");
	mysql_query("SET CHARACTER SET cp1251");
	$fn = $_POST['FirstName'];
	$ln = $_POST['LastName'];
	$lng = $_POST['Language'];
	$cnt = $_POST['Country'];
	$rgn = $_POST['Region'];
	$str = $_POST['Street'];
	$pcd = $_POST['PostalCode'];
	$pn = $_POST['PhoneNumber'];
	$em = $_POST['EMail'];
	$comm = $_POST['Comment'];
	$isd = $_POST['IsDonor'];

	$ma = $_POST['MinorAssist'];
	$mqty = $_POST['MinorQTY'];
	$t = $_POST['OneTimeUSD'];
	$tqty = $_POST['OneTimeQTY'];
	$musd = $_POST['MonthlyUSD'];
	$moqty = $_POST['MonthlyQTY'];
	$host = $_POST['HostQTY'];
	$surg = $_POST['SurgeryUSD'];
	$hosphqty = $_POST['HopsitalHostQTY'];
	$hospqty = $_POST['HospitalQTY'];
      $sq = $_POST['ScholarshipQTY'];
	$un = $_POST['UniversityNAME'];
	$uqty = $_POST['UniversityQTY'];


	$query="INSERT INTO VirtualFamily (vf_first_name, vf_last_name, 
	vf_language, vf_country, vf_state, vf_address1, vf_zipcode, vf_phone, vf_email, 
	 vf_minor, vf_minor_number, vf_1time, vf_1time_number, vf_cont, vf_cont_number, 
	vf_host_fmly, vf_med_1, vf_med_2, vf_med_3, vf_ed_1, vf_ed_2, vf_ed_3, vf_comment, vf_isdonor) 
	VALUES('$fn', '$ln', '$lng', '$cnt', '$rgn',  '$str', '$pcd', '$pn', '$em', '$ma', '$mqty', '$t', '$tqty', '$musd',
		'$moqty', '$host',	'$surg', '$hosphqty', '$hospqty', '$sq', '$un', '$uqty', '$comm', '$isd')";
	// echo $query;
$result = mysql_query($query) or die("ERROR: Query failed : " . mysql_error());
 // echo $result;
if ($result) {  return true; }
else { return false;}
/* Closing connection */
mysql_close($link);

}
   					?> 

					</TABLE><!-- END BOTTOM TEXT -->			</td>
		<td class=topbox width=20></td>
	</tr>
</table>
		</td>

		<td></td>

		

	</tr>	
</table>		

<iframe src="foot.frame.html" width=100% scrolling=no frameborder=0 target="_top">

</iframe>
</body>
</html>