Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                
<?xml version="1.0"?>
<html lang="en">
<head>

<!-- <script type="text/javascript" src="//use.typekit.net/pbd1oxv.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>

<link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">-->
    <!--
<link rel="stylesheet" type="text/css" href="../mp-shared/css/jquery-ui.css">
<link rel="stylesheet" type="text/css" href="../mp-shared/css/core.css">
<link rel="stylesheet" type="text/css" href="../mp-shared/css/modal.css">
-->
<link rel="stylesheet" type="text/css" href="css/main.css">
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>

</head>
<body>

		<div class="container-full-header">
			<div id="mp-navigation" class="fixed-centre">
				<div id="mp-logo" class="mp-logo">
				
								<img src="img/logo-moneypiggy-bg-pink.png" />
				
						
			
				</div>
			
			
			    		<div class="loggedin-placeholder">
						 <div class="loggedin">
			
						</div>
						
		
				</div>

			
	
				<div id="contactgroup-logo" class="contactgroup-logo">
			<img src="img/cg-logo.png" />
				</div>
			</div>
		</div>
		<div class="container-full-sub-block">
				<div class="fixed-centre">
			
				  <ul class="tabs" >
        <!-- Payments Secondary Nav -->
    <li 

    ><a  href="paymentitems.php">Payment items</a></li>
    <li


    ><a  href="dinnermoney.php">Dinner money</a></li>
    <li 


    ><a 


    href="manualpayment.php">Manual payments</a></li>


<!-- Permissions Secondary Nav -->


<!-- Reminders Secondary Nav -->

<!-- Contacts Secondary Nav -->

<!-- Admin Secondary Nav -->





<!-- Parent Account Secondary Nav -->





  </ul>
				
			<!--		<div id="helpOverLay" class="question-sign">
<a  class="alert-page" title="Help" href="../help/help?hideChrome=true">Help</a>
</div>-->	</div>
				</div>


<div class="container-full-content clearfix">
		<div class='fixed-centre'>
<div class='tab-container'><h2>Dinner Money (Fixed Amount)</h2><p>Dinner money collection allows you to charge for a school meal, with the funds automatically being deducted from the parent's eWallet. If they do not have funds in their eWallet, they will be sent a payment request.</p><form id='ahform' action='do.sendahpayments.php'  method='post'><input type='hidden' name='id' value='0' /><h3>Description</h3><p><input size='55' type='text' id='description' name='description' value='School Meal 11/09/2014' /></p><h3>Date</h3><p><input type='text' id='date' name='date' class='datepicker' value='11/09/2014' /></p><h3>Amount</h3><p>&pound; <input type='text' size='5' name='amount' id='amount' value='0.00' /></p><h3>Assignments</h3><div id='tabs'><ul><li><a href='#tabs-3'>ABC</a></li><li><a href='#tabs-4'>BBC</a></li><li><a href='#tabs-5'>C4</a></li><li><a href='#tabs-6'>CBS</a></li><li><a href='#tabs-7'>CC</a></li><li><a href='#tabs-8'>CN</a></li><li><a href='#tabs-9'>FOX</a></li><li><a href='#tabs-10'>NBC</a></li><li><a href='#tabs-11'>Other</a></li></ul><div id='tabs-10'>
<table class='branded-table'>
<thead>
<tr><th>Child</th><th>Assignment</th></tr><thead><tbody><tr><td><span>Devon Awesome-Woodcomb</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-32' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-32' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-32' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-32' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Eleanor Bartowski-Woodcomb</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-31' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-31' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-31' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-31' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Elaine Benes</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-3' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-3' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-3' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-3' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Phoebe Buffay</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-48' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-48' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-48' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-48' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>George Constanza</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-4' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-4' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-4' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-4' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Frasier Crane</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-49' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-49' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-49' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-49' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Niles Crane</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-50' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-50' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-50' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-50' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Jack Donaghy</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-23' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-23' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-23' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-23' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Monica Geller</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-45' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-45' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-45' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-45' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Rachael Green</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-47' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-47' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-47' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-47' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Tracey Jordan</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-22' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-22' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-22' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-22' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Cosmo Kramer</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-5' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-5' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-5' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-5' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Jenna Maroney</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-24' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-24' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-24' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-24' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Sally Solomon</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-56' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-56' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-56' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-56' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Harry Solomon</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-57' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-57' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-57' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-57' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Tommy Solomon</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-58' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-58' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-58' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-58' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Joey Tribbiani</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-46' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-46' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-46' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-46' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Sarah Walker</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-30' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-30' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-30' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-30' /> <span>Free Meal</span> &nbsp;</td></tr></tbody></table></div><div id='tabs-6'>
<table class='branded-table'>
<thead>
<tr><th>Child</th><th>Assignment</th></tr><thead><tbody><tr><td><span>Lily Aldrin</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-20' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-20' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-20' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-20' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Ally Barone</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-33' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-33' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-33' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-33' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Marshal Eriksen</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-21' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-21' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-21' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-21' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Alan Harper</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-7' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-7' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-7' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-7' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Charlie Harper</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-6' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-6' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-6' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-6' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Barney Stinson</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-18' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-18' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-18' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-18' /> <span>Free Meal</span> &nbsp;</td></tr></tbody></table></div><div id='tabs-8'>
<table class='branded-table'>
<thead>
<tr><th>Child</th><th>Assignment</th></tr><thead><tbody><tr><td><span>Myron Reducto</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-9' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-9' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-9' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-9' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Phil Ken Sebben</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-8' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-8' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-8' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-8' /> <span>Free Meal</span> &nbsp;</td></tr></tbody></table></div><div id='tabs-9'>
<table class='branded-table'>
<thead>
<tr><th>Child</th><th>Assignment</th></tr><thead><tbody><tr><td><span>Michael Bluth</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-10' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-10' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-10' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-10' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Gob Bluth</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-12' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-12' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-12' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-12' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Buster Bluth</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-13' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-13' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-13' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-13' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Lindsay Bluth-Fünke</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-11' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-11' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-11' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-11' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Bud Bundy</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-54' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-54' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-54' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-54' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Kelly Bundy</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-55' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-55' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-55' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-55' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Stewie Griffin</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-40' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-40' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-40' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-40' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Meg Griffin</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-41' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-41' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-41' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-41' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Chris Griffin</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-39' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-39' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-39' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-39' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Lisa Simpson</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-37' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-37' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-37' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-37' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Bart Simpson</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-36' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-36' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-36' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-36' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Maggie Simpson</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-38' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-38' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-38' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-38' /> <span>Free Meal</span> &nbsp;</td></tr></tbody></table></div><div id='tabs-5'>
<table class='branded-table'>
<thead>
<tr><th>Child</th><th>Assignment</th></tr><thead><tbody><tr><td><span>Jay Cartwright</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-16' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-16' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-16' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-16' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Simon Cooper</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-15' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-15' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-15' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-15' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Neil Sutherland</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-17' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-17' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-17' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-17' /> <span>Free Meal</span> &nbsp;</td></tr></tbody></table></div><div id='tabs-3'>
<table class='branded-table'>
<thead>
<tr><th>Child</th><th>Assignment</th></tr><thead><tbody><tr><td><span>Child ABC2</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-98' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-98' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-98' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-98' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Child ABC3</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-99' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-99' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-99' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-99' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span class='disabled'>Test Child</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-91' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-91' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2' disabled='disabled'  name='child-91' /> <span class='disabled'>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-91' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Luke Dunphy</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-25' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-25' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-25' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-25' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Haley Dunphy</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-26' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-26' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-26' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-26' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Alex Dunphy</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-27' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-27' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-27' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-27' /> <span>Free Meal</span> &nbsp;</td></tr></tbody></table></div><div id='tabs-4'>
<table class='branded-table'>
<thead>
<tr><th>Child</th><th>Assignment</th></tr><thead><tbody><tr><td><span>Stacey West-Shipman</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-29' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-29' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-29' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-29' /> <span>Free Meal</span> &nbsp;</td></tr></tbody></table></div><div id='tabs-7'>
<table class='branded-table'>
<thead>
<tr><th>Child</th><th>Assignment</th></tr><thead><tbody><tr><td><span>Bender Bending-Rodriguez</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-51' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-51' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-51' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-51' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Zapp Brannigan</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-52' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-52' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-52' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-52' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Wyatt Cenac</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-43' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-43' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-43' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-43' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Jason Jones</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-44' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-44' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-44' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-44' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Kif Kroker</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-53' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-53' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-53' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-53' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>John Oliver</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-42' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-42' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-42' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-42' /> <span>Free Meal</span> &nbsp;</td></tr></tbody></table></div><div id='tabs-11'>
<table class='branded-table'>
<thead>
<tr><th>Child</th><th>Assignment</th></tr><thead><tbody><tr><td><span>Orphan Child 1</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-80' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-80' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-80' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-80' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Sally Draper</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-86' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-86' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-86' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-86' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Gene Draper</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-87' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-87' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-87' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-87' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Bobby Draper</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-88' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-88' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-88' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-88' /> <span>Free Meal</span> &nbsp;</td></tr><tr><td><span>Moneypiggy Student</span></td><td><input class='radio-0' type='radio' value='0' checked='checked'  name='child-81' /> <span>No Meal</span> &nbsp;<input class='radio-1' type='radio' value='1'  name='child-81' /> <span>Meal (Cash)</span> &nbsp;<input class='radio-2' type='radio' value='2'  name='child-81' /> <span>Meal (eWallet)</span> &nbsp;<input class='radio-3' type='radio' value='3'  name='child-81' /> <span>Free Meal</span> &nbsp;</td></tr></tbody></table><div id='tabs-1'>No Children in this class.</div></table><div id='tabs-2'>No Children in this class.</div></div><div><h3>Totals</h3><p class='classtotals'><b>No Meal:</b> <span id='nomeal_total'>0</span> &nbsp; &nbsp; <b>Cash:</b> <span id='cash_total'>0</span> &nbsp; &nbsp; <b>eWallet:</b> <span id='ewallet_total'>0</span>&nbsp;&nbsp;<b>FSM:</b> <span id='fsm_total'>0</span></p><button type='submit'   onclick='SubmitAHForm();' >Charge Meals &gt;</button></form></div></div></div>
</div></div>

<div id="footer"  class="footer">
<div class="footer-fixed">

 <span class="footer__copyright">&copy; 2014 ContactGroup. All rights reserved.</span>
  <ul  class="footer__menu">
    <li class="footer__link"><a class="footer__a" href="http://www.the-contactgroup.com/contact-us/">Contact Us</a></li>
    <li class="footer__link"><a class="footer__a" href="http://www.the-contactgroup.com/about-us/">About</a></li>
    <li class="footer__link"><a class="footer__a" href="http://www.the-contactgroup.com/website-terms-and-conditions/">Terms &amp; Conditions</a></li>
    <li class="footer__link"><a class="footer__a" href="http://www.the-contactgroup.com/privacy-policy/">Privacy Policy</a></li>
   </ul></div>
</div>
 <div id="dialog-default" title="Warning">
        <p></p>
    </div>

<script type="text/javascript" src="js/scriptaculous/prototype.min.js"></script>
<script type="text/javascript" src="js/scriptaculous/effects.min.js"></script>
<!--<script type="text/javascript" src="js/jq/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="js/jq/jquery-ui-1.8.11.custom.min.js"></script>-->
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script>jQuery.noConflict();</script> 

<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<script type="text/javascript" src="js/alerter.js"></script>
<!--
<script type="text/javascript" src="js/thickbox.js"></script>
<script type="text/javascript" src="../mp-shared/js/modal.min.js"></script>-->
<script type="text/javascript" src="js/site.js"></script>
<script src="js/jq/jquery.multiselect.min.js"></script>
<script type="text/javascript" src="js/custom.js"></script>

</body>
</html>

              
            
!

CSS

              
                /* jQuery UI - v1.11.0 - 2014-07-23
* https://jqueryui.com
* Includes: core.css, draggable.css, resizable.css, selectable.css, sortable.css, accordion.css, autocomplete.css, button.css, datepicker.css, dialog.css, menu.css, progressbar.css, selectmenu.css, slider.css, spinner.css, tabs.css, tooltip.css, theme.css
* To view and modify this theme, visit https://jqueryui.com/themeroller/?ffDefault=Verdana%2CArial%2Csans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=%23e8729d&bgTextureHeader=flat&bgImgOpacityHeader=100&borderColorHeader=%23cccccc&fcHeader=%23ffffff&iconColorHeader=%23ffffff&bgColorContent=%23ffffff&bgTextureContent=flat&bgImgOpacityContent=75&borderColorContent=%23cccccc&fcContent=%23ffffff&iconColorContent=%23ffffff&bgColorDefault=%23e8729d&bgTextureDefault=flat&bgImgOpacityDefault=100&borderColorDefault=%23e8729d&fcDefault=%23ffffff&iconColorDefault=%23ffffff&bgColorHover=%23ffffff&bgTextureHover=flat&bgImgOpacityHover=100&borderColorHover=%23ffffff&fcHover=%23212121&iconColorHover=%23e8729d&bgColorActive=%23ffffff&bgTextureActive=glass&bgImgOpacityActive=65&borderColorActive=%23ffffff&fcActive=%23212121&iconColorActive=%23454545&bgColorHighlight=%23fbf9ee&bgTextureHighlight=glass&bgImgOpacityHighlight=55&borderColorHighlight=%23e8729d&fcHighlight=%23212121&iconColorHighlight=%23e8729d&bgColorError=%23fef1ec&bgTextureError=glass&bgImgOpacityError=95&borderColorError=%23cd0a0a&fcError=%23cd0a0a&iconColorError=%23cd0a0a&bgColorOverlay=%23aaaaaa&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=%23aaaaaa&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
/* Layout helpers
----------------------------------*/
/* line 9, sass/partials/_jquery-ui.scss */
.ui-helper-hidden {
  display: none;
}

/* line 12, sass/partials/_jquery-ui.scss */
.ui-helper-hidden-accessible {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* line 22, sass/partials/_jquery-ui.scss */
.ui-helper-reset {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  line-height: 1.3;
  text-decoration: none;
  font-size: 100%;
  list-style: none;
}

/* line 33, sass/partials/_jquery-ui.scss */
.ui-helper-clearfix:before,
.ui-helper-clearfix:after {
  content: "";
  display: table;
  border-collapse: collapse;
}

/* line 38, sass/partials/_jquery-ui.scss */
.ui-helper-clearfix:after {
  clear: both;
}

/* line 41, sass/partials/_jquery-ui.scss */
.ui-helper-clearfix {
  min-height: 0;
  /* support: IE7 */
}

/* line 44, sass/partials/_jquery-ui.scss */
.ui-helper-zfix {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  opacity: 0;
  filter: Alpha(Opacity=0);
}

/* line 54, sass/partials/_jquery-ui.scss */
.ui-front {
  z-index: 100;
}

/* Interaction Cues
----------------------------------*/
/* line 61, sass/partials/_jquery-ui.scss */
.ui-state-disabled {
  cursor: default !important;
}

/* Icons
----------------------------------*/
/* states and images */
/* line 70, sass/partials/_jquery-ui.scss */
.ui-icon {
  display: block;
  text-indent: -99999px;
  overflow: hidden;
  background-repeat: no-repeat;
}

/* Misc visuals
----------------------------------*/
/* Overlays */
/* line 82, sass/partials/_jquery-ui.scss */
.ui-widget-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* line 89, sass/partials/_jquery-ui.scss */
.ui-draggable-handle {
  -ms-touch-action: none;
  touch-action: none;
}

/* line 93, sass/partials/_jquery-ui.scss */
.ui-resizable {
  position: relative;
}

/* line 96, sass/partials/_jquery-ui.scss */
.ui-resizable-handle {
  position: absolute;
  font-size: 0.1px;
  display: block;
  -ms-touch-action: none;
  touch-action: none;
}

/* line 104, sass/partials/_jquery-ui.scss */
.ui-resizable-disabled .ui-resizable-handle,
.ui-resizable-autohide .ui-resizable-handle {
  display: none;
}

/* line 107, sass/partials/_jquery-ui.scss */
.ui-resizable-n {
  cursor: n-resize;
  height: 7px;
  width: 100%;
  top: -5px;
  left: 0;
}

/* line 114, sass/partials/_jquery-ui.scss */
.ui-resizable-s {
  cursor: s-resize;
  height: 7px;
  width: 100%;
  bottom: -5px;
  left: 0;
}

/* line 121, sass/partials/_jquery-ui.scss */
.ui-resizable-e {
  cursor: e-resize;
  width: 7px;
  right: -5px;
  top: 0;
  height: 100%;
}

/* line 128, sass/partials/_jquery-ui.scss */
.ui-resizable-w {
  cursor: w-resize;
  width: 7px;
  left: -5px;
  top: 0;
  height: 100%;
}

/* line 135, sass/partials/_jquery-ui.scss */
.ui-resizable-se {
  cursor: se-resize;
  width: 12px;
  height: 12px;
  right: 1px;
  bottom: 1px;
}

/* line 142, sass/partials/_jquery-ui.scss */
.ui-resizable-sw {
  cursor: sw-resize;
  width: 9px;
  height: 9px;
  left: -5px;
  bottom: -5px;
}

/* line 149, sass/partials/_jquery-ui.scss */
.ui-resizable-nw {
  cursor: nw-resize;
  width: 9px;
  height: 9px;
  left: -5px;
  top: -5px;
}

/* line 156, sass/partials/_jquery-ui.scss */
.ui-resizable-ne {
  cursor: ne-resize;
  width: 9px;
  height: 9px;
  right: -5px;
  top: -5px;
}

/* line 163, sass/partials/_jquery-ui.scss */
.ui-selectable {
  -ms-touch-action: none;
  touch-action: none;
}

/* line 167, sass/partials/_jquery-ui.scss */
.ui-selectable-helper {
  position: absolute;
  z-index: 100;
  border: 1px dotted black;
}

/* line 172, sass/partials/_jquery-ui.scss */
.ui-sortable-handle {
  -ms-touch-action: none;
  touch-action: none;
}

/* line 176, sass/partials/_jquery-ui.scss */
.ui-accordion .ui-accordion-header {
  display: block;
  cursor: pointer;
  position: relative;
  margin: 2px 0 0 0;
  padding: .5em .5em .5em .7em;
  min-height: 0;
  /* support: IE7 */
  font-size: 100%;
}

/* line 185, sass/partials/_jquery-ui.scss */
.ui-accordion .ui-accordion-icons {
  padding-left: 2.2em;
}

/* line 188, sass/partials/_jquery-ui.scss */
.ui-accordion .ui-accordion-icons .ui-accordion-icons {
  padding-left: 2.2em;
}

/* line 191, sass/partials/_jquery-ui.scss */
.ui-accordion .ui-accordion-header .ui-accordion-header-icon {
  position: absolute;
  left: .5em;
  top: 50%;
  margin-top: -8px;
}

/* line 197, sass/partials/_jquery-ui.scss */
.ui-accordion .ui-accordion-content {
  padding: 1em 2.2em;
  border-top: 0;
  overflow: auto;
}

/* line 202, sass/partials/_jquery-ui.scss */
.ui-autocomplete {
  position: absolute;
  top: 0;
  left: 0;
  cursor: default;
}

/* line 208, sass/partials/_jquery-ui.scss */
.ui-button {
  display: inline-block;
  position: relative;
  padding: 0;
  line-height: normal;
  margin-right: .1em;
  cursor: pointer;
  vertical-align: middle;
  text-align: center;
  overflow: visible;
  /* removes extra width in IE */
}

/* line 223, sass/partials/_jquery-ui.scss */
.ui-button,
.ui-button:link,
.ui-button:visited,
.ui-button:hover,
.ui-button:active {
  text-decoration: none;
}

/* to make room for the icon, a width needs to be set here */
/* line 227, sass/partials/_jquery-ui.scss */
.ui-button-icon-only {
  width: 2.2em;
}

/* button elements seem to need a little more width */
/* line 231, sass/partials/_jquery-ui.scss */
button.ui-button-icon-only {
  width: 2.4em;
}

/* line 234, sass/partials/_jquery-ui.scss */
.ui-button-icons-only {
  width: 3.4em;
}

/* line 237, sass/partials/_jquery-ui.scss */
button.ui-button-icons-only {
  width: 3.7em;
}

/* button text element */
/* line 242, sass/partials/_jquery-ui.scss */
.ui-button .ui-button-text {
  display: block;
  line-height: normal;
}

/* line 246, sass/partials/_jquery-ui.scss */
.ui-button-text-only .ui-button-text {
  padding: .2em 1em;
}

/* line 250, sass/partials/_jquery-ui.scss */
.ui-button-icon-only .ui-button-text,
.ui-button-icons-only .ui-button-text {
  padding: .4em;
  text-indent: -9999999px;
}

/* line 255, sass/partials/_jquery-ui.scss */
.ui-button-text-icon-primary .ui-button-text,
.ui-button-text-icons .ui-button-text {
  padding: .4em 1em .4em 2.1em;
}

/* line 259, sass/partials/_jquery-ui.scss */
.ui-button-text-icon-secondary .ui-button-text,
.ui-button-text-icons .ui-button-text {
  padding: .4em 2.1em .4em 1em;
}

/* line 262, sass/partials/_jquery-ui.scss */
.ui-button-text-icons .ui-button-text {
  padding-left: 2.1em;
  padding-right: 2.1em;
}

/* no icon support for input elements, provide padding by default */
/* line 267, sass/partials/_jquery-ui.scss */
input.ui-button {
  padding: .4em 1em;
}

/* button icon element(s) */
/* line 276, sass/partials/_jquery-ui.scss */
.ui-button-icon-only .ui-icon,
.ui-button-text-icon-primary .ui-icon,
.ui-button-text-icon-secondary .ui-icon,
.ui-button-text-icons .ui-icon,
.ui-button-icons-only .ui-icon {
  position: absolute;
  top: 50%;
  margin-top: -8px;
}

/* line 281, sass/partials/_jquery-ui.scss */
.ui-button-icon-only .ui-icon {
  left: 50%;
  margin-left: -8px;
}

/* line 287, sass/partials/_jquery-ui.scss */
.ui-button-text-icon-primary .ui-button-icon-primary,
.ui-button-text-icons .ui-button-icon-primary,
.ui-button-icons-only .ui-button-icon-primary {
  left: .5em;
}

/* line 292, sass/partials/_jquery-ui.scss */
.ui-button-text-icon-secondary .ui-button-icon-secondary,
.ui-button-text-icons .ui-button-icon-secondary,
.ui-button-icons-only .ui-button-icon-secondary {
  right: .5em;
}

/* button sets */
/* line 297, sass/partials/_jquery-ui.scss */
.ui-buttonset {
  margin-right: 7px;
}

/* line 300, sass/partials/_jquery-ui.scss */
.ui-buttonset .ui-button {
  margin-left: 0;
  margin-right: -0.3em;
}

/* workarounds */
/* reset extra padding in Firefox, see h5bp.com/l */
/* line 308, sass/partials/_jquery-ui.scss */
input.ui-button::-moz-focus-inner,
button.ui-button::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/* line 312, sass/partials/_jquery-ui.scss */
.ui-datepicker {
  width: 17em;
  padding: .2em .2em 0;
  display: none;
}

/* line 317, sass/partials/_jquery-ui.scss */
.ui-datepicker .ui-datepicker-header {
  position: relative;
  padding: .2em 0;
}

/* line 322, sass/partials/_jquery-ui.scss */
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  position: absolute;
  top: 2px;
  width: 1.8em;
  height: 1.8em;
}

