View Source code:

Tidy UP & Clean HTML Code - View Source of http://iowatreasurers.org

<!DOCTYPE html>
<html lang="en">

<head>
		
		<!-- Base meta -->
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=0.80">

		<!-- Descriptive meta -->
		<title>Iowa Treasurers Site</title>
		<meta name="title" content="Iowa Treasurers Site">
		<meta name="description" content="max 165 character description">
		<meta name="keywords" content="comma, separated, list">
		<meta name="author" content="author name">

		<!-- CSS assets -->
		<link href="assets/bootstrap/bootstrap.min.css" rel="stylesheet">
		<link href="assets/css/font-awesome.css" rel="stylesheet"> 
		<!-- <script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script> -->

		<!-- JS assets -->
		<!-- script src="assets/js/jquery.min.js"></script> -->
		<!-- <script
				  src="https://code.jquery.com/jquery-3.3.1.min.js"
				  integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
				  crossorigin="anonymous"></script> -->
		<script src="dashassets/assets/libs/jquery/dist/jquery.min.js"></script>
		<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
		<script src="assets/bootstrap/bootstrap.min.js"></script>
		<script src="assets/js/bootstrap-hover-dropdown.min.js"></script>
		<script src="assets/js/jquery.smooth-scroll.min.js"></script>
		<script src="assets/js/jquery.vide.min.js"></script>
		<script src="assets/js/jquery.bgswitcher.js"></script>
		<!--[if lt IE 9]>
			<script src="assets/js/html5shiv.min.js"></script>
			<script src="assets/js/respond.min.js"></script>
		<![endif]-->

		<!-- Theme specific assets -->
		<link href="assets/css/app.css" rel="stylesheet"><!-- Global portal stying -->
		<link href="assets/css/banners.css" rel="stylesheet"><!-- Page banners -->
		<link href="assets/css/color-option3.css" rel="stylesheet"><!-- Page banners -->
		<script src="assets/js/app.js"></script>
		<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.maskedinput/1.4.1/jquery.maskedinput.min.js" type="text/javascript"></script>
		

	</head>
<body>

		<!-- Main navigation element for site, html5 elements used to improve rendering on assistive devices -->
		<nav class="navbar navbar-default navbar-fixed-top navbar-white hidden-print">
			<div class="top-header">
				<div class="container">
					
					<!-- Skip to content link allows users rendering the site on a screen reader to skip past navigational elements -->
					<div class="menu-block pull-left no-pad hidden-xs">
						<a href="#main_content" class="btn btn-link scroller"><em class="fa fa-level-down" aria-hidden="true"></em> Skip to Content &nbsp;</a>
					</div>

					<!-- This is optional, comment out if you do not need this set of dropdowns at the top -->
					

					<!-- Enable the user to adjust the font size of the web page -->
					<div class="menu-block pull-left hidden-xs">Text Size:</div>
					<button type="button" class="btn btn-link pull-left hidden-xs increase-font" aria-label="Increase"><em class="fa fa-plus" aria-hidden="true"></em></button>
					<button type="button" class="btn btn-link pull-left hidden-xs decrease-font" aria-label="Decrease"><em class="fa fa-minus" aria-hidden="true"></em></button>

					
					
					
					<!-- Secondary navigation and login dropdown -->
					<div class="menu-block pull-right no-pad">
					
					<!--	<form class="navbar-form pull-right hidden-sm hidden-md" action="page7.html" style="padding-top:0px; padding-bottom:0px; margin-top:0px; margin-bottom:0px;" >
						<div class="input-group">
							<label for="search_main" class="hidden">Site Search</label>
							<input type="text" class="form-control" id="search_main" placeholder="Search this site">
							<span class="input-group-btn">
								<button class="btn btn-default" type="submit" aria-label="Search"><em class="fa fa-search" aria-hidden="true"></em></button>
							</span>
						</div>
						</form> -->
											<ul class="nav navbar-nav">
							<!-- Login dropdown -->
							<li class="dropdown">
					          <a href="#" class="dropdown-toggle btn-login" data-toggle="dropdown"><em class="fa fa-lock" aria-hidden="true"></em>  Sign In</a>
								<ul id="login-dp" class="dropdown-menu">
									<li>
										 <div class="row">
												<div class="col-md-12">
													 <form class="form" role="form" method="post" action="login.php" id="login-nav">
															<div class="form-group">
																 <label for="loginUser">Username</label>
																 <input type="text" name=Username class="form-control" id="loginUser" placeholder="Username" required>
															</div>
															<div class="form-group">
																 <label for="loginPassword">Password</label>
																 <input type="password" name=Password class="form-control" id="loginPassword" placeholder="Password" required>
					                                             <div class="help-block text-right"><a href="#" onclick="$.ajax({
																							type: 'GET',
																							url: 'methods/forgotpassword.php',
																							datatype: 'html',
																							cache: 'false',
																							success: function(response) {
																											$('#modal-body-passModal').html(response);
																							},
																							error: function(){
																								alert('An Error Has Occured');
																							}
																						});
																						$('#passModal').modal();return false;">Forgot Password?</a><br>
																	<a href="#" onclick="$.ajax({
																							type: 'GET',
																							url: 'methods/forgotusername.php',
																							datatype: 'html',
																							cache: 'false',
																							success: function(response) {
																											$('#modal-body-userModal').html(response);
																							},
																							error: function(){
																								alert('An Error Has Occured');
																							}
																						});
																						$('#userModal').modal();return false;">Forgot Username?</a>																 
																 </div>
															</div>
															<div class="form-group">
																 <button type="submit" name="submit" value="Login" class="btn btn-primary btn-block">Sign in</button>
															</div>
													 </form>
												</div>
												<!-- <div class="bottom text-center col-sm-12">
													<a href="#">Register new account</a>
												</div> -->
										 </div>
									</li>									
								</ul>
					        </li>
							
				        </ul>
										
					
					</div>

				</div>
			</div>

			<div class="container">
				
				<!-- Mobile hamburger style menu -->
				<div class="navbar-header">
					<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#top_main_navigation" aria-expanded="false">
						<span class="sr-only">Toggle navigation</span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</button>
					<a class="navbar-brand" href="index.php">
						<img src="assets/img/global/ISCTAlogo2.jpg" alt="Back to home" />
					</a>
				</div>

				<!-- Main site header -->
				<div class="collapse navbar-collapse" id="top_main_navigation">
					<ul class="nav navbar-nav">
						<li class="dropdown">
											<a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" role="button" aria-haspopup="true" aria-expanded="false" style="font-size: 14px; padding: 30px 10px;">Property Tax<span class="caret"></span></a>
												<ul class="dropdown-menu"><li><a href="mapsearch.php">Pay Property Tax</a></li><li><a href="scheduled.php">Scheduled Payments</a></li><li><a href="reminder.php">Reminder Email</a></li><li><a href="contentpage.php?PageID=120">Important Dates</a></li><li><a href="contentpage.php?PageID=121">Forms</a></li><li><a href="pfaq.php">FAQ</a></li><li><a href="portfolioservices.php">Portfolio Service</a></li><li><a href="login.php">Portfolio Login</a></li><li><a href="auctionregister.php">Register To Pay Subsequent Tax</a></li><li><a href="login.php">Login To Pay Subsequent Tax</a></li><li><a href="http://www.iowataxauction.com">Register And Bid For Tax Sales</a></li><li><a href onclick="$('#FeeModal').modal(); return false;">Fee Calculator</a></li>		</ul>
											</li><li class="dropdown">
											<a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" role="button" aria-haspopup="true" aria-expanded="false" style="font-size: 14px; padding: 30px 10px;">Motor Vehicle<span class="caret"></span></a>
												<ul class="dropdown-menu"><li><a href="tagsearch.php">Vehicle Renewal</a></li><li><a href="mvdates.php">Important Dates</a></li><li><a href="mvforms.php">Forms</a></li><li><a href="mvfaq.php">FAQ</a></li><li><a href onclick="$('#FeeModal').modal(); return false;">Fee Calculator</a></li>		</ul>
											</li><li class="dropdown">
											<a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" role="button" aria-haspopup="true" aria-expanded="false" style="font-size: 14px; padding: 30px 10px;">Driver's License<span class="caret"></span></a>
												<ul class="dropdown-menu"><li><a href="dldates.php">Important Dates</a></li><li><a href="dlforms.php">Forms And Manuals</a></li><li><a href="dlfaq.php">FAQ</a></li><li><a href="CDL-Test-Locations.pdf">CDL Test Locations</a></li>		</ul>
											</li><li><a href="support.php" style="font-size: 14px; padding: 30px 10px;">Support</a></li>	
						
						
						<li><a href="#" style="font-size: 14px;    padding: 30px 10px;" id="shoppingcount"></a></li>
											
						
					</ul>
					
					<!-- <form class="navbar-form pull-right hidden-sm hidden-md" action="page7.html">
						<div class="input-group">
							<label for="search_main" class="hidden">Site Search</label>
							<input type="text" class="form-control" id="search_main" placeholder="Search this site">
							<span class="input-group-btn">
								<button class="btn btn-default" type="submit" aria-label="Search"><em class="fa fa-search" aria-hidden="true"></em></button>
							</span>
						</div>
						</form> -->
					
				</div>
			</div>
		</nav>
		
		
