<?php
include "ddfuncs/ad2.php";
require('../setClassPath.php');
require_once('db/TransManager.php');
require_once('util/InputHelper.php');

$input = InputHelper::getInstance();
$cookieval      = $input->fullySanitize($_COOKIE['mystic']);
?>
<!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>The Loneliness Quotient Quiz Dating Diversions</title>
<link rel="stylesheet" type="text/css" href="/dd.css">
<link rel="stylesheet" type="text/css" href="/quiz.css">
<script type="text/javascript">
var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-628020-4']);_gaq.push(['_trackPageview']);(function(){var ga=document.createElement('script');ga.type='text/javascript';ga.async=true;ga.src=('https:'==document.location.protocol?'https://ssl':'http://www')+'.google-analytics.com/ga.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(ga,s);})();
</script>
</head>
<body>

<h1>Dating Diversions Loneliness Quotient Quiz, Part 1 of 3</h1>
<h2>Getting to Know You</h2>

<div class="fll" style="width: 600px; border: none;">
<form action="lonequiz2.html" method="post">

<div class="q1">First, you are most accurately described as a....<br><br>
<input type="radio" name="gender" value="smale"> Straight male<br>
<input type="radio" name="gender" value="sfemale"> Straight female<br>
<input type="radio" name="gender" value="gmale"> Gay male<br>
<input type="radio" name="gender" value="gfemale"> Gay female</div>

<div class="q2">What is your current relationship status?<br><br>
<input type="radio" name="status" value="single"> I am single<br>
<input type="radio" name="status" value="relationship"> I am in a steady relationship with someone<br>
<input type="radio" name="status" value="offandon"> I am in an on-again off-again relationship with someone</div>

<div class="q1">Your age is...<br><br>
<input type="radio" name="age" value="teens"> Under 18<br>
<input type="radio" name="age" value="twenties"> Between 18 and 29<br>
<input type="radio" name="age" value="thirties"> Between 30 and 39<br>
<input type="radio" name="age" value="forties"> 40 or over</div>

<div class="q2">How large is your circle of friends?<br><br>
<input type="radio" name="friends" value="none"> I have no friends<br>
<input type="radio" name="friends" value="few"> I have a few friends<br>
<input type="radio" name="friends" value="lots"> I have lots of friends</div>

<div class="q1">How about your family?<br><br>
<input type="radio" name="family" value="largec"> I have a large family that I am close to<br>
<input type="radio" name="family" value="larged"> I have a large family that I am distant from<br>
<input type="radio" name="family" value="smallc"> I have a small family that I am close to<br>
<input type="radio" name="family" value="smalld"> I have a small family that I am distant from<br>
<input type="radio" name="family" value="none"> I pretty much have no family</div>

<div class="q2">If you have taken the <a href="http://www.4degreez.com/misc/personality_disorder_test.mv" target="_new">Personality Disorder Quiz</a>, did you rank highly on any of the following?<br>
(leave blank if you have not taken that quiz OR answer if you know what they mean)<br>
Check any that apply:<br><br>
<input type="checkbox" name="disorder[]" value="paranoid"> Paranoid<br>
<input type="checkbox" name="disorder[]" value="schizoid"> Schizoid<br>
<input type="checkbox" name="disorder[]" value="schizotypal"> Schizotypal<br>
<input type="checkbox" name="disorder[]" value="avoidant"> Avoidant<br>
<input type="checkbox" name="disorder[]" value="dependent"> Dependent</div>

<div class="q1">How are the people in your area?<br><br>
<input type="radio" name="area" value="plenty"> Plenty of "available" people who share my interests<br>
<input type="radio" name="area" value="few"> Few "available" people who share my interests<br>
<input type="radio" name="area" value="no"> Practically no "available" people here who share my interests</div>

<div class="q2">Do you consider yourself religious?<br><br>
<input type="radio" name="religious" value="yes"> Yes<br>
<input type="radio" name="religious" value="little"> A little bit<br>
<input type="radio" name="religious" value="no"> No</div>

<br><input type="submit" value=" Continue to Part 2 ">
</form>
</div>

<div class="fll sm" style="width: 135px; border: none;">
<?php
    $trans = TransManager::getInstance();
    $trans->beginTrans();
    $pdo = $trans->getPDO();
    echo getAd($cookieval, '120x600', 't', $pdo);
    echo '(Clicking the advertisement opens new browser window and does not affect your quiz)<br><br><br><br><br><br><br><br><br><br><br><br>';
    $trans->commit();
    $trans->disconnect();
?>
</div>

</body></html>

