403Webshell
Server IP : 10.200.247.200  /  Your IP : 216.73.217.19
Web Server : Apache
System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64
User : jeremy ( 1001)
PHP Version : 8.4.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/usa_sites/usafundingapplications.ai/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/usa_sites/usafundingapplications.ai/application_v4b.php
<?php 
require_once($_SERVER['DOCUMENT_ROOT'].'/inc/php_header.php');

$categories = get_categories();
//$business_questions = get_business_questions();
$granttype = $_GET['apptype'];

?>
<?php include($_SERVER['DOCUMENT_ROOT'].'/v4/header.php'); ?>
<?php include($_SERVER['DOCUMENT_ROOT'].'/v4/sidebar4.php'); ?>
<div class="main">
    	<div class="main_">
<script type="text/javascript">
	$(document).ready( function() {
		$('.subcategory,.subtext,#education_questions,#business_questions').hide().find('input,select,textarea').attr('disabled','disabled');
		$('input[name=category_id]').click( function() {
			var show_class = $(this).attr('class'); 
	    	var subcat_elements = $('.subcategory[class~='+show_class+']'); 
	
	    	$('.subcategory').hide().find('input,select,textarea').attr('disabled', 'disabled'); 

	    	if(subcat_elements.length > 0) {
				$('#subcategories').show(); 
				subcat_elements.show().find('input,select,textarea').removeAttr('disabled'); 
	    	} else {
				$('#subcategories').hide().find('input,select,textarea').attr('disabled', 'disabled');
	    	}

	    	var granttype = this.className;
			$('#granttype_input').val(granttype);
			
			var amount_needed = $('select[name=app_amount_needed]').val();
			if(granttype == 'business') {
				$('#amount_needed').html('<select name="app_amount_needed"><option selected>Select</option><option value="$500 - $10,000">$500 - $10,000</option><option value="$10,000 - $25,000">$10,000 - $25,000</option><option value="$25,000 - $50,000">$25,000 - $50,000</option><option value="$50,000 - $100,000">$50,000 - $100,000</option><option value="$100,000 - $250,000">$100,000 - $250,000</option><option value="$250,000 - $500,000">$250,000 - $500,000</option><option value="$500,000 - $1,000,000">$500,000 - $1,000,000</option><option value="$1,000,000 +">$1,000,000 +</option></select>');
				$('#business_questions').show('slow').find('input,select,textarea').removeAttr('disabled');
			} else {
				$('#amount_needed').html('<select name="app_amount_needed"><option selected>Select</option><option value="$500 - $10,000">$500 - $10,000</option><option value="$10,000 - $25,000">$10,000 - $25,000</option><option value="$25,000 - $50,000">$25,000 - $50,000</option><option value="$50,000 - $100,000">$50,000 - $100,000</option><option value="$100,000 or More">$100,000 or More</option></select>');
				$('#business_questions').hide('slow').find('input,select,textarea').attr('disabled','disabled');
			}
			
			/*if(granttype == 'education') {
				$('#education_questions').show().find('input,select,textarea').removeAttr('disabled');
			} else {
				$('#education_questions').hide().find('input,select,textarea').attr('disabled','disabled');
			}*/
			/*if(granttype == 'personal') {
				$('#disability_questions').show().find('input,select,textarea').removeAttr('disabled');
			} else {
				$('#disability_questions').hide().find('input,select,textarea').attr('disabled','disabled');
			}*/
		});
		<?php
		/*foreach($education_questions['subquestions'] as $slug=>$data) {
			echo "$('.".$slug."_sub').hide().find('input,select,textarea').attr('disabled','disabled');";
			echo "$('#".$slug."_yes').click(function() {
				$('.".$slug."_sub').show().find('input,select,textarea').removeAttr('disabled');
			});";
			echo "$('#".$slug."_no').click(function() {
				$('.".$slug."_sub').hide().find('input,select,textarea').attr('disabled','disabled');
			});";
			
		}*/
		/*foreach($disability_questions['subquestions'] as $slug=>$data) {
			echo "$('.".$slug."_sub').hide().find('input,select,textarea').attr('disabled','disabled');";
			echo "$('#".$slug."_yes').click(function() {
				$('.".$slug."_sub').slideDown().find('input,select,textarea').removeAttr('disabled');
			});";
			echo "$('#".$slug."_no').click(function() {
				$('.".$slug."_sub').slideUp().find('input,select,textarea').attr('disabled','disabled');
			});";
			
		}*/
		if(!empty($_REQUEST['category_id'])) {
			echo "$('input:radio[name=category_id]').filter(function() { return $(this).val()=='{$_REQUEST['category_id']}'; }).click();\n";
			echo "$('input:radio[name=category_id]').not(':checked').each(function() { $(this).parents('tr:first').hide(); });";
		} elseif($_REQUEST['apptype']) {
			echo "$('input:radio.".$_REQUEST['apptype']."').click();";
			echo "$('input:radio[name=category_id]').not(':checked').each(function() { $(this).parents('tr:first').hide(); });";
		}
	?>
	
	});

	// Create an associative array of 'pretty name' values
	var prettynames = {
						category_id:"Funding Category",
						cc_fname:"First Name",
						cc_lname:"Last Name",
						cc_addr:"Address",
						cc_city:"City",
						cc_state:"State",
						cc_zip:"Zip",
						cc_phonearea:"Phone Number Area Code",
						cc_phoneprefix:"Phone Number Prefix",
						cc_phoneextension:"Phone Number Ending",
						phone_full:"Phone Number",
						cc_email:"Email Address",
						app_gender:"Gender",
						app_citizenship:"Citizenship",
						app_age:"Your age",
						app_amount_needed:"The amount needed",
						app_usedescription:"Describe what you will use the money for",
						app_uniqueness:"Uniqueness",
						employment_status:"Employment Status",
						ethnicity:"Ethnicity",
						diploma:"Do you have a high school diploma or GED?",
						online_business:"Would you like to start an online business to make money while you go to school if we could help pay for your training?",
						own_business:"Own a Business",
						living_trust:"Living Trust",
						serious_scale:"In a scale of 1-10 how serious are you about getting a degree online?",
						college:"Have you gone to college?",
						degree:"Do you have a degree?",
						willing_second_degree:"Are you willing to get a second degree in business?",
						have_computer:"Do you have access to a computer for taking the online classes and working on your business?",
		
						/*applied_ssd:"Have you ever applied for Social Security Disability?",
						currently_applying:"If yes, \"Are you currently receiving Social Security benefits?\"",
						denied_ssd:"Have you been denied for Social Security Disability?",
						stopped_work:"Have you stopped working because of a disability?",
						why_cant_work:"If yes, \"Why can't you work right now?\"",
						out_of_work_12_months:"Do you expect to be out of work for at least 12 months?",
						treatment:"Are you currently receiving treatment from a doctor?",
						worked_5_years:"Have you worked approximately five of the last ten years?",
						have_attorney:"Do you have an attorney helping you with this case?"*/
						};
						
// Utility function that returns true if a string contains only
// whitespace characters
// Taken from "Javascript: The Definitive Guide" pg. 264
function isblank(s)
{
	for (var i=0; i < s.length; i++)
	{
		var c = s.charAt(i);
		if ((c!=' ') && (c != '\n') && (c != '')) 
		{
			return false;
		}
	}
	return true;
}