<div class="modal fade" id="userModal" tabindex="-1" role="dialog" title="ParcelDetailPopup">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
	 <div class="modal-header">
		<h5 class="modal-title">Forgot Username</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      
      <div class="modal-body" id="modal-body-userModal">
       Loading, Please Wait
      </div>
      
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

<div class="modal fade" id="passModal" tabindex="-1" role="dialog" title="ParcelDetailPopup">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
	 <div class="modal-header">
		<h5 class="modal-title">Forgot Password</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      
      <div class="modal-body" id="modal-body-passModal">
       Loading, Please Wait
      </div>
      
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

<div class="modal fade" id="FeeModal" tabindex="-1" role="dialog" title="ParcelDetailPopup">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
	 <div class="modal-header">		
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">		
          <span aria-hidden="true">&times;</span>
        </button>
		<h5 class="modal-title">Fee Calculator</h5>
      </div>
      
      <div class="modal-body" id="modal-body-feeModal">
       
<form id="FeeCalcForm" enctype="multipart/form-data" method=post action="feecalc.php" >	
		
			<fieldset>
				<p>
					<label for="Password">Enter the amount you intend to pay to see the non-refundable fee(s) associated with each payment type.</label>
					<input value="" type="text" name=Fee id="Fee">
				</p>
			</fieldset>	
			<input type=hidden name="submit" value="Fee">
			<p class="submit">
			<a href="#" onclick="$.ajax({
																							type: 'POST',
																							url: 'methods/feecalc.php',
																							data: $('#FeeCalcForm').serialize(),
																							success: function(response) {
																											$('#modal-body-feeModal').html(response);
																							},
																							error: function(){
																								alert('An Error Has Occured');
																							}
																						});
																			
																						$('#feeModal').modal(); return false;" class="btn btn-success">Submit</a>	</p>		
						
		</form>	
		
      </div>
      
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

		<div class="banner home-1" data-type="background" data-speed="4" style="background-image: url(assets/img/global/corn2.jpg);">
			<div class="banner-interior">
				<div class="container tall">
					<div class="row">
						<div class="col-md-10 col-md-offset-1 text-center">
													<h1>Iowa County Treasurers</h1>
							<p class="lead">eGovernment Alliance</p>
						</div>
					</div>
				</div>
			</div>
		</div><section class="clearfix linkSection">
      <div class="sectionLinkArea scrolling">
        <div class="container">
          <div class="row">
		  
		  <div class="col-sm-4">
								  <a href="mapsearch.php" class="sectionLink bg-color-1" id="coursesLink">
									<i class="fa fa-home linkIcon border-color-1" aria-hidden="true"></i>
									<span class="linkText">Property Tax</span>
									<i class="fa fa-chevron-down locateArrow" aria-hidden="true"></i>
								  </a>
								</div><div class="col-sm-4">
								  <a href="tagsearch.php" class="sectionLink bg-color-2" id="coursesLink">
									<i class="fa fa-car linkIcon border-color-2" aria-hidden="true"></i>
									<span class="linkText">Vehicle Renewal</span>
									<i class="fa fa-chevron-down locateArrow" aria-hidden="true"></i>
								  </a>
								</div><div class="col-sm-4">
								  <a href="treasurermapsearch.php" class="sectionLink bg-color-3" id="coursesLink">
									<i class="fa fa-home linkIcon border-color-3" aria-hidden="true"></i>
									<span class="linkText">Find My County</span>
									<i class="fa fa-chevron-down locateArrow" aria-hidden="true"></i>
								  </a>
								</div>			
			
			
          </div>
        </div>
      </div>
    </section>		<div class="content" id="main_content">
			<div class="container">
				
				<div class="row pad-top-sm pad-bottom line-bottom">
