<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Rate My Life Quiz - How Good Is Your Life?</title>
<link rel="stylesheet" type="text/css" href="life.css">
</head>
<body>

<h1>Rate My Life, Part 2</h1>

<?php
if (!$_POST['age'] || $_POST['age'] == 'x' || !$_POST['gender'] || $_POST['gender'] == 'x') {
?>
<p>You did not answer the first two questions, which are mandatory for this quiz.  Please go back 
to Part 1 and select an answer to those questions.  Without answering the questions, the quiz 
cannot generate your scores!</p>
<?php
    exit();
}
?>

<p>Please continue taking the quiz by answering the questions below.  This quiz has only
two parts.  Your results will be calculated on the next and final step.</p>

<div class="spec">
<?php
if ($_POST['enlisted'] == 'y') {
    echo '<a href="http://www.tkqlhce.com/7081y1A719PRXUUZVYPRQSZVYZW" target="_top" onmouseover="window.status=\'http://www.military.com/\';return true;" onmouseout="window.status=\' \';return true;">';
    echo '<img src="http://www.lduhtrp.net/tn83elpdjh24A77C8B2435C8BC9" alt="Use You GI Bill Benefits" border="0" style="margin-left: 115px;"></a>';
}
else if (($_POST['marital'] == 'm' || $_POST['marital'] == 'r') && $_POST['employed'] == 'y' && intval($_POST['age']) > 23) {
    echo '<a href="http://www.jdoqocy.com/rf121ar-xrzEGMJJOKNEGFJFGLIN" target="_blank" onmouseover="window.status=\'http://www.goaheadtours.com/master/destination/mindfiredefault.asp\';return true;" onmouseout="window.status=\' \';return true;">';
    echo '<img src="http://www.lduhtrp.net/m865p59y31NPVSSXTWNPOSOPURW" alt="" border="0"></a>';
}
else if ($_POST['age'] == '17') {
    echo '<div class="super"><div class="note">Advertisement</div>';
    echo 'For Your Cellphone: <a href="http://www.anrdoezrs.net/49116dlurlt8AGDDIEH8A9CGEDGE" target="_blank" onmouseover="window.status=\'http://www.jamster.com\';return true;" onmouseout="window.status=\' \';return true;">Free Ringtone Offer From Jamster!</a><img src="http://www.afcyhf.com/1n104elpdjh24A77C8B2436A87A8" width="4" height="5" border="0">';
    echo '</div>';
}
else if (($_POST['marital'] != 'm' && $_POST['marital'] != 'r') && $_POST['orientation'] != 'g') {
    echo '<div class="super"><div class="note">Advertisement</div>';
    if ($_POST['gender'] == 'f')
        echo '<a href="http://www.tkqlhce.com/m2104zw41w3JLROOTPSJPQROOPM" target="_top" onmouseover="window.status=\'http://www.restaurant.com\';return true;" onmouseout="window.status=\' \';return true;">Save 60% on your next meal</a><br>$25 dining certificates for just $10! <img src="http://www.awltovhc.com/51106jy1qwuFHNKKPLOFLMNKKLI" width="1" height="3" border="0">';
    else
        echo 'Browse Picture Listings: <a href="http://www.anrdoezrs.net/e381vpyvpxCEKHHMILCEDFKLHDE" target="_blank" onmouseover="window.status=\'http://personals.yahoo.com\';return true;" onmouseout="window.status=\' \';return true;">Meet Women at Yahoo! Personals</a><img src="http://www.ftjcfx.com/nj121g04tzxIKQNNSORIKJLQRNJK" width="2" height="3" border="0">';
    echo '</div>';
}
else if ($_POST['marital'] == 'd' || (intval($_POST['age']) > 23 && $_POST['marital'] == 'n')) {
?>
  <a href="http://www.kqzyfj.com/4e66zw41w3JLROOTPSJLKNROLRK" target="_blank" onmouseover="window.status='http://www.ge-dating.com?pid=0';return true;" onmouseout="window.status=' ';return true;">
  <img src="http://www.awltovhc.com/4a111elpdjh24A77C8B2436A74A3" alt="Serious about dating?" border="0"></a>
<?php
}
else {
    echo '<a href="http://www.tkqlhce.com/rm72zw41w3JLROOTPSJLKMSPTSK" target="_blank" onmouseover="window.status=\'http://www.surveynetworks.com/\';return true;" onmouseout="window.status=\' \';return true;">';
    echo '<img src="http://www.tqlkg.com/so83wquiom79FCCHDG798AGDHG8" alt="Win a Gateway Computer or $1,000!" border="0"></a>';
}
?>
</div>