/* line 329, sass/partials/_jquery-ui.scss */
.ui-datepicker .ui-datepicker-prev-hover,
.ui-datepicker .ui-datepicker-next-hover {
  top: 1px;
}

/* line 332, sass/partials/_jquery-ui.scss */
.ui-datepicker .ui-datepicker-prev {
  left: 2px;
}

/* line 335, sass/partials/_jquery-ui.scss */
.ui-datepicker .ui-datepicker-next {
  right: 2px;
}

/* line 338, sass/partials/_jquery-ui.scss */
.ui-datepicker .ui-datepicker-prev-hover {
  left: 1px;
}

/* line 341, sass/partials/_jquery-ui.scss */
.ui-datepicker .ui-datepicker-next-hover {
  right: 1px;
}

/* line 345, sass/partials/_jquery-ui.scss */
.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
  display: block;
  position: absolute;
  left: 50%;
  margin-left: -8px;
  top: 50%;
  margin-top: -8px;
}

/* line 353, sass/partials/_jquery-ui.scss */
.ui-datepicker .ui-datepicker-title {
  margin: 0 2.3em;
  line-height: 1.8em;
  text-align: center;
}

/* line 358, sass/partials/_jquery-ui.scss */
.ui-datepicker .ui-datepicker-title select {
  font-size: 1em;
  margin: 1px 0;
}

/* line 363, sass/partials/_jquery-ui.scss */
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
  width: 49%;
}

/* line 366, sass/partials/_jquery-ui.scss */
.ui-datepicker table {
  width: 100%;
  font-size: .9em;
  border-collapse: collapse;
  margin: 0 0 .4em;
}

/* line 372, sass/partials/_jquery-ui.scss */
.ui-datepicker th {
  padding: .7em .3em;
  text-align: center;
  font-weight: bold;
  border: 0;
}

/* line 378, sass/partials/_jquery-ui.scss */
.ui-datepicker td {
  border: 0;
  padding: 1px;
}

/* line 383, sass/partials/_jquery-ui.scss */
.ui-datepicker td span,
.ui-datepicker td a {
  display: block;
  padding: .2em;
  text-align: right;
  text-decoration: none;
}

/* line 389, sass/partials/_jquery-ui.scss */
.ui-datepicker .ui-datepicker-buttonpane {
  background-image: none;
  margin: .7em 0 0 0;
  padding: 0 .2em;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

/* line 397, sass/partials/_jquery-ui.scss */
.ui-datepicker .ui-datepicker-buttonpane button {
  float: right;
  margin: .5em .2em .4em;
  cursor: pointer;
  padding: .2em .6em .3em .6em;
  width: auto;
  overflow: visible;
}

/* line 405, sass/partials/_jquery-ui.scss */
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current {
  float: left;
}

/* with multiple calendars */
/* line 410, sass/partials/_jquery-ui.scss */
.ui-datepicker.ui-datepicker-multi {
  width: auto;
}

/* line 413, sass/partials/_jquery-ui.scss */
.ui-datepicker-multi .ui-datepicker-group {
  float: left;
}

/* line 416, sass/partials/_jquery-ui.scss */
.ui-datepicker-multi .ui-datepicker-group table {
  width: 95%;
  margin: 0 auto .4em;
}

/* line 420, sass/partials/_jquery-ui.scss */
.ui-datepicker-multi-2 .ui-datepicker-group {
  width: 50%;
}

/* line 423, sass/partials/_jquery-ui.scss */
.ui-datepicker-multi-3 .ui-datepicker-group {
  width: 33.3%;
}

/* line 426, sass/partials/_jquery-ui.scss */
.ui-datepicker-multi-4 .ui-datepicker-group {
  width: 25%;
}

/* line 430, sass/partials/_jquery-ui.scss */
.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,
.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header {
  border-left-width: 0;
}

/* line 433, sass/partials/_jquery-ui.scss */
.ui-datepicker-multi .ui-datepicker-buttonpane {
  clear: left;
}

/* line 436, sass/partials/_jquery-ui.scss */
.ui-datepicker-row-break {
  clear: both;
  width: 100%;
  font-size: 0;
}

/* RTL support */
/* line 443, sass/partials/_jquery-ui.scss */
.ui-datepicker-rtl {
  direction: rtl;
}

/* line 446, sass/partials/_jquery-ui.scss */
.ui-datepicker-rtl .ui-datepicker-prev {
  right: 2px;
  left: auto;
}

/* line 450, sass/partials/_jquery-ui.scss */
.ui-datepicker-rtl .ui-datepicker-next {
  left: 2px;
  right: auto;
}

/* line 454, sass/partials/_jquery-ui.scss */
.ui-datepicker-rtl .ui-datepicker-prev:hover {
  right: 1px;
  left: auto;
}

/* line 458, sass/partials/_jquery-ui.scss */
.ui-datepicker-rtl .ui-datepicker-next:hover {
  left: 1px;
  right: auto;
}

/* line 462, sass/partials/_jquery-ui.scss */
.ui-datepicker-rtl .ui-datepicker-buttonpane {
  clear: right;
}

/* line 465, sass/partials/_jquery-ui.scss */
.ui-datepicker-rtl .ui-datepicker-buttonpane button {
  float: left;
}

/* line 469, sass/partials/_jquery-ui.scss */
.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,
.ui-datepicker-rtl .ui-datepicker-group {
  float: right;
}

/* line 473, sass/partials/_jquery-ui.scss */
.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,
.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header {
  border-right-width: 0;
  border-left-width: 1px;
}

/* line 477, sass/partials/_jquery-ui.scss */
.ui-dialog {
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  padding: .2em;
  outline: 0;
}

/* line 485, sass/partials/_jquery-ui.scss */
.ui-dialog .ui-dialog-titlebar {
  padding: .4em 1em;
  position: relative;
}

/* line 489, sass/partials/_jquery-ui.scss */
.ui-dialog .ui-dialog-title {
  float: left;
  margin: .1em 0;
  white-space: nowrap;
  width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* line 497, sass/partials/_jquery-ui.scss */
.ui-dialog .ui-dialog-titlebar-close {
  position: absolute;
  right: .3em;
  top: 50%;
  width: 20px;
  margin: -10px 0 0 0;
  padding: 1px;
  height: 20px;
}

/* line 506, sass/partials/_jquery-ui.scss */
.ui-dialog .ui-dialog-content {
  position: relative;
  border: 0;
  padding: .5em 1em;
  background: none;
  overflow: auto;
}

/* line 513, sass/partials/_jquery-ui.scss */
.ui-dialog .ui-dialog-buttonpane {
  text-align: left;
  border-width: 1px 0 0 0;
  background-image: none;
  margin-top: .5em;
  padding: .3em 1em .5em .4em;
}

/* line 520, sass/partials/_jquery-ui.scss */
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
  float: right;
}

/* line 523, sass/partials/_jquery-ui.scss */
.ui-dialog .ui-dialog-buttonpane button {
  margin: .5em .4em .5em 0;
  cursor: pointer;
}

/* line 527, sass/partials/_jquery-ui.scss */
.ui-dialog .ui-resizable-se {
  width: 12px;
  height: 12px;
  right: -5px;
  bottom: -5px;
  background-position: 16px 16px;
}

/* line 534, sass/partials/_jquery-ui.scss */
.ui-draggable .ui-dialog-titlebar {
  cursor: move;
}

/* line 537, sass/partials/_jquery-ui.scss */
.ui-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
  outline: none;
}

/* line 544, sass/partials/_jquery-ui.scss */
.ui-menu .ui-menu {
  position: absolute;
}

/* line 547, sass/partials/_jquery-ui.scss */
.ui-menu .ui-menu-item {
  position: relative;
  margin: 0;
  padding: 3px 1em 3px .4em;
  cursor: pointer;
  min-height: 0;
  /* support: IE7 */
  /* support: IE10, see #8844 */
  list-style-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");
}

/* line 556, sass/partials/_jquery-ui.scss */
.ui-menu .ui-menu-divider {
  margin: 5px 0;
  height: 0;
  font-size: 0;
  line-height: 0;
  border-width: 1px 0 0 0;
}

/* line 564, sass/partials/_jquery-ui.scss */
.ui-menu .ui-state-focus,
.ui-menu .ui-state-active {
  margin: -1px;
}

/* icon support */
/* line 569, sass/partials/_jquery-ui.scss */
.ui-menu-icons {
  position: relative;
}

/* line 572, sass/partials/_jquery-ui.scss */
.ui-menu-icons .ui-menu-item {
  padding-left: 2em;
}

/* left-aligned */
/* line 577, sass/partials/_jquery-ui.scss */
.ui-menu .ui-icon {
  position: absolute;
  top: 0;
  bottom: 0;
  left: .2em;
  margin: auto 0;
}

/* right-aligned */
/* line 586, sass/partials/_jquery-ui.scss */
.ui-menu .ui-menu-icon {
  left: auto;
  right: 0;
}

/* line 590, sass/partials/_jquery-ui.scss */
.ui-progressbar {
  height: 2em;
  text-align: left;
  overflow: hidden;
}

/* line 595, sass/partials/_jquery-ui.scss */
.ui-progressbar .ui-progressbar-value {
  margin: -1px;
  height: 100%;
}

/* line 599, sass/partials/_jquery-ui.scss */
.ui-progressbar .ui-progressbar-overlay {
  background: url("images/animated-overlay.gif");
  height: 100%;
  filter: alpha(opacity=25);
  opacity: 0.25;
}

/* line 605, sass/partials/_jquery-ui.scss */
.ui-progressbar-indeterminate .ui-progressbar-value {
  background-image: none;
}

/* line 608, sass/partials/_jquery-ui.scss */
.ui-selectmenu-menu {
  padding: 0;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
}

/* line 616, sass/partials/_jquery-ui.scss */
.ui-selectmenu-menu .ui-menu {
  overflow: auto;
  /* Support: IE7 */
  overflow-x: hidden;
  padding-bottom: 1px;
}

/* line 622, sass/partials/_jquery-ui.scss */
.ui-selectmenu-menu .ui-menu .ui-selectmenu-optgroup {
  font-size: 1em;
  font-weight: bold;
  line-height: 1.5;
  padding: 2px 0.4em;
  margin: 0.5em 0 0 0;
  height: auto;
  border: 0;
}

/* line 631, sass/partials/_jquery-ui.scss */
.ui-selectmenu-open {
  display: block;
}

/* line 634, sass/partials/_jquery-ui.scss */
.ui-selectmenu-button {
  display: inline-block;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  cursor: pointer;
}

/* line 641, sass/partials/_jquery-ui.scss */
.ui-selectmenu-button span.ui-icon {
  right: 0.5em;
  left: auto;
  margin-top: -8px;
  position: absolute;
  top: 50%;
}