<div class="col-md-12 text-center">
<h2 class="text-center">Welcome to the Official Home Page of Iowa State County Treasurer's Association</h2>
<p>Click the map below to see individual county homepages<br /><a href="treasurermapsearch.php"><img class="img-rounded" src="assets/img/global/iowamap.jpg" alt="placeholder image" /></a></p>
<p>&nbsp;</p>
<h3><a href="contentpage.php?PageID=126">Links to Other Resources</a></h3>
</div>
</div>
			</div>
		</div>		<!-- 
		<footer>
			<div class="container">
				<div class="row footer-one">
					<div class="col-md-7 hidden-sm hidden-xs">

						<div class="row sub-links">
							<div class="col-xs-3">
								<ul class="list-unstyled">
									<li><strong>Home Concepts</strong></li>
									<li><a href="index.html">Static Photo</a></li>
									<li><a href="home2.html">Rotating Photo</a></li>
									<li><a href="home3.html">Video Background</a></li>
									<li><a href="home4.html">Coming Soon</a></li>
								</ul>
							</div>
							<div class="col-xs-3">
								<ul class="list-unstyled">
									<li><strong>Page Concepts</strong></li>
									<li><a href="page1.html">General Content</a></li>
									<li><a href="page2.html">Blog Main</a></li>
									<li><a href="page3.html">Blog Article</a></li>
									<li><a href="page4.html">Portfolio</a></li>
									<li><a href="page5.html">Job Listing</a></li>
									<li><a href="page6.html">Job Detail</a></li>
									<li><a href="page7.html">Search Results</a></li>
								</ul>
							</div>
							<div class="col-xs-3">
								<ul class="list-unstyled">
									<li><strong>Page Concepts (cont.)</strong></li>
									<li><a href="page8.html">User Profile</a></li>
									<li><a href="page9.html">Login</a></li>
									<li><a href="page10.html">Sign-Up</a></li>
									<li><a href="page11.html">404 Not Found</a></li>
									<li><a href="page12.html">Legal</a></li>
								</ul>
							</div>
						</div>
					</div>
					<div class="col-md-5 text-right social mobile-left">
						Connect:
						<a href="#" target="blank" aria-label="Navigate to Facebook"><em class="fa fa-facebook" aria-hidden="true"></em></a>
						<a href="#" target="blank" aria-label="Navigate to Twitter"><em class="fa fa-twitter" aria-hidden="true"></em></a>
						<a href="#" target="blank" aria-label="Navigate to YouTube"><em class="fa fa-youtube" aria-hidden="true"></em></a>
						<a href="#" target="blank" aria-label="Navigate to Pinterest"><em class="fa fa-pinterest" aria-hidden="true"></em></a>
						<a href="#" target="blank" aria-label="Navigate to LinkedIn"><em class="fa fa-linkedin" aria-hidden="true"></em></a>
						<a href="#" target="blank" aria-label="Navigate to Instagram"><em class="fa fa-intagram" aria-hidden="true"></em></a>
						<span class="spacer" aria-hidden="true"> | </span>
						<a href="#" target="blank" aria-label="Navigate to iPhone App"><em class="fa fa-apple" aria-hidden="true"></em></a>
						<a href="#" target="blank" aria-label="Navigate to Android App"><em class="fa fa-android" aria-hidden="true"></em></a>

						<hr />

						<address>
							<strong>ABC Organization</strong><br />
							1234 Main Street<br />
							Suite 12345<br />
							Treasure Island, FL 33706<br />
						</address>
					</div>
				</div>
				<div class="row footer-links">
					<div class="col-sm-12">
						<a href="#">Page One</a>
						<a href="#">Page Two</a>
						<a href="#">Page Three</a>
						<a href="#">Page Four</a>
						<a href="#">Page Five</a>
						<a href="#">Page Six</a>
					</div>
				</div>
				<div class="row">
					<div class="col-sm-12">
						<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce blandit velit sit amet sodales porttitor. Praesent vitae dolor ornare, varius dolor ut, vehicula urna. Suspendisse egestas arcu ut pretium rutrum. Nullam mattis magna nec mauris aliquet, suscipit lobortis sem finibus. Sed sollicitudin erat mollis scelerisque rutrum. Duis dapibus id leo scelerisque pretium. Nulla facilisi.</p>
						<p>&copy; 2017 <strong>Your Organization</strong>. All Rights Reserved.</p>
					</div>
				</div>
			</div>
		</footer>  Footer element -->
			
		<footer>
			<div class="container">
				<div class="row footer-one">
					<div class="col-md-3 hidden-sm hidden-xs">
						<script type="text/javascript" src="https://sealserver.trustwave.com/seal.js?code=43308e0161a54c65b617b082dbf57615"></script>
					</div>
					<div class="col-md-9 hidden-sm hidden-xs">
						<p align=center><br>Designed and Maintained by <a href="http://www.govtechservices.com" title="GovTech">GovTech Services</a>
						<br><a href="contentpage.php?PageID=12">Privacy Policy</a> - <a href="contentpage.php?PageID=128">Terms and Conditions</a></p>
					</div>
				</div>
			</div>
		</footer>
		
<script src="assets/js/jstz.min.js" type="text/javascript"></script>
		
<script type="text/javascript">
    $(document).ready(function() {
        if("".length==0){
            var visitortime = new Date();
            var visitortimezone = "GMT " + -visitortime.getTimezoneOffset()/60;
			var visitortimezone = jstz.determine().name();
            $.ajax({
                type: "GET",
                url: "timezone.php",
                data: 'time='+ visitortimezone,
                success: function(result){
                }
            });
        }
    });
</script>