// Credit Card Validation Javascript
// copyright 12th May 2003, by Stephen Chapman, Felgall Pty Ltd

// You have permission to copy and use this javascript provided that
// the content of the script is not changed in any way.

function validateCreditCard(s) {

// remove non-numerics
var v = "0123456789";
var w = "";
for (i=0; i < s.length; i++) {
x = s.charAt(i);
if (v.indexOf(x,0) != -1)
w += x;
}
// validate number
j = w.length / 2;
if (j < 6.5 || j > 8 || j == 7) return false;
k = Math.floor(j);
m = Math.ceil(j) - k;
c = 0;
for (i=0; i<k; i++) {
a = w.charAt(i*2+m) * 2;
c += a > 9 ? Math.floor(a/10 + a%10) : a;
}
for (i=0; i<k+m; i++) c += w.charAt(i*2+1-m) * 1;
return (c%10 == 0);
}

function verify(f) {
	// Loop through each element of the form and validate each item
	//
	// Set the parameters for each field to be valid
	// If a field doesn't have any modifiers it is assumed to be
	// a text field that can not be blank.

	var msg;
	var empty_fields = "";
	var errors = "";
	var required_fields = ['category_id','app_amount_needed','cc_fname','cc_lname','cc_zip','cc_email','phone_full','cc_addr','app_usedescription','app_uniqueness','cc_city','cc_state','app_age','app_gender'];
	$(f).find('input,tel,textarea,select,number').each(function()
	{
		//only check for required fields
		var element = $(this)[0];
		var is_required = required_fields.indexOf(element.name);
		if(is_required=='-1') {
			//Not Required
		} else {
			//Required
			if($(element).is(':hidden')) {
				//Ignore
			}
			else if((element.name == 'cc_email')) {
				if(/(.+)@(.+){2,}\.(.+){2,}/.test(element.value)) {
					//valid email
				} else {
					errors += "- Please enter a valid email address\n";
				}
			}
			else if ((element.name == 'phone_full')) {
				var real_phone = element.value;
				real_phone = real_phone.replace(/[^0-9]/g,'');
				if(real_phone.length==10) {
					//valid phone
				} else {
					errors += "- Please enter a valid phone number\n";
				}
			}
			else if ((element.name == 'cc_zip')) {
				var real_phone = element.value;
				real_phone = real_phone.replace(/[^0-9]/g,'');
				if(real_phone.length==5) {
					//valid phone
				} else {
					empty_fields += "\n        Zip Code";
				}
			}
			else if ((element.type == 'text' || element.type == 'textarea') && (element.name != 'granttype_other'))
			{
				if ( (element.value == null || element.value == "") || isblank(element.value) )
				{
					empty_fields += "\n        " + prettynames[element.name];
				}
				else
				{
					if (element.numeric)
					{
						var v = parseFloat(element.value);
						if (isNaN(v))
						{
							errors +="- The field " + prettynames[element.name] + " must be a number\n";
						}
					}
					if ( (element.requiredlength > 0) && (element.value.length != element.requiredlength) )
					{
						errors += "- The field " + prettynames[element.name] + " must be " + element.requiredlength + " digits long\n";
					}
				}
			}
			else if (element.type == 'select-one')
			{
				// The first option, option[0] can not be selected
				if ( (element.value == null || element.value == "" || element.selectedIndex == 0) || isblank(element.value) )
				{
					empty_fields += "\n        " + prettynames[element.name];
				}
			}
			else if (element.type == 'radio')
			{
				if (!$('[name='+element.name+']').filter(':checked').val() && empty_fields.indexOf(prettynames[element.name]) == -1)
				{
					empty_fields += "\n        " + prettynames[element.name];
				}
			}
		}
	});
	if (!empty_fields && !errors) { return true; }

	msg		 = "__________________________________\n\n";
	msg		+= "The form was not submitted because of the following error(s).\n";
	msg		+= "Please correct these error(s) and re-submit.\n";
	msg		+= "__________________________________\n\n";

	if (empty_fields)
	{
		msg += "- The following required field(s) are empty:" + empty_fields + "\n";
		if (errors) { msg += "\n"; }
	}
	msg += errors;
	alert(msg);
	return false;
}

function checkZip(zip,me) {
	zip = zip.replace(/[^0-9]/g,'');
	if(zip.length==5) {
		var str = 'zip='+encodeURIComponent(zip);
		$.ajax
		({
			cache: false,
			type: "POST",
			dataType:"json",
			data: str,
			url: "/php/ZipToCity.php",	
			success: function(data)
			{
				if(!data.error) {
					$('[name=cc_city]').val(data.city);
					$('[name=cc_state]').val(data.state);
				}
			},error: function(jqXHR, textStatus, errorThrown) {
			}
		});	
	}
}
$(document).ready(function(){
	$('input[name=phone_full]').formatter({
	  'pattern': '({{999}}) {{999}}-{{9999}}',
	  'persistent': false
	});
});
</script>