<form action="rate_my_life3.html" method="post">

<p>What is the highest level of education have you completed? 
<select name="education">
  <option value="x">-Please Select-</option>
  <option value="sh">Some High School</option>
  <option value="h">High School or Equivalent</option>
  <option value="sc">Some College</option>
<?php
if (intval($_POST['age']) > 17) {
?>
  <option value="cb">College Bachelors</option>
  <option value="cm">College Masters</option>
<?php
}
if (intval($_POST['age']) > 18) {
?>
  <option value="d">Doctorate</option>
<?php
}
?>
</select></p>

<?php
if ($_POST['gparents'] != 'x' && $_POST['gparents'] != '0') {
?>
<p>How close are you with your grandparent<?= ($_POST['gparents'] == '1' ? '' : 's') ?>? 
<select name="gpclose">
  <option value="x">-Please Select-</option>
  <option value="vc">Very Close</option>
  <option value="sc">Somewhat Close</option>
  <option value="sd">Somewhat Distant</option>
  <option value="vd">Very Distant</option>
</select></p>
<?php
}
?>

<p>What is your living arrangement? 
<select name="living">
  <option value="x">-Please Select-</option>
  <option value="wp">I Live With Parents/Relative</option>
  <option value="d">I Live in a Dorm</option>
  <option value="r">I Rent</option>
  <option value="m">I Own and Pay a Mortgage</option>
  <option value="p">I Own, Mortgage Paid in Full</option>
</select></p>

<?php
if ($_POST['marital'] == 'n' || $_POST['marital'] == 'd') {
?>
<p>What is your relationship status? 
<select name="relationship">
  <option value="x">-Please Select-</option>
  <option value="ss">Single and Searching</option>
  <option value="sns">Single, Not Searching</option>
  <option value="sr">Steady Relationship</option>
  <option value="em">Engaged to be Married</option>
  <option value="da">Dating Around</option>
</select></p>
<?php
}
?>

<p>How often do you exercise? 
<select name="exercise">
  <option value="x">-Please Select-</option>
  <option value="n">Never</option>
  <option value="oc">Occasionally</option>
  <option value="of">Often</option>
  <option value="p">Practically Every Day</option>
</select></p>

<table cellspacing="0">
  <tr>
    <th class="q">How much do you agree with these statements?</th>
    <th>Strongly Agree</th>
    <th>Agree</th>
    <th>No Opinion</th>
    <th>Disagree</th>
    <th>Strongly Disagree</th>
  </tr>