<script>


        $(document).ready(function(){

            $("#countyselectionresult").change( function() {

                $("#selectionresult3").hide();

				$.ajax({

                    type: "POST",

                    data: "data=" + $(this).val(),

                    url: "methods/allownamesearch.php",

                    success: function(msg){
						
                        if (msg =='0'){
							
                            $("#selectionresult3").hide();

                        }

                        else{

                            $("#selectionresult3").show();

                        }

                    }

                });
				
				$("#selectionresult4").hide();

                $("#result").html('Retrieving...');

                $.ajax({

                    type: "POST",

                    data: "data=" + $(this).val(),

                    url: "methods/allowaddresssearch.php",

                    success: function(msg){
						
                        if (msg =='0'){
							
                            $("#selectionresult4").hide();

                        }
                        else{

                            $("#selectionresult4").show();

                        }

                    }

                });
				$.ajax({

                    type: "POST",

                    data: "data=" + $(this).val(),

                    url: "methods/parcelnumbername.php",

                    success: function(msg){
						
                        $('#ParcelNumberName').html(msg);
						$('#ParcelNumberName2').html(msg);
						$('#ParcelNumberName3').html(msg);

                    }

                });

            });

        });

        
 $(document).ready(function(){
			// $("#selection").val('');
            $("#stateselection").change( function() {

                $("#countyselectionresult").hide();

                $("#result").html('Retrieving...');

                $.ajax({

                    type: "POST",

                    data: "data=" + $(this).val(),

                    url: "methods/countyselector.php",

                    success: function(msg){

                        if (msg !=''){

                            $("#countyselectionresult").html(msg).show();

                            $("#result").html('');

                        }

                        else{

                            $("#result").html('<em>No item result</em>');

                        }

                    }

                });

            });

        });
		

		
 


function paygroup($idParcel,$Parcels,$installmentnumber)
	{
		$ckb = $("#"+$idParcel+"-"+$installmentnumber).is(':checked');
		$.ajax({
																							type: 'GET',
																							url: 'methods/payparcelgroup.php',
																							data: { id: $Parcels, installment: $installmentnumber, checked: $ckb},
																							datatype: 'html',
																							cache: 'false',
																							success: function(response) {
																											if (response!='') { alert(response); $("#"+$idParcel+"-"+$installmentnumber).prop('checked', false); }
																											if (response!='' && $installmentnumber==1) {$("#"+$idParcel+"-2").prop('checked', false); }
																											$.ajax({
																														type: 'GET',
																														url: 'methods/parcelgroupdetails.php',
																														data: { id: $Parcels, idGroupParcel: $idParcel},
																														datatype: 'html',
																														cache: 'false',
																														success: function(response) {
																																		$('#groupdetails'+$idParcel).html(response);
																														},
																														error: function(){
																															alert('An Error Has Occured');
																														}
																													});
																											shoppingcartcount();
																							},
																							error: function(){
																								alert('An Error Has Occured');
																							}
																						});
	
	}
	
function payparcel($idParcel,$idGroupParcel,$Parcels,$installmentnumber)
	{
		$ckb = $("#single-"+$idParcel+"-"+$installmentnumber).is(':checked');
		$.ajax({
																							type: 'GET',
																							url: 'methods/payparcel.php',
																							data: { id: $idParcel, parcels: $Parcels, installment: $installmentnumber, checked: $ckb},
																							datatype: 'html',
																							cache: 'false',
																							success: function(response) {
																											if (response!='') { alert(response); $("#single-"+$idParcel+"-"+$installmentnumber).prop('checked', false); $("#partial-"+$idParcel+"-"+$installmentnumber).val('0.00'); }
																											else { 
																													if ($ckb) { $("#partial-"+$idParcel+"-"+$installmentnumber).val($("#due-"+$idParcel+"-"+$installmentnumber).val()); }
																													else { $("#partial-"+$idParcel+"-"+$installmentnumber).val('0.00'); }
																												}
																											$.ajax({
																														type: 'GET',
																														url: 'methods/parcelgroupdetails.php',
																														data: { id: $Parcels, idGroupParcel: $idGroupParcel},
																														datatype: 'html',
																														cache: 'false',
																														success: function(response) {
																																		$('#groupdetails'+$idGroupParcel).html(response);
																														},
																														error: function(){
																															alert('An Error Has Occured');
																														}
																													});
																											shoppingcartcount();
																							},
																							error: function(){
																								alert('An Error Has Occured');
																							}
																						});
	
	}

function paypartial($idParcel,$idGroupParcel,$Parcels,$installmentnumber)
	{
		$minimum=$("#min-"+$idParcel+"-"+$installmentnumber).val();
		$max=$("#due-"+$idParcel+"-"+$installmentnumber).val();
		$val=$("#partial-"+$idParcel+"-"+$installmentnumber).val();
		
		$.ajax({
																							type: 'GET',
																							url: 'methods/paypartial.php',
																							data: { id: $idParcel, parcels: $Parcels, installment: $installmentnumber, minimum: $minimum, max: $max, val: $val },
																							datatype: 'html',
																							cache: 'false',
																							success: function(response) {
																											if (response!='') { alert(response); $("#single-"+$idParcel+"-"+$installmentnumber).prop('checked', false); $("#partial-"+$idParcel+"-"+$installmentnumber).val('0.00'); }
																											$.ajax({
																														type: 'GET',
																														url: 'methods/parcelgroupdetails.php',
																														data: { id: $Parcels, idGroupParcel: $idGroupParcel},
																														datatype: 'html',
																														cache: 'false',
																														success: function(response) {
																																		$('#groupdetails'+$idGroupParcel).html(response);
																														},
																														error: function(){
																															alert('An Error Has Occured');
																														}
																													});
																											shoppingcartcount();
																							},
																							error: function(){
																								alert('An Error Has Occured');
																							}
																						});
	
	}
	
function shoppingcartcount()
	{
		$.ajax({
																							type: 'GET',
																							url: 'methods/shoppingcartcount.php',
																							data: { },
																							datatype: 'html',
																							cache: 'false',
																							success: function(response) {
																											if (response!='') { $('#shoppingcount').html(response); }
																							},
																							error: function(){
																								alert('An Error Has Occured');
																							}
																						});
	
	}
	
shoppingcartcount();


 function isNumericKey(e)
        {
            var key = e.which || e.keyCode;
            if (!e.shiftKey && !e.altKey && !e.ctrlKey &&
                     // numbers   
                         key >= 48 && key <= 57 ||
                     // Numeric keypad
                         key >= 96 && key <= 105 ||
                     // comma, period and minus, . on keypad
                        key == 190 || key == 188 || key == 109 || key == 110 ||
                     // Backspace and Tab and Enter
                        key == 8 || key == 9 || key == 13 ||
                     // Home and End
                        key == 35 || key == 36 ||
                     // left and right arrows
                        key == 37 || key == 39 ||
                     // Del and Ins
                        key == 46 || key == 45)
                         return true;

                     return false;
        }    
		
function isValidEmailAddress(EmailAddress) {
					EmailAddress=$.trim(EmailAddress);
					var pattern = new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i);
					return pattern.test(EmailAddress);
				};