<style>
<!--
body	{margin:0px auto;background-color:#FFFFFF}
body table	{margin:0px auto}

.header	{font:bold 10pt verdana}

.gray	{width:100px;background-color:#dbd7d6;text-align:center}
.white	{width:590px;background-color:#ffffff;text-align:left;font:8pt verdana;padding-top:10px}

#base	{list-style-type:none;text-align:center;margin:0px auto}
#base li	{display:inline;padding:4px;font:7.5pt/120% verdana}
#base a:link, #base a:visited	{color:#000000;text-decoration:none}
#base a:hover, #base a:active	{color:#666666;text-decoration:underline}

#white	{color:#fff}

.questions		{width:580px;color:#000;margin-bottom:10px; padding: 8px;}
.questions input	{font: 8pt verdana;display:inline;margin:1px 3px;color:#000;background-color:#f8f8f8}
.questions select	{font: 8pt verdana;margin:1px 3px;color:#000;background-color:#f8f8f8}

.q		{font:bold 8pt verdana;}
.a		{font:normal 8pt verdana;}
.s		{font:normal 7pt verdana;}

.gray img	{margin:5px}
.white p	{padding-left:10px}
.white img	{padding:0px 0px 5px 10px;border:0px}

table span	{font:bold 8pt verdana;color:#000}

ol	{margin-left:40px}

.grant_category	{ margin-bottom:15px; width:95% }
.grant_category .txt {cursor:pointer; border-bottom:1px dotted #333333; margin-bottom:5px}
.grant_category .img {background-repeat:no-repeat; background-position:0px 2px; padding-left:50px; height:41px !important}
.grant_category .col {width:33%}
.grant_category .hrd {font-weight:bold; text-transform:uppercase;}
.grant_category .hrd span  {font-weight:normal; text-transform:none; font-style:italic}

table#main-categories td { border-top:1px dotted #333333; padding:7px 0; } 
table#main-categories td.first { border-top:none; } 
.category { }
.subcategory { }
.grant_category input { margin:0; }
.grant_category label { font-weight: normal; text-transform: uppercase; cursor: pointer; }
.grant_category p { font-size: 9px; margin-left:24px; }
.questions td.q, .questions td.a { float:left; display:table-cell; width:47%; }
input, select, textarea { font-size: 16px !important; }
-->
</style>
<link href="responsive.css" rel="stylesheet" type="text/css" />

            	<h1>USA Grant Applications Registration Form</h1>
				<p><i>The information you enter below is confidential and is only made available to a USA Grant Applications 
				Specialist. It is used to help the USA Grant Research team to find new funding opportunities for you.</i></p>
				<p class="header">Step 1 of 3:  Tell us about <u>You</u> and <u>Your Funding Needs</u></p>
            	
            	<form action="/order.php" method="post" name="application" target="_top" onSubmit="return verify(this);">
				<table cellpadding="2" cellspacing="0" class="questions">
					<tr>
						<td class="q">First Name:</td>
						<td class="a"><input type="text" name="cc_fname" value="<?= $_REQUEST['cc_fname'];?>" required pattern="[a-zA-Z']+" title="Please use only letters"></td>
						<td class="q">Last Name:</td>
						<td class="a"><input type="text" name="cc_lname" value="<?= $_REQUEST['cc_lname'];?>" required pattern="[a-zA-Z']+" title="Please use only letters"></td>
					</tr>
					<tr>
						<td class="q">Street Address:</td>
						<td class="a" colspan="3"><input type="text" name="cc_addr" value="<?= $_REQUEST['cc_addr'];?>"></td>
					</tr>
					<tr>
                    	<td class="q">Zip:</td>
                    	<td class="a"><input type="tel" name="cc_zip" maxlength="5" id="id-cc-zip" onkeyup="checkZip($(this).val(),this);" value="<?= $_REQUEST['cc_zip'];?>"></td>
                    </tr>
					<tr>
                    	<td class="q">City:</td>
                   	  <td class="a" colspan="3"><input type="text" name="cc_city" value="<?= $_REQUEST['cc_city'];?>"></td>
                    </tr>
                	<tr>
                    	<td class="q">State:</td>
                   	  	<td class="a" colspan="3">
                   	  		<select name="cc_state"> 
                   	  			<option selected>Select...</option>
		                        <option value="AK" <?= ($_REQUEST['cc_state']=='AK') ? 'selected' : '';?>>Alaska</option>
		                        <option value="AL" <?= ($_REQUEST['cc_state']=='AL') ? 'selected' : '';?>>Alabama</option>
		                        <option value="AR" <?= ($_REQUEST['cc_state']=='AR') ? 'selected' : '';?>>Arkansas</option>
		                        <option value="AZ" <?= ($_REQUEST['cc_state']=='AZ') ? 'selected' : '';?>>Arizona</option>
		                        <option value="CA" <?= ($_REQUEST['cc_state']=='CA') ? 'selected' : '';?>>California</option>
		                        <option value="CO" <?= ($_REQUEST['cc_state']=='CO') ? 'selected' : '';?>>Colorado</option>
		                        <option value="CT" <?= ($_REQUEST['cc_state']=='CT') ? 'selected' : '';?>>Connecticut</option>
		                        <option value="DC" <?= ($_REQUEST['cc_state']=='DC') ? 'selected' : '';?>>District of Columbia</option>
		                        <option value="DE" <?= ($_REQUEST['cc_state']=='DE') ? 'selected' : '';?>>Delaware</option>
		                        <option value="FL" <?= ($_REQUEST['cc_state']=='FL') ? 'selected' : '';?>>Florida</option>
		                        <option value="GA" <?= ($_REQUEST['cc_state']=='GA') ? 'selected' : '';?>>Georgia</option>
		                        <option value="HI" <?= ($_REQUEST['cc_state']=='HI') ? 'selected' : '';?>>Hawaii</option>
		                        <option value="IA" <?= ($_REQUEST['cc_state']=='IA') ? 'selected' : '';?>>Iowa</option>
		                        <option value="ID" <?= ($_REQUEST['cc_state']=='ID') ? 'selected' : '';?>>Idaho</option>
		                        <option value="IL" <?= ($_REQUEST['cc_state']=='IL') ? 'selected' : '';?>>Illinois</option>
		                        <option value="IN" <?= ($_REQUEST['cc_state']=='IN') ? 'selected' : '';?>>Indiana</option>
		                        <option value="KS" <?= ($_REQUEST['cc_state']=='KS') ? 'selected' : '';?>>Kansas</option>
		                        <option value="KY" <?= ($_REQUEST['cc_state']=='KY') ? 'selected' : '';?>>Kentucky</option>
		                        <option value="LA" <?= ($_REQUEST['cc_state']=='LA') ? 'selected' : '';?>>Louisiana</option>
		                        <option value="MA" <?= ($_REQUEST['cc_state']=='MA') ? 'selected' : '';?>>Massachusetts</option>
		                        <option value="MD" <?= ($_REQUEST['cc_state']=='MD') ? 'selected' : '';?>>Maryland</option>
		                        <option value="ME" <?= ($_REQUEST['cc_state']=='ME') ? 'selected' : '';?>>Maine</option>
		                        <option value="MI" <?= ($_REQUEST['cc_state']=='MI') ? 'selected' : '';?>>Michigan</option>
		                        <option value="MN" <?= ($_REQUEST['cc_state']=='MN') ? 'selected' : '';?>>Minnesota</option>
		                        <option value="MO" <?= ($_REQUEST['cc_state']=='MO') ? 'selected' : '';?>>Missouri</option>
		                        <option value="MS" <?= ($_REQUEST['cc_state']=='MS') ? 'selected' : '';?>>Mississippi</option>
		                        <option value="MT" <?= ($_REQUEST['cc_state']=='MT') ? 'selected' : '';?>>Montana</option>
		                        <option value="NC" <?= ($_REQUEST['cc_state']=='NC') ? 'selected' : '';?>>North Carolina</option>
		                        <option value="ND" <?= ($_REQUEST['cc_state']=='ND') ? 'selected' : '';?>>North Dakota</option>
		                        <option value="NE" <?= ($_REQUEST['cc_state']=='NE') ? 'selected' : '';?>>Nebraska</option>
		                        <option value="NH" <?= ($_REQUEST['cc_state']=='NH') ? 'selected' : '';?>>New Hampshire</option>
		                        <option value="NJ" <?= ($_REQUEST['cc_state']=='NJ') ? 'selected' : '';?>>New Jersey</option>
		                        <option value="NM" <?= ($_REQUEST['cc_state']=='NM') ? 'selected' : '';?>>New Mexico</option>
		                        <option value="NV" <?= ($_REQUEST['cc_state']=='NV') ? 'selected' : '';?>>Nevada</option>
		                        <option value="NY" <?= ($_REQUEST['cc_state']=='NY') ? 'selected' : '';?>>New York</option>
		                        <option value="OH" <?= ($_REQUEST['cc_state']=='OH') ? 'selected' : '';?>>Ohio</option>
		                        <option value="OK" <?= ($_REQUEST['cc_state']=='OK') ? 'selected' : '';?>>Oklahoma</option>
		                        <option value="OR" <?= ($_REQUEST['cc_state']=='OR') ? 'selected' : '';?>>Oregon</option>
		                        <option value="PA" <?= ($_REQUEST['cc_state']=='PA') ? 'selected' : '';?>>Pennsylvania</option>
		                        <option value="PR" <?= ($_REQUEST['cc_state']=='PR') ? 'selected' : '';?>>Puerto Rico</option>
		                        <option value="RI" <?= ($_REQUEST['cc_state']=='RI') ? 'selected' : '';?>>Rhode Island</option>
		                        <option value="SC" <?= ($_REQUEST['cc_state']=='SC') ? 'selected' : '';?>>South Carolina</option>
		                        <option value="SD" <?= ($_REQUEST['cc_state']=='SD') ? 'selected' : '';?>>South Dakota</option>
		                        <option value="TN" <?= ($_REQUEST['cc_state']=='TN') ? 'selected' : '';?>>Tennessee</option>
		                        <option value="TX" <?= ($_REQUEST['cc_state']=='TX') ? 'selected' : '';?>>Texas</option>
		                        <option value="UT" <?= ($_REQUEST['cc_state']=='UT') ? 'selected' : '';?>>Utah</option>
		                        <option value="VA" <?= ($_REQUEST['cc_state']=='VA') ? 'selected' : '';?>>Virginia</option>
		                        <option value="VT" <?= ($_REQUEST['cc_state']=='VT') ? 'selected' : '';?>>Vermont</option>
		                        <option value="WA" <?= ($_REQUEST['cc_state']=='WA') ? 'selected' : '';?>>Washington</option>
		                        <option value="WI" <?= ($_REQUEST['cc_state']=='WI') ? 'selected' : '';?>>Wisconsin</option>
		                        <option value="WV" <?= ($_REQUEST['cc_state']=='WV') ? 'selected' : '';?>>West Virginia</option>
		                        <option value="WY" <?= ($_REQUEST['cc_state']=='WY') ? 'selected' : '';?>>Wyoming</option>
                    		</select>
                    	</td>
                    </tr>
					<tr>
						<td class="q">Gender:</td>
						<td class="a">
							<select name="app_gender">
								<option selected>Select...</option>
								<option value="M" <?= ($_REQUEST['app_gender']=='M') ? 'selected' : '';?>>Male</option>
								<option value="F" <?= ($_REQUEST['app_gender']=='F') ? 'selected' : '';?>>Female</option>
							</select>
						</td>
						<td class="q">What is<br />your age?</td>
						<td class="a">
							<select name="app_age">
								<option selected>Select...</option>
								<option value="18-25" <?= ($_REQUEST['app_age']=='18-25') ? 'selected' : '';?>>18-25</option>
								<option value="26-34" <?= ($_REQUEST['app_age']=='26-34') ? 'selected' : '';?>>26-34</option>
								<option value="35-49" <?= ($_REQUEST['app_age']=='35-49') ? 'selected' : '';?>>35-49</option>
								<option value="50-65" <?= ($_REQUEST['app_age']=='50-65') ? 'selected' : '';?>>50-65</option>
								<option value="66-80" <?= ($_REQUEST['app_age']=='66-80') ? 'selected' : '';?>>66-80</option>
								<option value="80+" <?= ($_REQUEST['app_age']=='80+') ? 'selected' : '';?>>80 +</option>
							</select>
						</td>
					</tr>
					<tr>
						<td class="q">Citizenship</td>
						<td class="a" colspan="3">
							<select name="app_citizenship">
								<option value="" <?= (isset($_REQUEST['app_citizenship']) && $_REQUEST['app_citizenship']=='') ? 'selected="selected"' : null;?>>Select</option>
								<option value="citizen" <?= (isset($_REQUEST['app_citizenship']) && $_REQUEST['app_citizenship']=='citizen') ? 'selected="selected"' : null;?>>U.S. Citizen</option>
								<option value="resident" <?= (isset($_REQUEST['app_citizenship']) && $_REQUEST['app_citizenship']=='resident') ? 'selected="selected"' : null;?>>Resident Alien</option>
								<option value="greencard" <?= (isset($_REQUEST['app_citizenship']) && $_REQUEST['app_citizenship']=='greencard') ? 'selected="selected"' : null;?>>Green Card Holder</option>
								<option value="permanent" <?= (isset($_REQUEST['app_citizenship']) && $_REQUEST['app_citizenship']=='permanent') ? 'selected="selected"' : null;?>>Permanent Resident</option>
								<option value="unsure" <?= (isset($_REQUEST['app_citizenship']) && $_REQUEST['app_citizenship']=='unsure') ? 'selected="selected"' : null;?>>Not Sure</option>
							</select>
						</td>
					</tr>
					<tr>
						<td class="q">Ethnicity</td>
						<td class="a" colspan="3">
							<select name="ethnicity">
								<option value="">Select</option>
								<option value="White">White</option>
								<option value="Black or African American">Black or African American</option>
								<option value="Native American">Native American</option>
								<option value="Asian American">Asian American</option>
								<option value="Native Hawaiian">Native Hawaiian</option>
								<option value="Pacific Islander">Pacific Islander</option>
								<option value="Middle Eastern American">Middle Eastern American</option>
								<option value="Hispanic">Hispanic</option>
								<option value="Latino">Latino</option>
								<option value="Multi-racial">Multi-racial</option>
								<option value="Other">Other</option>
							</select>
						</td>
					</tr>
					<tr>
						<td class="q">Employment Status</td>
						<td class="a" colspan="3">
							<select name="employment_status">
								<option value="">Select</option>
								<option value="Employed Full-time">Employed Full-time</option>
								<option value="Employed Part-time">Employed Part-time</option>
								<option value="Self Employed">Self Employed</option>
								<option value="Unemployed">Unemployed</option>
								<option value="Retired">Retired</option>
								<option value="Collecting Social Security">Collecting Social Security</option>
								<option value="Disabled">Disabled</option>
							</select>
						</td>
                	<tr>
                    	<td class="q">Day Phone:</td>
                        <td class="a phoneBox"><input type="tel" name="phone_full" value="<?= $_REQUEST['phone_full'];?>" /></td>
                    </tr>
				</table>
											
				<table cellpadding="2" cellspacing="0" class="questions">
					<tr>
						<td colspan="2" class="q" style="width:auto;float:none;">Choose which funding area you are interested in</td>
					</tr>
					<tr>
						<td>
						<? 
						if(!empty($categories['categories'])) { 
							?><table id="main-categories" cellpadding="2" cellspacing="0" class="grant_category"><? 
								$first = true; 
								foreach ($categories['categories'] as $id => $cat) { ?>
									<tr>
										<td <?= ($first) ? 'class="first"' : null; $first = false; ?>>
											<input type="radio" name="category_id" id="<?=$id.'-'.$cat['slug'];?>" class="<?=$cat['slug'];?>" value="<?=$id;?>" />
											<label for="<?=$id.'-'.$cat['slug'];?>" title="<?=$cat['name'];?><?=($cat['description'] != '') ? ' - '.$cat['description'] : null;?>"><?=$cat['name'];?></label>
											<?=($cat['description'] != '') ? '<p>'.$cat['description'].'</p>' : null;?>
											<?php if($cat['slug']=='personal') { ?>
												<p class="subtext" style="clear:left;padding-top: 5px;margin: 0px 10px;font-size: 10px;font-style: italic;">*There are many Personal Assistance Programs that you can apply for as long as you meet the criteria, however there no Funding to pay off your credit cards or debt.</p>
											<?php }?>
										</td>
									</tr>
								<?
								}
							?></table><?
						}
						if(!empty($categories['subcategories'])) { ?>
							<table id="subcategories" class="grant_category" cellpadding="2" cellspacing="0" style="display:none;">
								<tr>
									<td class="hrd" >Suggested Sub-Categories <span>(Check all that apply)</span></td>
								</tr>
								<tr><td style="padding-top:5px;"><?
									foreach ($categories['subcategories'] as $sub_id => $subcat) { ?>
										<div class="subcategory <?=implode(' ', $subcat['categories']);?>">
											<input id="<?=$sub_id.'-'.$subcat['slug'];?>" type="checkbox" name="subcategories[]" value="<?=$subcat['id'];?>" <?= (!empty($_REQUEST['subcategories']) && in_array($subcat['id'],$_REQUEST['subcategories'])) ? 'checked' : '';?> />	
											<label for="<?=$sub_id.'-'.$subcat['slug'];?>"><?=$subcat['name'];?></label>
										</div>
										<?
									} ?>
								</td></tr>
							</table><?
						}
						?>
						</td>
					</tr>
				</table>
				
				<?php /*
				<table cellpadding="0" cellspacing="0" border="0" class="form_table" id="business_questions">
				<tr>
					<td>What are the major financial needs for your business? <i>(Check all that apply)</i></td>
				</tr>
				<?php foreach($business_questions['questions'] as $slug=>$data) {?>
					<tr>
						<td>
							<label><input type="checkbox" value="1" name="<?= $slug;?>" id="<?= $slug;?>_yes" style="vertical-align:middle;" <?= (!empty($_REQUEST[$slug])) ? 'checked' : '';?> /> <?= $data['name'];?></label>
						</td>
					</tr>
				<?php } ?>
					<tr>
						<td>
							Do you own your own business?
							<label style="display:inline-block;width:auto;">Yes <input type="radio" name="own_business" value="yes" style="vertical-align:middle;" onclick="$('.has_business_show').show();" /></label>
							<label style="display:inline-block;width:auto;">No <input type="radio" name="own_business" value="no" style="vertical-align:middle;" onclick="$('.has_business_show').hide();" /></label>
						</td>
					</tr>
					<tr class="has_business_show" style="display:none;">
						<td>
							<label>What is the Name of your Business? <input type="text" name="name_of_business" value="" /></label>
						</td>
					</tr>
					<tr class="has_business_show" style="display:none;">
						<td>
							Do you have a website?
							<label style="display:inline-block;width:auto;">Yes <input type="radio" name="has_website" value="yes" style="vertical-align:middle;" onclick="$('.has_website_show').show();" /></label>
							<label style="display:inline-block;width:auto;">No <input type="radio" name="has_website" value="no" style="vertical-align:middle;" onclick="$('.has_website_show').hide();" /></label>
						</td>
					</tr>
					<tr class="has_website_show" style="display:none;">
						<td>
							<label>What is your website? <input type="text" name="website" value="" /></label>
						</td>
					</tr>
					<tr class="has_business_show" style="display:none;">
						<td>
							<label>
								How is your business structured?
								<select name="business_structured" style="vertical-align:middle;">
									<option value=""></option>
									<option value="Sole Proprietor">Sole Proprietor</option>
									<option value="Corporation">Corporation</option>
									<option value="LLC">LLC</option>
								</select>
							</label>
						</td>
					</tr>
					<tr class="has_business_show" style="display:none;">
						<td>
							<label>How many employees do you have? <input type="number" name="how_many_employees" value="" /></label>
						</td>
					</tr>
					<tr class="has_business_show" style="display:none;">
						<td>
							<label>What is the Total Gross of your business? <small><i>(Total money received before any deductions like rent, cost of goods, and taxes)</i></small> <input type="number" name="annual_revenue" value="" /></label>
						</td>
					</tr>
					<tr class="has_business_show" style="display:none;">
						<td>
							Have you or your business every been a defendant in a lawsuit?
							<label style="display:inline-block;width:auto;">Yes <input type="radio" name="defendant_lawsuit" value="yes" style="vertical-align:middle;" /></label>
							<label style="display:inline-block;width:auto;">No <input type="radio" name="defendant_lawsuit" value="no" style="vertical-align:middle;" /></label>
						</td>
					</tr>
					<tr class="has_business_show" style="display:none;">
						<td>
							Do you feel if you were sued, you are properly protected so you wouldn't lose any of your assets like your home, cars, building, etc?
							<label style="display:inline-block;width:auto;">Yes <input type="radio" name="sued_protected" value="yes" style="vertical-align:middle;" /></label>
							<label style="display:inline-block;width:auto;">No <input type="radio" name="sued_protected" value="no" style="vertical-align:middle;" /></label>
						</td>
					</tr>
					<tr class="has_business_show" style="display:none;">
						<td>
							Are you putting money into the business?
							<label style="display:inline-block;width:auto;">Yes <input type="radio" name="putting_money_into_business" value="yes" style="vertical-align:middle;" onclick="$('.putting_money_into_business_show').show();" /></label>
							<label style="display:inline-block;width:auto;">No <input type="radio" name="putting_money_into_business" value="no" style="vertical-align:middle;" onclick="$('.putting_money_into_business_show').hide();" /></label>
						</td>
					</tr>
					<tr class="putting_money_into_business_show" style="display:none;">
						<td>
							<label>How much? <input type="number" name="putting_money_how_much" placeholder="$0.00" /></label>
						</td>
					</tr>
					<tr>
						<td>
							Do you have a living trust?
							<label style="display:inline-block;width:auto;">Yes <input type="radio" name="living_trust" value="yes" style="vertical-align:middle;" /></label>
							<label style="display:inline-block;width:auto;">No <input type="radio" name="living_trust" value="no" style="vertical-align:middle;" /></label>
						</td>
					</tr>
				</table>
				*/?>
				
				<?php /*
				<div id="bankruptcy_questions">
					<div style="padding:5px 0px;">
						Have you filed a prior bankruptcy:<br />
						<label>
							<input type="radio" name="filed_bankruptcy" value="Yes" <?= $_REQUEST['filed_bankruptcy']=='Yes' ? 'checked' : '';?> onclick="if($(this).is(':checked')) { $('#filed_bankruptcy_yes').show(); } else { $('#filed_bankruptcy_yes').hide(); }" style="vertical-align:middle;margin:0px;" />
							Yes
						</label>
						<label>
							<input type="radio" name="filed_bankruptcy" value="No" <?= $_REQUEST['filed_bankruptcy']=='No' ? 'checked' : '';?> onclick="if($(this).is(':checked')) { $('#filed_bankruptcy_yes').hide(); } else { $('#filed_bankruptcy_yes').show(); }" style="vertical-align:middle;margin:0px;" />
							No
						</label>
					</div>
					<div id="filed_bankruptcy_yes" style="padding-left:40px;display:<?= $_REQUEST['filed_bankruptcy']=='Yes' ? 'block' : 'none';?>;">
						<div style="padding:5px 0px;">
							What chapter was it?<br />
							<label>
								<input type="radio" name="what_chapter" value="Chapter 7" <?= $_REQUEST['what_chapter']=='Chapter 7' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
								Chapter 7
							</label>
							<label>
								<input type="radio" name="what_chapter" value="Chapter 13" <?= $_REQUEST['what_chapter']=='Chapter 13' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
								Chapter 13
							</label>
						</div>
						<div style="padding:5px 0px;">
							<label>
								Date Filed:
								<input type="date" name="date_filed" value="<?= $_REQUEST['date_filed'];?>" />
							</label>
						</div>
						<div style="padding:5px 0px;">
							Result:<br />
							<label>
								<input type="radio" name="bankruptcy_result" value="Dismissed" <?= $_REQUEST['bankruptcy_result']=='Dismissed' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
								Dismissed
							</label>
							<label>
								<input type="radio" name="bankruptcy_result" value="Discharged" <?= $_REQUEST['bankruptcy_result']=='Discharged' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
								Discharged
							</label>
							<label>
								<input type="radio" name="bankruptcy_result" value="In the middle of the process" <?= $_REQUEST['bankruptcy_result']=='In the middle of the process' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
								In the middle of the process
							</label>
						</div>
					</div>
					<div style="padding:5px 0px;">
						Have you considered bankruptcy?<br />
						<label>
							<input type="radio" name="considered_bankruptcy" value="Yes" <?= $_REQUEST['considered_bankruptcy']=='Yes' ? 'checked' : '';?> onclick="if($(this).is(':checked')) { $('#considered_bankruptcy_yes').show(); } else { $('#considered_bankruptcy_yes').hide(); }" style="vertical-align:middle;margin:0px;" />
							Yes
						</label>
						<label>
							<input type="radio" name="considered_bankruptcy" value="No" <?= $_REQUEST['considered_bankruptcy']=='No' ? 'checked' : '';?> onclick="if($(this).is(':checked')) { $('#considered_bankruptcy_yes').hide(); } else { $('#considered_bankruptcy_yes').show(); }" style="vertical-align:middle;margin:0px;" />
							No
						</label>
					</div>
					<div id="considered_bankruptcy_yes" style="padding-left:40px;display:<?= $_REQUEST['considered_bankruptcy']=='Yes' ? 'block' : 'none';?>;">
						<div style="padding:5px 0px;">
							<label>
								Why?
								<textarea name="considered_why"><?= $_REQUEST['considered_why'];?></textarea>
							</label>
						</div>
					</div>
					<div style="padding:5px 0px;">
						Are you behind on ANY of your payments/bills including credit cards, car loans, mortgage, or tax payments?<br />
						<label>
							<input type="radio" name="behind_on_bills" value="Yes" <?= $_REQUEST['behind_on_bills']=='Yes' ? 'checked' : '';?> onclick="if($(this).is(':checked')) { $('#behind_on_bills_yes').show(); } else { $('#behind_on_bills_yes').hide(); }" style="vertical-align:middle;margin:0px;" />
							Yes
						</label>
						<label>
							<input type="radio" name="behind_on_bills" value="No" <?= $_REQUEST['behind_on_bills']=='No' ? 'checked' : '';?> onclick="if($(this).is(':checked')) { $('#behind_on_bills_yes').hide(); } else { $('#behind_on_bills_yes').show(); }" style="vertical-align:middle;margin:0px;" />
							No
						</label>
					</div>
					<div id="behind_on_bills_yes" style="padding-left:40px;display:<?= $_REQUEST['behind_on_bills']=='Yes' ? 'block' : 'none';?>;">
						<div style="padding:5px 0px;">
							<label>
								How far behind are you?<br />
								<label>
									<input type="radio" name="how_far_behind" value="1 Month" <?= $_REQUEST['how_far_behind']=='1 Month' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
									1 Month
								</label>
								<label>
									<input type="radio" name="how_far_behind" value="2-3 Months" <?= $_REQUEST['how_far_behind']=='2-3 Months' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
									2-3 Months
								</label>
								<label>
									<input type="radio" name="how_far_behind" value="3-6 Months" <?= $_REQUEST['how_far_behind']=='3-6 Months' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
									3-6 Months
								</label>
								<label>
									<input type="radio" name="how_far_behind" value="Over 6 Months" <?= $_REQUEST['how_far_behind']=='Over 6 Months' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
									Over 6 Months
								</label>
							</label>
						</div>
						<div style="padding:5px 0px;">
							<label>
								What is the approximate amount of your total unsecured debt <i>(credit cards)</i>:<br />
								<input type="number" name="amount_of_unsecured_debt" value="<?= $_REQUEST['amount_of_unsecured_debt'];?>" />
							</label>
						</div>
						<div style="padding:5px 0px;">
							Do you owe past due taxes?<br />
							<label>
								<input type="radio" name="owe_backtaxes" value="Yes" <?= $_REQUEST['owe_backtaxes']=='Yes' ? 'checked' : '';?> onclick="if($(this).is(':checked')) { $('#owe_backtaxes_yes').show(); } else { $('#owe_backtaxes_yes').hide(); }" style="vertical-align:middle;margin:0px;" />
								Yes
							</label>
							<label>
								<input type="radio" name="owe_backtaxes" value="No" <?= $_REQUEST['owe_backtaxes']=='No' ? 'checked' : '';?> onclick="if($(this).is(':checked')) { $('#owe_backtaxes_yes').hide(); } else { $('#owe_backtaxes_yes').show(); }" style="vertical-align:middle;margin:0px;" />
								No
							</label>
						</div>
						<div id="owe_backtaxes_yes" style="padding-left:40px;display:<?= $_REQUEST['owe_backtaxes']=='Yes' ? 'block' : 'none';?>;">
							<?php if(!empty($_REQUEST['bankruptcy_which_year'])) { ?>
							<?php foreach($_REQUEST['bankruptcy_which_year'] as $k=>$v) { ?>
							<div>
								<label>
									Which Tax Year?
									<input type="number" name="bankruptcy_which_year[]" value="<?= $v;?>" />
								</label><br />
								<label>
									Amount Owed?
									<input type="number" name="bankruptcy_amount_owed[]" value="<?= $_REQUEST['bankruptcy_amount_owed'][$k];?>" />
								</label>
							</div>
							<?php } ?>
							<?php } ?>
							<div onclick="$(this).clone().insertAfter(this); $(this).attr('onclick','');">
								<label>
									Which Tax Year?
									<input type="number" name="bankruptcy_which_year[]" />
								</label><br />
								<label>
									Amount Owed?
									<input type="number" name="bankruptcy_amount_owed[]" />
								</label>
							</div>
						</div>
						<div style="padding:5px 0px;">
							Are your wages being garnished or are any garnishments pending?<br />
							<label>
								<input type="radio" name="wages_garnished" value="Yes" <?= $_REQUEST['wages_garnished']=='Yes' ? 'checked' : '';?> onclick="if($(this).is(':checked')) { $('#wages_garnished_yes').show(); } else { $('#wages_garnished_yes').hide(); }" style="vertical-align:middle;margin:0px;" />
								Yes
							</label>
							<label>
								<input type="radio" name="wages_garnished" value="No" <?= $_REQUEST['wages_garnished']=='No' ? 'checked' : '';?> onclick="if($(this).is(':checked')) { $('#wages_garnished_yes').hide(); } else { $('#wages_garnished_yes').show(); }" style="vertical-align:middle;margin:0px;" />
								No
							</label>
						</div>
						<div id="wages_garnished_yes" style="padding-left:40px;display:<?= $_REQUEST['wages_garnished']=='Yes' ? 'block' : 'none';?>;">
							<div style="padding:5px 0px;">
								<label>
									How much do you have in garnishments?
									<input type="number" name="garnished_amount" value="<?= $_REQUEST['garnished_amount'];?>" />
								</label>
							</div>
						</div>
						<div style="padding:5px 0px;">
							Do you have any judgments?<br />
							<label>
								<input type="radio" name="have_judgements" value="Yes" <?= $_REQUEST['have_judgements']=='Yes' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
								Yes
							</label>
							<label>
								<input type="radio" name="have_judgements" value="No" <?= $_REQUEST['have_judgements']=='No' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
								No
							</label>
						</div>
						<div style="padding:5px 0px;">
							Are you being harassed by creditors?<br />
							<label>
								<input type="radio" name="harrased_by_creditors" value="Yes" <?= $_REQUEST['harrased_by_creditors']=='Yes' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
								Yes
							</label>
							<label>
								<input type="radio" name="harrased_by_creditors" value="No" <?= $_REQUEST['harrased_by_creditors']=='No' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
								No
							</label>
						</div>
						<div style="padding:5px 0px;">
							Do you Own or Rent your Home?<br />
							<label>
								<input type="radio" name="rent_or_own" value="Own" <?= $_REQUEST['rent_or_own']=='Own' ? 'checked' : '';?> onclick="if($(this).is(':checked')) { $('#own_yes').show(); } else { $('#own_yes').hide(); }" style="vertical-align:middle;margin:0px;" />
								Own
							</label>
							<label>
								<input type="radio" name="rent_or_own" value="Rent" <?= $_REQUEST['rent_or_own']=='Rent' ? 'checked' : '';?> onclick="if($(this).is(':checked')) { $('#own_yes').hide(); } else { $('#own_yes').show(); }" style="vertical-align:middle;margin:0px;" />
								Rent
							</label>
						</div>
						<div id="own_yes" style="padding-left:40px;display:<?= $_REQUEST['rent_or_own']=='Own' ? 'block' : 'none';?>;">
							<div style="padding:5px 0px;">
								<label>
									Current assessed value your home:<br />
									<input type="number" name="value_of_home" value="<?= $_REQUEST['value_of_home'];?>" />
								</label>
							</div>
							<div style="padding:5px 0px;">
								Are you delinquent on your mortgage?<br />
								<label>
									<input type="radio" name="deliquent_on_mortgage" value="Yes" <?= $_REQUEST['deliquent_on_mortgage']=='Yes' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
									Yes
								</label>
								<label>
									<input type="radio" name="deliquent_on_mortgage" value="No" <?= $_REQUEST['deliquent_on_mortgage']=='No' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
									No
								</label>
							</div>
						</div>
						<div style="padding:5px 0px;">
							<label>
								How many dependants are in your home?<br />
								<input type="number" name="dependents_in_home" value="<?= $_REQUEST['dependents_in_home'];?>" />
							</label>
						</div>
						<div style="padding:5px 0px;">
							<label>
								What is your average monthly household income?<br />
								<input type="number" name="average_monthly_income" value="<?= $_REQUEST['average_monthly_income'];?>" />
							</label>
						</div>
						<div style="padding:5px 0px;">
							Any other income contributed to the household?<br />
							<label>
								<input type="radio" name="other_income_sources" value="Yes" <?= $_REQUEST['other_income_sources']=='Yes' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
								Yes
							</label>
							<label>
								<input type="radio" name="other_income_sources" value="No" <?= $_REQUEST['other_income_sources']=='No' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
								No
							</label>
						</div>
						<div style="padding:5px 0px;">
							Are you currently in the middle of a lawsuit/injury settlement?<br />
							<label>
								<input type="radio" name="in_lawsuit" value="Own" <?= $_REQUEST['in_lawsuit']=='Yes' ? 'checked' : '';?> onclick="if($(this).is(':checked')) { $('#in_lawsuit_yes').show(); } else { $('#in_lawsuit_yes').hide(); }" style="vertical-align:middle;margin:0px;" />
								Yes
							</label>
							<label>
								<input type="radio" name="in_lawsuit" value="Rent" <?= $_REQUEST['in_lawsuit']=='No' ? 'checked' : '';?> onclick="if($(this).is(':checked')) { $('#in_lawsuit_yes').hide(); } else { $('#in_lawsuit_yes').show(); }" style="vertical-align:middle;margin:0px;" />
								No
							</label>
						</div>
						<div id="in_lawsuit_yes" style="padding-left:40px;display:<?= $_REQUEST['in_lawsuit']=='Yes' ? 'block' : 'none';?>;">
							<div style="padding:5px 0px;">
								<label>
									Please Explain:
									<textarea name="lawsuit_explain"><?= $_REQUEST['lawsuit_explain'];?></textarea>
								</label>
							</div>
						</div>
						<div style="padding:5px 0px;">
							Would you be open to visiting with a debt relief consultant to help you improve your situation?<br />
							<label>
								<input type="radio" name="open_to_debt_relief" value="Yes" <?= $_REQUEST['open_to_debt_relief']=='Yes' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
								Yes
							</label>
							<label>
								<input type="radio" name="open_to_debt_relief" value="No" <?= $_REQUEST['open_to_debt_relief']=='No' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
								No
							</label>
						</div>
					</div>
				</div>
				*/?>
				
				<div id="credit_questions" style="padding:0px 5px;">
							<div style="padding:5px 0px;">
								How would you describe your credit?<br />
								<label>
									<input type="radio" name="describe_credit" value="Excellent" <?= $_REQUEST['describe_credit']=='Excellent' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
									Excellent
								</label>
								<label>
									<input type="radio" name="describe_credit" value="Good" <?= $_REQUEST['describe_credit']=='Good' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
									Good
								</label>
								<label>
									<input type="radio" name="describe_credit" value="Fair" <?= $_REQUEST['describe_credit']=='Fair' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
									Fair
								</label>
								<label>
									<input type="radio" name="describe_credit" value="Poor" <?= $_REQUEST['describe_credit']=='Poor' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
									Poor
								</label>
							</div>
							<div style="padding:5px 0px;">
								Do you want to improve your credit?<br />
								<label>
									<input type="radio" name="want_to_improve_credit" value="Yes" <?= $_REQUEST['want_to_improve_credit']=='Yes' ? 'checked' : '';?> onclick="if($(this).is(':checked')) { $('#want_to_improve_credit_yes').show(); } else { $('#want_to_improve_credit_yes').hide(); }" style="vertical-align:middle;margin:0px;" />
									Yes
								</label>
								<label>
									<input type="radio" name="want_to_improve_credit" value="No" <?= $_REQUEST['want_to_improve_credit']=='No' ? 'checked' : '';?> onclick="if($(this).is(':checked')) { $('#want_to_improve_credit_yes').hide(); } else { $('#want_to_improve_credit_yes').show(); }" style="vertical-align:middle;margin:0px;" />
									No
								</label>
							</div>
							<div id="want_to_improve_credit_yes" style="padding-left:40px;display:<?= $_REQUEST['want_to_improve_credit']=='Yes' ? 'block' : 'none';?>;">
								<div style="padding:5px 0px;">
									Have you been turned down for a loan in the last 60 days?<br />
									<label>
										<input type="radio" name="turned_down_for_loan" value="Yes" <?= $_REQUEST['turned_down_for_loan']=='Yes' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
										Yes
									</label>
									<label>
										<input type="radio" name="turned_down_for_loan" value="No" <?= $_REQUEST['turned_down_for_loan']=='No' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
										No
									</label>
								</div>
								<div style="padding:5px 0px;">
									What is your main goal or reason to have good credit?<br />
									<label>
										<input type="radio" name="main_goal_for_good_credit" value="Buy a home" <?= $_REQUEST['main_goal_for_good_credit']=='Buy a home' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
										Buy a home
									</label>
									<label>
										<input type="radio" name="main_goal_for_good_credit" value="Buy a car" <?= $_REQUEST['main_goal_for_good_credit']=='Buy a car' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
										Buy a car
									</label>
									<label>
										<input type="radio" name="main_goal_for_good_credit" value="Other" <?= $_REQUEST['main_goal_for_good_credit']=='Other' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
										Other
									</label>
								</div>
								<div style="padding:5px 0px;">
									What is your time frame for accomplishing your goal?<br />
									<label>
										<input type="radio" name="goal_time_frame" value="1-3 Months" <?= $_REQUEST['goal_time_frame']=='1-3 Months' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
										1-3 Months
									</label>
									<label>
										<input type="radio" name="goal_time_frame" value="4-6 Months" <?= $_REQUEST['goal_time_frame']=='4-6 Months' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
										4-6 Months
									</label>
									<label>
										<input type="radio" name="goal_time_frame" value="6-12 Months" <?= $_REQUEST['goal_time_frame']=='6-12 Months' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
										6-12 Months
									</label>
								</div>
								<div style="padding:5px 0px;">
									How serious are you about fixing your credit?<br />
									<div>
										<label>
											<input type="radio" name="how_serious" value="Very interested!" <?= $_REQUEST['how_serious']=='Very interested!' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
											<strong>Very interested!</strong> I need to make a large purchase soon and need to improve it.
										</label>
									</div>
									<div>
										<label>
											<input type="radio" name="how_serious" value="No Rush." <?= $_REQUEST['how_serious']=='No Rush.' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
											<strong>No Rush.</strong> I'm just looking for options.
										</label>
									</div>
								</div>
								<div style="padding:5px 0px;">
									Would you like to talk to a specialist to improve your credit?<br />
									<label>
										<input type="radio" name="talk_to_specialist" value="Yes" <?= $_REQUEST['talk_to_specialist']=='Yes' ? 'checked' : '';?> onclick="$('#talk_to_specialist_yes').show();" style="vertical-align:middle;margin:0px;" />
										Yes
									</label>
									<label>
										<input type="radio" name="talk_to_specialist" value="No" <?= $_REQUEST['talk_to_specialist']=='No' ? 'checked' : '';?> onclick="$('#talk_to_specialist_yes').hide();" style="vertical-align:middle;margin:0px;" />
										No
									</label>
								</div>
								<div id="talk_to_specialist_yes" style="display:<?= $_REQUEST['talk_to_specialist']=='Yes' ? 'block' : 'none';?>;">
									<div style="padding:5px 0px;">
										 I give permission to have a credit pro from Pinnacle Credit Pros contact me.<br />
										<label>
											<input type="radio" name="give_permission_for_specialist" value="Yes" <?= $_REQUEST['give_permission_for_specialist']=='Yes' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
											Yes
										</label>
										<label>
											<input type="radio" name="give_permission_for_specialist" value="No" <?= $_REQUEST['give_permission_for_specialist']=='No' ? 'checked' : '';?> style="vertical-align:middle;margin:0px;" />
											No
										</label>
									</div>
								</div>
							</div>
						</div>
				
				<table cellpadding="1" cellspacing="0" class="questions">
					<tr>
						<td>How much money are you going to need?
							<select name="app_amount_needed">
								<option selected>Select...</option>
								<option value="$500-$10,000" <?= ($_REQUEST['app_amount_needed']=='$500-$10,000') ? 'selected' : '';?>>$500 - $10,000</option>
								<option value="$10,000 - $25,000" <?= ($_REQUEST['app_amount_needed']=='$10,000 - $25,000') ? 'selected' : '';?>>$10,000 - $25,000</option>
								<option value="$25,000 - $50,000" <?= ($_REQUEST['app_amount_needed']=='$25,000 - $50,000') ? 'selected' : '';?>>$25,000 - $50,000</option>
								<option value="$50,000 - $100,000" <?= ($_REQUEST['app_amount_needed']=='$50,000 - $100,000') ? 'selected' : '';?>>$50,000 - $100,000</option>
								<? 
									if ($granttype != 'business')
									{
										echo "<option value=\"$100,000 or More\" ".(($_REQUEST['app_amount_needed']=='$100,000 or More') ? 'selected' : '').">\$100,000 or More</option>";
									}
									else
									{
								?>
								<option value="$100,000 - $250,000" <?= ($_REQUEST['app_amount_needed']=='$100,000 - $250,000') ? 'selected' : '';?>>$100,000 - $250,000</option>
								<option value="$250,000 - $500,000" <?= ($_REQUEST['app_amount_needed']=='$250,000 - $500,000') ? 'selected' : '';?>>$250,000 - $500,000</option>
								<option value="$500,000 - $1,000,000" <?= ($_REQUEST['app_amount_needed']=='$500,000 - $1,000,000') ? 'selected' : '';?>>$500,000 - $1,000,000</option>
								<option value="$1,000,000 +" <?= ($_REQUEST['app_amount_needed']=='$1,000,000 +') ? 'selected' : '';?>>$1,000,000 +</option>
								<?
									}
								?>
							</select>
						</td>
					</tr>
				</table>
				
				<table cellpadding="2" cellspacing="0" class="questions">
					<tr>
						<td colspan="2">
							Describe what you will use the money for:
							<textarea name="app_usedescription" cols="64" rows="6"><?= $_REQUEST['app_usedescription'];?></textarea>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							What unique things would separate you from other applicants applying for this money?
							<textarea name="app_uniqueness" cols="64" rows="6"><?= $_REQUEST['app_uniqueness'];?></textarea>
						</td>
					</tr>
				</table>
				<table cellpadding="2" cellspacing="0" class="questions">
					<tr>
						<td class="q" style="width:auto;float:none;">What Email address would you like to use for your Username for your Online Funding Application Account?</td>
					</tr>
					<tr>
						<td class="a" style="width:auto;float:none;"><input type="text" name="cc_email" size="30" value="<?= $_REQUEST['cc_email'];?>">
						<br>
						<i>(ie. yourmail@hotmail.com)</i></td>
					</tr>
					<?php /*
					<tr>
						<td class="a" style="width:auto;float:none;"><input type="text" name="cc_email_confirm" size="30" value="">
						<br>
						<i>Please confirm you email address</i></td>
					</tr>
					*/ ?>
					<tr>
						<td class="s"><i>** Your email is safe. We hate spam as much as you do!!</i></td>
					</tr>
					<tr>
						<td class="s"><i>** Your <u>Email</u> will be <u>your username</u> for the USA Grant Applications website. Please double check it to be sure it is accurate!</i></td>
					</tr>
					<tr>
					    <td>
							<input type='checkbox' name="inform_me" value="1" checked /> Yes, I want to receive emails on New Funding Opportunities as well as New Tips!
						</td>
					</tr>
				</table>
 				
				<center><input type="submit" value="" style="background:url(images/submit.jpg) top center no-repeat;width:144px;height:63px;border:0px;margin:20px auto;cursor:pointer"></center>
                <input type="hidden" name="tc" value="<?= $tc; ?>">
				<input type="hidden" name="form_version" value="v4" />
				<input type="hidden" name="form_filled_out" value="<?= (!empty($_SESSION['landing_page'])) ? $_SESSION['landing_page'] : '/v4/4b.php';?>" />
                <?= $trackerformparams; ?>
                </form>
			</div>
        </div>
<?php include($_SERVER['DOCUMENT_ROOT'].'/v4/footer.php'); ?>

Youez - 2016 - github.com/yon3zu
LinuXploit