<?php
if ($_POST['employed'] == 'y') {
?>
  <tr>
    <td class="q">"I love my job."</td>
    <td><input type="radio" name="x1" value="1"></td>
    <td><input type="radio" name="x1" value="2"></td>
    <td><input type="radio" name="x1" value="3"></td>
    <td><input type="radio" name="x1" value="4"></td>
    <td><input type="radio" name="x1" value="5"></td>
  </tr>
<?php
}
else if ($_POST['employed'] == 'n') {
?>
  <tr>
    <td class="q">"I'm looking but I can't find a job."</td>
    <td><input type="radio" name="x1" value="1"></td>
    <td><input type="radio" name="x1" value="2"></td>
    <td><input type="radio" name="x1" value="3"></td>
    <td><input type="radio" name="x1" value="4"></td>
    <td><input type="radio" name="x1" value="5"></td>
  </tr>
<?php
}
if ($_POST['marital'] == 'm' || $_POST['marital'] == 'r') {
?>
  <tr>
    <td class="q">"My marriage is in great shape."</td>
    <td><input type="radio" name="x2" value="1"></td>
    <td><input type="radio" name="x2" value="2"></td>
    <td><input type="radio" name="x2" value="3"></td>
    <td><input type="radio" name="x2" value="4"></td>
    <td><input type="radio" name="x2" value="5"></td>
  </tr>
<?php
}
else {
?>
  <tr>
    <td class="q">"My love life is great."</td>
    <td><input type="radio" name="x2" value="1"></td>
    <td><input type="radio" name="x2" value="2"></td>
    <td><input type="radio" name="x2" value="3"></td>
    <td><input type="radio" name="x2" value="4"></td>
    <td><input type="radio" name="x2" value="5"></td>
  </tr>
<?php
}
?>
  <tr>
    <td class="q">"I am optimistic about my future."</td>
    <td><input type="radio" name="x3" value="1"></td>
    <td><input type="radio" name="x3" value="2"></td>
    <td><input type="radio" name="x3" value="3"></td>
    <td><input type="radio" name="x3" value="4"></td>
    <td><input type="radio" name="x3" value="5"></td>
  </tr>
  <tr>
    <td class="q">"My financial situation is stable."</td>
    <td><input type="radio" name="x4" value="1"></td>
    <td><input type="radio" name="x4" value="2"></td>
    <td><input type="radio" name="x4" value="3"></td>
    <td><input type="radio" name="x4" value="4"></td>
    <td><input type="radio" name="x4" value="5"></td>
  </tr>
  <tr>
    <td class="q">"I am highly self-confident."</td>
    <td><input type="radio" name="x5" value="1"></td>
    <td><input type="radio" name="x5" value="2"></td>
    <td><input type="radio" name="x5" value="3"></td>
    <td><input type="radio" name="x5" value="4"></td>
    <td><input type="radio" name="x5" value="5"></td>
  </tr>
  <tr>
    <td class="q">"I am happy with my physical appearance."</td>
    <td><input type="radio" name="x6" value="1"></td>
    <td><input type="radio" name="x6" value="2"></td>
    <td><input type="radio" name="x6" value="3"></td>
    <td><input type="radio" name="x6" value="4"></td>
    <td><input type="radio" name="x6" value="5"></td>
  </tr>
  <tr>
    <td class="q">"I can cope well with a crisis."</td>
    <td><input type="radio" name="x7" value="1"></td>
    <td><input type="radio" name="x7" value="2"></td>
    <td><input type="radio" name="x7" value="3"></td>
    <td><input type="radio" name="x7" value="4"></td>
    <td><input type="radio" name="x7" value="5"></td>
  </tr>
  <tr>
    <td class="q">"I live in a nice neighborhood."</td>
    <td><input type="radio" name="x8" value="1"></td>
    <td><input type="radio" name="x8" value="2"></td>
    <td><input type="radio" name="x8" value="3"></td>
    <td><input type="radio" name="x8" value="4"></td>
    <td><input type="radio" name="x8" value="5"></td>
  </tr>
  <tr>
    <td class="q">"I get enough sleep at night."</td>
    <td><input type="radio" name="x9" value="1"></td>
    <td><input type="radio" name="x9" value="2"></td>
    <td><input type="radio" name="x9" value="3"></td>
    <td><input type="radio" name="x9" value="4"></td>
    <td><input type="radio" name="x9" value="5"></td>
  </tr>
  <tr>
    <th class="q mid">&nbsp;</th>
    <th class="mid">Strongly Agree</th>
    <th class="mid">Agree</th>
    <th class="mid">No Opinion</th>
    <th class="mid">Disagree</th>
    <th class="mid">Strongly Disagree</th>
  </tr>
  <tr>
    <td class="q">"I have very little stress."</td>
    <td><input type="radio" name="x10" value="1"></td>
    <td><input type="radio" name="x10" value="2"></td>
    <td><input type="radio" name="x10" value="3"></td>
    <td><input type="radio" name="x10" value="4"></td>
    <td><input type="radio" name="x10" value="5"></td>
  </tr>
  <tr>
    <td class="q">"I have enjoyable hobbies."</td>
    <td><input type="radio" name="x11" value="1"></td>
    <td><input type="radio" name="x11" value="2"></td>
    <td><input type="radio" name="x11" value="3"></td>
    <td><input type="radio" name="x11" value="4"></td>
    <td><input type="radio" name="x11" value="5"></td>
  </tr>
  <tr>
    <td class="q">"There is more good than bad in the world."</td>
    <td><input type="radio" name="x12" value="1"></td>
    <td><input type="radio" name="x12" value="2"></td>
    <td><input type="radio" name="x12" value="3"></td>
    <td><input type="radio" name="x12" value="4"></td>
    <td><input type="radio" name="x12" value="5"></td>
  </tr>