jQuery(function(){
			$("#checkout").click(function(){
					 if ($('#Stored').is(':checked')) { 
							$("#shoppingcartform").attr("action", "dash.php?module=scheduled-paymentmethods&shopping=1");}
					}); });
jQuery(function(){
				$("#checkout").click(function(){
						 if ($('#Monthly').is(':checked')) { 
							if ($('#Tag').val()) { 	$("#shoppingcartform").attr("action", "dash.php?module=scheduled-tag");}
							else { 	$("#shoppingcartform").attr("action", "dash.php?module=scheduled-property&ImportShopping=1");}
						 }
						}); });
				
jQuery(function(){
					$("#checkout").click(function(){
					$(".error").hide();
					var hasError = false;
					var checkVal = $("#terms").val();
					if (!$('#terms').prop('checked')) {
						$("#terms").after('<div class="alert alert-danger">Please check that you acknowledge.</div>');
						hasError = true;
					} 
					if ($('#certify').length) {
					if (!$('#certify').prop('checked')) {
						$("#certify").after('<div class="alert alert-danger">Please check that you certify.</div>');
						hasError = true;
					}}
					
					if ($('#Name').length) {
					var checkVal = $("#Name").val();
					if (!checkVal) {
						$("#Name").after('<div class="alert alert-danger">Please enter a name.</div>');
						hasError = true;
					}}
					
					if ($('#Address').length) {
					var checkVal = $("#Address").val();
					if (!checkVal) {
						$("#Address").after('<div class="alert alert-danger">Please enter an address.</div>');
						hasError = true;
					}}
					
					if ($('#City').length) {
					var checkVal = $("#City").val();
					if (!checkVal) {
						$("#City").after('<div class="alert alert-danger">Please enter an city.</div>');
						hasError = true;
					}}
					
					if ($('#State').length) {
					var checkVal = $("#State").val();
					if (!checkVal) {
						$("#State").after('<div class="alert alert-danger">Please enter an state.</div>');
						hasError = true;
					}}
					
					if ($('#Zip').length) {
					var checkVal = $("#Zip").val();
					if (!checkVal) {
						$("#Zip").after('<div class="alert alert-danger">Please enter an zip.</div>');
						hasError = true;
					}}
					
					if ($('#Phone').length) {
					var checkVal = $("#Phone").val();
					if (!checkVal) {
						$("#Phone").after('<div class="alert alert-danger">Please enter a phone number.</div>');
						hasError = true;
					}}
					
					if ($('#Signature').length) {
					var checkVal = $("#Signature").val();
					if (!checkVal) {
						$("#Signature").after('<div class="alert alert-danger">Please enter your full name.</div>');
						hasError = true;
					}}
					
					if ($('#ActingAs').length) {
					var checkVal = $("input:radio[name='ActingAs']:checked").val();
					if (!checkVal) {
						$("#ActingAs").after('<div class="alert alert-danger">Please select an option.</div>');
						hasError = true;
					}}
					
					if ($('#email').length) {
					var checkVal = $("#email").val();					
					if (checkVal!='') {
					if( !isValidEmailAddress( checkVal )) {
							$("#email").after('<div class="alert alert-danger">Please enter an Email address.</div>');
							hasError = true;
						}}}
					if(hasError == true) {return false;}
				});
			});
			
jQuery(function(){
        $("#submitbuttonregisterauction").click(function(){
        $(".error").hide();
        var hasError = false;
        var passwordVal = $("#password").val();
        var checkVal = $("#password-check").val();
        if (passwordVal == '') {
            $("#password").after('<div class="alert alert-danger">Please enter a password.</div>');
            hasError = true;
        } else if (checkVal == '') {
            $("#password-check").after('<div class="alert alert-danger">Please re-enter your password.</div>');
            hasError = true;
        } else if (passwordVal != checkVal ) {
            $("#password-check").after('<div class="alert alert-danger">Passwords do not match.</div>');
            hasError = true;
        }
		var checkVal = $("#SSN").val();
        if (checkVal == '') {
            $("#SSN").after('<div class="alert alert-danger">Please enter an ID.</div>');
            hasError = true;
        }
		var checkVal = $("#Username").val();
        if (checkVal == '') {
            $("#Username").after('<div class="alert alert-danger">Please enter a username.</div>');
            hasError = true;
        }
		 if ( checkVal.match(/@/)) {
					$("#Username").after('<div class="alert alert-danger">UserName can not be an email address</div>');
					hasError = true;
				} 
        var result = null;
		$.ajax({
            url: 'methods/checkusername.php',
            type: 'POST',
			data: { data: checkVal },
            async: false,
            success: function(data) {
				result = data;
            }
        });
		if (result == 'Yes') {
            $("#Username").after('<div class="alert alert-danger">User name already in use. If you have previously registered please log in at the top.</div>');
            hasError = true;
        }
		var checkVal = $("#CompanyName").val();
        if (checkVal == '') {}
		else
			{
			var result = null;
			$.ajax({
				url: 'methods/checkbidder.php',
				type: 'POST',
				data: { data: checkVal },
				async: false,
				success: function(data) {
					result = data;
				}
			});
			if (result == 'Yes') {
				$("#CompanyName").after('<div class="alert alert-danger">Company name already in use.</div>');
				hasError = true;
			}
		}
		var checkVal = $("#FirstName").val();
        if (checkVal == '') {
            $("#FirstName").after('<div class="alert alert-danger">Please enter a first name.</div>');
            hasError = true;
        }
		var checkVal = $("#LastName").val();
        if (checkVal == '') {
            $("#LastName").after('<div class="alert alert-danger">Please enter a last name.</div>');
            hasError = true;
        }
		var checkVal = $("#Address1").val();
        if (checkVal == '') {
            $("#Address1").after('<div class="alert alert-danger">Please enter an address.</div>');
            hasError = true;
        }
		
		var checkVal = $("#City").val();
        if (checkVal == '') {
            $("#City").after('<div class="alert alert-danger">Please enter a city.</div>');
            hasError = true;
        }
		var checkVal = $("#select2_state").val();
        if (checkVal == '' && $("#select2_country").val() == 'US') {
            $("#select2_state").after('<div class="alert alert-danger">Please enter a state.</div>');
            hasError = true;
        }
		
		var checkVal = $("#ZipCode").val();
        if (checkVal == '') {
            $("#ZipCode").after('<div class="alert alert-danger">Please enter a zip code.</div>');
            hasError = true;
        }
		var checkVal = $("#Email").val();
        if( !isValidEmailAddress( checkVal ) ) {
            $("#Email").after('<div class="alert alert-danger">Please enter an Email address.</div>');
            hasError = true;
        }
		var checkVal = $("#Phone").val();
        if (checkVal == '') {
            $("#Phone").after('<div class="alert alert-danger">Please enter a valid phone number.</div>');
            hasError = true;
        }
		if (!$('#acceptTerms').is(':checked') && $("#acceptTerms").length > 0) {
            $("#acceptTerms_error").after('<div class="alert alert-danger">Please agree to terms.</div>');
            hasError = true;
        }
		
		
        
		var pswd = $("#password").val();
		
		
				//validate the length
				if ( pswd.length < 8 && pswd!='XXXXXXXX') {
					$("#password").after('<div class="alert alert-danger">Password less than 8 characters.</div>');
					hasError = true;
					
				}
				//validate letter
				if ( !pswd.match(/[A-z]/) && pswd!='XXXXXXXX') {
					$("#password").after('<div class="alert alert-danger">Password does not include a letter.</div>');
					hasError = true;
				}

				//validate capital letter
				if ( !pswd.match(/[A-Z]/) && pswd!='XXXXXXXX') {
					$("#password").after('<div class="alert alert-danger">Password does not include a capital letter.</div>');
					hasError = true;
				}

				//validate number
				if ( !pswd.match(/\d/) && pswd!='XXXXXXXX') {
					$("#password").after('<div class="alert alert-danger">Password does not include a number.</div>');
					hasError = true;
				}
        if(hasError == true) {return false;}
    });
});