/* line 648, sass/partials/_jquery-ui.scss */
.ui-selectmenu-button span.ui-selectmenu-text {
  text-align: left;
  padding: 0.4em 2.1em 0.4em 1em;
  display: block;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* line 657, sass/partials/_jquery-ui.scss */
.ui-slider {
  position: relative;
  text-align: left;
}

/* line 661, sass/partials/_jquery-ui.scss */
.ui-slider .ui-slider-handle {
  position: absolute;
  z-index: 2;
  width: 1.2em;
  height: 1.2em;
  cursor: default;
  -ms-touch-action: none;
  touch-action: none;
}

/* line 670, sass/partials/_jquery-ui.scss */
.ui-slider .ui-slider-range {
  position: absolute;
  z-index: 1;
  font-size: .7em;
  display: block;
  border: 0;
  background-position: 0 0;
}

/* For IE8 - See #6727 */
/* line 681, sass/partials/_jquery-ui.scss */
.ui-slider.ui-state-disabled .ui-slider-handle,
.ui-slider.ui-state-disabled .ui-slider-range {
  filter: inherit;
}

/* line 685, sass/partials/_jquery-ui.scss */
.ui-slider-horizontal {
  height: .8em;
}

/* line 688, sass/partials/_jquery-ui.scss */
.ui-slider-horizontal .ui-slider-handle {
  top: -0.3em;
  margin-left: -0.6em;
}

/* line 692, sass/partials/_jquery-ui.scss */
.ui-slider-horizontal .ui-slider-range {
  top: 0;
  height: 100%;
}

/* line 696, sass/partials/_jquery-ui.scss */
.ui-slider-horizontal .ui-slider-range-min {
  left: 0;
}

/* line 699, sass/partials/_jquery-ui.scss */
.ui-slider-horizontal .ui-slider-range-max {
  right: 0;
}

/* line 703, sass/partials/_jquery-ui.scss */
.ui-slider-vertical {
  width: .8em;
  height: 100px;
}

/* line 707, sass/partials/_jquery-ui.scss */
.ui-slider-vertical .ui-slider-handle {
  left: -0.3em;
  margin-left: 0;
  margin-bottom: -0.6em;
}

/* line 712, sass/partials/_jquery-ui.scss */
.ui-slider-vertical .ui-slider-range {
  left: 0;
  width: 100%;
}

/* line 716, sass/partials/_jquery-ui.scss */
.ui-slider-vertical .ui-slider-range-min {
  bottom: 0;
}

/* line 719, sass/partials/_jquery-ui.scss */
.ui-slider-vertical .ui-slider-range-max {
  top: 0;
}

/* line 722, sass/partials/_jquery-ui.scss */
.ui-spinner {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 0;
  vertical-align: middle;
}

/* line 729, sass/partials/_jquery-ui.scss */
.ui-spinner-input {
  border: none;
  background: none;
  color: inherit;
  padding: 0;
  margin: .2em 0;
  vertical-align: middle;
  margin-left: .4em;
  margin-right: 22px;
}

/* line 739, sass/partials/_jquery-ui.scss */
.ui-spinner-button {
  width: 16px;
  height: 50%;
  font-size: .5em;
  padding: 0;
  margin: 0;
  text-align: center;
  position: absolute;
  cursor: default;
  display: block;
  overflow: hidden;
  right: 0;
}

/* more specificity required here to override default borders */
/* line 753, sass/partials/_jquery-ui.scss */
.ui-spinner a.ui-spinner-button {
  border-top: none;
  border-bottom: none;
  border-right: none;
}

/* vertically center icon */
/* line 759, sass/partials/_jquery-ui.scss */
.ui-spinner .ui-icon {
  position: absolute;
  margin-top: -8px;
  top: 50%;
  left: 0;
}

/* line 765, sass/partials/_jquery-ui.scss */
.ui-spinner-up {
  top: 0;
}

/* line 768, sass/partials/_jquery-ui.scss */
.ui-spinner-down {
  bottom: 0;
}

/* TR overrides */
/* line 773, sass/partials/_jquery-ui.scss */
.ui-spinner .ui-icon-triangle-1-s {
  /* need to fix icons sprite */
  background-position: -65px -16px;
}

/* line 777, sass/partials/_jquery-ui.scss */
.ui-tabs {
  position: relative;
  /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
  padding: .2em;
}

/* line 781, sass/partials/_jquery-ui.scss */
.ui-tabs .ui-tabs-nav {
  margin: 0;
  padding: .2em .2em 0;
}

/* line 785, sass/partials/_jquery-ui.scss */
.ui-tabs .ui-tabs-nav li {
  list-style: none;
  float: left;
  position: relative;
  top: 0;
  margin: 1px .2em 0 0;
  border-bottom-width: 0;
  padding: 0;
  white-space: nowrap;
}

/* line 795, sass/partials/_jquery-ui.scss */
.ui-tabs .ui-tabs-nav .ui-tabs-anchor {
  float: left;
  padding: .5em 1em;
  text-decoration: none;
}

/* line 800, sass/partials/_jquery-ui.scss */
.ui-tabs .ui-tabs-nav li.ui-tabs-active {
  margin-bottom: -1px;
  padding-bottom: 1px;
}

/* line 806, sass/partials/_jquery-ui.scss */
.ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor,
.ui-tabs .ui-tabs-nav li.ui-state-disabled .ui-tabs-anchor,
.ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor {
  cursor: text;
}

/* line 809, sass/partials/_jquery-ui.scss */
.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor {
  cursor: pointer;
}

/* line 812, sass/partials/_jquery-ui.scss */
.ui-tabs .ui-tabs-panel {
  display: block;
  border-width: 0;
  padding: 1em 1.4em;
  background: none;
}

/* line 818, sass/partials/_jquery-ui.scss */
.ui-tooltip {
  padding: 8px;
  position: absolute;
  z-index: 9999;
  max-width: 300px;
  -webkit-box-shadow: 0 0 5px #aaa;
  box-shadow: 0 0 5px #aaa;
}

/* line 826, sass/partials/_jquery-ui.scss */
body .ui-tooltip {
  border-width: 2px;
}

/* Component containers
----------------------------------*/
/* line 835, sass/partials/_jquery-ui.scss */
.ui-widget .ui-widget {
  font-size: 1em;
}

/* line 841, sass/partials/_jquery-ui.scss */
.ui-widget input,
.ui-widget select,
.ui-widget textarea,
.ui-widget button {
  font-family: Verdana,Arial,sans-serif;
  font-size: 1em;
}

/* line 845, sass/partials/_jquery-ui.scss */
.ui-widget-content {
  border: 1px solid #cccccc;
  background: white url("images/ui-bg_flat_75_ffffff_40x100.png") 50% 50% repeat-x;
  color: #000;
}

/* line 850, sass/partials/_jquery-ui.scss */
.ui-widget-content a {
  color: #000;
}

/* line 853, sass/partials/_jquery-ui.scss */
.ui-widget-header {
  border: 1px solid #cccccc;
  background: #e8729d url("images/ui-bg_flat_100_e8729d_40x100.png") 50% 50% repeat-x;
  color: #ffffff;
  font-weight: bold;
}

/* line 859, sass/partials/_jquery-ui.scss */
.ui-widget-header a {
  color: #ffffff;
}

/* Interaction states
----------------------------------*/
/* line 867, sass/partials/_jquery-ui.scss */
.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default {
  border: 1px solid #e8729d;
  background: #e8729d url("images/ui-bg_flat_100_e8729d_40x100.png") 50% 50% repeat-x;
  font-weight: normal;
  color: #ffffff;
}

/* line 875, sass/partials/_jquery-ui.scss */
.ui-state-default a,
.ui-state-default a:link,
.ui-state-default a:visited {
  color: #ffffff;
  text-decoration: none;
}

/* line 884, sass/partials/_jquery-ui.scss */
.ui-state-hover,
.ui-widget-content .ui-state-hover,
.ui-widget-header .ui-state-hover,
.ui-state-focus,
.ui-widget-content .ui-state-focus,
.ui-widget-header .ui-state-focus {
  border: 1px solid #ffffff;
  background: white url("images/ui-bg_flat_100_ffffff_40x100.png") 50% 50% repeat-x;
  font-weight: normal;
  color: #212121;
}

/* line 897, sass/partials/_jquery-ui.scss */
.ui-state-hover a,
.ui-state-hover a:hover,
.ui-state-hover a:link,
.ui-state-hover a:visited,
.ui-state-focus a,
.ui-state-focus a:hover,
.ui-state-focus a:link,
.ui-state-focus a:visited {
  color: #212121;
  text-decoration: none;
}

/* line 903, sass/partials/_jquery-ui.scss */
.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active {
  border: 1px solid #ffffff;
  background: white url("images/ui-bg_glass_65_ffffff_1x400.png") 50% 50% repeat-x;
  font-weight: normal;
  color: #212121;
}

/* line 911, sass/partials/_jquery-ui.scss */
.ui-state-active a,
.ui-state-active a:link,
.ui-state-active a:visited {
  color: #212121;
  text-decoration: none;
}

/* Interaction Cues
----------------------------------*/
/* line 920, sass/partials/_jquery-ui.scss */
.ui-state-highlight,
.ui-widget-content .ui-state-highlight,
.ui-widget-header .ui-state-highlight {
  border: 1px solid #e8729d;
  background: #fbf9ee url("images/ui-bg_glass_55_fbf9ee_1x400.png") 50% 50% repeat-x;
  color: #212121;
}

/* line 927, sass/partials/_jquery-ui.scss */
.ui-state-highlight a,
.ui-widget-content .ui-state-highlight a,
.ui-widget-header .ui-state-highlight a {
  color: #212121;
}

/* line 932, sass/partials/_jquery-ui.scss */
.ui-state-error,
.ui-widget-content .ui-state-error,
.ui-widget-header .ui-state-error {
  border: 1px solid #cd0a0a;
  background: #fef1ec url("images/ui-bg_glass_95_fef1ec_1x400.png") 50% 50% repeat-x;
  color: #cd0a0a;
}

/* line 939, sass/partials/_jquery-ui.scss */
.ui-state-error a,
.ui-widget-content .ui-state-error a,
.ui-widget-header .ui-state-error a {
  color: #cd0a0a;
}

/* line 944, sass/partials/_jquery-ui.scss */
.ui-state-error-text,
.ui-widget-content .ui-state-error-text,
.ui-widget-header .ui-state-error-text {
  color: #cd0a0a;
}

/* line 949, sass/partials/_jquery-ui.scss */
.ui-priority-primary,
.ui-widget-content .ui-priority-primary,
.ui-widget-header .ui-priority-primary {
  font-weight: bold;
}

/* line 954, sass/partials/_jquery-ui.scss */
.ui-priority-secondary,
.ui-widget-content .ui-priority-secondary,
.ui-widget-header .ui-priority-secondary {
  opacity: .7;
  filter: Alpha(Opacity=70);
  font-weight: normal;
}

/* line 961, sass/partials/_jquery-ui.scss */
.ui-state-disabled,
.ui-widget-content .ui-state-disabled,
.ui-widget-header .ui-state-disabled {
  opacity: .35;
  filter: Alpha(Opacity=35);
  background-image: none;
}

/* line 966, sass/partials/_jquery-ui.scss */
.ui-state-disabled .ui-icon {
  filter: Alpha(Opacity=35);
  /* For IE8 - See #6059 */
}

/* Icons
----------------------------------*/
/* states and images */
/* line 974, sass/partials/_jquery-ui.scss */
.ui-icon {
  width: 16px;
  height: 16px;
}

/* line 979, sass/partials/_jquery-ui.scss */
.ui-icon,
.ui-widget-content .ui-icon {
  background-image: url("images/ui-icons_ffffff_256x240.png");
}

/* line 982, sass/partials/_jquery-ui.scss */
.ui-widget-header .ui-icon {
  background-image: url("images/ui-icons_ffffff_256x240.png");
}

/* line 985, sass/partials/_jquery-ui.scss */
.ui-state-default .ui-icon {
  background-image: url("images/ui-icons_ffffff_256x240.png");
}

/* line 989, sass/partials/_jquery-ui.scss */
.ui-state-hover .ui-icon,
.ui-state-focus .ui-icon {
  background-image: url("images/ui-icons_e8729d_256x240.png");
}

/* line 992, sass/partials/_jquery-ui.scss */
.ui-state-active .ui-icon {
  background-image: url("images/ui-icons_454545_256x240.png");
}

/* line 995, sass/partials/_jquery-ui.scss */
.ui-state-highlight .ui-icon {
  background-image: url("images/ui-icons_e8729d_256x240.png");
}

/* line 999, sass/partials/_jquery-ui.scss */
.ui-state-error .ui-icon,
.ui-state-error-text .ui-icon {
  background-image: url("images/ui-icons_cd0a0a_256x240.png");
}

/* positioning */
/* line 1004, sass/partials/_jquery-ui.scss */
.ui-icon-blank {
  background-position: 16px 16px;
}

/* line 1005, sass/partials/_jquery-ui.scss */
.ui-icon-carat-1-n {
  background-position: 0 0;
}

/* line 1006, sass/partials/_jquery-ui.scss */
.ui-icon-carat-1-ne {
  background-position: -16px 0;
}

/* line 1007, sass/partials/_jquery-ui.scss */
.ui-icon-carat-1-e {
  background-position: -32px 0;
}

/* line 1008, sass/partials/_jquery-ui.scss */
.ui-icon-carat-1-se {
  background-position: -48px 0;
}

/* line 1009, sass/partials/_jquery-ui.scss */
.ui-icon-carat-1-s {
  background-position: -64px 0;
}

/* line 1010, sass/partials/_jquery-ui.scss */
.ui-icon-carat-1-sw {
  background-position: -80px 0;
}

/* line 1011, sass/partials/_jquery-ui.scss */
.ui-icon-carat-1-w {
  background-position: -96px 0;
}

/* line 1012, sass/partials/_jquery-ui.scss */
.ui-icon-carat-1-nw {
  background-position: -112px 0;
}

/* line 1013, sass/partials/_jquery-ui.scss */
.ui-icon-carat-2-n-s {
  background-position: -128px 0;
}

/* line 1014, sass/partials/_jquery-ui.scss */
.ui-icon-carat-2-e-w {
  background-position: -144px 0;
}

/* line 1015, sass/partials/_jquery-ui.scss */
.ui-icon-triangle-1-n {
  background-position: 0 -16px;
}

/* line 1016, sass/partials/_jquery-ui.scss */
.ui-icon-triangle-1-ne {
  background-position: -16px -16px;
}

/* line 1017, sass/partials/_jquery-ui.scss */
.ui-icon-triangle-1-e {
  background-position: -32px -16px;
}

/* line 1018, sass/partials/_jquery-ui.scss */
.ui-icon-triangle-1-se {
  background-position: -48px -16px;
}

/* line 1019, sass/partials/_jquery-ui.scss */
.ui-icon-triangle-1-s {
  background-position: -64px -16px;
}

/* line 1020, sass/partials/_jquery-ui.scss */
.ui-icon-triangle-1-sw {
  background-position: -80px -16px;
}

/* line 1021, sass/partials/_jquery-ui.scss */
.ui-icon-triangle-1-w {
  background-position: -96px -16px;
}

/* line 1022, sass/partials/_jquery-ui.scss */
.ui-icon-triangle-1-nw {
  background-position: -112px -16px;
}

/* line 1023, sass/partials/_jquery-ui.scss */
.ui-icon-triangle-2-n-s {
  background-position: -128px -16px;
}

/* line 1024, sass/partials/_jquery-ui.scss */
.ui-icon-triangle-2-e-w {
  background-position: -144px -16px;
}

/* line 1025, sass/partials/_jquery-ui.scss */
.ui-icon-arrow-1-n {
  background-position: 0 -32px;
}

/* line 1026, sass/partials/_jquery-ui.scss */
.ui-icon-arrow-1-ne {
  background-position: -16px -32px;
}

/* line 1027, sass/partials/_jquery-ui.scss */
.ui-icon-arrow-1-e {
  background-position: -32px -32px;
}

/* line 1028, sass/partials/_jquery-ui.scss */
.ui-icon-arrow-1-se {
  background-position: -48px -32px;
}

/* line 1029, sass/partials/_jquery-ui.scss */
.ui-icon-arrow-1-s {
  background-position: -64px -32px;
}

/* line 1030, sass/partials/_jquery-ui.scss */
.ui-icon-arrow-1-sw {
  background-position: -80px -32px;
}

/* line 1031, sass/partials/_jquery-ui.scss */
.ui-icon-arrow-1-w {
  background-position: -96px -32px;
}

/* line 1032, sass/partials/_jquery-ui.scss */
.ui-icon-arrow-1-nw {
  background-position: -112px -32px;
}

/* line 1033, sass/partials/_jquery-ui.scss */
.ui-icon-arrow-2-n-s {
  background-position: -128px -32px;
}

/* line 1034, sass/partials/_jquery-ui.scss */
.ui-icon-arrow-2-ne-sw {
  background-position: -144px -32px;
}

/* line 1035, sass/partials/_jquery-ui.scss */
.ui-icon-arrow-2-e-w {
  background-position: -160px -32px;
}

/* line 1036, sass/partials/_jquery-ui.scss */
.ui-icon-arrow-2-se-nw {
  background-position: -176px -32px;
}

/* line 1037, sass/partials/_jquery-ui.scss */
.ui-icon-arrowstop-1-n {
  background-position: -192px -32px;
}

/* line 1038, sass/partials/_jquery-ui.scss */
.ui-icon-arrowstop-1-e {
  background-position: -208px -32px;
}

/* line 1039, sass/partials/_jquery-ui.scss */
.ui-icon-arrowstop-1-s {
  background-position: -224px -32px;
}

/* line 1040, sass/partials/_jquery-ui.scss */
.ui-icon-arrowstop-1-w {
  background-position: -240px -32px;
}

/* line 1041, sass/partials/_jquery-ui.scss */
.ui-icon-arrowthick-1-n {
  background-position: 0 -48px;
}

/* line 1042, sass/partials/_jquery-ui.scss */
.ui-icon-arrowthick-1-ne {
  background-position: -16px -48px;
}

/* line 1043, sass/partials/_jquery-ui.scss */
.ui-icon-arrowthick-1-e {
  background-position: -32px -48px;
}

/* line 1044, sass/partials/_jquery-ui.scss */
.ui-icon-arrowthick-1-se {
  background-position: -48px -48px;
}

/* line 1045, sass/partials/_jquery-ui.scss */
.ui-icon-arrowthick-1-s {
  background-position: -64px -48px;
}

/* line 1046, sass/partials/_jquery-ui.scss */
.ui-icon-arrowthick-1-sw {
  background-position: -80px -48px;
}

/* line 1047, sass/partials/_jquery-ui.scss */
.ui-icon-arrowthick-1-w {
  background-position: -96px -48px;
}

/* line 1048, sass/partials/_jquery-ui.scss */
.ui-icon-arrowthick-1-nw {
  background-position: -112px -48px;
}

/* line 1049, sass/partials/_jquery-ui.scss */
.ui-icon-arrowthick-2-n-s {
  background-position: -128px -48px;
}

/* line 1050, sass/partials/_jquery-ui.scss */
.ui-icon-arrowthick-2-ne-sw {
  background-position: -144px -48px;
}

/* line 1051, sass/partials/_jquery-ui.scss */
.ui-icon-arrowthick-2-e-w {
  background-position: -160px -48px;
}

/* line 1052, sass/partials/_jquery-ui.scss */
.ui-icon-arrowthick-2-se-nw {
  background-position: -176px -48px;
}

/* line 1053, sass/partials/_jquery-ui.scss */
.ui-icon-arrowthickstop-1-n {
  background-position: -192px -48px;
}

/* line 1054, sass/partials/_jquery-ui.scss */
.ui-icon-arrowthickstop-1-e {
  background-position: -208px -48px;
}

/* line 1055, sass/partials/_jquery-ui.scss */
.ui-icon-arrowthickstop-1-s {
  background-position: -224px -48px;
}

/* line 1056, sass/partials/_jquery-ui.scss */
.ui-icon-arrowthickstop-1-w {
  background-position: -240px -48px;
}

/* line 1057, sass/partials/_jquery-ui.scss */
.ui-icon-arrowreturnthick-1-w {
  background-position: 0 -64px;
}

/* line 1058, sass/partials/_jquery-ui.scss */
.ui-icon-arrowreturnthick-1-n {
  background-position: -16px -64px;
}

/* line 1059, sass/partials/_jquery-ui.scss */
.ui-icon-arrowreturnthick-1-e {
  background-position: -32px -64px;
}

/* line 1060, sass/partials/_jquery-ui.scss */
.ui-icon-arrowreturnthick-1-s {
  background-position: -48px -64px;
}

/* line 1061, sass/partials/_jquery-ui.scss */
.ui-icon-arrowreturn-1-w {
  background-position: -64px -64px;
}

/* line 1062, sass/partials/_jquery-ui.scss */
.ui-icon-arrowreturn-1-n {
  background-position: -80px -64px;
}

/* line 1063, sass/partials/_jquery-ui.scss */
.ui-icon-arrowreturn-1-e {
  background-position: -96px -64px;
}

/* line 1064, sass/partials/_jquery-ui.scss */
.ui-icon-arrowreturn-1-s {
  background-position: -112px -64px;
}

/* line 1065, sass/partials/_jquery-ui.scss */
.ui-icon-arrowrefresh-1-w {
  background-position: -128px -64px;
}

/* line 1066, sass/partials/_jquery-ui.scss */
.ui-icon-arrowrefresh-1-n {
  background-position: -144px -64px;
}

/* line 1067, sass/partials/_jquery-ui.scss */
.ui-icon-arrowrefresh-1-e {
  background-position: -160px -64px;
}

/* line 1068, sass/partials/_jquery-ui.scss */
.ui-icon-arrowrefresh-1-s {
  background-position: -176px -64px;
}

/* line 1069, sass/partials/_jquery-ui.scss */
.ui-icon-arrow-4 {
  background-position: 0 -80px;
}

/* line 1070, sass/partials/_jquery-ui.scss */
.ui-icon-arrow-4-diag {
  background-position: -16px -80px;
}

/* line 1071, sass/partials/_jquery-ui.scss */
.ui-icon-extlink {
  background-position: -32px -80px;
}

/* line 1072, sass/partials/_jquery-ui.scss */
.ui-icon-newwin {
  background-position: -48px -80px;
}

/* line 1073, sass/partials/_jquery-ui.scss */
.ui-icon-refresh {
  background-position: -64px -80px;
}

/* line 1074, sass/partials/_jquery-ui.scss */
.ui-icon-shuffle {
  background-position: -80px -80px;
}

/* line 1075, sass/partials/_jquery-ui.scss */
.ui-icon-transfer-e-w {
  background-position: -96px -80px;
}

/* line 1076, sass/partials/_jquery-ui.scss */
.ui-icon-transferthick-e-w {
  background-position: -112px -80px;
}

/* line 1077, sass/partials/_jquery-ui.scss */
.ui-icon-folder-collapsed {
  background-position: 0 -96px;
}

/* line 1078, sass/partials/_jquery-ui.scss */
.ui-icon-folder-open {
  background-position: -16px -96px;
}

/* line 1079, sass/partials/_jquery-ui.scss */
.ui-icon-document {
  background-position: -32px -96px;
}

/* line 1080, sass/partials/_jquery-ui.scss */
.ui-icon-document-b {
  background-position: -48px -96px;
}

/* line 1081, sass/partials/_jquery-ui.scss */
.ui-icon-note {
  background-position: -64px -96px;
}

/* line 1082, sass/partials/_jquery-ui.scss */
.ui-icon-mail-closed {
  background-position: -80px -96px;
}

/* line 1083, sass/partials/_jquery-ui.scss */
.ui-icon-mail-open {
  background-position: -96px -96px;
}

/* line 1084, sass/partials/_jquery-ui.scss */
.ui-icon-suitcase {
  background-position: -112px -96px;
}

/* line 1085, sass/partials/_jquery-ui.scss */
.ui-icon-comment {
  background-position: -128px -96px;
}

/* line 1086, sass/partials/_jquery-ui.scss */
.ui-icon-person {
  background-position: -144px -96px;
}

/* line 1087, sass/partials/_jquery-ui.scss */
.ui-icon-print {
  background-position: -160px -96px;
}

/* line 1088, sass/partials/_jquery-ui.scss */
.ui-icon-trash {
  background-position: -176px -96px;
}

/* line 1089, sass/partials/_jquery-ui.scss */
.ui-icon-locked {
  background-position: -192px -96px;
}

/* line 1090, sass/partials/_jquery-ui.scss */
.ui-icon-unlocked {
  background-position: -208px -96px;
}

/* line 1091, sass/partials/_jquery-ui.scss */
.ui-icon-bookmark {
  background-position: -224px -96px;
}

/* line 1092, sass/partials/_jquery-ui.scss */
.ui-icon-tag {
  background-position: -240px -96px;
}

/* line 1093, sass/partials/_jquery-ui.scss */
.ui-icon-home {
  background-position: 0 -112px;
}

/* line 1094, sass/partials/_jquery-ui.scss */
.ui-icon-flag {
  background-position: -16px -112px;
}

/* line 1095, sass/partials/_jquery-ui.scss */
.ui-icon-calendar {
  background-position: -32px -112px;
}

/* line 1096, sass/partials/_jquery-ui.scss */
.ui-icon-cart {
  background-position: -48px -112px;
}

/* line 1097, sass/partials/_jquery-ui.scss */
.ui-icon-pencil {
  background-position: -64px -112px;
}

/* line 1098, sass/partials/_jquery-ui.scss */
.ui-icon-clock {
  background-position: -80px -112px;
}

/* line 1099, sass/partials/_jquery-ui.scss */
.ui-icon-disk {
  background-position: -96px -112px;
}

/* line 1100, sass/partials/_jquery-ui.scss */
.ui-icon-calculator {
  background-position: -112px -112px;
}

/* line 1101, sass/partials/_jquery-ui.scss */
.ui-icon-zoomin {
  background-position: -128px -112px;
}

/* line 1102, sass/partials/_jquery-ui.scss */
.ui-icon-zoomout {
  background-position: -144px -112px;
}

/* line 1103, sass/partials/_jquery-ui.scss */
.ui-icon-search {
  background-position: -160px -112px;
}

/* line 1104, sass/partials/_jquery-ui.scss */
.ui-icon-wrench {
  background-position: -176px -112px;
}

/* line 1105, sass/partials/_jquery-ui.scss */
.ui-icon-gear {
  background-position: -192px -112px;
}

/* line 1106, sass/partials/_jquery-ui.scss */
.ui-icon-heart {
  background-position: -208px -112px;
}

/* line 1107, sass/partials/_jquery-ui.scss */
.ui-icon-star {
  background-position: -224px -112px;
}

/* line 1108, sass/partials/_jquery-ui.scss */
.ui-icon-link {
  background-position: -240px -112px;
}

/* line 1109, sass/partials/_jquery-ui.scss */
.ui-icon-cancel {
  background-position: 0 -128px;
}

/* line 1110, sass/partials/_jquery-ui.scss */
.ui-icon-plus {
  background-position: -16px -128px;
}

/* line 1111, sass/partials/_jquery-ui.scss */
.ui-icon-plusthick {
  background-position: -32px -128px;
}

/* line 1112, sass/partials/_jquery-ui.scss */
.ui-icon-minus {
  background-position: -48px -128px;
}

/* line 1113, sass/partials/_jquery-ui.scss */
.ui-icon-minusthick {
  background-position: -64px -128px;
}

/* line 1114, sass/partials/_jquery-ui.scss */
.ui-icon-close {
  background-position: -80px -128px;
}

/* line 1115, sass/partials/_jquery-ui.scss */
.ui-icon-closethick {
  background-position: -96px -128px;
}

/* line 1116, sass/partials/_jquery-ui.scss */
.ui-icon-key {
  background-position: -112px -128px;
}

/* line 1117, sass/partials/_jquery-ui.scss */
.ui-icon-lightbulb {
  background-position: -128px -128px;
}

/* line 1118, sass/partials/_jquery-ui.scss */
.ui-icon-scissors {
  background-position: -144px -128px;
}

/* line 1119, sass/partials/_jquery-ui.scss */
.ui-icon-clipboard {
  background-position: -160px -128px;
}

/* line 1120, sass/partials/_jquery-ui.scss */
.ui-icon-copy {
  background-position: -176px -128px;
}

/* line 1121, sass/partials/_jquery-ui.scss */
.ui-icon-contact {
  background-position: -192px -128px;
}

/* line 1122, sass/partials/_jquery-ui.scss */
.ui-icon-image {
  background-position: -208px -128px;
}

/* line 1123, sass/partials/_jquery-ui.scss */
.ui-icon-video {
  background-position: -224px -128px;
}

/* line 1124, sass/partials/_jquery-ui.scss */
.ui-icon-script {
  background-position: -240px -128px;
}

/* line 1125, sass/partials/_jquery-ui.scss */
.ui-icon-alert {
  background-position: 0 -144px;
}

/* line 1126, sass/partials/_jquery-ui.scss */
.ui-icon-info {
  background-position: -16px -144px;
}

/* line 1127, sass/partials/_jquery-ui.scss */
.ui-icon-notice {
  background-position: -32px -144px;
}

/* line 1128, sass/partials/_jquery-ui.scss */
.ui-icon-help {
  background-position: -48px -144px;
}

/* line 1129, sass/partials/_jquery-ui.scss */
.ui-icon-check {
  background-position: -64px -144px;
}

/* line 1130, sass/partials/_jquery-ui.scss */
.ui-icon-bullet {
  background-position: -80px -144px;
}

/* line 1131, sass/partials/_jquery-ui.scss */
.ui-icon-radio-on {
  background-position: -96px -144px;
}

/* line 1132, sass/partials/_jquery-ui.scss */
.ui-icon-radio-off {
  background-position: -112px -144px;
}

/* line 1133, sass/partials/_jquery-ui.scss */
.ui-icon-pin-w {
  background-position: -128px -144px;
}

/* line 1134, sass/partials/_jquery-ui.scss */
.ui-icon-pin-s {
  background-position: -144px -144px;
}

/* line 1135, sass/partials/_jquery-ui.scss */
.ui-icon-play {
  background-position: 0 -160px;
}

/* line 1136, sass/partials/_jquery-ui.scss */
.ui-icon-pause {
  background-position: -16px -160px;
}

/* line 1137, sass/partials/_jquery-ui.scss */
.ui-icon-seek-next {
  background-position: -32px -160px;
}

/* line 1138, sass/partials/_jquery-ui.scss */
.ui-icon-seek-prev {
  background-position: -48px -160px;
}

/* line 1139, sass/partials/_jquery-ui.scss */
.ui-icon-seek-end {
  background-position: -64px -160px;
}

/* line 1140, sass/partials/_jquery-ui.scss */
.ui-icon-seek-start {
  background-position: -80px -160px;
}

/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
/* line 1142, sass/partials/_jquery-ui.scss */
.ui-icon-seek-first {
  background-position: -80px -160px;
}

/* line 1143, sass/partials/_jquery-ui.scss */
.ui-icon-stop {
  background-position: -96px -160px;
}

/* line 1144, sass/partials/_jquery-ui.scss */
.ui-icon-eject {
  background-position: -112px -160px;
}

/* line 1145, sass/partials/_jquery-ui.scss */
.ui-icon-volume-off {
  background-position: -128px -160px;
}

/* line 1146, sass/partials/_jquery-ui.scss */
.ui-icon-volume-on {
  background-position: -144px -160px;
}

/* line 1147, sass/partials/_jquery-ui.scss */
.ui-icon-power {
  background-position: 0 -176px;
}

/* line 1148, sass/partials/_jquery-ui.scss */
.ui-icon-signal-diag {
  background-position: -16px -176px;
}

/* line 1149, sass/partials/_jquery-ui.scss */
.ui-icon-signal {
  background-position: -32px -176px;
}

/* line 1150, sass/partials/_jquery-ui.scss */
.ui-icon-battery-0 {
  background-position: -48px -176px;
}

/* line 1151, sass/partials/_jquery-ui.scss */
.ui-icon-battery-1 {
  background-position: -64px -176px;
}

/* line 1152, sass/partials/_jquery-ui.scss */
.ui-icon-battery-2 {
  background-position: -80px -176px;
}

/* line 1153, sass/partials/_jquery-ui.scss */
.ui-icon-battery-3 {
  background-position: -96px -176px;
}

/* line 1154, sass/partials/_jquery-ui.scss */
.ui-icon-circle-plus {
  background-position: 0 -192px;
}

/* line 1155, sass/partials/_jquery-ui.scss */
.ui-icon-circle-minus {
  background-position: -16px -192px;
}

/* line 1156, sass/partials/_jquery-ui.scss */
.ui-icon-circle-close {
  background-position: -32px -192px;
}

/* line 1157, sass/partials/_jquery-ui.scss */
.ui-icon-circle-triangle-e {
  background-position: -48px -192px;
}

/* line 1158, sass/partials/_jquery-ui.scss */
.ui-icon-circle-triangle-s {
  background-position: -64px -192px;
}

/* line 1159, sass/partials/_jquery-ui.scss */
.ui-icon-circle-triangle-w {
  background-position: -80px -192px;
}

/* line 1160, sass/partials/_jquery-ui.scss */
.ui-icon-circle-triangle-n {
  background-position: -96px -192px;
}

/* line 1161, sass/partials/_jquery-ui.scss */
.ui-icon-circle-arrow-e {
  background-position: -112px -192px;
}

/* line 1162, sass/partials/_jquery-ui.scss */
.ui-icon-circle-arrow-s {
  background-position: -128px -192px;
}

/* line 1163, sass/partials/_jquery-ui.scss */
.ui-icon-circle-arrow-w {
  background-position: -144px -192px;
}

/* line 1164, sass/partials/_jquery-ui.scss */
.ui-icon-circle-arrow-n {
  background-position: -160px -192px;
}

/* line 1165, sass/partials/_jquery-ui.scss */
.ui-icon-circle-zoomin {
  background-position: -176px -192px;
}

/* line 1166, sass/partials/_jquery-ui.scss */
.ui-icon-circle-zoomout {
  background-position: -192px -192px;
}

/* line 1167, sass/partials/_jquery-ui.scss */
.ui-icon-circle-check {
  background-position: -208px -192px;
}

/* line 1168, sass/partials/_jquery-ui.scss */
.ui-icon-circlesmall-plus {
  background-position: 0 -208px;
}

/* line 1169, sass/partials/_jquery-ui.scss */
.ui-icon-circlesmall-minus {
  background-position: -16px -208px;
}

/* line 1170, sass/partials/_jquery-ui.scss */
.ui-icon-circlesmall-close {
  background-position: -32px -208px;
}

/* line 1171, sass/partials/_jquery-ui.scss */
.ui-icon-squaresmall-plus {
  background-position: -48px -208px;
}

/* line 1172, sass/partials/_jquery-ui.scss */
.ui-icon-squaresmall-minus {
  background-position: -64px -208px;
}

/* line 1173, sass/partials/_jquery-ui.scss */
.ui-icon-squaresmall-close {
  background-position: -80px -208px;
}

/* line 1174, sass/partials/_jquery-ui.scss */
.ui-icon-grip-dotted-vertical {
  background-position: 0 -224px;
}

/* line 1175, sass/partials/_jquery-ui.scss */
.ui-icon-grip-dotted-horizontal {
  background-position: -16px -224px;
}

/* line 1176, sass/partials/_jquery-ui.scss */
.ui-icon-grip-solid-vertical {
  background-position: -32px -224px;
}

/* line 1177, sass/partials/_jquery-ui.scss */
.ui-icon-grip-solid-horizontal {
  background-position: -48px -224px;
}

/* line 1178, sass/partials/_jquery-ui.scss */
.ui-icon-gripsmall-diagonal-se {
  background-position: -64px -224px;
}

/* line 1179, sass/partials/_jquery-ui.scss */
.ui-icon-grip-diagonal-se {
  background-position: -80px -224px;
}

/* Misc visuals
----------------------------------*/
/* Corner radius */
/* line 1189, sass/partials/_jquery-ui.scss */
.ui-corner-all,
.ui-corner-top,
.ui-corner-left,
.ui-corner-tl {
  border-top-left-radius: 4px;
}

/* line 1195, sass/partials/_jquery-ui.scss */
.ui-corner-all,
.ui-corner-top,
.ui-corner-right,
.ui-corner-tr {
  border-top-right-radius: 4px;
}

/* line 1201, sass/partials/_jquery-ui.scss */
.ui-corner-all,
.ui-corner-bottom,
.ui-corner-left,
.ui-corner-bl {
  border-bottom-left-radius: 4px;
}

/* line 1207, sass/partials/_jquery-ui.scss */
.ui-corner-all,
.ui-corner-bottom,
.ui-corner-right,
.ui-corner-br {
  border-bottom-right-radius: 4px;
}

/* Overlays */
/* line 1212, sass/partials/_jquery-ui.scss */
.ui-widget-overlay {
  background: #aaaaaa url("images/ui-bg_flat_0_aaaaaa_40x100.png") 50% 50% repeat-x;
  opacity: .3;
  filter: Alpha(Opacity=30);
}

/* line 1217, sass/partials/_jquery-ui.scss */
.ui-widget-shadow {
  margin: -8px 0 0 -8px;
  padding: 8px;
  background: #aaaaaa url("images/ui-bg_flat_0_aaaaaa_40x100.png") 50% 50% repeat-x;
  opacity: .3;
  filter: Alpha(Opacity=30);
  border-radius: 8px;
}

/* line 1226, sass/partials/_jquery-ui.scss */
.ui-widget-content p {
  color: black;
}

/* line 1231, sass/partials/_jquery-ui.scss */
ui-multiselect-checkboxes {
  color: #000000;
}

/* -------------------------
     DEFAULT STYLES
     starting with CSS reset from:;
     html5doctor.com Reset Stylesheet v1.6.1
   ------------------------- */
/* line 12, sass/partials/_global.scss */
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video bod {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: ff-dagny-web-pro, Arial, sans-serif;
  vertical-align: baseline;
}

/* line 23, sass/partials/_global.scss */
html, body {
  height: 100%;
}

/* line 27, sass/partials/_global.scss */
body {
  background-color: #163247;
  font-size: 14px;
}

/* line 32, sass/partials/_global.scss */
input[type=text], input[type=password], input[type=email] {
  background-color: #ffffff;
  background-image: none;
  border: 1px solid #cccccc;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
  color: #555555;
  font-size: 14px;
  height: 30px;
  line-height: 30px;
  padding-bottom: 0;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 0;
  transition-delay: 0s, 0s;
  transition-duration: 0.15s, 0.15s;
  transition-property: border-color, box-shadow;
  transition-timing-function: ease-in-out, ease-in-out;
  vertical-align: baseline;
}

/* line 53, sass/partials/_global.scss */
.input-sm {
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  font-size: 12px;
}

/* line 61, sass/partials/_global.scss */
input[type=text]:focus {
  border-color: #ffe963;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(255, 233, 99, 0.6);
}

/* line 66, sass/partials/_global.scss */
body.no-background {
  background-color: #ffffff;
}

/* line 70, sass/partials/_global.scss */
input, select {
  vertical-align: middle;
}

/* line 74, sass/partials/_global.scss */
h1 {
  font-size: 1.2em;
  color: #666666;
  font-weight: bold;
  margin: 1em 0 1em 0;
}

/* line 82, sass/partials/_global.scss */
h2 {
  margin-top: 5px;
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: bold;
  clear: both;
}

/* line 90, sass/partials/_global.scss */
h3 {
  margin-top: 5px;
  margin-bottom: 5px;
  font-weight: bold;
  clear: both;
}

/* line 98, sass/partials/_global.scss */
fieldset {
  border: 0;
  padding-top: 20px;
}

/* line 103, sass/partials/_global.scss */
a {
  color: #e8729d;
  text-decoration: none;
}

/* line 108, sass/partials/_global.scss */
p {
  line-height: 1.3em;
  margin-bottom: 1.2em;
}

/* line 114, sass/partials/_global.scss */
button {
  border-radius: 5px;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  padding: 8px 5px;
  line-height: 15px;
  border: none;
  color: #fff;
  cursor: pointer;
  background-color: #e8729d;
}

/* line 126, sass/partials/_global.scss */
.left {
  float: left;
}

/* line 130, sass/partials/_global.scss */
.right {
  float: right;
}

/* line 134, sass/partials/_global.scss */
.pink {
  color: #e8729d;
}

/* line 138, sass/partials/_global.scss */
.grey {
  color: #666666;
  padding: 15px 0 15px 0;
  font-weight: bold;
  text-align: left;
}

/* line 145, sass/partials/_global.scss */
.ui-widget-content a {
  color: #000;
}

/* line 150, sass/partials/_global.scss */
.normal-weight {
  font-weight: 400;
}

/* line 154, sass/partials/_global.scss */
.bold {
  font-weight: 700;
}

/* line 158, sass/partials/_global.scss */
.italic {
  font-style: italic;
}

/* line 165, sass/partials/_global.scss */
.title {
  width: 50%;
  margin: 0 0 0 10px;
}

/* line 172, sass/partials/_global.scss */
.center {
  text-align: center;
}

/* line 176, sass/partials/_global.scss */
.hidden {
  visibility: hidden;
}

/* line 180, sass/partials/_global.scss */
.margin-top {
  margin-top: 30px;
}

/* line 184, sass/partials/_global.scss */
.left {
  float: left;
}

/* line 188, sass/partials/_global.scss */
.float-left {
  width: 50%;
  float: left;
}

/* line 193, sass/partials/_global.scss */
.float-right {
  width: 50%;
  float: right;
}

/* line 199, sass/partials/_global.scss */
.grey-button {
  background: #666;
}

/* line 203, sass/partials/_global.scss */
.green-button {
  color: #fff;
  background: #090;
}

/* line 208, sass/partials/_global.scss */
.blue-button {
  color: #fff;
  background: #e8729d;
}

/* line 213, sass/partials/_global.scss */
.body-content {
  padding-bottom: 80px;
  background: #fff;
}

/* line 218, sass/partials/_global.scss */
.row {
  clear: both;
  padding: 10px 0 10px 0;
}

/* line 223, sass/partials/_global.scss */
.form-group {
  width: 100%;
  background-color: white;
  overflow: hidden;
  margin-bottom: 200px;
  padding: 10px;
}

/* line 231, sass/partials/_global.scss */
td label.error {
  margin-top: 7px;
  margin-left: 16px;
}

/* line 236, sass/partials/_global.scss */
.terms-conditions {
  overflow: hidden;
  margin-bottom: 4px;
}

/* line 241, sass/partials/_global.scss */
.terms-conditions label {
  float: left;
  font-weight: 400;
}

/* line 246, sass/partials/_global.scss */
.terms-conditions label.error {
  margin-top: 6px;
  margin-left: 12px;
}

/* line 251, sass/partials/_global.scss */
.terms-conditions input {
  margin: 4px 10px 5px 0;
}

/* line 255, sass/partials/_global.scss */
.action-buttons {
  margin-top: 12px;
  float: right;
}

/* line 260, sass/partials/_global.scss */
.support-tab {
  background-image: url("../img/support.png");
  background-position: 0 0;
  display: block;
  height: 121px;
  left: 0;
  line-height: 1;
  position: fixed;
  top: 40%;
  width: 28px;
  text-indent: -9999px;
}

/* line 1, sass/partials/_form.scss */
.loginform label {
  font-weight: 700;
  margin-bottom: 5px;
  margin-top: 5px;
}

/* line 7, sass/partials/_form.scss */
.loginhelper {
  display: inline-block;
  float: right;
  margin-top: 30px;
  width: 500px;
}

/* line 14, sass/partials/_form.scss */
.loginform, .form-width {
  display: inline-block;
  margin-top: 15px;
  width: 320px;
}

/* line 20, sass/partials/_form.scss */
.loginform__input {
  width: 85%;
}

/* line 25, sass/partials/_form.scss */
.loginform .form-control {
  width: 98%;
}

/* line 29, sass/partials/_form.scss */
.loginform__input, .form__left {
  float: left;
  /*	width: 85%; */
}

/* line 34, sass/partials/_form.scss */
.loginform__button, .form__right {
  float: right;
  /*	margin-right: 50px; */
}

/* line 39, sass/partials/_form.scss */
.loginform__required {
  float: right;
}

/* line 43, sass/partials/_form.scss */
.asterisk {
  background-image: url("../img/star-pink.png");
  background-position: center center;
  background-repeat: no-repeat;
  height: 30px;
  margin-bottom: 10px;
  width: 30px;
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
}

/* line 56, sass/partials/_form.scss */
textarea {
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  border: 1px solid #cccccc;
  padding: 5px;
}

/* line 3, sass/partials/_header.scss */
.fixed-centre {
  margin-left: auto;
  margin-right: auto;
  width: 940px;
  overflow: hidden;
}

/* line 10, sass/partials/_header.scss */
.loggedin-placeholder {
  display: inline-block;
  float: left;
}

/* line 15, sass/partials/_header.scss */
.loggedin {
  float: right;
  padding-top: 5px;
  padding-bottom: 10px;
}

/* line 21, sass/partials/_header.scss */
.welcome-menu__a {
  display: inline;
  color: #FFF;
}

/* line 26, sass/partials/_header.scss */
.welcome-menu__a:hover {
  color: #fff;
}

/* line 30, sass/partials/_header.scss */
.mp-logo {
  float: left;
  display: inline-block;
  margin-top: 5px;
  margin-left: 10px;
}

/* line 37, sass/partials/_header.scss */
.contactgroup-logo {
  float: right;
  display: inline-block;
  margin-top: 15px;
  margin-right: 10px;
}

/* line 44, sass/partials/_header.scss */
.top-nav {
  list-style: none;
  display: block;
  color: #FFF;
  width: 480px;
  clear: both;
  margin-top: 30px;
}

/* line 53, sass/partials/_header.scss */
.top-nav li {
  display: inline-block;
  color: #FFF;
  margin-left: 8px;
  margin-right: 8px;
  margin-bottom: 5px;
}

/* line 61, sass/partials/_header.scss */
.top-nav a {
  color: #FFF;
  text-decoration: none;
  border-bottom: 3px solid rgba(0, 0, 0, 0);
}

/* line 68, sass/partials/_header.scss */
.top-nav a:hover {
  border-bottom: 3px solid #fff;
  transition: border-color .5s;
}

/* line 73, sass/partials/_header.scss */
.top-nav li.active a {
  border-bottom: 3px solid #fff;
}

/* line 77, sass/partials/_header.scss */
.admin-main a:link, .admin-main a:visited, .admin-main a:hover, .admin-main a:active {
  color: #e8729d;
}

/* line 81, sass/partials/_header.scss */
.tabs {
  list-style: none;
  position: relative;
  top: 5px;
}

/* line 87, sass/partials/_header.scss */
.tabs li {
  display: inline-block;
  overflow: hidden;
  margin-top: 5px;
  margin-bottom: 0;
}

/* line 94, sass/partials/_header.scss */
.tabs a {
  display: block;
  text-decoration: none;
  color: #fff;
  background: #e8729d;
  padding: .5em;
  padding-bottom: .7em;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* line 105, sass/partials/_header.scss */
.tabs a:hover {
  background: #ccc;
  color: #163247;
}

/* line 110, sass/partials/_header.scss */
.tabs a:active {
  background: #fff;
  color: #163247;
}

/* line 115, sass/partials/_header.scss */
.welcome-menu__a a {
  color: white;
}

/* line 119, sass/partials/_header.scss */
.admin-main ul li {
  margin-top: 10px;
  margin-bottom: 10px;
  line-height: 1.5em;
}

/* line 125, sass/partials/_header.scss */
.admin-main ul li strong {
  color: #e8729d;
}

/* line 129, sass/partials/_header.scss */
nav ul {
  list-style: none;
}

/* line 133, sass/partials/_header.scss */
label, .label {
  display: block;
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* line 140, sass/partials/_header.scss */
label.error {
  color: red;
  margin: 10px;
  font-weight: bold;
}

/* line 146, sass/partials/_header.scss */
label.custom-error {
  float: left;
  color: red;
  font-weight: bold;
  margin-bottom: 12px;
  display: block;
}

/***************************
****************************
Body layout
****************************
***************************/
/* line 8, sass/partials/_tables.scss */
.admin-main {
  padding-top: 10px;
}

/* line 12, sass/partials/_tables.scss */
.container-full {
  clear: both;
  min-width: 960px;
}

/* line 17, sass/partials/_tables.scss */
.main-block {
  background: #e8729d;
  height: 60px;
}

/* line 22, sass/partials/_tables.scss */
.container-full-header {
  clear: both;
  min-width: 960px;
  height: 60px;
  background-color: #e8729d;
}

/* line 29, sass/partials/_tables.scss */
.container-full-sub-block {
  clear: both;
  min-width: 960px;
  overflow: hidden;
  min-height: 35px;
  background-color: #f4bbd0;
}

/* line 37, sass/partials/_tables.scss */
.container-full-content {
  background-color: #fff;
  padding-bottom: 20px;
  clear: both;
  min-width: 960px;
  overflow: hidden;
  background-image: url("../img/subtle-light.png");
}

/* line 46, sass/partials/_tables.scss */
.tab-container {
  background-attachment: scroll;
  background-clip: border-box;
  background-color: #fadee9;
  background-image: none;
  background-origin: padding-box;
  background-position: 0 0;
  background-repeat: repeat;
  background-size: auto auto;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  margin-bottom: 3px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 10px;
  position: relative;
}

/* line 67, sass/partials/_tables.scss */
.student-details th {
  border-bottom: 1px solid #000;
  padding: 5px 0;
  text-align: left;
  font-size: 16px;
}

/* line 74, sass/partials/_tables.scss */
.student-details td input {
  width: 90%;
  margin-top: 10px;
  padding: 6px 5px;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

/* line 83, sass/partials/_tables.scss */
.student-details td input.amount {
  text-align: right;
}

/* line 87, sass/partials/_tables.scss */
.student-details td button {
  margin-top: 5px;
}

/* line 91, sass/partials/_tables.scss */
.branded-table {
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 20px;
  margin-top: 20px;
  text-align: left;
  width: 100%;
}

/* default striped table */
/* line 102, sass/partials/_tables.scss */
.branded-table th {
  background-color: #e8729d;
  border-left-color: #e8729d;
  border-left-style: solid;
  border-left-width: 1px;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  line-height: 20px;
  padding-bottom: 5px;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 5px;
  text-align: left;
  vertical-align: middle;
}

/* line 119, sass/partials/_tables.scss */
.branded-table tbody td {
  background-attachment: scroll;
  background-clip: border-box;
  background-color: #fff;
  background-image: none;
  background-origin: padding-box;
  background-position: 0 0;
  background-repeat: repeat;
  background-size: auto auto;
  border-bottom-color: #e8729d;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-top-color: transparent;
  border-top-style: solid;
  border-top-width: 1px;
  color: #222;
  line-height: 1.5em;
  padding-bottom: 8px;
  padding-left: 8px;
  padding-right: 8px;
  padding-top: 8px;
  border-left-color: #e8729d;
  border-left-style: solid;
  border-left-width: 1px;
}

/* line 146, sass/partials/_tables.scss */
td:last-child {
  border-right-color: #e8729d;
  border-right-style: solid;
  border-right-width: 1px;
}

/* line 153, sass/partials/_tables.scss */
.branded-table tr:hover td {
  background-attachment: scroll;
  background-clip: border-box;
  background-image: none;
  background-origin: padding-box;
  background-position: 0 0;
  background-repeat: repeat;
  background-size: auto auto;
  color: #222;
}

/* line 164, sass/partials/_tables.scss */
.branded-table tr:nth-child(2n+1) td {
  background-color: #FEF5F9;
}

/* line 168, sass/partials/_tables.scss */
.branded-table td.successful {
  background-color: #d6f0d5;
}

/* line 172, sass/partials/_tables.scss */
.branded-table tr td.declined, .branded-table tr td.incomplete, .branded-table tr td.untrusted {
  background-color: #f0d5d5;
}

/*  data table */
/* line 182, sass/partials/_tables.scss */
.data-table tr td:first-child {
  background-color: #fadee9;
}

/* line 189, sass/partials/_tables.scss */
.data-table td {
  padding: 8px;
  border: 1px solid #f7d5e1;
}

/* line 196, sass/partials/_tables.scss */
tr td:first-child,
tr td:last-child {
  /* styles */
}

/* line 3, sass/partials/_footer.scss */
.fixed-centre ul {
  list-style-type: none;
}

/* line 7, sass/partials/_footer.scss */
.footer {
  background-attachment: scroll;
  background-clip: border-box;
  background-color: #163247;
  background-image: none;
  background-origin: padding-box;
  background-position: 0 0;
  background-repeat: repeat;
  background-size: auto auto;
  margin-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  padding-left: 20px;
  padding-right: 20px;
  width: 920px;
  height: 60px;
}

/* line 26, sass/partials/_footer.scss */
.footer__copyright {
  color: #fff;
  display: inline-block;
  float: left;
}

/* line 32, sass/partials/_footer.scss */
.footer__menu {
  display: inline-block;
  float: right;
  list-style-image: none;
  list-style-position: outside;
  list-style-type: none;
}

/* line 40, sass/partials/_footer.scss */
.footer__link {
  color: #fff;
  display: inline-block;
  float: left;
  margin-left: 10px;
  margin-right: 10px;
}

/* line 48, sass/partials/_footer.scss */
.footer a {
  margin: 0;
  padding: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: none;
  color: #fff;
  text-decoration: none;
}

/* line 58, sass/partials/_footer.scss */
.footer__menu {
  display: inline;
  color: #fff;
  list-style: none;
}

/* line 64, sass/partials/_footer.scss */
.footer__copyright {
  float: left;
  color: #fff;
}

/* line 69, sass/partials/_footer.scss */
.footer__link {
  color: #fff;
  float: left;
  margin: 0 10px;
}

/* line 2, sass/partials/_payment-pages.scss */
.payment-cards {
  display: block;
  margin: 0 auto;
}

/* line 7, sass/partials/_payment-pages.scss */
td.successful {
  background-color: #339933;
}

/* line 11, sass/partials/_payment-pages.scss */
td.declined {
  background-color: #990000;
}

/* line 15, sass/partials/_payment-pages.scss */
body.no-background .blue-button {
  background-color: #163247;
}

/* line 19, sass/partials/_payment-pages.scss */
.sub-block .tabs li.active a {
  color: #e8729d;
  background-color: #FADEE9;
}

/* line 24, sass/partials/_payment-pages.scss */
.happy-pig {
  background-image: url("../img/happy-pig-small.png");
  background-repeat: no-repeat;
  background-position: right top;
  height: 250px;
}

/* line 31, sass/partials/_payment-pages.scss */
.error-pig {
  background-image: url("../img/pig-oops.png");
  background-repeat: no-repeat;
  background-position: right top;
  height: 250px;
}

/* line 38, sass/partials/_payment-pages.scss */
a.button-pink {
  color: #fff !important;
  text-decoration: none;
}

/* line 43, sass/partials/_payment-pages.scss */
.name-table {
  float: left;
  border-spacing: 12px;
}

/* line 48, sass/partials/_payment-pages.scss */
.name-table td:first-child {
  width: 43%;
}

/* line 52, sass/partials/_payment-pages.scss */
label {
  display: block;
  font-weight: 700;
}

/* line 57, sass/partials/_payment-pages.scss */
a.pink, a.pink:hover, a.pink:active, a.pink:visited {
  color: #e8729d;
}

/* line 61, sass/partials/_payment-pages.scss */
.top-border {
  border-top: 1px solid #d7d5e7;
}

/* line 68, sass/partials/_payment-pages.scss */
span.transaction-period-text {
  margin-top: .35em;
  margin-right: .5em;
  margin-bottom: 1.5em;
  display: inline-block;
  float: left;
}

/*
table a,table a:hover,table a:active,table a:visited {
	color: $primary-color;
}
*/
/* line 82, sass/partials/_payment-pages.scss */
.download-report {
  vertical-align: -7px;
}

/* line 86, sass/partials/_payment-pages.scss */
.alert-box {
  margin-bottom: 1em;
  padding: 10px;
  border-radius: 5px;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
}

/* line 95, sass/partials/_payment-pages.scss */
.alert-box.success {
  background: #d6f0d5;
}

/* line 99, sass/partials/_payment-pages.scss */
.alert-box.error {
  background-color: #fff;
  color: red;
}

/* line 104, sass/partials/_payment-pages.scss */
.payment-message-box {
  width: 40%;
}

/* line 2, sass/partials/_iframe.scss */
.widget-code td.label {
  vertical-align: top;
  padding-top: 12px;
}

/* line 7, sass/partials/_iframe.scss */
.widget-code textarea {
  width: 600px;
  height: 70px;
}

/* line 12, sass/partials/_iframe.scss */
.question-sign-pink {
  background-image: url("../img/large-help-pink.png");
  background-position: right center;
  background-repeat: no-repeat;
  background-size: 30px 30px;
  cursor: pointer;
  height: 35px;
  position: relative;
  top: 15px;
  width: 35px;
  float: right;
  right: 15px;
}

/* line 26, sass/partials/_iframe.scss */
pre {
  width: 600px;
  border-radius: 5px;
  border: 1px solid #ccc;
  line-height: 1.5em;
  padding: 8px;
  display: block;
  float: left;
  margin: 5px 0;
  background-color: #ebebe4;
  /* For Firefox */
  white-space: pre-wrap;
  word-break: break-all;
  /* For Chrome and IE */
  word-wrap: break-word;
}

/* line 44, sass/partials/_iframe.scss */
.break-word {
  word-wrap: break-word;
  width: 400px;
  display: inline-block;
  font-family: "Courier New" Courier monospace;
  background-color: #efefef;
  border: 1px solid #ccc;
  padding: 10px;
}

/* line 56, sass/partials/_iframe.scss */
.question-sign a, .question-sign-pink a {
  display: block;
  text-indent: -9999px;
  width: 60px;
  height: 60px;
}

/* line 63, sass/partials/_iframe.scss */
.tabs li.active a {
  background-color: #fadee9;
  color: black;
  border-bottom: 1px solid white;
}

/* line 71, sass/partials/_iframe.scss */
li strong {
  font-weight: bold;
}

              
            
!

JS

              
                var recepients=Array();
var groups=Array();
var classes=Array();

var grpnames=Array();
var recnames=Array();
var classnames=Array();

var directorywindow;
var total=0;

jQuery.noConflict();
jQuery(InitSite);

function isValidEmailAddress(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 CheckDate(dateinput){
var comp = dateinput.split('/');
var d = parseInt(comp[0], 10);

var m = parseInt(comp[1], 10);
var y = parseInt(comp[2], 10);

var date = new Date(y,m-1,d);
if (date.getFullYear() == y && date.getMonth() + 1 == m && date.getDate() == d) {
  
  return true;

} else {
      return false;
}

}


function InitSite()
{
   if(jQuery("#userfile").size())
   {
	  jQuery("#userfile").MultiFile(
	  {
		 max: 3,
		 STRING: {remove: "<img src='img/delrecep.png' alt='Remove' />"} 
	  });
   }
   
   jQuery(".datepicker").datepicker({dateFormat:'dd/mm/yy'});
   
   if(jQuery(".smsmessage").size())
	  jQuery(".smsmessage").smstextarea();
      
   if(jQuery(".examplefield").size())
      jQuery(".examplefield").examplefield();
	  
   jQuery("#addinstallment").click(
	  function(e)
	  {
		 var errors=0;
		 var message="There are errors:\n";
		 
		 e.preventDefault();
		 
		 if(!CheckDate(jQuery("#ins_duedate").val()))
		 {
			errors++;
			message+="Please enter a valid date.\n";
		 }
		 
		 if(isNaN(jQuery("#ins_amount").val()))
		 {
			errors++;
			message+="Please enter a valid amount.";
		 }
		
		 if(!errors)
		 {
			if(!jQuery("#installments_fields").size())
			{
			   jQuery(this).closest(".ib_body").append("<div id='installments_fields'>&nbsp;</div>");
			}
		 
			jQuery("#installments_fields").append("<div class='installment'><input type='hidden' class='installment' name='ins-"+jQuery("#ins_duedate").val()+"' val()='"+jQuery("#ins_amount").val()+"' /> &pound;"+jQuery("#ins_amount").val()+" due on "+jQuery("#ins_duedate").val()+" <a href='#' class='remove_installment'><img src='img/delrecep.png' /></a></div>");	  
			jQuery("#ins_duedate,#ins_amount").val("");
			jQuery("#installments_fields a.remove_installment").click(
			   function(e)
			   {
				  e.preventDefault();
				  jQuery(this).parent().remove();
			   }
			);
			
			jQuery("#ins_amount").focus();
		 }
		 else
			moneyPiggy.Alerter.Alert(message)
;	  }
   );
   






  /* hide all content divs */
  jQuery('.toggle-content').hide();
  jQuery('.toggle-trigger.active').next('.toggle-content').show();
  jQuery('.toggle-trigger').click(function() {
    /* if the clicked item is active*/
    if (jQuery('.toggle-trigger').hasClass('active')){
      /* close the next content div*/
      jQuery(this).next('.toggle-content').slideToggle();
      /* and remove the active class*/
      jQuery(this).toggleClass('active');

    } 

    /* if the cliked item is NOT active */
    else {
      /* slide the content div dwon */
      jQuery(this).next('.toggle-content').slideToggle();
      /* and add the active class*/ 
      jQuery(this).toggleClass('active');
    }

  });




   
   jQuery(".morepaymentinfo").click(
	  function(e)
	  {
		 e.preventDefault();
		 
		 if(jQuery(this).hasClass("open"))
		 {
			// slide up
            jQuery(this).removeClass("open");
		 	jQuery(this).html("<img src='img/add.png' alt='More Info' />");
			jQuery(this).parent().next("div.moreinfo").slideUp(200);
		 
		 }
		 else
		 {
            jQuery(this).addClass("open");
			jQuery(this).html("<img src='img/subtract.png' alt='Less Info' />");
			jQuery(this).parent().next("div.moreinfo").slideDown(200);
		 }
	  }
   );
   
   jQuery("#tabs").tabs({active: 0});

   if(jQuery(".paymentrow input.payment").size())
   {
	  jQuery(".paymentrow input.payment").click(
		 function()
		 {
			if(jQuery(this).attr("checked")=='checked' && jQuery(this).hasClass("ahdm") && jQuery("#wallet").attr("checked")!='checked')
			{
			   moneyPiggy.Alerter.Alert("You can only pay for Ad-Hoc Dinner Money purchases through the eWallet.\n\nPlease select the �Pay for selected from eWallet Balance box and try again.\n\nSelect the eWallet tab if you need to top-up your eWallet");
			   jQuery(this).attr("checked",false);
			}
			else
			{
			   var amount=parseFloat(jQuery("#amount-"+jQuery(this).attr("id").substring(8)).html());
   
			   if(jQuery(this).attr("checked")=='checked')
				  total+=amount;
			   else
				  total-=amount;
			   
			   var show_total=parseFloat(total).toFixed(2);
			
			   if(total>0)
				  jQuery("#paymentbutton").val("Pay for Selected (�"+show_total+") >");
			   else
				  jQuery("#paymentbutton").val("Pay for Selected >");
			}
		}
	  );
   }
   
   jQuery("#wallet").click(function(e){
	  if(jQuery(this).attr("checked")!='checked')
	  {
		 if(jQuery(".paymentrow input.ahdm:checked").size())
			moneyPiggy.Alerter.Alert("You can only pay for Dinner Money purchases through the eWallet.\n\nPlease select the �Pay for selected from eWallet Balance� box and try again.\n\nSelect the eWallet tab if you need to top-up your eWallet�");

		 jQuery(".paymentrow input.ahdm").attr("checked",false);
	  }
   });
   
   
   if(jQuery("textarea.mergefield").size())
   {
	  jQuery("textarea.mergefield").mergefield();
   }

   if(window.location.href.indexOf("newmessage.php?pm=1")>1)
   {


  moneyPiggy.Alerter.Confirm("You are about to send a PRIVATE message, rather than a standard email message.\nClick OK to proceed."
,'Confirm',      
function () {
          window.location.href="home.php";
   }
    )
   }
   
   jQuery(".ibox.collapse").each(
	  function(e)
	  {
		 jQuery(this).children(".ib_header").click(
			function(e)
			{
			   if(jQuery(this).siblings(".ib_body").hasClass("open"))
				  jQuery(this).siblings(".ib_body").removeClass("open").slideUp();
			   else
				  jQuery(this).siblings(".ib_body").addClass("open").slideDown();
			}
		 ).hover(
			function(e)
			{
			   var index=jQuery(this).html().toLowerCase().indexOf("<em>(click to expand/collapse)</em>");
			   
			   if(!index || index==-1)
				  jQuery(this).html(jQuery(this).html()+" <em>(click to expand/collapse)</em>");
			},
			function(e)
			{
			   jQuery(this).html(jQuery(this).html().replace(" <em>(click to expand/collapse)</em>","").replace(" <EM>(click to expand/collapse)</EM>",""));
			}
		 );
		 
		 jQuery(this).children(".ib_body").hide();
	  }
   );
   
   if(jQuery("#vt-search").size())
   {
	  jQuery("#vt-search").autocomplete({
		 source: 'ajax.vtautocomplete.php',
		 minLength: 3,
		 select: VTAutoCompleteSelect
	  })
	  .data("uiAutocomplete")._renderItem=function(ul,item)
	  {
		 if(item.nonefound==null)
		 {
			return jQuery("<li></li>")
			   .data("item.autocomplete", item)
			   .append("<a>"+item.fullname+" ("+item.usertype+")</a>")
			   .appendTo(ul);
		 }
		 else
		 {
			return jQuery("<li></li>")
			   .addClass("notfound")
			   .data("item.autocomplete", item)
			   .append("<a href='linktoknowledgebase'>No records found. Why?</a>")
			   .appendTo(ul);
		 }
	  };
   }
   
   if(jQuery("#ahdm-assignments").size())
   {
      TotalClasses();
      jQuery('input[type=radio]').change(TotalClasses);
   }
}

function openmessage(mid)
{
   jQuery('msg'+mid).style.backgroundColor="#f0f0f0";
   jQuery('msg'+mid).style.fontWeight="normal";
   window.location="message.php?mid="+mid;
}

function deletemessages(pm)
{
   var url="do.deletemessages.php?mids=";
   var count=0;
   
   fields=document.getElementsByClassName('mailcheck');
   for(var i=0; i<fields.length; i++)
   {
     if(jQuery(fields[i]).checked==true)
     {
       url=url+fields[i].id+"%";  
       count++;
     }
   }
   
     if(count)
     {



  moneyPiggy.Alerter.Confirm("Are You Sure You Want to DELETE these messages?"
,'test',      
function () {
                    new Ajax.Request(url, {method: 'get', onComplete: 
      function() 
      {
            if(!pm)
              new Ajax.Updater('messages','prt.getmessages.php?pm=0');
            else
              new Ajax.Updater('messages','prt.getmessages.php?pm=1');
          }
        });
   }
    )

     }
}

function to(pm)
{ 

 directorywindow=window.open("directory.php?pm="+pm,"directorywindow","width=425,height=450,scrollbars=no");
  
/*
   if(jQuery('#allusers')==null){
     directorywindow=window.open("directory.php?pm="+pm,"directorywindow","width=425,height=450,scrollbars=no");
   }else
   {
    if(jQuery('#allusers').checked==false)
      directorywindow=window.open("directory.php?pm="+pm,"directorywindow","width=425,height=450,scrollbars=no");
    else
    
   }  
 */
}

function tomobile()
{
   if(jQuery('#allusers')==null)
     directorywindow=window.open("directory.php?m=1","directorywindow","width=410,height=450,scrollbars=no");
   else
   {
    if(jQuery('#allusers').checked==false)
      directorywindow=window.open("directory.php?m=1","directorywindow","width=410,height=450,scrollbars=no");
    else
      directorywindow.close();  
   }  
}

function filterdirectory(filter,mobile)
{
   jQuery('#searchasyoutypebox').style.border="1px solid #6583c7";
   jQuery('#searchasyoutypebox').val()="";
   
   new Ajax.Updater('results','prt.getnames.php?type='+jQuery('filtertype').val()+'&filter='+filter+"&m="+mobile);
}

function grouplistdirectory(mobile)
{
   jQuery('#searchasyoutypebox').style.border="";
   jQuery('#searchasyoutypebox').val()="";
   new Ajax.Updater('results','prt.getgroups.php?m='+mobile);
}

function classlistdirectory(mobile)
{
   jQuery('#searchasyoutypebox').style.border="";
   jQuery('#searchasyoutypebox').val()="";
   new Ajax.Updater('results','prt.getclasses.php?m='+mobile);
}

function addrecepientfromdir(id,name,divid)
{
  var parentwindow=window.opener.location.href;
  if(parentwindow.search('newmessage.php')>0 || parentwindow.search('newsms.php')>0 || parentwindow.search('newpaymentitem.php')>0)
  {  
   
    window.opener.addrecepient(id,name);
  }
  else
    window.close();
}

function addgroupfromdir(id,name)
{
  var parentwindow=window.opener.location.href;
  if(parentwindow.search('newmessage.php')>0 || parentwindow.search('newsms.php')>0 || parentwindow.search('newpaymentitem.php')>0)
  {
    
    window.opener.addgroup(id,name);
  }
  else
    window.close();
}

function addclassfromdir(id,name)
{
  var parentwindow=window.opener.location.href;
  if(parentwindow.search('newmessage.php')>0 || parentwindow.search('newsms.php')>0 || parentwindow.search('newpaymentitem.php')>0)
  {

    window.opener.addclass(id,name);
  }
  else
    window.close();
}




function searchasyoutype(mobile)
{
  if(jQuery('#searchasyoutypebox').val().length>=3)
  {
     jQuery('#searchasyoutypebox').style.border="2px solid #6583c7";
     new Ajax.Updater('results',"prt.getnames.php?type="+jQuery('filtertype').val()+"&filter="+jQuery('searchasyoutypebox').val()+"&m="+mobile);
  }
}

function addclass(id,name)
{
   //jQuery('messageto').innerHTML="&nbsp;";
   //if group is not already in array then add it in!
   jQuery('recipients').style.display="block";
   
   
   var hits=0;
   for(var i=0; i<classes.length; i++)
   {
     if(classes[i]==id)
       hits++;
   }
   
   if(!hits)
   {
    // if(!recepients.length && !groups.length && !classes.length)
     //  jQuery('messageto').innerHTML="";
    

  new Ajax.Updater('messageto','helllllloooo');

     classnames[(classnames.length)]=name;
     classes[(classes.length)]=id;
     
     
     jQuery('#messagetoclass').innerHTML=jQuery('#messagetoclass').innerHTML.substr(0,(jQuery('#messagetoclass').innerHTML.length-27));   
     jQuery('#messagetoclass').innerHTML=jQuery('#messagetoclass').innerHTML+"<div class='nameentry'>"+name+" (Class) <a href='#' onclick='delclassrecepient("+id+"); return false'><img alt='Delete' src='img/delrecep.png'></a></div><div class='clearer'></div>";
     //alert(jQuery('recipients').innerHTML);
   }
}


function addgroup(id,name)
{
   //jQuery('messageto').innerHTML="&nbsp;";
   jQuery('#recipients').style.display="block";
  
   //if group is not already in array then add it in!
   var hits=0;
   for(var i=0; i<groups.length; i++)
   {
     if(groups[i]==id)
       hits++;
   }
   
   if(!hits)
   {
    // if(!recepients.length && !groups.length && !classes.length)
     //  jQuery('messageto').innerHTML="";
    
     grpnames[(grpnames.length)]=name;
     groups[(groups.length)]=id;
     
     jQuery('#messagetogrps').innerHTML=jQuery('#messagetogrps').innerHTML.substr(0,(jQuery('messagetogrps').innerHTML.length-27));     
     jQuery('#messagetogrps').innerHTML=jQuery('#messagetogrps').innerHTML+"<div class='nameentry'>"+name+" (Group) <a href='#' onclick='delgrp("+id+"); return false'><img alt='Delete' src='img/delrecep.png'></a></div><div class='clearer'></div>";
     //alert(jQuery('recipients').innerHTML);
   }
}

function addrecepient(id,name)
{  
   //jQuery('messageto').innerHTML="&nbsp;";
   jQuery('#recipients').css({"display": "block"});
   

   //if recepient is not already in array then add it in!
   var hits=0;

   for(var i=0; i<recepients.length; i++)
   {
     if(recepients[i]==id)
       hits++;
   }
   
   if(hits == 0)
   {
     //if(!recepients.length && !groups.length && !classes.length)
     //  jQuery('messageto').innerHTML="";
    
     recnames[(recnames.length)]=name;
     recepients[(recepients.length)]=id;
     




    jQuery("#messagetorec" ).append( 

      "<div class='nameentry'>"+name+" <a href='#' onclick='delrec("+id+"); return false;'><img alt='Delete' src='img/delrecep.png'></a></div>");
     


   }
   else
   {

moneyPiggy.Alerter.Alert('Contact is already added to list, possibly via another pupil.\nContact list is still open, but might be minimised.');

   
   }
}

function delrec(id)
{
 

  for(var i=0; i<recepients.length; i++)
  {
    if(recepients[i]==id)
    {
      recepients[i]="0";
      recnames[i]="";
    } 
  }
 



  jQuery('#messagetorec').html("");
    
  for(i=0; i<recnames.length; i++)
  {
         
    if(recnames[i]!="" && recnames[i]!=null)



    jQuery("#messagetorec" ).append( " <div class='nameentry'>"+recnames[i]+" <a href='#' onclick='delrec("+recepients[i]+"); return false;'><img src='img/delrecep.png' /></a></div>");

  }
  

}


function delgrp(id)
{
       
  for(var i=0; i<groups.length; i++)
  {
    if(groups[i]==id)
    {
      groups[i]="0";
      grpnames[i]="";
    } 
  }
 
  jQuery('#messagetogrps').innerHTML="";
    
  for(i=0; i<grpnames.length; i++)
  {        
    if(grpnames[i]!="" && grpnames[i]!=null)
      jQuery('messagetogrps').innerHTML=jQuery('messagetogrps').innerHTML+" <div class='nameentry'>"+grpnames[i]+" (Group) <a href='#' onclick='delgrp("+groups[i]+"); return false;'><img src='img/delrecep.png' /></a></div>";
  }
  
  jQuery('messagetogrps').innerHTML=jQuery('messagetogrps').innerHTML+"<div class='clearer'></div>";
    
}

function delclassrecepient(id)
{
  for(var i=0; i<classes.length; i++)
  {
    if(classes[i]==id)
    {
      classes[i]="0";
      classnames[i]="";
    } 
  }
 
  jQuery('messagetoclass').innerHTML="";
    
  for(i=0; i<classnames.length; i++)
  {
         
    if(classnames[i]!="" && classnames[i]!=null)
      jQuery('messagetoclass').innerHTML=jQuery('messagetoclass').innerHTML+" <div class='nameentry'>"+classnames[i]+" (Class) <a href='#' onclick='delclassrecepient("+classes[i]+"); return false;'><img src='img/delrecep.png' /></a></div>";
  }
  
  jQuery('messagetoclass').innerHTML=jQuery('messagetoclass').innerHTML+"<div class='clearer'></div>";
   
}

function sendmessage(reply)
{
   //validation
   var errors=0;
     
   //check we've got val()s in subject/message, file is optional
   if(jQuery("#subject").val().length<1)
   {
	  jQuery('#bsubject').css({"color": "red"});
	  
	  errors++;
   }
   
   if(CKEDITOR.instances.message.getData().length<1)
   {
	  jQuery('#bmessage').css({"color": "red"});
	  
	  errors++;
   }
   
   // then check we've got some recepients/groups by searching the arrays and making sure at least
   // one element in either is NOT set to 0, but if its not replying as thats a different mechanic
   if(!reply)
   {
     if(jQuery('allusers').checked!=true)
     {     
       var count=0;
       for(i=0; i<groups.length; i++)
       {
          if(groups[i]!="" && groups[i]!=null && groups[i]!='0')
           count++;
       }
       for(i=0; i<recepients.length; i++)
       {
          if(recepients[i]!="" && recepients[i]!=null && recepients[i]!='0')
            count++;
       }   
       for(i=0; i<classes.length; i++)
       {
          if(classes[i]!="" && classes[i]!=null && classes[i]!='0')
            count++;
       }  
        
       jQuery('#to').css({"color": "red"});
     
       if(!count)
       {
         jQuery('#to').css({"color": "red"});
         errors++;
       }
     }  
   } 

   if(!errors)
   {
       window.onbeforeunload=null;

      //serialise groups/users arrays and put into hidden form fields
      if(!reply)
      {
        jQuery('#frmrecepients').val(recepients.join("#"));
        jQuery('#frmgroups').val(groups.join("#"));
        jQuery('#frmclasses').val(classes.join("#"));
      }
      
      // change form to relevant action page
      if(jQuery("#userfile").val().length>1)
         tb_show("<b>Please Wait...</b>","pleasewait.php?modal=true&height=220&width=400",null);
      
         jQuery('#msgform').action="do.sendmessage.php";
         jQuery('#msgform').submit();
   }
}

function sendmessage2(reply)
{
   //validation
   var errors=0;
   var fields="subject,message";
   var fieldarray=fields.split(",");
   
   //check we've got val()s in subject/message, file is optional
   for(var i=0; i<fieldarray.length; i++)
   {
      jQuery('b'+fieldarray[i]).css({color: 'black;'});
      
      if(jQuery(fieldarray[i]).val()==null || jQuery(fieldarray[i]).val()=="")
      {
        jQuery('b'+fieldarray[i]).css({color: 'red;'});
        Effect.Pulsate('b'+fieldarray[i],{duration:0.25});
        errors++;
      }  
   }
   
   // then check we've got some recepients/groups by searching the arrays and making sure at least
   // one element in either is NOT set to 0, but if its not replying as thats a different mechanic
   if(!reply)
   {
     if(jQuery('allusers').checked!=true)
     {     
       var count=0;
       for(i=0; i<groups.length; i++)
       {
          if(groups[i]!="" && groups[i]!=null && groups[i]!='0')
           count++;
       }
       for(i=0; i<recepients.length; i++)
       {
          if(recepients[i]!="" && recepients[i]!=null && recepients[i]!='0')
            count++;
       }   
       for(i=0; i<classes.length; i++)
       {
          if(classes[i]!="" && classes[i]!=null && classes[i]!='0')
            count++;
       }  
        
       jQuery('to').css({color: 'red;'});
      
     
       if(!count)
       {
         jQuery('to').css({color: 'red;'});
     
         errors++;
       }
     }  
   } 
   
   
   
   if(!errors)
   {
      //serialise groups/users arrays and put into hidden form fields
      if(!reply)
      {
        jQuery('#frmrecepients').val()=recepients.join("#");
        jQuery('#frmgroups').val()=groups.join("#");
        jQuery('#frmclasses').val()=classes.join("#");
      }
      
      // change form to relevant action page
      jQuery('#msgform').action="do.sendmessage2.php";
      jQuery('#msgform').submit();
   }
}


function sentmessage(mid)
{
    if(jQuery('#sm'+mid).css({display: 'block'}))
      jQuery('#sm'+mid).css({display: 'none'});
    else
    {  
 
    }
}

function newschool()
{
   //validation
   var errors=0;
   var fields="sn,sa1,sc,spc,st,mcn,mce,tw";
   var fieldarray=fields.split(",");
   
   //check we've got val()s in subject/message, file is optional
   for(var i=0; i<fieldarray.length; i++)
   {
      jQuery('b'+fieldarray[i]).style.color="black";
      jQuery('b'+fieldarray[i]).style.fontWeight="normal";
      
      if(jQuery(fieldarray[i]).val()==null || jQuery(fieldarray[i]).val()=="")
      {
        jQuery('b'+fieldarray[i]).style.color="red";
        jQuery('b'+fieldarray[i]).style.fontWeight="bold";
        Effect.Pulsate('b'+fieldarray[i],{duration:0.25});
        errors++;
      }  
   }   
   
   if(!jQuery('mce').val().match("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})jQuery"))
   {
     jQuery('bmce').style.color="red";
     jQuery('bmce').style.fontWeight="bold";
     Effect.Pulsate('bmce',{duration:0.25});
     errors++;
   } 
   
   if(!errors)
   {
      jQuery('newsclfrm').action='do.addschool.php';
      jQuery('newsclfrm').submit(); 
   }
}

function newgroup()
{
  if(jQuery('#grpname').val()!="" && jQuery('#grpname').val()!=null)
    window.location="do.newgroup.php?g="+jQuery('#grpname').val();
}


function delgroup(gid){
  moneyPiggy.Alerter.Confirm("Are You Sure You Want to DELETE this group?"
,'Confirm',      
function () {
            window.location="do.delgroup.php?gid="+gid;
   }
    )
}



function delgroupmember(uid)
{


   // remove that member from the array

   var groupValues=  jQuery('#groupuserlist').val();

groupValues = groupValues.replace(uid+"-","");
   
jQuery('#groupuserlist').val(groupValues);

   //now send out an ajax request with the array list to refresh the list of users
  
   var url=encodeURI('prt.getgrouplist.php?g='+groupValues);

   new Ajax.Updater('page_body_groupright_list',url);
}

function addgroupmember(uid)
{
  // add that member from the array
  var hits=0;
  var gidarray=jQuery('#groupuserlist').val().split("-");
  for(var i=0; i<gidarray.length; i++)
  {
     if(gidarray[i]==uid)
      hits++;
  } 
  
  if(!hits)
  {
    jQuery('#groupuserlist').val(jQuery('#groupuserlist').val()+uid+"-"); 
    //now send out an ajax request with the array list to refresh the list of users
    var url=encodeURI('prt.getgrouplist.php?g='+jQuery('#groupuserlist').val());

    new Ajax.Updater('page_body_groupright_list',url);  
  } 
}

function savegroup()
{
   if(jQuery('#groupname').val().length>2)
   {
	  jQuery('#grpfrm').action='do.savegroup.php';
	  jQuery('#grpfrm').submit();
   }
   else
   {
	  jQuery('#bgroupname').style.color="red";
	
   }
}

function saveclass()
{
   var errors=0;
   jQuery('#bclassname').style.color="black";
   
   if(jQuery('#classname').val()=="" || jQuery('#classname').val()==null)
   {
     errors++;
     jQuery('#bclassname').style.color="red";
   }
   
   if(!errors)
   {
     jQuery('#grpfrm').action='do.saveclass.php';
     jQuery('#grpfrm').submit();
   }
}


function deleteschool(sid){
  moneyPiggy.Alerter.Confirm("Are You Sure You Want to DELETE this School?\nThis will permanently remove ALL Users, ALL Groups, ALL Classes and ALL Messages!"
,'Confirm',      
function () {


  moneyPiggy.Alerter.Confirm("REALLY Sure?"
,'Confirm',      
function () {


  
            window.location="do.delgroup.php?gid="+gid;
   }
    )


        
   }
    )
}


function validatepwchange()
{
   var errors=0;
   var fields="oldpass,newpass,newpass2";
   var fieldarray=fields.split(",");
   
   //check we've got val()s in subject/message, file is optional
   for(var i=0; i<fieldarray.length; i++)
   {
      jQuery('b'+fieldarray[i]).style.color="black";
      jQuery('b'+fieldarray[i]).style.fontWeight="normal";
      
      if(jQuery(fieldarray[i]).val()==null || jQuery(fieldarray[i]).val()=="")
      {
        jQuery('b'+fieldarray[i]).style.color="red";
        jQuery('b'+fieldarray[i]).style.fontWeight="bold";
        Effect.Pulsate('b'+fieldarray[i],{duration:0.25});
        errors++;
      }  
   }
   
   if(jQuery('newpass').val()!=jQuery('newpass2').val())
   {
     errors++;
     jQuery('bnewpass').style.color="red";
     jQuery('bnewpass').style.fontWeight="bold";
     Effect.Pulsate('bnewpass',{duration:0.25});
      
     jQuery('bnewpass2').style.color="red";
     jQuery('bnewpass2').style.fontWeight="bold";
     Effect.Pulsate('bnewpass2',{duration:0.25});
            
   }
   
   if(!errors)
     jQuery('newpassfrm').submit();
}

function deluser(uid){
  moneyPiggy.Alerter.Confirm("Are You Sure You Want to DELETE this User?\nThis will permanently remove ALL Group Memberships and ALL the users Messages!"
,'Confirm',      
function () {
            window.location="do.deluser.php?uid="+uid; 
   }
    )
}


function addpupil()
{
jQuery('bn').style.color="black";

if(jQuery('pupilname').val()=="")
  {
    jQuery('bn').style.color="red";
    Effect.Pulsate('bn',{duration:0.25});
  }
  else
    var url="do.addpupil.php?pupilname="+encodeURI(jQuery('pupilname').val())+"&sid="+encodeURI(jQuery('sid').val())+"&cid="+encodeURI(jQuery('cid').val());

    new Ajax.Request(url, {method: 'get', onComplete: 
	function()
	{
	    var url="prt.getpupils.php?sid="+encodeURI(jQuery('sid').val());

	    if(jQuery('orphan').val()=='1')
	      url=url+"&orphan=1";

	    new Ajax.Updater('pupillist',url);
	    jQuery('pupilname').val()="";
    }
    });
}



function delpupil(pid){
     var url="do.delpupil.php?pid="+pid;
  moneyPiggy.Alerter.Confirm("Are You Sure You Want to DELETE this Pupil?"
,'Confirm',      
function () {
            window.location=url;
   }
    )
}


function delclass(cid){
  
  moneyPiggy.Alerter.Confirm("Are You Sure You Want to DELETE this class?"
,'Confirm',      
function () {
    window.location="do.delclass.php?sid="+jQuery('sid').val()+"&cid="+cid;
   }
    )
}



function addschooluser()
{

   var errors=0;
   var fields="n,e";
   var fieldarray=fields.split(",");
   
   //check we've got val()s in subject/message, file is optional
   for(var i=0; i<fieldarray.length; i++)
   {
      jQuery('b'+fieldarray[i]).style.color="black";
      jQuery('b'+fieldarray[i]).style.fontWeight="normal";
      
      if(jQuery(fieldarray[i]).val()==null || jQuery(fieldarray[i]).val()=="")
      {
        jQuery('b'+fieldarray[i]).style.color="red";
        jQuery('b'+fieldarray[i]).style.fontWeight="bold";
        Effect.Pulsate('b'+fieldarray[i],{duration:0.25});
        errors++;
      }  
   }  
   
   if(!jQuery('e').val().match("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})jQuery"))
   {
        jQuery('be').style.color="red";
        jQuery('be').style.fontWeight="bold";
        Effect.Pulsate('be',{duration:0.25});
        errors++;
   }
   
   if(!errors)
     window.location=encodeURI('do.addschooluser.php?n='+jQuery('n').val()+"&e="+jQuery('e').val());
}


function deletepairing(pid){
  
  moneyPiggy.Alerter.Confirm("Are you sure you want to DELETE this pairing?"
,'Confirm',      
function () {
   window.location="do.deletepairing.php?pid="+pid;
   }
    )
}




function editparent()
{
   var errors=0;
   var fields="n";
   var fieldarray=fields.split(",");

   //check we've got val()s in subject/message, file is optional
   for(var i=0; i<fieldarray.length; i++)
   {
      jQuery('b'+fieldarray[i]).style.color="black";
      jQuery('b'+fieldarray[i]).style.fontWeight="bold";

      if(jQuery(fieldarray[i]).val()==null || jQuery(fieldarray[i]).val()=="")
      {
        jQuery('b'+fieldarray[i]).style.color="red";
        jQuery('b'+fieldarray[i]).style.fontWeight="bold";
        Effect.Pulsate('b'+fieldarray[i],{duration:0.25});
        errors++;
      }
   }

   if(jQuery('mp').val()=="")
   {
	   if(!jQuery('em').val().match("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})jQuery"))
	   {
	        jQuery('bem').style.color="red";
	        jQuery('bem').style.fontWeight="bold";
	        Effect.Pulsate('bem',{duration:0.25});
	        errors++;
	   }
	   
	   if(jQuery('em2').val()!="")
	   {
		   if(!jQuery('em2').val().match("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})jQuery"))
		   {
		        jQuery('bem2').style.color="red";
		        Effect.Pulsate('bem2',{duration:0.25});
		        errors++;
		   }
		   else
		   {
		     jQuery('bem2').style.color="black";
		   }		   
	   }

	   if(jQuery('em3').val()!="")
	   {
		   if(!jQuery('em3').val().match("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})jQuery"))
		   {
		        jQuery('bem3').style.color="red";
		        Effect.Pulsate('bem3',{duration:0.25});
		        errors++;
		   }
		   else
		   {
		     jQuery('bem3').style.color="black";
		   }
	   }   
   }
   if(jQuery('mp').val()!="")
   {
       var mperror=0;
	   if(isNaN(jQuery('mp').val()))
	         mperror++;
         
       if(jQuery('mp').val().length!=11)
         mperror++;
         
       if(mperror)
       {
         errors++;
         jQuery('bmp').style.color="red";
         Effect.Pulsate('bmp',{duration:0.25});
       }    
       else
         jQuery('bmp').style.color="black"; 
   }
   
   if(jQuery('mp2').val()!="")
   {
       var mperror=0;
	   if(isNaN(jQuery('mp2').val()))
	         mperror++;

       if(jQuery('mp2').val().length!=11)
         mperror++;
         
       if(mperror)
       {
         errors++;
         jQuery('bmp2').style.color="red";
         Effect.Pulsate('bmp2',{duration:0.25});
       }    
       else
         jQuery('bmp2').style.color="black"; 
   }

   if(!errors)
   {
     if(jQuery('em').val()=="" && jQuery('mp').val()!="")
     {



  
  moneyPiggy.Alerter.Confirm("You have omitted an email address for this parent, are you sure this parent is a mobile only user?"
,'Confirm',      
function () {
       jQuery('frm').action="do.changeparent.php";
         jQuery('frm').submit();
   }
    )








     }
     else
     {
       jQuery('frm').action="do.changeparent.php";
       jQuery('frm').submit();
     }
   }
}

function editparent2()
{
   var errors=0;
   var fields="n";
   var fieldarray=fields.split(",");

   	   if(jQuery('em2').val()!="")
	   {


if( !isValidEmailAddress( jQuery('#em2').val() ) )
{
		        jQuery('#bem2').css({color: 'red'})
		   
		        errors++;
		   }
		   else
		   {
		     jQuery('#bem2').css({color: 'black'})
		   }
	   }

	   if(jQuery('#em3').val()!="")
	   {
		   if( !isValidEmailAddress( jQuery('#em3').val() ))
		   {
		        jQuery('#bem3').css({color: 'red'})

		        errors++;
		   }
		   else
		   {
		     jQuery('#bem3').css({color: 'black'})
		   }
	   }


   if(!errors)
   {
       jQuery('#frm').action="do.changeparent.php";
       jQuery('#frm').submit();
   }
}

function sendall()
{ 
   if(jQuery('allusers').checked==true)
     jQuery('recipients').css({display: 'none'});
   else
   {
     if(recepients.length || groups.length || classes.length)
    
 jQuery('recipients').css({display: 'block'});
   }
}

function extrapupil()
{
  jQuery('bpin').style.color="black";
  
  if(jQuery('pin').val()=="" || jQuery('pin').val()==null)
  {
    jQuery('bpin').style.color="red";
    Effect.Pulsate('bpin',{duration:0.25});
  }
  else
  {
     new Ajax.Request('prt.validatepin.php?p='+jQuery('pin').val(),{onSuccess: 
     function(transport) 
     {  
        if(transport.responseText=='0')
        {
     	  jQuery('bpin').style.color="red";
          jQuery('bpin').style.fontWeight="bold";
          Effect.Pulsate('bpin',{duration:0.25});
        }
        else
        {
          jQuery('extrafrm').action='extrapupils.php';
          jQuery('extrafrm').submit();
        }
     }}); 
  }  
}

function addextras()
{
  if(jQuery('childlist').val()=="" || jQuery('childlist').val()==null)
  {
     jQuery('bch').style.color="red";
     jQuery('bch').style.fontWeight="bold";
     Effect.Pulsate('bch',{duration:0.25});    
  }
  else
  {
    jQuery('sufrm').action='do.addextras.php';
    jQuery('sufrm').submit();
  }
}

function groupuserpicker()
{
  new Ajax.Updater('page_body_groupleft_list','prt.getgroupuserlist.php?ty='+jQuery('typepicker').val());
}

function addnewparent(sid)
{
  window.location="addparent.php?sid="+sid;
}

function addparent()
{
   var errors=0;
   var fields="name";
   var fieldarray=fields.split(",");
   
   //check we've got val()s in subject/message, file is optional
   for(var i=0; i<fieldarray.length; i++)
   {
      jQuery('b'+fieldarray[i]).style.color="black";
      jQuery('b'+fieldarray[i]).style.fontWeight="normal";
      
      if(jQuery(fieldarray[i]).val()==null || jQuery(fieldarray[i]).val()=="")
      {
        jQuery('b'+fieldarray[i]).style.color="red";
        jQuery('b'+fieldarray[i]).style.fontWeight="bold";
        Effect.Pulsate('b'+fieldarray[i],{duration:0.25});
        errors++;
      }  
   }
 
   if(jQuery('em').val()!="")
   {
	   if(!jQuery('em').val().match("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})jQuery"))
	   {
	     jQuery('bem').style.color="red";
	     jQuery('bem').style.fontWeight="bold";
	     Effect.Pulsate('bem',{duration:0.25});
	     errors++;
	   } 
   }
   
   if(jQuery('em').val()=="" && jQuery('mp').val()=="")
   {
	     jQuery('bem').style.color="red";
	     jQuery('bem').style.fontWeight="bold";
	     Effect.Pulsate('bem',{duration:0.25});
	     jQuery('bmp').style.color="red";
	     jQuery('bmp').style.fontWeight="bold";
	     Effect.Pulsate('bmp',{duration:0.25});
	     errors++;
	        
   }
   
   if(jQuery('mp').val()!="")
   {
       var mperror=0;
       
       if(isNaN(jQuery('mp').val()))
         mperror++;
         
       if(jQuery('mp').val().length!=11)
         mperror++;
         
       if(mperror)
       {
         errors++;
         jQuery('bmp').style.color="red";
         Effect.Pulsate('bmp',{duration:0.25});
       }    
       else
         jQuery('bmp').style.color="black";
   }  
   
   var chidarray=jQuery('childlist').val().split("-");  
   if(jQuery('childlist').val()=="" || jQuery('childlist').val()==null || !chidarray.length)
   {
     if(jQuery('em').val()=="")
     {
	     var checkcount=0;
	     var fields=document.getElementsByClassName("groupcheck");
	     
	     for(var i=0; i<fields.length; i++)
	     {
	        if(jQuery(fields[i]).checked==true)
	          checkcount++;
	     }
	     
	     if(checkcount)
	     {
		     if(!confirm("Are you sure you want to add this parent without assigning a child to them?"))
		       errors++;
	     }
	     else
	     {
	         jQuery('groupadd').style.color="red";
	         Effect.Pulsate('bmp',{duration:0.25});     
	         errors++;
	     }
     }  
   } 
   
   if(!errors)
   {
      if(jQuery('mp').val()!="" && jQuery('em').val()=="")
      {
     	 if(confirm("Mobile Only User.\n\nIf You continue, you will be registered as a 'Mobile Only' User and will only be able to receive text message alerts, and not be able to log in or enjoy the other benefits of a full homecontact user.\n\nClick OK to Continue, otherwise Cancel."))
      	 {  
     		jQuery('sufrm').action='do.addparent.php';
     		jQuery('sufrm').submit();
         }  
      }
      else
      {
     		jQuery('sufrm').action='do.addparent.php';
     		jQuery('sufrm').submit();
      }
   }
}

function orphan()
{
     var url="prt.getpupils.php?sid="+encodeURI(jQuery('sid').val());
	    
	    if(jQuery('orphan').val()=='1')
	      url=url+"&orphan=1";
	    
	    new Ajax.Updater('pupillist',url);
	    jQuery('pupilname').val()="";
}

function parentsearch(os)
{
  if(jQuery('#search').val().length>3 || (!jQuery('#search').val().length && os))
   new Ajax.Updater("searchresults","prt.getparents.php?s="+jQuery('#search').val()+"&sid="+jQuery('#sid').val()+"&os="+os);
  
  if(!jQuery('#search').val().length && !os)
   new Ajax.Updater("searchresults","prt.getparents.php?sid="+jQuery('#sid').val());
}

function viewparents()
{
     var url="prt.getparents.php?sid="+encodeURI(jQuery('#sid').val());

	    if(jQuery('#viewparents').val()=='1')
	      url=url+"&view=1";

	    new Ajax.Updater('searchresults',url);
	    jQuery('#searchresults').val()="";
}


function viewarchive(url)
{
     
	    if(jQuery('#viewarchives').val()=='1')
	      url=url+"?all=1";
      else
        url=url+"?all=0";

	    new Ajax.Updater('archiveresults',url);
	  
	    jQuery('#archiveresults').val("");
	    
}

function deleteparent(pid,sid)
{
   
moneyPiggy.Alerter.Confirm("Are You Sure You Want to DELETE this parent?", "Confirmation",
function () {
     new Ajax.Request('do.deluser.php?uid='+pid,{onComplete:
    function()
    {
       window.location="parents.php?sid="+sid;
    }}); 
            
}
                );



}




function extrachildren()
{
   var errors=0;
   
   var chidarray=jQuery('childlist').val().split("-");  
   if(jQuery('childlist').val()=="" || jQuery('childlist').val()==null || !chidarray.length)
   {
      jQuery('bch').style.color="red";
      jQuery('bch').style.fontWeight="bold";
      Effect.Pulsate('bch',{duration:0.25});
      errors++;      
   } 
     
   if(!errors)
   {
     jQuery('sufrm').action='do.extrachildren.php';
     jQuery('sufrm').submit();  
   }
}

function amendmobile()
{
   var mperror=0;
       
   if(jQuery('mp').val()!="")
   {      
       if(isNaN(jQuery('mp').val()))
         mperror++;
         
       if(jQuery('mp').val().length!=11)
         mperror++;
         
       if(mperror)
       {
         jQuery('bmp').style.color="red";
         Effect.Pulsate('bmp',{duration:0.25});
       }    
       else
         jQuery('bmp').style.color="black";
   }
     
   if(jQuery('mp2').val()!="")
   {      
       if(isNaN(jQuery('mp2').val()))
         mperror++;
         
       if(jQuery('mp2').val().length!=11)
         mperror++;
         
       if(mperror)
       {
         jQuery('bmp2').style.color="red";
         Effect.Pulsate('bmp2',{duration:0.25});
       }    
       else
         jQuery('bmp2').style.color="black";
   }     
   
   if(!mperror)
     jQuery('mobilefrm').submit();
   
}

function amendsendname()
{
   if(jQuery('#sn').val().length>11 || !jQuery('#sn').val().length)
   {
         jQuery('#bsn').style.color="red";
         Effect.Pulsate('bsn',{duration:0.25});   
   }
   else
     jQuery('#sendnamefrm').submit();
}



function ordertxcredits()
{
   
moneyPiggy.Alerter.Confirm("Are you sure you wish to place an order for "+jQuery('qty').val()+" transaction credits?\n\nThis will immediately raise an invoice with MoneyPiggy.", "Confirmation",
function () {
  jQuery('#topupfrm').submit();
            
}
                );



}



function ordercredits()
{
   
moneyPiggy.Alerter.Confirm("Please ensure you click the 'Return to HomeContact' link once you have completed your payment otherwise our system will not recognise your topup.", "Confirmation",
function () {
       jQuery('#topupfrm').submit();
            
}
                );



}



function smscount()
{
  if(jQuery('message').val().length>=600)
    jQuery('smscount').innerHTML="SMS Character Limit Exceeded ("+jQuery('message').val().length+"). Please reduce to 600 or less.";
  else
    jQuery('smscount').innerHTML=jQuery('message').val().length+" characters, total: "+(Math.ceil((jQuery('message').val().length/153)))+" credit(s)";
}

function sendsms()
{
	var count=0;
    var errors=0;
    
    if(jQuery('allusers').checked==false)
    {
	    for(i=0; i<groups.length; i++)
	    {
	       if(groups[i]!="" && groups[i]!=null && groups[i]!='0')
	         count++;
	    }
	       
	    for(i=0; i<recepients.length; i++)
	    {
	       if(recepients[i]!="" && recepients[i]!=null && recepients[i]!='0')
	          count++;
	    } 
	         
	    for(i=0; i<classes.length; i++)
	    {
	        if(classes[i]!="" && classes[i]!=null && classes[i]!='0')
	          count++;
	    }  
  
    
	    jQuery('to').style.color="#505050";
	    jQuery('to').style.fontWeight="normal";
	     
	    if(!count)
	    {
	       jQuery('to').style.color="red";
	       jQuery('to').style.fontWeight="bold";
	       Effect.Pulsate('to',{duration:0.25});
	       errors++;
	   }
   }
       
   if(!jQuery('message').val().length)
   {
   	   jQuery('bmessage').style.color="red";
       jQuery('bmessage').style.fontWeight="bold";
       Effect.Pulsate('bmessage',{duration:0.25});
       errors++;
   }
   
   if(!errors)
   {
       window.onbeforeunload=null;

	   jQuery('frmrecepients').val()=recepients.join("#");
	   jQuery('frmgroups').val()=groups.join("#");
	   jQuery('frmclasses').val()=classes.join("#");
	            
       new Ajax.Request("prt.creditcalculation.php?"+Form.serialize(jQuery('msgform')),{onComplete:
       function(transport){
         if(transport.responseText.substring(0,5)=="Error")
           moneyPiggy.Alerter.Alert(transport.responseText);
         else
         {



   
moneyPiggy.Alerter.Confirm(transport.responseText, "Confirmation",
function () {
    jQuery('sendsmsbutton').disabled=true;
               jQuery('msgform').submit();
            
}
                );





         }
       }});
   }
}

function validatereply()
{
    if(jQuery('delete').checked==true)
    {
        if(moneyPiggy.Alerter.Confirm("Are you sure you want to delete this reply?"))
           
            window.location="do.deletereply.php?rid="+jQuery('rid').val();
    }
    else
    {
        var errors=0;
        
        if(jQuery(".examplefield").size())
        {
            errors++;
            jQuery(".examplefield").each(
                function(e)
                {
                    jQuery('#b'+this.id).css("color","red");
                    Effect.Pulsate('b'+this.id,{duration:0.25});              
                }
            );
        }
        else
        {      
            var fields="title,statement,responses";
            var fieldarray=fields.split(",");
            
            //check we've got val()s in subject/message, file is optional
            for(var i=0; i<fieldarray.length; i++)
            {
                jQuery('b'+fieldarray[i]).style.color="black";
                
                if(jQuery(fieldarray[i]).val()==null || jQuery(fieldarray[i]).val()=="")
                {
                    jQuery('b'+fieldarray[i]).style.color="red";
                    jQuery('b'+fieldarray[i]).style.fontWeight="bold";
                    Effect.Pulsate('b'+fieldarray[i],{duration:0.25});
                    errors++;
                }  
            }
        }
        
        if(!errors)
            jQuery('newreplyfrm').submit();
      }
}

function getmonthdays(div,id)
{
     var url="prt.getmonthdays.php?id="+id+"&m="+jQuery('month').val()+"&y="+jQuery('year').val()+"&d="+jQuery('day').val();

     new Ajax.Updater(div,url);
}

function validatereplyform()
{
   var errors=0;
   
   var fields=document.getElementsByClassName("responsedd");
   for(var i=0; i<fields.length; i++)
   {
      if(jQuery(fields[i]).val()=="-1")
       errors++;
   }
   
   if(!errors)
     jQuery('replyform').submit();
   else
   {  
      jQuery('bresponse').style.color="red";
      Effect.Pulsate("bresponse");
   }  
}

function validatemanualreplyform()
{
   var errors=0;
   
   jQuery('#replyform .responsedd').each(
      function(e)
      {
         if(jQuery(e).id!=null)
         {
            if(jQuery(e).val(-1))
            {
               errors++;


               jQuery("b"+e.id).css({"color": "red"});
               
            }
           else
               jQuery("b"+e.id).css({"color": "black"});
         }
      }
   );
   
   if(jQuery('repnames')!=null)
   {
      if(jQuery('repnames').val()=="" || jQuery('repnames').val()==null)
      {
         errors++;
         jQuery("brepnames").css({"color": "red"});
     
      }
      else
         jQuery("brepnames").css({"colr": "black"});
   }

   if(!errors)
     jQuery('replyform').submit();

}

  function ShowRecipients()
{
	
   jQuery('recipientlink').hide();
   Effect.SlideDown("recipientlist",{duration: 0.5});
}

function HideRecipients()
{
   Effect.SlideUp("recipientlist", {duration: 0.5, afterFinish:
      function()
      {
         jQuery('recipientlink').show();
      }
   });
}

function ShowFilters()
{
   jQuery('filterslink').hide();
   Effect.SlideDown("filtersarea",{duration: 0.5});
}

function HideFilters()
{
   Effect.SlideUp("filtersarea", {duration: 0.5, afterFinish:
      function()
      {
         jQuery('filterslink').show();
      }
   });
}

function ValidateSettings()
{
   var errors=0;
   
   if(jQuery('oldpass').val()!="" && jQuery('newpass').val()!="" && jQuery('newpass2').val()!="")
   {
      var fields="oldpass,newpass,newpass2";
      var fieldarray=fields.split(",");
      
      //check we've got val()s in subject/message, file is optional
      for(var i=0; i<fieldarray.length; i++)
      {
         jQuery('b'+fieldarray[i]).style.color="black";
         jQuery('b'+fieldarray[i]).style.fontWeight="normal";
         
         if(jQuery(fieldarray[i]).val()==null || jQuery(fieldarray[i]).val()=="")
         {
           jQuery('b'+fieldarray[i]).style.color="red";
           jQuery('b'+fieldarray[i]).style.fontWeight="bold";
           Effect.Pulsate('b'+fieldarray[i],{duration:0.25});
           errors++;
         }  
      }
      
      if(jQuery('newpass').val()!=jQuery('newpass2').val())
      {
        errors++;
        jQuery('bnewpass').style.color="red";
        jQuery('bnewpass').style.fontWeight="bold";
        Effect.Pulsate('bnewpass',{duration:0.25});
         
        jQuery('bnewpass2').style.color="red";
        jQuery('bnewpass2').style.fontWeight="bold";
        Effect.Pulsate('bnewpass2',{duration:0.25});
               
      }
   }

   var mperror=0;
       
   if(jQuery('mp').val()!="")
   {      
       if(isNaN(jQuery('mp').val()))
         mperror++;
         
       if(jQuery('mp').val().length!=11)
         mperror++;
         
       if(mperror)
       {
         jQuery('bmp').style.color="red";
         Effect.Pulsate('bmp',{duration:0.25});
       }    
       else
         jQuery('bmp').style.color="black";
   }
     
   if(jQuery('mp2').val()!="")
   {      
       if(isNaN(jQuery('mp2').val()))
         mperror++;
         
       if(jQuery('mp2').val().length!=11)
         mperror++;
         
       if(mperror)
       {
         jQuery('bmp2').style.color="red";
         Effect.Pulsate('bmp2',{duration:0.25});
       }    
       else
         jQuery('bmp2').style.color="black";
   }
   
   if(!jQuery('em').val().match("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})jQuery"))
   {
      errors++;
      jQuery('bem').style.color="red";
      Effect.Pulsate('bem',{duration:0.25});
   }
   else
      jQuery('bem2').style.color="black";  
   
   if(!jQuery('em2').val().match("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})jQuery") && jQuery('em2').val()!="")
   {
      errors++;
      jQuery('bem2').style.color="red";
      Effect.Pulsate('bem2',{duration:0.25});
   }
   else
      jQuery('bem2').style.color="black";
      
   if(!jQuery('em3').val().match("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})jQuery") && jQuery('em3').val()!="")
   {
      errors++;
      jQuery('bem3').style.color="red";
      Effect.Pulsate('bem3',{duration:0.25});
   }
   else
      jQuery('bem3').style.color="black";      
   
   if(!errors && !mperror)
   {
      jQuery('settingsfrm').submit();
   }
   
   
}

function validatesmstemplate()
{
   var errors=0;

   if(jQuery("name").val().length<1)
   {
	  jQuery('btitle').style.color="red";
	  Effect.Pulsate('btitle',{duration:0.25});
	  errors++;
   }

   if(jQuery("message").val().length<1 || jQuery("message").val().length>=600)
   {
	  jQuery('bmessage').style.color="red";
	  Effect.Pulsate('bmessage',{duration:0.25});
	  errors++;
   }
   
   if(!errors)
	  jQuery("newsmstemplatefrm").submit();
}

function deletetemplate(tid)
{
   
moneyPiggy.Alerter.Confirm("Are You sure you want to DELETE this template?", "Confirmation",
function () {

              window.location.href="do.deletesmstemplate.php?tid="+tid;
}
                );



}

function usesmstemplate()
{
   if(jQuery("template").val()!="-1")
   {
	  new Ajax.Request("prt.getsmstemplate.php?tid="+jQuery("template").val(), {
		 onComplete: function(transport)
		 {
			jQuery("message").innerHTML=transport.responseText;
			jQuery("#message").keyup();
		 }
	  });
   }
}

function deletereply(replyid,all)
{
  moneyPiggy.Alerter.Confirm("Are you sure you want to delete this reply?\n\nOnce done, it cannot be undone."
,'test',      
function () {
                   window.location.href="do.deletereply.php?rid="+replyid+"&all="+all;
   }
    )
	
}

function removeexception(eid)
{
  moneyPiggy.Alerter.Confirm("Are you sure you want to *DELETE* this exception?"
,'test',      
function () {
                    window.location.href="do.deleteprexception.php?eid="+eid;
   }
    )
}








function listkids()
{
   new Ajax.Updater('listbyclass','prt.getkids.php?c='+jQuery('cid').val());
}

function resetchildren()
{
  jQuery('childlist').val()="";
  jQuery('listmychildren').innerHTML="&nbsp;";
}

function addchild(chid,name)
{
  var hits=0;
  var chidarray=jQuery('childlist').val().split("-");
  for(var i=0; i<chidarray.length; i++)
  {
     if(chidarray[i]==chid)
      hits++;
  } 
  
  if(!hits)
  {
    jQuery('childlist').val()=jQuery('childlist').val()+"-"+chid;
    jQuery('listmychildren').innerHTML=jQuery('listmychildren').innerHTML+name+"<br />";
  }
}



function unpair(cid)
{
  moneyPiggy.Alerter.Confirm("Are You Sure You Want to UNPAIR this child from the parent?"
,'Confirm',      
function () {
                    window.location="do.unpair.php?cid="+cid;
   }
    )
}





function ValidateBankAccount()
{
   var errors=0;
   var message="Errors:\n";
   
   if(jQuery("desc").val().length<1)
   {
	  errors++;
	  message+="Please enter a description for the account.\n";
   }
   
   if(jQuery("acname").val().length<1)
   {
	  errors++;
	  message+="Please enter the account name.\n";
   }
   
   if(jQuery("acnumber").val().length<1)
   {
	  errors++;
	  message+="Please enter the account number.\n";
   }
   
   if(jQuery("sortcode").val().length<1)
   {
	  errors++;
	  message+="Please enter the sort code.";
   }
   
   if(jQuery("sortcode").val().length!=8 || jQuery("sortcode").val().substr(2,1)!="-" || jQuery("sortcode").val().substr(5,1)!="-" || isNaN(jQuery("sortcode").val().substr(0,2)) || isNaN(jQuery("sortcode").val().substr(3,2)) || isNaN(jQuery("sortcode").val().substr(6,2)))
   {
	  errors++;
	  message+="Sort Code does not appear to be valid, please use xx-xx-xx format.\n";
   }
   
   if(isNaN(jQuery("acnumber").val()) || jQuery("acnumber").val().length<8 || jQuery("acnumber").val().length>9)
   {
	  errors++;
	  message+="Account number does not appear to be valid, should be 8 or 9 digits.\n";
   }

   if(errors)
	  moneyPiggy.Alerter.Alert(message);
   else
	  jQuery("bankform").submit();
}



function DeleteBankAccount(bid)
{
  moneyPiggy.Alerter.Confirm("Are you sure you want to delete this bank account?\n\nOnce deleted, it cannot be undone."
,'Confirm',      
function () {
                  window.location="do.deletebankaccount.php?bid="+bid;
   }
    )
}






function GetWeeks()
{
   regex="^(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)[0-9]{2}jQuery";
   
   if(!jQuery("start").val().match(regex) || jQuery("end").val().match("regex"))
	  moneyPiggy.Alerter.Alert("Please check start and end dates");
   else
      new Ajax.Updater("weeks_container","prt.getweeks.php?s="+jQuery("start").val()+"&e="+jQuery("end").val());
}

function SaveTerm()
{
   var errors=0;
   var message="There are errors:\n";
   
   if(jQuery("desc").val().length<1)
   {
	  errors++;
	  message+="Please enter a description.\n";
   }
   
   if(!jQuery("input.week:checked").size())
   {
	  errors++;
	  message+="Please select at least one week in the term.\n";
   }
   
   if(!errors)
	  jQuery("termform").submit();
   else
	  moneyPiggy.Alerter.Alert(message);
   
}

function DeleteTerm(termid)
{
  moneyPiggy.Alerter.Confirm("Are you sure you want to DELETE this term?\nAnything associated with this term will also be deleted!"
,'Confirm',      
function () {
                 window.location="do.deleteterm.php?tid="+termid;
   }
    )
}



function PaymentItemType(ptype)
{
   if(ptype==1)
   {
	  jQuery("#singleamount_container").fadeIn( "slow" );
	  jQuery("#installments_container").hide();
   }
   else
   {   
	  jQuery("#singleamount_container").hide();
	  jQuery("#installments_container").fadeIn( "slow" );
   }
}

function ValidatePaymentSettings()
{
   var errors=0;
   var message="There were errors:\n";


   if(isNaN(jQuery("#r1_days").val()) || !jQuery("#r1_days").val().length)
   {

    alert(jQuery("r1_days").val());
	  errors++;
	  message+="R1 Days does not appear to be valid.\n";
   }
   
   if(isNaN(jQuery("#r2_days").val()) || !jQuery("#r2_days").val().length)
   {
	  errors++;
	  message+="R2 Days does not appear to be valid.\n";
   }
   
   if(isNaN(jQuery("#f_days").val()) || !jQuery("#f_days").val().length)
   {
	  errors++;
	  message+="F Days does not appear to be valid.\n";
   }
  
   var reminderfields=Array("#r1_email","#r1_sms","#r2_email","#r2_sms","#f_email","#f_sms");
   var remindernames=Array("R1 Email","R1 SMS","R2 Email","R2 SMS","Final Reminder Email","Final Reminder SMS");
   
   for(var i=0; i<reminderfields.length; i++)
   {
	  if(jQuery(reminderfields[i]).val().length<5)
	  {
		 errors++;
		 message+=remindernames[i]+" needs to be filled in.\n";
	  }
   }
   
   if(!errors){

	  jQuery("#paymentsettingsfrm").submit();}
   else{
	  moneyPiggy.Alerter.Alert(message);}
}

function ValidatePaymentItem()
{
   var errors=0;
   var message="There are errors:\n";
   dateregex="^(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)[0-9]{2}jQuery";
   
   if(jQuery("#name").val().length<3)
   {
	  errors++;
	  message+="Please enter a name for the payment item.\n";
   }
   
   if(jQuery("#desc").val().length<3)
   {
	  errors++;
	  message+="Please enter a description for the payment item.\n";
   }
   
   if(jQuery("#bank").val()=="0")
   {
	  errors++;
	  message+="Please select a bank account for the payment item.\n";
   }
   
   if(jQuery("#singlepayment").checked==true)
   {
	  if(isNaN(jQuery("#sp_amount").val()) || jQuery("#sp_amount").val().length<1)
	  {
		 errors++;
		 message+="Amount does not appear to be a number.\n";
	  }
	
	  if(!CheckDate(jQuery("#sp_duedate").val()))
	  {
		 errors++;
		 message+="Due Date does not appear to be valid.\n";
	  }
   }
   else
   {


	  if(!CheckDate(jQuery("#sp_duedate").val()))
	  {
		 errors++;
		 message+="Deposit due date does not appear to be valid.\n";
	  }
	  
	  if(isNaN(jQuery("#sp_amount").val()) || jQuery("#sp_amount").val().length<1)
	  {
		 errors++;
		 message+="Deposit does not appear to be a number.\n";
	  }
	  
	  if(jQuery("#ins_amount").size()<1)
	  {
		 errors++;
		 message+="You need to add at least one installment.";
	  }
   }

   if(!errors)
	  jQuery("#newpaymentitemfrm").submit();
   else
	  moneyPiggy.Alerter.Alert(message);
}


function DeletePaymentItem(piid,all)
{
  moneyPiggy.Alerter.Confirm("Are you sure you want to delete this payment item?\n\nOnce deleted, it cannot be undone."
,'Confirm',      
function () {
               window.location="do.deletepaymentitem.php?piid="+piid+"&all="+all;
   }
    )
}

function ArchivePaymentItem(piid,all){
  moneyPiggy.Alerter.Confirm("Are you sure you want to Archive this payment item?\n\nThis will prevent any further payments from parents for this payment item."
,'Confirm',      
function () {
               window.location="do.archivepaymentitem.php?piid="+piid+"&all="+all;
   }
    )
}

function SetCash(ppid,piid){
  moneyPiggy.Alerter.Confirm("Are you sure you want to set this payment as paid/cash?"
,'Confirm',      
function () {
               window.location="do.setpaymentcash.php?ppid="+ppid+"&piid="+piid;
   }
    )
}

function ValidateReminder()
{
   if(jQuery("#message").val() == "")
   {
	  moneyPiggy.Alerter.Alert("Please enter a message.");
   }
   else{
    alert("ok");
	  jQuery("#reminderform").submit();
}
}

function SelectedPayments()
{
   count=0;
   var url="payment.php?ppid=";
 
   jQuery("input.payment:checked").each(
	  function()
	  {
		 count++;
		 url=url+this.name.substring(8)+"-";
	  }
   );
   
   if(jQuery("#wallet").prop("checked")==true)
	  url+="&wallet=1";
   
   if(count)
	  window.location=url;
   else
      moneyPiggy.Alerter.Alert("Please select at least one payment.");
}

function ValidatePayForm()
{
   var errors=0;
   var message="There are errors:\n";

   if(isNaN(jQuery("houseno").val()) || !jQuery("houseno").val().length)
   {
	  errors++;
	  message+="House Number is required.\n";
   }
   
   if(jQuery("postcode").val().length<5)
   {
	  errors++;
	  message+="Postcode is required.\n";
   }   
   
   if(jQuery("csc").val().length!=3)
   {
	  errors++;
	  message+="CSC is required.\n";
   }

   if(!errors)
	  jQuery("payform").submit();
   else
 moneyPiggy.Alerter.Alert(message);

}

function ValidateDMSettings()
{
   var errors=0;
   var x=0;
   var message="There are errors:\n";

   var reminderfields=Array("ir_email","ir_sms","r1_email","r1_sms","r2_email","r2_sms","f_email","f_sms");
   var remindernames=Array("Initial Request Email","Initial Request SMS","R1 Email","R1 SMS","R2 Email","R2 SMS","Final Reminder Email","Final Reminder SMS");

   var sets=Array("w","m","t");
   var setstitles=Array("Weekly","Monthly","Termly");
   var reminders=Array("r1","r2","f");
   var remindertitles=Array("R1","R2","Final Reminder");

   for(var i=0; i<reminderfields.length; i++)
   {
	  if(!jQuery(reminderfields[i]).val().length)
	  {
		 errors++;
		 message+=remindernames[i]+" is Missing\n";
	  }
   }

   for(i=0; i<sets.length; i++)
   {
	  for(x=0; x<reminders.length; x++)
	  {
		 field=sets[i]+"_"+reminders[x]+"_days";
		 
		 if(isNaN(jQuery(field).val()) || !jQuery(field).val().length)
		 {
			errors++;
			message+=setstitles[i]+" "+remindertitles[x]+" Days should be a number.\n";
		 }
	  }
   }

   if(!errors)
	  jQuery("dinnermoneysettingsfrm").submit();
   else

	  moneyPiggy.Alerter.Alerter(message);
}

function ValidateDMSettings1()
{
    var errors=0;

   if(!errors)
	  jQuery("dinnermoneysettingsfrm").submit();
   else
	    moneyPiggy.Alerter.Alert(message);
}
function GetDMWeeks()
{
   new Ajax.Updater("termweeks_container","prt.termweeks.php?tid="+jQuery("term").val());
}

function ValidateDMWeeks()
{
   var errors=0;
   var message="There are errors:\n";

   jQuery("input.mealcount").each(
	  function()
	  {
		 if(jQuery(this).val().length<1 || isNaN(jQuery(this).val()))
		 {
			errors++;
			message="There are errors:\nCheck all weeks are filled in and valid.\n";
		 }
	  }
   );
   
   if(jQuery("mealprice").val().length<1 || isNaN(jQuery("mealprice").val()))
   {
	  errors++;
	  message+="Meal price should be present and a number.\n";
   }
   
   if(!jQuery("ir_date").val().match("^(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)[0-9]{2}jQuery"))
   {
	  errors++;
	  message+="Make sure payment request date is filled in and valid.\n";
   }
   
   if(!jQuery("termly_due").val().match("^(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)[0-9]{2}jQuery"))
   {
	  errors++;
	  message+="Make sure termly due date is filled in and valid.\n";
   }   

   if(errors)
	  moneyPiggy.Alerter.Alert(message);
   else
	  jQuery("dmfrm").submit();
}


function SubmitDM(dmid){
  moneyPiggy.Alerter.Confirm("Are you sure you want to submit the dinner money payments for this term?\nThis will automatically begin emailing payment requests to parents.\nYou will not be able to edit the child assignments after this point."
,'Confirm',      
function () {
             window.location="do.senddmpayments.php?dmid="+dmid;
   }
    )
}


function SetDMCash(ppid,dmtid){
  moneyPiggy.Alerter.Confirm("Are you sure you want to set this payment as paid/cash?"
,'Confirm',      
function () {
            window.location="do.setdmcash.php?ppid="+ppid+"&dmtid="+dmtid;
   }
    )
}

function DeleteUserPayment(ppid){
  moneyPiggy.Alerter.Confirm("Are you sure you want to DELETE this payment?"
,'Confirm',      
function () {
            window.location="do.deleteparentpayment.php?ppid="+ppid;
   }
    )
}

function SelectAllMessages()
{
   if(jQuery("#selectallmessages").prop("checked")===true)
      jQuery(".mailcheck").prop("checked",true);
   else
      jQuery(".mailcheck").prop("checked",false);
}

function ChangePassword()
{
    var errors=0;
    var message="There are errors:\n";
    
    if(jQuery("pw1").val().length<5 || jQuery("pw2").val().length<5)
    {
        errors++;
        message+="Password must be greater than 5 characters.\n";        
    }
    
    if(jQuery("pw1").val()!=jQuery("pw2").val())
    {
        errors++;
        message+="Passwords must match.";        
    }
    
    if(!errors)
        jQuery("changepassform").submit();
    else
          moneyPiggy.Alerter.Alert(message);
}

function ValidatePPChanges()
{
   var errors=0;
   var message="There are errors:\n";
    
   if(jQuery("amount").val().length<1 || isNaN(jQuery("amount").val()))
   {
	  errors++;
	  message+="Amount should be present and a number.\n";
   }
   
   if(!jQuery("duedate").val().match("^(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)[0-9]{2}jQuery"))
   {
	  errors++;
	  message+="Make sure due date is filled in and valid.\n";
   }
   
   if(!errors)
	   jQuery("ppform").submit();
   else
	     moneyPiggy.Alerter.Alert(message);
}

function CalculateTopup()
{
  var total;
  var deductTotal;
  var additionaltotal;
   if(!jQuery("#topup_amount").val().length)
	  jQuery("#topup_amount").val("0.00");
	  
   var total=parseFloat(jQuery("#topup_amount").val());
   var additionaltotal=0;
   
   jQuery(".additional:checked").each(
	  function(e)
	  {
		 additionaltotal+=parseFloat(jQuery(this).attr("alt"));
    }
   );

   if(jQuery('#deduct').is(':checked')){

    if(total<additionaltotal)
    {
       moneyPiggy.Alerter.Alert("Your top-up amount is not enough to cover the due items you have selected to pay.\n\nPlease either increase your top-up amount or de-select the option to deduct the value of the due items from your top-up balance.");
     jQuery("#deduct").attr("checked",false);
return false;
    }else{
total = total - additionaltotal;


    }


    }
   else
   {
   total = additionaltotal + total;

/*


*/

   }
   
    
   
   jQuery("#displayTotal").val(total);


}

function ValidateTopupForm()
{
   CalculateTopup();
   

   if(!jQuery("#displayTotal").val().length)
	  jQuery("#displayTotal").val("0.00");
	  
   if(isNaN(jQuery("#displayTotal").val()))
   {
	    moneyPiggy.Alerter.Alert("Please enter a valid amount into the Top-up Amount box.");
   }
   else
   {
	  if(parseFloat(jQuery("#displayTotal").val())>0 
      && 
      parseFloat(jQuery("#displayTotal").val())<parseFloat(jQuery("#mintu").val()))
		   moneyPiggy.Alerter.Alert("Your topup amount (\u00A3"+jQuery("#total").val()+") is less than the school minimum.");
	  else
	  {
		 if(parseFloat(jQuery("#displayTotal").val())>=1)
			jQuery("#tuform").submit();  
		 else
			  moneyPiggy.Alerter.Alert("Total is 0. Please enter a topup amount or select some due payments");
	  }
   }


}

function VTAutoCompleteSelect(event,ui)
{   
   if(ui.item.nonefound==null)
   {  
	  var id=ui.item.parentid;
	  
	  jQuery("#vt-name").html(ui.item.fullname);
	  jQuery("#vtname_container").fadeIn().removeClass("hidden");
	  jQuery("#vt-search").fadeOut();
	  jQuery('#vt-stage2').show();
	  jQuery('#vt-payments').hide().load('ajax.vtduepayments.php?uid='+id).slideDown();
	  jQuery('#parentid').val(id);
   }
   else
   {
	  window.open("https://support.homecontact.co.uk/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=61&nav=0,1");
   }
}

function VTAutoCompleteReset()
{
   jQuery("#vt-name").html("&nbsp;");
   jQuery("#vtname_container").fadeOut().addClass("hidden");
   jQuery("#vt-search").fadeIn().focus();   
   jQuery('#vt-payments').html("<br />Loading...");
   jQuery("#topup_amount").val("0.00");
   jQuery('#parentid').val(0);
   jQuery('#vt-stage2').hide();
}

function SetAHClass(val)
{
   // looking for div.ui-tabs-panel that doesn't have the ui-tabs-hide class
   jQuery('div.ui-tabs-panel:not(.ui-tabs-hide)').find('input').prop("checked",false).andSelf().find('input.radio-'+val).prop('checked',true);
   jQuery('input[disabled=disabled]').prop('checked',false).andSelf().find('input[disabled=disabled].radio-0').prop('checked',true);
   TotalClasses();
}

function TotalClasses()
{
   jQuery('#nomeal_total').html(jQuery('input.radio-0:checked').size());
   jQuery('#cash_total').html(jQuery('input.radio-1:checked').size());
   jQuery('#ewallet_total').html(jQuery('input.radio-2:checked').size());
   jQuery('#fsm_total').html(jQuery('input.radio-3:checked').size());
}

function ValidateAHForm()
{
   var errors=0;
   var error="There are errors:\r\n";
   
   if(isNaN(jQuery("#amount").val()) || parseFloat(jQuery("#amount").val())<0 || !parseFloat(jQuery("#amount").val()))
   {
      errors++;
      error+="Please enter a valid amount into the amount box.\r\n";
   }
   
   if(jQuery('#description').val().length<5)
   {
      errors++;
      error+="Please enter a description.\r\n";
   }
   
   if(!jQuery("#date").val().match("^(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)[0-9]{2}jQuery"))
   {
	  errors++;
	  error+="Make sure date is filled in and valid.\n";
   }
   
   if(!jQuery('input.radio-1:checked').size() && !jQuery('input.radio-2:checked').size())
   {
      errors++;
      error+="All children are set to 'No Meal'.\r\n"; 
   }
   
   if(errors)
      moneyPiggy.Alerter.Alert(error);
   
   
   return errors;
}

function ValidateAHForm2()
{
   var errors=0;
   var error="There are errors:\r\n";

   /*if(isNaN(jQuery("#amount").val()) || parseFloat(jQuery("#amount").val())<0 || !parseFloat(jQuery("#amount").val()))
   {
      errors++;
      error+="Please enter a valid amount into the amount box.\r\n";
   } */

   if(jQuery('#description').val().length<5)
   {
      errors++;
      error+="Please enter a description.\r\n";
   }



   if(!CheckDate(jQuery("#date").val()))
   {
  
	  errors++;
	  error+="Make sure you have selected a due date.\n";
   }

   /*if(!jQuery('input.radio-1:checked').size() && !jQuery('input.radio-2:checked').size())
   {
      errors++;
      error+="All children are set to 'No Meal'.\r\n";
   } */

   if(errors)
      moneyPiggy.Alerter.Alert(error);


   return errors;
}

function SaveAHForm()
{
   if(!ValidateAHForm())
   {
      jQuery('#ahform').attr('action','do.saveahassignments.php').submit();
   }
}


function SubmitAHForm()
{

 jQuery('#ahform').action="do.sendahpayments.php";
         jQuery('#ahform').submit();


}








//form for variable AHDM
function SubmitAHForm2()
{
   if(!ValidateAHForm2())
   {



  moneyPiggy.Alerter.Confirm("Please confirm the amounts you are about to charge are correct. \n\nOnce you click OK the system will charge the parent's eWallet."
,'Confirm',      
function () {
            jQuery('#ahform').action="do.sendahpayments.php";
         jQuery('#ahform').submit();
   }
    )

   }
}


function DeleteAHDM(id){
  moneyPiggy.Alerter.Confirm("Are you sure you want to *DELETE* this Adhoc Payment?"
,'Confirm',      
function () {
            window.location="do.deleteahdm.php?id="+id;
   }
    )
}

function SetAHDMPaid(payment,assignment){
  moneyPiggy.Alerter.Confirm("Are you sure you want to set this payment as paid?"
,'Confirm',      
function () {
             window.location="do.setahdmpaid.php?p="+payment+"&a="+assignment;
   }
    )
}

function SetAHDMUnpaid(payment,assignment){
  moneyPiggy.Alerter.Confirm("Are you sure you want to set this payment as unpaid?"
,'Confirm',      
function () {
             window.location="do.setahdmunpaid.php?p="+payment+"&a="+assignment;
   }
    )
}


function ChargeAHDM(payment,assignment){
  moneyPiggy.Alerter.Confirm("Are you sure you want to charge this users eWallet?"
,'Confirm',      
function () {
             window.location="do.chargewalletahdm.php?p="+payment+"&a="+assignment;
   }
    )
}



function ValidateStaffUser()
{
    var emailregex="^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})jQuery";

    var errors=0;
    var message="Please correct the following:";

    var form=jQuery("#suform");

    if(form.find("input.name").val().length < 5)
    {
        errors++;
        message+="\r\nName is too Short";
    }

    if(!form.find("input.email").val().toLowerCase().match(emailregex))
    {
        errors++;
        message+="\r\nPlease make sure email address is valid.";
    }

    form.find(".email_optional").each(function(){
        if(jQuery(this).val().length > 0 && !jQuery(this).val().toLowerCase().match(emailregex)) {
            errors++;
            message+="\r\nPlease make sure "+jQuery(this).attr("name")+" is valid.";
        }
    });

    if(errors)
        moneyPiggy.Alerter.Alert(message);
    else
        form.submit();
}


function RefundAHDMPayment(payment,assignment){
  moneyPiggy.Alerter.Confirm("Are you sure you want to refund this payment? The refund amount will be credited back to the Parent’s eWallet balance."
,'Confirm',      
function () {
            window.location="do.refundahdmpayment.php?p="+payment+"&a="+assignment;
   }
    )
}


function NewMessageBeforeUnload()
{
    var total=0;

    if(jQuery("#subject").val().length > 0 || jQuery("#reply").val() != '0' || jQuery("#payment").val() != '0' || jQuery("#userfile").val().length > 0) {
        total++;
    }

    if(jQuery("#allusers").prop("checked") == true || (jQuery('#messagetorec').html().length + jQuery('#messagetogrps').html().length + jQuery('#messagetoclass').html().length) > 0) {
        total++;
    }

    if(CKEDITOR.instances.message.getData().length > 0) {
        total++;
    }

    if(total > 0) {
        return 'Your message has not been sent yet.';
    } else {
        return null;
    }
}

function NewSMSBeforeUnload()
{
    var total=0;

    if(jQuery("#allusers").prop("checked") == true || (jQuery('#messagetorec').html().length + jQuery('#messagetogrps').html().length + jQuery('#messagetoclass').html().length) > 0) {
        total++;
    }

    if(jQuery("#message").val().length > 0) {
        total++;
    }


    if(total > 0) {
        return 'Your message has not been sent yet.';
    } else {
        return null;
    }
}


              
            
!
999px

Console