<?php
if ($_POST['religion'] != 'x' && $_POST['religion'] != 'at' && $_POST['religion'] != 'ag') {
?>
  <tr>
    <td class="q">"My spiritual faith is unconflicted and brings me peace."</td>
    <td><input type="radio" name="x13" value="1"></td>
    <td><input type="radio" name="x13" value="2"></td>
    <td><input type="radio" name="x13" value="3"></td>
    <td><input type="radio" name="x13" value="4"></td>
    <td><input type="radio" name="x13" value="5"></td>
  </tr>
<?php
}
else if ($_POST['religion'] == 'ag') {
?>
  <tr>
    <td class="q">"My lack of religion doesn't bother me."</td>
    <td><input type="radio" name="x13" value="1"></td>
    <td><input type="radio" name="x13" value="2"></td>
    <td><input type="radio" name="x13" value="3"></td>
    <td><input type="radio" name="x13" value="4"></td>
    <td><input type="radio" name="x13" value="5"></td>
  </tr>
<?php
}
?>
  <tr>
    <td class="q">"I can depend on my immediate family."</td>
    <td><input type="radio" name="x14" value="1"></td>
    <td><input type="radio" name="x14" value="2"></td>
    <td><input type="radio" name="x14" value="3"></td>
    <td><input type="radio" name="x14" value="4"></td>
    <td><input type="radio" name="x14" value="5"></td>
  </tr>
<?php
if ($_POST['orientation'] != 'x' && $_POST['orientation'] != 's') {
?>
  <tr>
    <td class="q">"I am open and comfortable with my sexual orientation."</td>
    <td><input type="radio" name="x15" value="1"></td>
    <td><input type="radio" name="x15" value="2"></td>
    <td><input type="radio" name="x15" value="3"></td>
    <td><input type="radio" name="x15" value="4"></td>
    <td><input type="radio" name="x15" value="5"></td>
  </tr>
<?php
}
?>
  <tr>
    <td class="q">"My bills are always paid on time."</td>
    <td><input type="radio" name="x16" value="1"></td>
    <td><input type="radio" name="x16" value="2"></td>
    <td><input type="radio" name="x16" value="3"></td>
    <td><input type="radio" name="x16" value="4"></td>
    <td><input type="radio" name="x16" value="5"></td>
  </tr>
  <tr>
    <td class="q">"I can easily focus on the task at hand."</td>
    <td><input type="radio" name="x17" value="1"></td>
    <td><input type="radio" name="x17" value="2"></td>
    <td><input type="radio" name="x17" value="3"></td>
    <td><input type="radio" name="x17" value="4"></td>
    <td><input type="radio" name="x17" value="5"></td>
  </tr>
  <tr>
    <td class="q">"I've had suicidal thoughts lately."</td>
    <td><input type="radio" name="x18" value="1"></td>
    <td><input type="radio" name="x18" value="2"></td>
    <td><input type="radio" name="x18" value="3"></td>
    <td><input type="radio" name="x18" value="4"></td>
    <td><input type="radio" name="x18" value="5"></td>
  </tr>
  <tr>
    <td class="q">"I follow a strong moral code."</td>
    <td><input type="radio" name="x19" value="1"></td>
    <td><input type="radio" name="x19" value="2"></td>
    <td><input type="radio" name="x19" value="3"></td>
    <td><input type="radio" name="x19" value="4"></td>
    <td><input type="radio" name="x19" value="5"></td>
  </tr>
</table>

<?php
if ($_POST['enlisted'] == 'y') {
?>
<p>You are in the armed services. Are you currently deployed?<br>
<input type="radio" name="deployed" value="y"> Yes<br>
<input type="radio" name="deployed" value="n"> No</p>
<?php
}
?>

<p>Did/do you get good grades in school?<br>
<input type="radio" name="grades" value="y"> Yes<br>
<input type="radio" name="grades" value="n"> No</p>

<p>Are you currently taking career-oriented classes?<br>
<input type="radio" name="career" value="y"> Yes<br>
<input type="radio" name="career" value="n"> No</p>