jQuery(function(){
        $("#submitbuttonregisterportfolio").click(function(){
        $(".error").hide();
        var hasError = false;
        var passwordVal = $("#password").val();
        var checkVal = $("#password-check").val();
        if (passwordVal == '') {
            $("#password").after('<div class="alert alert-danger">Please enter a password.</div>');
            hasError = true;
        } else if (checkVal == '') {
            $("#password-check").after('<div class="alert alert-danger">Please re-enter your password.</div>');
            hasError = true;
        } else if (passwordVal != checkVal ) {
            $("#password-check").after('<div class="alert alert-danger">Passwords do not match.</div>');
            hasError = true;
        }
		var checkVal = $("#SSN").val();
        if (checkVal == '') {
            $("#SSN").after('<div class="alert alert-danger">Please enter an ID.</div>');
            hasError = true;
        }
		var checkVal = $("#Username").val();
        if (checkVal == '') {
            $("#Username").after('<div class="alert alert-danger">Please enter a username.</div>');
            hasError = true;
        }
		
        var result = null;
		$.ajax({
            url: 'methods/checkusername.php',
            type: 'POST',
			data: { data: checkVal },
            async: false,
            success: function(data) {
				result = data;
            }
        });
		if (result == 'Yes') {
            $("#Username").after('<div class="alert alert-danger">User name already in use. If you have previously registered please log in at the top.</div>');
            hasError = true;
        }
		
		var checkVal = $("#FirstName").val();
        if (checkVal == '') {
            $("#FirstName").after('<div class="alert alert-danger">Please enter a first name.</div>');
            hasError = true;
        }
		var checkVal = $("#LastName").val();
        if (checkVal == '') {
            $("#LastName").after('<div class="alert alert-danger">Please enter a last name.</div>');
            hasError = true;
        }
		var checkVal = $("#Address1").val();
        if (checkVal == '') {
            $("#Address1").after('<div class="alert alert-danger">Please enter an address.</div>');
            hasError = true;
        }
		
		var checkVal = $("#City").val();
        if (checkVal == '') {
            $("#City").after('<div class="alert alert-danger">Please enter a city.</div>');
            hasError = true;
        }
		var checkVal = $("#select2_state").val();
        if (checkVal == '' && $("#select2_country").val() == 'US') {
            $("#select2_state").after('<div class="alert alert-danger">Please enter a state.</div>');
            hasError = true;
        }
		
		var checkVal = $("#ZipCode").val();
        if (checkVal == '') {
            $("#ZipCode").after('<div class="alert alert-danger">Please enter a zip code.</div>');
            hasError = true;
        }
		var checkVal = $("#Email").val();
        if( !isValidEmailAddress( checkVal ) ) {
            $("#Email").after('<div class="alert alert-danger">Please enter an Email address.</div>');
            hasError = true;
        }
		var checkVal = $("#Phone").val();
        if (checkVal == '') {
            $("#Phone").after('<div class="alert alert-danger">Please enter a valid phone number.</div>');
            hasError = true;
        }
		if (!$('#acceptTerms').is(':checked') && $("#acceptTerms").length > 0) {
            $("#acceptTerms_error").after('<div class="alert alert-danger">Please agree to terms.</div>');
            hasError = true;
        }
		var checkVal = $("#CompanyName").val();
        if (checkVal == '') {
            $("#CompanyName").after('<div class="alert alert-danger">Please enter a company name.</div>');
            hasError = true;
        }
		
        var result = null;
		$.ajax({
            url: 'methods/checkportfolioname.php',
            type: 'POST',
			data: { data: checkVal },
            async: false,
            success: function(data) {
				result = data;
            }
        });
		if (result == 'Yes') {
            $("#CompanyName").after('<div class="alert alert-danger">Company name already in use.</div>');
            hasError = true;
        }
		
        
		var pswd = $("#password").val();
		
		
				//validate the length
				if ( pswd.length < 8 && pswd!='XXXXXXXX') {
					$("#password").after('<div class="alert alert-danger">Password less than 8 characters.</div>');
					hasError = true;
					
				}
				//validate letter
				if ( !pswd.match(/[A-z]/) && pswd!='XXXXXXXX') {
					$("#password").after('<div class="alert alert-danger">Password does not include a letter.</div>');
					hasError = true;
				}

				//validate capital letter
				if ( !pswd.match(/[A-Z]/) && pswd!='XXXXXXXX') {
					$("#password").after('<div class="alert alert-danger">Password does not include a capital letter.</div>');
					hasError = true;
				}

				//validate number
				if ( !pswd.match(/\d/) && pswd!='XXXXXXXX') {
					$("#password").after('<div class="alert alert-danger">Password does not include a number.</div>');
					hasError = true;
				}
        if(hasError == true) {return false;}
    });
});

jQuery(function(){
        $("#submitbuttonregistervendor").click(function(){
        $(".error").hide();
        var hasError = false;
        var passwordVal = $("#password").val();
        var checkVal = $("#password-check").val();
        if (passwordVal == '') {
            $("#password").after('<div class="alert alert-danger">Please enter a password.</div>');
            hasError = true;
        } else if (checkVal == '') {
            $("#password-check").after('<div class="alert alert-danger">Please re-enter your password.</div>');
            hasError = true;
        } else if (passwordVal != checkVal ) {
            $("#password-check").after('<div class="alert alert-danger">Passwords do not match.</div>');
            hasError = true;
        }
		var checkVal = $("#SSN").val();
        if (checkVal == '') {
            $("#SSN").after('<div class="alert alert-danger">Please enter an ID.</div>');
            hasError = true;
        }
		var checkVal = $("#Username").val();
        if (checkVal == '') {
            $("#Username").after('<div class="alert alert-danger">Please enter a username.</div>');
            hasError = true;
        }
		
        var result = null;
		$.ajax({
            url: 'methods/checkusername.php',
            type: 'POST',
			data: { data: checkVal },
            async: false,
            success: function(data) {
				result = data;
            }
        });
		if (result == 'Yes') {
            $("#Username").after('<div class="alert alert-danger">User name already in use. If you have previously registered please log in at the top.</div>');
            hasError = true;
        }
		
		var checkVal = $("#FirstName").val();
        if (checkVal == '') {
            $("#FirstName").after('<div class="alert alert-danger">Please enter a first name.</div>');
            hasError = true;
        }
		var checkVal = $("#LastName").val();
        if (checkVal == '') {
            $("#LastName").after('<div class="alert alert-danger">Please enter a last name.</div>');
            hasError = true;
        }
		var checkVal = $("#Address1").val();
        if (checkVal == '') {
            $("#Address1").after('<div class="alert alert-danger">Please enter an address.</div>');
            hasError = true;
        }
		
		var checkVal = $("#City").val();
        if (checkVal == '') {
            $("#City").after('<div class="alert alert-danger">Please enter a city.</div>');
            hasError = true;
        }
		var checkVal = $("#select2_state").val();
        if (checkVal == '' && $("#select2_country").val() == 'US') {
            $("#select2_state").after('<div class="alert alert-danger">Please enter a state.</div>');
            hasError = true;
        }
		
		var checkVal = $("#ZipCode").val();
        if (checkVal == '') {
            $("#ZipCode").after('<div class="alert alert-danger">Please enter a zip code.</div>');
            hasError = true;
        }
		var checkVal = $("#Email").val();
        if( !isValidEmailAddress( checkVal ) ) {
            $("#Email").after('<div class="alert alert-danger">Please enter an Email address.</div>');
            hasError = true;
        }
		var checkVal = $("#Phone").val();
        if (checkVal == '') {
            $("#Phone").after('<div class="alert alert-danger">Please enter a valid phone number.</div>');
            hasError = true;
        }
		if (!$('#acceptTerms').is(':checked') && $("#acceptTerms").length > 0) {
            $("#acceptTerms_error").after('<div class="alert alert-danger">Please agree to terms.</div>');
            hasError = true;
        }
		var checkVal = $("#CompanyName").val();
        if (checkVal == '') {
            $("#CompanyName").after('<div class="alert alert-danger">Please enter a company name.</div>');
            hasError = true;
        }
		
        var result = null;
		$.ajax({
            url: 'methods/checkvendorname.php',
            type: 'POST',
			data: { data: checkVal },
            async: false,
            success: function(data) {
				result = data;
            }
        });
		if (result == 'Yes') {
            $("#CompanyName").after('<div class="alert alert-danger">Company name already in use.</div>');
            hasError = true;
        }
		
        
		var pswd = $("#password").val();
		
		
				//validate the length
				if ( pswd.length < 8 && pswd!='XXXXXXXX') {
					$("#password").after('<div class="alert alert-danger">Password less than 8 characters.</div>');
					hasError = true;
					
				}
				//validate letter
				if ( !pswd.match(/[A-z]/) && pswd!='XXXXXXXX') {
					$("#password").after('<div class="alert alert-danger">Password does not include a letter.</div>');
					hasError = true;
				}

				//validate capital letter
				if ( !pswd.match(/[A-Z]/) && pswd!='XXXXXXXX') {
					$("#password").after('<div class="alert alert-danger">Password does not include a capital letter.</div>');
					hasError = true;
				}

				//validate number
				if ( !pswd.match(/\d/) && pswd!='XXXXXXXX') {
					$("#password").after('<div class="alert alert-danger">Password does not include a number.</div>');
					hasError = true;
				}
        if(hasError == true) {return false;}
    });
});