<p>Do you believe everything happens for a reason?<br>
<input type="radio" name="reason" value="y"> Yes<br>
<input type="radio" name="reason" value="n"> No</p>

<div style="width: 637px; padding: 0px; margin: 0px;">
<?php
if ($_POST['age'] == '17' && $_POST['gender'] == 'm') {
?>
<div style="float: right; width: 100px; padding: 0px; margin: 0px;  margin-top: 5px;">
<a href="http://www.anrdoezrs.net/aq115biroiq57DAAFBE5769F97AA?url=http%3A%2F%2Fwww.jamster.com%2Fjiw%2Fgo%2Fcwp%2F%3Fsearch%3Dskull%26amp%3Bdisplay%3Ddirect_link&cjsku=215061099" target="_blank" onmouseover="window.status='http://www.jamster.com';return true;" onmouseout="window.status=' ';return true;">
<img src="http://jamster.com/storage/view/299/0/av/AvW_SKULLWbmp.jpg" border="0" alt="Skull"><br>
Download cool backgrounds to your phone</a>
<img src="http://www.ftjcfx.com/45103xjnbhf02855A690214A4255" height="1" width="1" border="0">
</div>
<p style="width: 510px;">
<?php
}
else if ($_POST['age'] == '17' && $_POST['gender'] == 'f') {
?>
<div style="float: right; width: 100px; padding: 0px; margin: 0px;  margin-top: 5px;">
<a href="http://www.dpbolvw.net/3j77iqzwqyDFLIINJMDFEHNHFII?url=http%3A%2F%2Fwww.jamster.com%2Fjiw%2Fgo%2Fcwp%2F%3Fsearch%3Dteddy%2520kitten%26amp%3Bdisplay%3Ddirect_link&cjsku=215060714" target="_blank" onmouseover="window.status='http://www.jamster.com/dl/sleeping_kitten';return true;" onmouseout="window.status=' ';return true;">
<img src="http://jamster.com/storage/view/299/0/mo/mobib_CRA147Wbmp.jpg" border="0" alt="Teddy Kitten"><br>
Download cool backgrounds to your phone</a> 
<img src="http://www.lduhtrp.net/3s70c37w1-LNTQQVRULNMPVPNQQ" height="4" width="3" border="0">
</div>
<p style="width: 510px;">
<?php
}
else if ($_POST['enlisted'] == 'y') {
?>
<div style="float: right; width: 120px; padding: 0px; margin: 0px;  margin-top: 5px;">
<a href="http://www.anrdoezrs.net/7o70shqnhp46C99EAD4657EADDC" target="_blank" onmouseover="window.status='http://www.military.com/';return true;" onmouseout="window.status=' ';return true;">
<img src="http://www.awltovhc.com/90103g04tzxIKQNNSORIKJLSORRQ" alt="$50,000 for School" border="0"></a>
</div>

<p style="width: 485px;">
<?php
}
else {
?>
<div style="float: right; width: 120px; padding: 0px; margin: 0px;  margin-top: 5px;">
<a href="http://www.dpbolvw.net/o0104shqnhp46C99EAD465858CAE" target="_blank" onmouseover="window.status='http://www.real.com';return true;" onmouseout="window.status=' ';return true;">
<img src="http://www.awltovhc.com/n2117fz2rxvGIOLLQMPGIHKHKOMQ" alt="Real Networks" border="0"></a>
</div>

<p style="width: 490px;">
<?php
}
?>
Check all adjectives that apply to your parents/guardians when you were a child:<br>
<input type="checkbox" name="parents[]" value="l"> Loving<br>
<input type="checkbox" name="parents[]" value="di"> Distant<br>
<input type="checkbox" name="parents[]" value="de"> Dependable<br>
<input type="checkbox" name="parents[]" value="s"> Supportive<br>
<input type="checkbox" name="parents[]" value="h"> Hurtful<br>
<input type="checkbox" name="parents[]" value="a"> Absent<br>
<input type="checkbox" name="parents[]" value="f"> Frightening<br>
<input type="checkbox" name="parents[]" value="p"> Permissive</p>
</div>

<p>Check all of the following that you think you have:<br>
<input type="checkbox" name="psych[]" value="h"> Hypochondria<br>
<input type="checkbox" name="psych[]" value="i"> Insomnia<br>
<input type="checkbox" name="psych[]" value="o"> Obsessive-Compulsive Disorder<br>
<input type="checkbox" name="psych[]" value="p"> Panic Attacks<br>
<input type="checkbox" name="psych[]" value="d"> Depression<br>
<input type="checkbox" name="psych[]" value="l"> Loneliness<br>
<input type="checkbox" name="psych[]" value="e"> Eating Disorder</p>

<p>Check any that would apply to you:<br>
<input type="checkbox" name="apply[]" value="m"> I could run a marathon<br>
<input type="checkbox" name="apply[]" value="l"> I read great literature<br>
<input type="checkbox" name="apply[]" value="h"> I am able to quote from a holy text<br>
<input type="checkbox" name="apply[]" value="c"> I give to charity<br>
<input type="checkbox" name="apply[]" value="f"> I have an amazing best friend<br>
<input type="checkbox" name="apply[]" value="u"> I take time to unclutter my mind<br>
<input type="checkbox" name="apply[]" value="n"> I commune with nature</p>

<input type="submit" value=" Rate My Life! ">

  <input type="hidden" name="age" value="<?= $_POST['age'] ?>">
  <input type="hidden" name="gender" value="<?= $_POST['gender'] ?>">
  <input type="hidden" name="orientation" value="<?= $_POST['orientation'] ?>">
  <input type="hidden" name="gparents" value="<?= $_POST['gparents'] ?>">
  <input type="hidden" name="children" value="<?= $_POST['children'] ?>">
  <input type="hidden" name="marital" value="<?= $_POST['marital'] ?>">
  <input type="hidden" name="siblings" value="<?= $_POST['siblings'] ?>">
  <input type="hidden" name="friends" value="<?= $_POST['friends'] ?>">
  <input type="hidden" name="religion" value="<?= $_POST['religion'] ?>">
  <input type="hidden" name="fitness" value="<?= $_POST['fitness'] ?>">
  <input type="hidden" name="died" value="<?= $_POST['died'] ?>">
  <input type="hidden" name="trauma" value="<?= $_POST['trauma'] ?>">
  <input type="hidden" name="prison" value="<?= $_POST['prison'] ?>">
  <input type="hidden" name="travel" value="<?= $_POST['travel'] ?>">
  <input type="hidden" name="ill" value="<?= $_POST['ill'] ?>">
  <input type="hidden" name="chronic" value="<?= $_POST['chronic'] ?>">
  <input type="hidden" name="disabled" value="<?= $_POST['disabled'] ?>">
  <input type="hidden" name="employed" value="<?= $_POST['employed'] ?>">
  <input type="hidden" name="enlisted" value="<?= $_POST['enlisted'] ?>">
  <input type="hidden" name="pollution" value="<?= $_POST['pollution'] ?>">
  <input type="hidden" name="fruits" value="<?= $_POST['fruits'] ?>">
  <input type="hidden" name="finance" value="<?= $_POST['finance'] ?>">
  <input type="hidden" name="character" value="<?= $_POST['character'] ?>">
  <input type="hidden" name="desire" value="<?= $_POST['desire'] ?>">
<?php
$tmp = $_POST['pet'];
for ($i = 0; $i < count($tmp); $i++)
    echo '<input type="hidden" name="pet[]" value="'. $tmp[$i] .'">' ."\r\n";
$tmp = $_POST['gifted'];
for ($i = 0; $i < count($tmp); $i++)
    echo '<input type="hidden" name="gifted[]" value="'. $tmp[$i] .'">' ."\r\n";
$tmp = $_POST['addict'];
for ($i = 0; $i < count($tmp); $i++)
    echo '<input type="hidden" name="addict[]" value="'. $tmp[$i] .'">' ."\r\n";
$tmp = $_POST['sense'];
for ($i = 0; $i < count($tmp); $i++)
    echo '<input type="hidden" name="sense[]" value="'. $tmp[$i] .'">' ."\r\n";
?>
  <input type="hidden" name="ms" value="<?= $_POST['ms'] ?>">

</form>
<br><br>
View the <a href="/privacy.html">Privacy Policy</a>
</body></html>