jQuery(function(){
        $("#submitbuttonreminderemail").click(function(){
        $(".error").hide();
        var hasError = false;
        
		var checkVal = $("#Email").val();
        if( !isValidEmailAddress( checkVal ) ) {
            $("#Email").after('<div class="alert alert-danger">Please enter an Email address.</div>');
            hasError = true;
        }
		
		
        
		
        if(hasError == true) {return false;}
    });
});
</script>



		<script type="text/javascript">
	
	
				jQuery(function($){
				   $("#RoutingNumber").mask("999999999");
				});

				jQuery(function($){
				   $("#Phone").mask("(999) 999-9999? x99999");
				});

				jQuery(function($){
				   $("#ZipCode").mask("99999?-9999");
				});

				function isValidEmailAddress(EmailAddress) {
					EmailAddress=$.trim(EmailAddress);
					var pattern = new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i);
					return pattern.test(EmailAddress);
				};
				
				

				function DisplayBank(){
						$(".error").hide();
						$('#RoutingError').remove();
						$("#RoutingBlank").remove();
						var checkVal = $("#routingNumber").val();
						var result = null;
						$.ajax({
							url: 'methods/checkrouting.php',
							type: 'POST',
							data: { data: checkVal },
							async: false,
							success: function(data) {
								result = data;
							}
						});
						if (result == 'No') {
							$("#routingNumber").after('<div id=RoutingError class="alert alert-danger">Invalid Routing Number.</div>');
							hasError = true;
						}
						else {
							$("#routingNumber").after('<div id=RoutingError class="success">'+result+'</div>');
						}
				}
				
				function CheckEmail(){
						$(".error").hide();
						var checkVal = $("#RegEmail").val();
						var result = null;
						$.ajax({
							url: 'methods/checkemail.php',
							type: 'POST',
							data: { data: checkVal },
							async: false,
							success: function(data) {
								result = data;
							}
						});
						if (result == 'No') {
							$("#emailcheck").html('');
						}
						else {
							$("#emailcheck").html('<div class="alert alert-danger">An account already exists with this email. Are you sure you want to create another account with this email address?<a href="#" onclick="$.ajax({type: \'GET\',url: \'methods/forgotusername.php\',datatype: \'html\',cache: \'false\',	success: function(response) {					$(\'#modal-body-userModal\').html(response);	},	error: function(){		alert(\'An Error Has Occured\');	}});$(\'#register\').modal(\'hide\');$(\'#userModal\').modal();return false;">Forgot Username?</a></div>');
						}
				}
				
				function CheckEmail2(){
						$(".error").hide();
						var checkVal = $("#Email").val();
						var result = null;
						$.ajax({
							url: 'methods/checkemail.php',
							type: 'POST',
							data: { data: checkVal },
							async: false,
							success: function(data) {
								result = data;
							}
						});
						if (result == 'No') {
							$("#emailcheck").html('');
						}
						else {
							$("#emailcheck").html('<div class="alert alert-danger">An account already exists with this email. Are you sure you want to create another account with this email address?<a href="#" onclick="$.ajax({type: \'GET\',url: \'methods/forgotusername.php\',datatype: \'html\',cache: \'false\',	success: function(response) {					$(\'#modal-body-userModal\').html(response);	},	error: function(){		alert(\'An Error Has Occured\');	}});$(\'#userModal\').modal();return false;">Forgot Username?</a></div>');
						}
				}

				jQuery(function(){
				
						$("#submitbuttonecheck").click(function(){
						
													var UseSaved=false; 							
						var hasError = false;
						var postVals='';
						$(".error").hide();
						
						var checkVal = $("#terms").val();
						$("#TermError").remove();
							if (!$('#terms').prop('checked')) {
								$("#terms").after('<div id=TermError class="alert alert-danger">Please check that you acknowledge.</div>');
								hasError = true;
								postVals=postVals + 'Not agreed to terms. ';
							} 
							
							
						var checkVal = $("#Name").val();
						$("#NameError").remove();
						if (checkVal == '') {
							$("#Name").after('<div id=NameError class="alert alert-danger">Please enter a name.</div>');
							hasError = true;
							postVals=postVals + 'Please enter a name.:' + checkVal + ':<br>';
						}
						postVals=postVals + 'Name:' + checkVal + ':<br>';
						var checkVal = $("#routingNumber").val();
						$("#RoutingBlank").remove();
						if (checkVal == '' && !UseSaved) {
							$("#routingNumber").after('<div id=RoutingBlank class="alert alert-danger">Routing number can not be blank.</div>');
							hasError = true;
							postVals=postVals + 'Routing number is blank. ';
						}
						var result = null;
						$("#RoutingError").remove();
						$.ajax({
							url: 'methods/checkrouting.php',
							type: 'POST',
							data: { data: checkVal },
							async: false,
							success: function(data) {
								result = data;
							}
						});
						if (result == 'No' && !UseSaved) {
							$("#routingNumber").after('<div id=RoutingError class="alert alert-danger">Invalid Routing Number.</div>');
							hasError = true;
							postVals=postVals + 'Routing number is invalid:' + checkVal + ':<br>';
						}
												$("#AccountError").remove();
						var accountVal = $("#Account").val();
						var checkVal = $("#Account2").val();
						if (accountVal == '' && !UseSaved) {
							$("#Account").after('<div id=AccountError class="alert alert-danger">Please enter an account number.</div>');
							hasError = true;
							postVals=postVals + 'Invalid Account Number:' + accountVal + ':<br>';
						}
						else if (isNaN(accountVal) && !UseSaved) {
							$("#Account").after('<div id=AccountError class="alert alert-danger">Please only enter numbers.</div>');
							hasError = true;
							postVals=postVals + 'Invalid Account Number:' + accountVal + ':<br>';
						} else if (checkVal == '' && !UseSaved) {
							$("#Account2").after('<div id=AccountError class="alert alert-danger">Please re-enter your account number.</div>');
							hasError = true;
							postVals=postVals + 'Invalid Account2 Number:' + checkVal + ':<br>';
						} else if (accountVal != checkVal  && !UseSaved) {
							$("#Account2").after('<div id=AccountError class="alert alert-danger">Account numbers do not match.</div>');
							hasError = true;
							postVals=postVals + 'Account numbers do not match.:' + checkVal + ':' + accountVal + ':<br>';
						}
						
						$("#PhoneError").remove();
						var checkVal = $("#Phone").val();
						if (checkVal == '') {
							$("#Phone").after('<div id=PhoneError class="alert alert-danger">Please enter a phone number.</div>');
							hasError = true;
							postVals=postVals + 'Invalid phone.:' + checkVal + ':<br>';
						}
						$("#EmailError").remove();
						var checkVal = $("#Email").val();
						if( !isValidEmailAddress( checkVal ) ) {
							$("#Email").after('<div id=EmailError class="alert alert-danger">Please enter an Email address.</div>');
							hasError = true;
							postVals=postVals + 'Invalid email.:' + checkVal + ':<br>';
						}
						if(hasError == true) {
							$.ajax({
							url: 'methods/auditentry.php',
							type: 'POST',
							data: { Path: 'echeck failure',
									Username: '',
									IPAddress: '104.131.42.50',
									Post: postVals
									},
							async: false,
							success: function(data) {
								result = data;
							}
						});
							return false;}
					});
				});
				
				
					
			jQuery(function(){
					$("#submitbuttonpcredit").click(function(){
					$(".error").hide();
					var hasError = false;
					var checkVal = $("#paymentdate").val();
					if (checkVal == '') {
						$("#paymentdate").after('<div class="alert alert-danger">Please enter a payment date.</div>');
						hasError = true;
					}
					if(hasError == true) {return false;}
				});
			});
			
			jQuery(function(){
					$("#submitbuttonsaved").click(function(){
					$(".error").hide();
					var hasError = false;
					
					if ($('input:radio[name="Saved"]:checked').length == 0) {
						$("#submitbuttonsaved").after('<div class="alert alert-danger">Please select one.</div>');
						hasError = true;
					}
					if(hasError == true) {return false;}
				});
			});

				</script>

<div class="modal fade" id="contactModal" tabindex="-1" role="dialog" title="ParcelDetailPopup">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      
      <div class="modal-body" id="modal-body-contactModal">
       Loading, Please Wait
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
</body>
</html>