(2653,113,1.06,'smarty','0','Fixed redirect to not specify the vanity and domain',1103270537,2,'67.166.75.78','{assign var=\"pgLayout\" value=\"layouts/default.tpl\"}\r\n{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n{assign var=\"return\" value=$smarty.request.return|default:$signup.return|default:\"home\"}\r\n<!-- {$return} -->\r\n{if $user->isLoggedIn() and $return neq \"\"}\r\n	{if $return eq \"home\"}\r\n		{message type=\"error\" value=\"You cannot sign up for a membership when you are already logged in.\"}\r\n	{/if}\r\n	{store_messages}\r\n	{redirect href=\"?pg=`$return`\"}\r\n{/if}\r\n\r\n<h1 class=\"underline\">Sign Up - Step 1</h1>\r\nCreating your <em>FREE</em> membership is simple.  Just fill out the forms below and click Next. <small> * indicates a required field</small>\r\n<br />\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n	<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n	<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:$signup.returndefault:\"home\"}\" />\r\n	<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n	<h2 class=\"withBG\">Already a Member?</h2>\r\n		<b>Log in now.</b><br />\r\n		Username: <input type=\"text\" name=\"username\" class=\"textInput\" size=\"12\" /><br />\r\n		Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n		<div class=\"underline\">&nbsp;</div>\r\n		<a href=\"javascript:document.loginForm2.submit();\">Submit</a> | <a href=\"javascript:doForgotPassword();\">Forgot Password?</a>\r\n	</form>\r\n</div>\r\n<div class=\"underline\" style=\"clear:left;\"></div>\r\n\r\n{toc_next assign=\"next\"}\r\n{toc_prev assign=\"prev\"}\r\n<form name=\"signup\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$next.pageName}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" id=\"signupReturn\" name=\"signup[return]\" value=\"{$return}\">\r\n\r\n<table><tr><td>\r\n\r\n<div class=\"chunk300 h150 w300\">\r\n<h2 class=\"withBG\">Create your Membership </h2>\r\n	*First Name:\r\n	<input type=\"text\" name=\"signup[firstName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*Last Name:\r\n	<input type=\"text\" name=\"signup[lastName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*E-mail:\r\n	<input type=\"text\" name=\"signup[email]\" class=\"textInput\" size=\"30\" /><br />\r\n\r\n	*Desired Username:\r\n	<input type=\"text\" name=\"signup[username]\" class=\"textInput\" size=\"12\"><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Password</h2>\r\n{if $signup.password}\r\n	<small>You have already chosen a valid password. If you would like to choose a different one, enter it below and confirm it.</small><br /><br />\r\n{/if}\r\n	*Choose Your Password:\r\n	<input type=\"password\" name=\"signupSecure[password]\" size=\"12\" class=\"textInput\"><br />\r\n	<small>(Password must be at least 8 characters long)</small><br />\r\n\r\n	*Confirm Your Password:\r\n	<input type=\"password\" name=\"signupSecure[passwordConfirm]\" size=\"12\" class=\"textInput\"><br />\r\n</div>\r\n\r\n</td><td valign=\"top\">\r\n\r\n<div class=\"chunk300 w300\">\r\n	<h2 class=\"withBG\">Shipping &amp; Contact Address</h2>\r\n	\r\n	<div id=\"addressInfo\" style=\"display:block;\">\r\n	*Address:\r\n	<input type=\"text\" name=\"signup[address1]\" value=\"{$smarty.request.signup.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"signup[address2]\" value=\"{$smarty.request.signup.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*City:\r\n	<input type=\"text\" name=\"signup[city]\" value=\"{$smarty.request.signup.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*State, *Zip:\r\n	<input type=\"text\" name=\"signup[state]\" value=\"{$smarty.request.signup.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"signup[zip]\" value=\"{$smarty.request.signup.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n\r\n	<div style=\"float:left;\">*Country:</div>\r\n	<div id=\"signupcountry\" style=\"border:1px solid black;\"><input type=\"text\" name=\"signup[country]\" value=\"{$smarty.request.signup.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /></div>\r\n\r\n	Phone:\r\n	<input type=\"text\" name=\"signup[phone1]\" value=\"{$smarty.request.signup.phone1}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	Phone 2:\r\n	<input type=\"text\" name=\"signup[phone2]\" value=\"{$smarty.request.signup.phone2}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	</div>\r\n</div>\r\n\r\n</td></tr></table>\r\n\r\n<div id=\"fMatches\" class=\"xFloat\" style=\"padding:3px; background-color:#FFFFFF; border:#666666 1px solid;\">\r\n</div>\r\n\r\n{if $modules.spadeAutoComplete}\r\n	<script language=\"javascript\" src=\"{$modules.x}\"></script>\r\n	<script language=\"javascript\" src=\"{$modules.spadeAutoComplete}\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_states.js\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_countries.js\"></script>\r\n	<script language=\"javascript\">\r\n		initAutoComplete(\'signup[state]\', states, true);\r\n		initAutoComplete(\'signup[country]\', countries, true);\r\n	</script>\r\n{/if}\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<br />\r\n	{if $prev.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\"><!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;&lt;&lt; Back&nbsp;\" onclick=\"pg.value=\'{$prev.pageName}\';\"> |-->&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\"> <!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;Next &gt;&gt;&nbsp;\"> -->	{/if}\r\n</div>\r\n\r\n{stored_object_fill_form object=$signup name=\"signup\"}\r\n<script language=\"javascript\">document.getElementById(\'signupReturn\').value = \'{$return}\';</script>\r\n\r\n</form>'),(2827,175,0.40,'smarty','0','Page created.',1104185868,2,'67.166.75.78','{if $user->isLoggedIn()}\r\n	{store_messages}\r\n	{redirect href=\"index.php?pg=myhome\"}\r\n{else}\r\n{assign var=\"hideLogin\" value=\"true\"}\r\n<table align=\"center\" width=\"305\" cellpadding=\"0\" cellspacing=\"0\">\r\n<tr><td align=\"center\">\r\n	<h2>{$smarty.session.company.companyName}</h2>\r\n</td></tr>\r\n<tr><td>\r\n	<div align=\"center\" class=\"chunk300\">\r\n		<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n		<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n		<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:$signup.returndefault:\"home\"}\" />\r\n		<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n		<input type=\"hidden\" name=\"forgotPassword\" value=\"\" />\r\n	\r\n		<h2 class=\"withBG\">Log In:</h2>\r\n			Username: <input id=\"usernameBox2\" type=\"text\" name=\"username\" value=\"{$smarty.request.username}\" class=\"textInput\" size=\"12\" /><br />\r\n			Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n			<div class=\"underline\">&nbsp;</div>\r\n			<a href=\"javascript:document.forms[\'loginForm2\'].submit();\">Submit</a> | <a href=\"javascript:doForgotPassword(\'usernameBox2\', \'loginForm2\');\">Forgot Password?</a>\r\n			<input type=\"submit\" name=\"loginSubmit\" value=\"Submit\" style=\"position:absolute; top:-300px; left:-300px;\" />\r\n		</form>\r\n		<script language=\"javascript\">\r\n			document.forms.loginForm2.username.focus();\r\n		</script>\r\n	</div>\r\n</td></tr>\r\n<tr><td align=\"right\">\r\n	<br />\r\n	<small>Not registered yet?</small> <a href=\"?pg=signup/begin\">Sign Up Now!</a> &nbsp;\r\n</td></tr>\r\n</table>\r\n{/if}');
INSERT INTO `_page_history` VALUES (2828,113,1.48,'smarty','0','Added company id as a hidden field.',1104185901,2,'67.166.75.78','{assign var=\"pgLayout\" value=\"layouts/default.tpl\"}\r\n{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n{assign var=\"return\" value=$smarty.request.return|default:$signup.return|default:\"home\"}\r\n<!-- {$return} -->\r\n{if $user->isLoggedIn() and $return neq \"\"}\r\n	{if $return eq \"home\"}\r\n		{message type=\"error\" value=\"You cannot sign up for a membership when you are already logged in.\"}\r\n	{/if}\r\n	{store_messages}\r\n	{redirect href=\"?pg=`$return`\"}\r\n{/if}\r\n\r\n<h1 class=\"underline\">Sign Up - Step 1</h1>\r\nCreating your <em>FREE</em> membership is simple.  Just fill out the forms below and click Next.<br />\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n	<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n	<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:$signup.returndefault:\"home\"}\" />\r\n	<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n	<h2 class=\"withBG\">Already a Member?</h2>\r\n		<div><a href=\"javascript://\" onclick=\"toggle(\'logInNow\');\">Log in now.</a></div>\r\n		<div id=\"logInNow\" style=\"display:none;\">\r\n		Username: <input type=\"text\" name=\"username\" class=\"textInput\" size=\"12\" /><br />\r\n		Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n		<div class=\"underline\">&nbsp;</div>\r\n		<a href=\"javascript:document.loginForm2.submit();\">Submit</a> | <a href=\"javascript:doForgotPassword();\">Forgot Password?</a>\r\n		</div>\r\n	</form>\r\n</div>\r\n<div class=\"underline\" style=\"clear:left;\"></div>\r\n{toc_next assign=\"next\"}\r\n{toc_prev assign=\"prev\"}\r\n<form name=\"signup\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$next.pageName}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" id=\"signupReturn\" name=\"signup[return]\" value=\"{$return}\">\r\n<input type=\"hidden\" name=\"signup[companyId]\" value=\"{$smarty.session.company.id}\" />\r\n\r\n<table><tr><td>\r\n\r\n<div class=\"chunk300 h150 w300\">\r\n<h2 class=\"withBG\">Create your Membership </h2>\r\n	*First Name:\r\n	<input type=\"text\" name=\"signup[firstName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*Last Name:\r\n	<input type=\"text\" name=\"signup[lastName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*E-mail:\r\n	<input type=\"text\" name=\"signup[email]\" class=\"textInput\" size=\"30\" /><br />\r\n\r\n	*Desired Username:\r\n	<input type=\"text\" name=\"signup[username]\" class=\"textInput\" size=\"12\"><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Password</h2>\r\n{if $signup.password}\r\n	<small>You have already chosen a valid password. If you would like to choose a different one, enter it below and confirm it.</small><br /><br />\r\n{/if}\r\n	*Choose Your Password:\r\n	<input type=\"password\" name=\"signupSecure[password]\" size=\"12\" class=\"textInput\"><br />\r\n	<small>(Password must be at least 8 characters long)</small><br />\r\n\r\n	*Confirm Your Password:\r\n	<input type=\"password\" name=\"signupSecure[passwordConfirm]\" size=\"12\" class=\"textInput\"><br />\r\n</div>\r\n\r\n</td><td valign=\"top\">\r\n\r\n<div class=\"chunk300 w300\">\r\n	<h2 class=\"withBG\">Shipping &amp; Contact Address</h2>\r\n	\r\n	<div id=\"addressInfo\" style=\"display:block; width:auto;\">\r\n	*Address:\r\n	<input type=\"text\" name=\"signup[address1]\" value=\"{$smarty.request.signup.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"signup[address2]\" value=\"{$smarty.request.signup.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*City:\r\n	<input type=\"text\" name=\"signup[city]\" value=\"{$smarty.request.signup.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*State, *Zip:\r\n	<input type=\"text\" name=\"signup[state]\" value=\"{$smarty.request.signup.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"signup[zip]\" value=\"{$smarty.request.signup.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n	<div id=\"signupstate\" style=\"text-align:left; margin-left:200px; position:absolute; background-color:#fff; border:1px solid black;\"></div>\r\n\r\n	*Country:\r\n	<input type=\"text\" name=\"signup[country]\" value=\"{$smarty.request.signup.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /><br />\r\n	<div id=\"signupcountry\" style=\"text-align:left; float:left; margin-left:100px; position:absolute; background-color:#fff; border:1px solid black;\"></div>\r\n\r\n	Phone:\r\n	<input type=\"text\" name=\"signup[phone1]\" value=\"{$smarty.request.signup.phone1}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	Phone 2:\r\n	<input type=\"text\" name=\"signup[phone2]\" value=\"{$smarty.request.signup.phone2}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	</div>\r\n</div>\r\n<div style=\"clear:left;\">* indicates a required field</div>\r\n</td></tr></table>\r\n\r\n{if $modules.spadeAutoComplete2}\r\n	{capture name=\"headAddendum\"}\r\n	<script language=\"javascript\" src=\"{$modules.spadeAutoComplete2}\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_states.js\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_countries.js\"></script>\r\n	{/capture}\r\n	<script language=\"javascript\">\r\n		initAutoComplete(\'signup[state]\', \'signupstate\', states, true);\r\n		initAutoComplete(\'signup[country]\', \'signupcountry\', countries, true);\r\n	</script>\r\n{/if}\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<br />\r\n	{if $prev.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\"><!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;&lt;&lt; Back&nbsp;\" onclick=\"pg.value=\'{$prev.pageName}\';\"> |-->&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\"> <!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;Next &gt;&gt;&nbsp;\"> -->	{/if}\r\n</div>\r\n\r\n{stored_object_fill_form object=$signup name=\"signup\"}\r\n<script language=\"javascript\">document.getElementById(\'signupReturn\').value = \'{$return}\';</script>\r\n\r\n</form>'),(2654,113,1.07,'smarty','0','Fixed redirect to not specify the vanity and domain',1103270802,2,'67.166.75.78','{assign var=\"pgLayout\" value=\"layouts/default.tpl\"}\r\n{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n{assign var=\"return\" value=$smarty.request.return|default:$signup.return|default:\"home\"}\r\n<!-- {$return} -->\r\n{if $user->isLoggedIn() and $return neq \"\"}\r\n	{if $return eq \"home\"}\r\n		{message type=\"error\" value=\"You cannot sign up for a membership when you are already logged in.\"}\r\n	{/if}\r\n	{store_messages}\r\n	{redirect href=\"?pg=`$return`\"}\r\n{/if}\r\n\r\n<h1 class=\"underline\">Sign Up - Step 1</h1>\r\nCreating your <em>FREE</em> membership is simple.  Just fill out the forms below and click Next. <small> * indicates a required field</small>\r\n<br />\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n	<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n	<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:$signup.returndefault:\"home\"}\" />\r\n	<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n	<h2 class=\"withBG\">Already a Member?</h2>\r\n		<b>Log in now.</b><br />\r\n		Username: <input type=\"text\" name=\"username\" class=\"textInput\" size=\"12\" /><br />\r\n		Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n		<div class=\"underline\">&nbsp;</div>\r\n		<a href=\"javascript:document.loginForm2.submit();\">Submit</a> | <a href=\"javascript:doForgotPassword();\">Forgot Password?</a>\r\n	</form>\r\n</div>\r\n<div class=\"underline\" style=\"clear:left;\"></div>\r\n\r\n{toc_next assign=\"next\"}\r\n{toc_prev assign=\"prev\"}\r\n<form name=\"signup\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$next.pageName}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" id=\"signupReturn\" name=\"signup[return]\" value=\"{$return}\">\r\n\r\n<table><tr><td>\r\n\r\n<div class=\"chunk300 h150 w300\">\r\n<h2 class=\"withBG\">Create your Membership </h2>\r\n	*First Name:\r\n	<input type=\"text\" name=\"signup[firstName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*Last Name:\r\n	<input type=\"text\" name=\"signup[lastName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*E-mail:\r\n	<input type=\"text\" name=\"signup[email]\" class=\"textInput\" size=\"30\" /><br />\r\n\r\n	*Desired Username:\r\n	<input type=\"text\" name=\"signup[username]\" class=\"textInput\" size=\"12\"><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Password</h2>\r\n{if $signup.password}\r\n	<small>You have already chosen a valid password. If you would like to choose a different one, enter it below and confirm it.</small><br /><br />\r\n{/if}\r\n	*Choose Your Password:\r\n	<input type=\"password\" name=\"signupSecure[password]\" size=\"12\" class=\"textInput\"><br />\r\n	<small>(Password must be at least 8 characters long)</small><br />\r\n\r\n	*Confirm Your Password:\r\n	<input type=\"password\" name=\"signupSecure[passwordConfirm]\" size=\"12\" class=\"textInput\"><br />\r\n</div>\r\n\r\n</td><td valign=\"top\">\r\n\r\n<div class=\"chunk300 w300\">\r\n	<h2 class=\"withBG\">Shipping &amp; Contact Address</h2>\r\n	\r\n	<div id=\"addressInfo\" style=\"display:block;\">\r\n	*Address:\r\n	<input type=\"text\" name=\"signup[address1]\" value=\"{$smarty.request.signup.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"signup[address2]\" value=\"{$smarty.request.signup.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*City:\r\n	<input type=\"text\" name=\"signup[city]\" value=\"{$smarty.request.signup.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*State, *Zip:\r\n	<input type=\"text\" name=\"signup[state]\" value=\"{$smarty.request.signup.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"signup[zip]\" value=\"{$smarty.request.signup.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n\r\n	<div style=\"float:right;\">*Country:</div>\r\n	<div id=\"signupcountry\" style=\"float:right; position:absolute; border:1px solid black;\"><input type=\"text\" name=\"signup[country]\" value=\"{$smarty.request.signup.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /></div>\r\n\r\n	Phone:\r\n	<input type=\"text\" name=\"signup[phone1]\" value=\"{$smarty.request.signup.phone1}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	Phone 2:\r\n	<input type=\"text\" name=\"signup[phone2]\" value=\"{$smarty.request.signup.phone2}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	</div>\r\n</div>\r\n\r\n</td></tr></table>\r\n\r\n<div id=\"fMatches\" class=\"xFloat\" style=\"padding:3px; background-color:#FFFFFF; border:#666666 1px solid;\">\r\n</div>\r\n\r\n{if $modules.spadeAutoComplete}\r\n	<script language=\"javascript\" src=\"{$modules.x}\"></script>\r\n	<script language=\"javascript\" src=\"{$modules.spadeAutoComplete}\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_states.js\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_countries.js\"></script>\r\n	<script language=\"javascript\">\r\n		initAutoComplete(\'signup[state]\', states, true);\r\n		initAutoComplete(\'signup[country]\', countries, true);\r\n	</script>\r\n{/if}\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<br />\r\n	{if $prev.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\"><!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;&lt;&lt; Back&nbsp;\" onclick=\"pg.value=\'{$prev.pageName}\';\"> |-->&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\"> <!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;Next &gt;&gt;&nbsp;\"> -->	{/if}\r\n</div>\r\n\r\n{stored_object_fill_form object=$signup name=\"signup\"}\r\n<script language=\"javascript\">document.getElementById(\'signupReturn\').value = \'{$return}\';</script>\r\n\r\n</form>'),(2829,98,1.55,'smarty','0','Including surveyList handler.',1104207083,3,'67.166.75.78','{assign var=\"pgLayout\" value=\"layouts/myhome_layout2.tpl\"}\r\n{include_php file=\"shared_handle:acceptRejectRequests\"} \r\n{include_php file=\"shared_handle:myHome\"}\r\n\r\n{assign var=\"hideUserBox\" value=\"false\"}\r\n{assign var=\"showCompanyNews\" value=\"true\"}\r\n{assign var=\"hideWLWLinks\" value=\"true\"}\r\n{assign var=\"hideWidgets\" value=\"true\"}\r\n\r\n{* getProfile is included by getStats *}\r\n{* include_php file=\"shared_handle:getStats\" *}\r\n\r\n{* Now getting only Profile because getStats does TONS of unneccesary processing *}\r\n{include_php file=\"shared_handle:getProfile\"}\r\n\r\n{if $smarty.request.debug}\r\n	{display var=$competitions}\r\n{/if}\r\n\r\n<h1 class=\"underline\">My Home - {$userProfile.firstName} {$userProfile.lastName} ({$userProfile.username})</h1>\r\n<br />\r\n\r\n{$user->firstName}, this is your personal Wellness &quot;Home&quot;.\r\nFrom this page you can manage the competitions you are in, and update your wellness profile. \r\nClick on the \'Update Profile\' button to change your Motto, and other information about yourself, or \'Account Settings\' to change your password.<br />\r\n<br />\r\n<script language=\"javascript\">{literal}\r\nfunction goNewGraph() {\r\n	var obj = document.getElementById(\'graphDropdown\');\r\n	var url;\r\n\r\n	for (var x = 0; x < obj.options.length; x++) {\r\n		if (obj.options[x].selected)\r\n			url = obj.options[x].value;\r\n	}\r\n\r\n	graphwindow.location.replace(url);\r\n\r\n	obj.selectedIndex = 0;\r\n}{/literal}\r\n</script>\r\n\r\n<table border=\"0\">\r\n<tr>\r\n	<td valign=\"top\">\r\n		<div id=\"UserProfileColumn\" class=\"contentColumn\">\r\n			<h2 class=\"withBG\">Your Profile</h2>\r\n			<span class=\"cellHeadLarge\">Age:</span><span class=\"cellSmall\">{$userProfile.age}</span><br />\r\n			<span class=\"cellHeadLarge\">Start Weight:</span><span class=\"cellSmall\">{$userProfile.initialWeight}</span><br />\r\n			<span class=\"cellHeadLarge\">Height:</span><span class=\"cellSmall\">{$userProfile.heightFeet}\'{$userProfile.heightInches}&quot;</span><br />\r\n			<span class=\"cellHeadLarge\">Start BMI:</span><span class=\"cellSmall\">{$userProfile.startBMI}</span><br />\r\n			<span class=\"cellHeadLarge\">Goal Weight:</span><span class=\"cellSmall\">{$userProfile.goalWeight}</span><br />\r\n		<br />\r\n                {* <form name=\"notUsed\" style=\"margin:0px;\">\r\n		<select id=\"graphDropdown\" onchange=\"goNewGraph();\">\r\n			<option value=\"\">(Change Graph)</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=0&totalChange=1\">Change in Weight</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=0\" target=\"graphwindow\">Weight</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=fat&fillPrevious=0&precision=1\" target=\"graphwindow\">Fat Intake</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=calories&fillPrevious=0&precision=1\" target=\"graphwindow\">Calorie Intake</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=carbs&fillPrevious=0&precision=1\" target=\"graphwindow\">Carb Intake</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=minutesExercise&fillPrevious=0&precision=1\" target=\"graphwindow\">Exercise</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=distanceExercised&fillPrevious=0&precision=1\" target=\"graphwindow\">Distance Exercised</option>\r\n		</select>\r\n		</form> *}\r\n		<h2 class=\"withBG\">Links</h2>\r\n		<small>\r\n		&nbsp;&middot; <a href=\"?pg=tips\">Weight Loss Tips</a><br /> \r\n		&nbsp;&middot; <a href=\"?pg=calculators\">Calculators</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=recipes\">Recipes</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=nutrition\">Nutrition Data</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=ptinfo\">Customized Fitness Plan</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=dietitianinfo\">Personal Nutrition Coach</a><br />\r\n		</small>\r\n                </div>\r\n               	</td>\r\n	<td align=\"center\">\r\n		<div style=\"margin:0px 10px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n		<iframe name=\"graphwindow\" src=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&type=weight&fillPrevious=1&precision=0&totalChange=0&userIds={$userProfile.id}\" frameborder=\"0\" width=\"425\" height=\"230\" scrollbars=\"no\"></iframe></div>\r\n		<small>\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=0&totalChange=1\" target=\"graphwindow\">Change in Weight</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=0\" target=\"graphwindow\">Weight</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=fat&fillPrevious=0&precision=1\" target=\"graphwindow\">Fat Intake</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=calories&fillPrevious=0&precision=1\" target=\"graphwindow\">Calorie Intake</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=carbs&fillPrevious=0&precision=1\" target=\"graphwindow\">Carb Intake</a><br />\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=water&fillPrevious=0&precision=1\" target=\"graphwindow\">Water Intake</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=minutesExercise&fillPrevious=0&precision=1\" target=\"graphwindow\">Exercise</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=distanceExercised&fillPrevious=0&precision=1\" target=\"graphwindow\">Distance Exercised</a>\r\n		</small>\r\n</td>\r\n	<td valign=\"top\" width=\"100%\" style=\"padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n		<h2><i>\"{$userProfile.personalSaying|default:\"Your personal motto goes here.\"|replace:\'\"\':\'\'}\"</i></h2>\r\n		</td>\r\n</tr>\r\n</table>\r\n<br />\r\n{if $smarty.request.hideComps neq \"1\"}\r\n<table width=\"100%\"><tr><td valign=\"top\">\r\n{* ********************************* COMPETITIONS I AM IN ********************************** *}\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'inComps\', \'\', \'showHide\');\"><img id=\"inComps_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	Competitions I Am In</h2>\r\nHere are the competitions you have signed up to participate in. If you have an ID of a competition you would like to join, enter it below.<br />\r\n<div id=\"inComps\" style=\"display:block;\">	\r\n	<div style=\"margin:10px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n	<table cellspacing=\"0\" cellpadding=\"1\" align=\"center\">\r\n	<tr>\r\n		<td class=\"underline2\"><span>&nbsp;<b>ID</b></span></td>\r\n		<td class=\"underline2\"><span>&nbsp;<b>Title</b></span></td>\r\n		<td class=\"underline2\"><span>&nbsp;<b>Type</b></span></td>\r\n		<td class=\"underline2\"><span>&nbsp;<b>Style</b></span></td>\r\n		{* <td class=\"underline2\"><span>&nbsp;<b>Rank</b></span></td> *}\r\n		{* <td class=\"underline2\" nowrap><span>&nbsp;<b>Time Remaining</b></span></td> *}\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>Ends</b></span></td>\r\n		{* <td class=\"underline2\" nowrap><span>&nbsp;<b>Prize</b></span></td> *}\r\n	</tr>\r\n	{* Set up the warning period... 7 days from now (604800 = 7 days in seconds) *}\r\n	{math assign=\"endsSoon\" equation=\"x + y\" x=$smarty.now y=\"604800\"}\r\n	{foreach from=$competitions item=\"comp\"}\r\n	<tr>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;<a href=\"?pg=competition&cid={$comp.id}\">{$comp.id}</a> &nbsp;</small></span></td>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;<a href=\"?pg=competition&cid={$comp.id}\">{$comp.title|truncate:35:\"...\"}</a> &nbsp;</small></span></td>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;{$comp.type|niceText}</small> &nbsp;</span></td>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;{if $comp.style eq \"Group-vs-Group\"}Team{else}Individual{/if}</small> &nbsp;</span></td>\r\n		{* <td nowrap=\"nowrap\"><span><small>&nbsp;{if $comp.rank ne \"N/A\"}{$comp.rank}/{$comp.rankOutOf}{else}N/A{/if}</small> &nbsp;</span></td> *}\r\n		{* <td nowrap><span><small{if $comp.endDate lt $smarty.now} style=\"font-weight:bold;\"{elseif $comp.endDate lt $endsSoon} style=\"color:#C00;font-weight:bold;\"{/if}>&nbsp;{$comp.timeLeft}</small> &nbsp;</span></td> *}\r\n		<td nowrap=\"nowrap\"><span><small{if $comp.endDate lt $smarty.now} style=\"font-weight:bold;\"{elseif $comp.endDate lt $endsSoon} style=\"color:#C00;font-weight:bold;\"{/if}>&nbsp;{$comp.endDate|date_format2:\"D n/j/y\"}</small> &nbsp;</span></td>\r\n		{* <td nowrap=\"nowrap\" align=\"right\"><span><small>&nbsp;{if not $comp.potAmount and $comp.potDescription}(Special){else}{math assign=\"fontSizeFactor\" equation=\"x / y\" x=$comp.potAmount y=\"100\"}{math assign=\"fontSize\" equation=\"x + y\" x=\"11\" y=$fontSizeFactor|number_format:\"0\"}<span style=\"font-size:{$fontSize}px;\">${$comp.potAmount|number_format:\"0\"}</span>{/if}</small> &nbsp;</span></td> *}\r\n	</tr>\r\n	{foreachelse}\r\n	<tr>\r\n		<td colspan=\"6\"><span><small>You have not joined any competitions.</small></span></td>\r\n	</tr>\r\n	{/foreach}\r\n	</table>\r\n	</div>\r\n	<span style=\"margin-left:65px;\"><small>(NOTE: <b>Bold Date</b> = Ended, <span style=\"color:#C00;\"><b>Red Date</b></span> = Ends Soon)</small></span>\r\n\r\n	<div style=\"text-align:right;\">\r\n	<form name=\"joinCompForm\" method=\"post\" style=\"margin:4px;\">\r\n		<input type=\"hidden\" name=\"pg\" value=\"competition/join\" />\r\n		<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n		<b>Competition ID#</b> <input type=\"text\" class=\"textInput\" name=\"cid\"> <a href=\"javascript:document.joinCompForm.submit();\" class=\"button\">Join</a><br />\r\n	</form>\r\n	</div>\r\n</div>\r\n</td><td valign=\"top\" style=\"margin-left:10px;\">\r\n{* ********************************* COMPETITIONS I HAVE STARTED ********************************** *}\r\n{if $user->inGroupName(\'coordinators\')}\r\n<form name=\"requestsForm\" action=\"index.php\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" name=\"acceptReject\" value=\"\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'myComps\', \'\', \'showHide\');\"><img id=\"myComps_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	Competitions I Have Started</h2>\r\n\r\n<div id=\"myComps\" style=\"display:block;\">\r\n{if $myCompetitions|@count gt 0}\r\n	<div style=\"margin:0px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n	<table cellspacing=\"0\" cellpadding=\"1\" align=\"center\">\r\n	<tr>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>ID</b> &nbsp;</span></td>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>Title</b> &nbsp;</span></td>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>Type</b> &nbsp;</span></td>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>People wanting to join</b> &nbsp;</span></td>\r\n	</tr>\r\n	{foreach from=$myCompetitions item=\"comp\"}\r\n	<tr>\r\n		<td valign=\"top\"><span>&nbsp;<small><a href=\"?pg=competition&cid={$comp.id}\">{$comp.id}</a></small></span></td>\r\n		<td valign=\"top\" nowrap=\"nowrap\" style=\"overflow:hidden;\"><span>&nbsp;<small><a href=\"?pg=competition&cid={$comp.id}\">{$comp.title}</a></small></span></td>\r\n		<td valign=\"top\" nowrap=\"nowrap\">&nbsp;<span><small>{$comp.type}</small></td>\r\n		<td valign=\"top\" style=\"border-left:1px solid #000;\"><span>{if $comp.requests|@count}{assign var=\"isRequests\" value=\"true\"}{/if}{foreach from=$comp.requests item=\"request\"}<div class=\"hangingIndent\"><input type=\"checkbox\" name=\"request[{$comp.id}][]\" value=\"{$request.id}\"><small>({$request.dateAdded|date_format2:\"n/j/y\"}) {$request.name} &lt;{mailto address=$request.email encode=\"javascript\"}&gt;: &quot;<i>{$request.comment|strip_tags}</i>&quot;</small></div>{foreachelse}&nbsp;None right now.{/foreach}</span></td>\r\n	</tr>\r\n	{/foreach}\r\n	{if $isRequests}\r\n	<tr>\r\n		<td colspan=\"4\" align=\"center\">\r\n			<span><br /><a href=\"javascript://\" onclick=\"acceptReject.value=\'accept\';requestsForm.submit();return false;\" class=\"button\">Accept Selected</a>\r\n			<a href=\"javascript://\" onclick=\"acceptReject.value=\'reject\';requestsForm.submit();return false;\" class=\"button\">Reject Selected</a><small><br /><br /></small></span></td>\r\n	</tr>\r\n	{/if}\r\n	</table>\r\n	</div>\r\n{else}\r\n	<div class=\"underline2\">&nbsp;</div>\r\n	<small>&nbsp; &nbsp; You have not created any competitions.</small>\r\n{/if}\r\n{/if}\r\n</div>\r\n<br />\r\n</form>\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'myIncentives\', \'\', \'showHide\');\"><img id=\"myIncentives_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	My Incentives Program</h2>\r\n\r\n<div id=\"myIncentives\" style=\"display:block;\">\r\n        <div style=\"margin:0px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n        <table id=\"surveyContainer\">\r\n           {include_php file=\"shared_handle:company/surveyList\"}\r\n           <tbody>\r\n           <tr><td><a href=\"javascript://\" onclick=\"openSurvey(0);\">Survey #1 - Dec 20th 2004</a></td>\r\n               <td rowspan=\"5\" valign=\"top\">\r\n                   <small>Surveys Taken: <b>7</b><br />Surveys Missed: <b>3</b><div class=\"underline\"></div>Total Score: <b>1000</b></small></td></tr>\r\n           <tr><td><a href=\"javascript://\" onclick=\"openSurvey(1);\">Survey #2 - Dec 21st 2004</a></td></tr>\r\n           <tr><td><a href=\"javascript://\" onclick=\"openSurvey(2);\">Survey #3 - Dec 22nd 2004</a></td></tr>\r\n           <tr><td><a href=\"javascript://\" onclick=\"openSurvey(3);\">Survey #4 - Dec 23rd 2004</a></td></tr>\r\n           <tr><td><a href=\"javascript://\" onclick=\"openSurvey(4);\">Survey #5 - Dec 24th 2004</a></td></tr>\r\n           </tbody>\r\n        </table>\r\n        </div>\r\n</div>\r\n</td></tr></table>\r\n{/if}'),(2655,113,1.08,'smarty','0','Fixed redirect to not specify the vanity and domain',1103271032,2,'67.166.75.78','{assign var=\"pgLayout\" value=\"layouts/default.tpl\"}\r\n{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n{assign var=\"return\" value=$smarty.request.return|default:$signup.return|default:\"home\"}\r\n<!-- {$return} -->\r\n{if $user->isLoggedIn() and $return neq \"\"}\r\n	{if $return eq \"home\"}\r\n		{message type=\"error\" value=\"You cannot sign up for a membership when you are already logged in.\"}\r\n	{/if}\r\n	{store_messages}\r\n	{redirect href=\"?pg=`$return`\"}\r\n{/if}\r\n\r\n<h1 class=\"underline\">Sign Up - Step 1</h1>\r\nCreating your <em>FREE</em> membership is simple.  Just fill out the forms below and click Next. <small> * indicates a required field</small>\r\n<br />\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n	<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n	<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:$signup.returndefault:\"home\"}\" />\r\n	<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n	<h2 class=\"withBG\">Already a Member?</h2>\r\n		<b>Log in now.</b><br />\r\n		Username: <input type=\"text\" name=\"username\" class=\"textInput\" size=\"12\" /><br />\r\n		Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n		<div class=\"underline\">&nbsp;</div>\r\n		<a href=\"javascript:document.loginForm2.submit();\">Submit</a> | <a href=\"javascript:doForgotPassword();\">Forgot Password?</a>\r\n	</form>\r\n</div>\r\n<div class=\"underline\" style=\"clear:left;\"></div>\r\n\r\n{toc_next assign=\"next\"}\r\n{toc_prev assign=\"prev\"}\r\n<form name=\"signup\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$next.pageName}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" id=\"signupReturn\" name=\"signup[return]\" value=\"{$return}\">\r\n\r\n<table><tr><td>\r\n\r\n<div class=\"chunk300 h150 w300\">\r\n<h2 class=\"withBG\">Create your Membership </h2>\r\n	*First Name:\r\n	<input type=\"text\" name=\"signup[firstName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*Last Name:\r\n	<input type=\"text\" name=\"signup[lastName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*E-mail:\r\n	<input type=\"text\" name=\"signup[email]\" class=\"textInput\" size=\"30\" /><br />\r\n\r\n	*Desired Username:\r\n	<input type=\"text\" name=\"signup[username]\" class=\"textInput\" size=\"12\"><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Password</h2>\r\n{if $signup.password}\r\n	<small>You have already chosen a valid password. If you would like to choose a different one, enter it below and confirm it.</small><br /><br />\r\n{/if}\r\n	*Choose Your Password:\r\n	<input type=\"password\" name=\"signupSecure[password]\" size=\"12\" class=\"textInput\"><br />\r\n	<small>(Password must be at least 8 characters long)</small><br />\r\n\r\n	*Confirm Your Password:\r\n	<input type=\"password\" name=\"signupSecure[passwordConfirm]\" size=\"12\" class=\"textInput\"><br />\r\n</div>\r\n\r\n</td><td valign=\"top\">\r\n\r\n<div class=\"chunk300 w300\">\r\n	<h2 class=\"withBG\">Shipping &amp; Contact Address</h2>\r\n	\r\n	<div id=\"addressInfo\" style=\"display:block;\">\r\n	*Address:\r\n	<input type=\"text\" name=\"signup[address1]\" value=\"{$smarty.request.signup.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"signup[address2]\" value=\"{$smarty.request.signup.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*City:\r\n	<input type=\"text\" name=\"signup[city]\" value=\"{$smarty.request.signup.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*State, *Zip:\r\n	<input type=\"text\" name=\"signup[state]\" value=\"{$smarty.request.signup.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"signup[zip]\" value=\"{$smarty.request.signup.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n\r\n	<div style=\"float:right;\">*Country:</div>\r\n	<div id=\"signupcountry\" style=\"float:right; position:absolute; border:1px solid black;\"><input type=\"text\" name=\"signup[country]\" value=\"{$smarty.request.signup.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /></div>\r\n\r\n	Phone:\r\n	<input type=\"text\" name=\"signup[phone1]\" value=\"{$smarty.request.signup.phone1}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	Phone 2:\r\n	<input type=\"text\" name=\"signup[phone2]\" value=\"{$smarty.request.signup.phone2}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	</div>\r\n</div>\r\n\r\n</td></tr></table>\r\n\r\n<div id=\"fMatches\" class=\"xFloat\" style=\"padding:3px; background-color:#FFFFFF; border:#666666 1px solid;\">\r\n</div>\r\n\r\n{if $modules.spadeAutoComplete}\r\n	<script language=\"javascript\" src=\"{$modules.x}\"></script>\r\n	<script language=\"javascript\" src=\"{$modules.spadeAutoComplete}\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_states.js\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_countries.js\"></script>\r\n	<script language=\"javascript\">\r\n		initAutoComplete(\'signup[state]\', states, true);\r\n		initAutoComplete(\'signup[country]\', countries, true);\r\n		alert (\'allo. left = \' + xLeft(\'signupcountry\') + \'\\ntop = \' + xTop(\'signupcountry\'));\r\n	</script>\r\n{/if}\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<br />\r\n	{if $prev.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\"><!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;&lt;&lt; Back&nbsp;\" onclick=\"pg.value=\'{$prev.pageName}\';\"> |-->&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\"> <!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;Next &gt;&gt;&nbsp;\"> -->	{/if}\r\n</div>\r\n\r\n{stored_object_fill_form object=$signup name=\"signup\"}\r\n<script language=\"javascript\">document.getElementById(\'signupReturn\').value = \'{$return}\';</script>\r\n\r\n</form>'),(2823,184,0.29,'smarty','0','Page created.',1103675745,2,'67.166.75.78','{assign var=\"pgLayout\" value=\"file:./layouts/lite.tpl\"}\r\n{include_php file=\"shared_handle:company/survey\"}\r\n\r\n<h2 class=\"withBG\">{$survey.surveyName|default:\"Unnamed Survey\"}</h2>\r\n<div style=\"margin-left:20px;\"><small>\r\n	May be taken: <i>{$survey.frequency}</i><br />\r\n	Logged in as: <i>{$user->firstName} {$user->lastName} ({$user->username})</i><br />	\r\n</small></div>\r\n\r\n<form name=\"surveyForm\" action=\"index.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"id\" value=\"{$smarty.request.id}\" />\r\n\r\n<ol id=\"surveyQuestionList\">\r\n	{foreach name=\"questions\" from=$survey.questions item=\"question\"}\r\n	<li>{$question.question}\r\n	<dl>\r\n		{if $question.A != \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}A\" type=\"radio\" name=\"q[{$question.id}]\" value=\"A\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}A\').checked = true;\">{$question.A}</a></dt>{/if}\r\n		{if $question.B != \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}B\" type=\"radio\" name=\"q[{$question.id}]\" value=\"B\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}B\').checked = true;\">{$question.B}</a></dt>{/if}\r\n		{if $question.C != \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}C\" type=\"radio\" name=\"q[{$question.id}]\" value=\"C\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}C\').checked = true;\">{$question.C}</a></dt>{/if}\r\n		{if $question.D != \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}D\" type=\"radio\" name=\"q[{$question.id}]\" value=\"D\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}D\').checked = true;\">{$question.D}</a></dt>{/if}\r\n		{if $question.E != \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}E\" type=\"radio\" name=\"q[{$question.id}]\" value=\"E\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}E\').checked = true;\">{$question.E}</a></dt>{/if}\r\n	</dl></li>\r\n	{/foreach}\r\n</ol>\r\n\r\n<div style=\"text-align:center;\"><input type=\"submit\" value=\"Submit Responses\" /></div>\r\n</form>\r\n'),(2824,136,0.19,'smarty','1','fixed messed h1 tag',1103676651,2,'67.166.75.78','<h1 class=\"underline\">Latest News/Announcements</h1>\r\n<p>\r\n{if not $smarty.session.company.companyName}Things happening specifically with eHealthCompete, and other health related news items.\r\n{else}Announcements for <i>{$smarty.session.company.companyName}</i> posted by your company representative.\r\n{/if}\r\n</p>\r\n\r\n{tablemanager\r\n	Assign=\"tm\"\r\n	Group=\"display_tools\"\r\n	Profile=\"news\"\r\n	DeleteLogFile=\"tm-delete.log\"\r\n	TemplatePath=\"TM/templates/\"\r\n	StyleTablePath=\"systems/wlw/img/st/\"\r\n	AddTemplate=\"slate_edit.tpl\"\r\n	MainTemplate=\"recipe_main.tpl\"\r\n	ListTemplate=\"news_list.tpl\"\r\n	EditTemplate=\"slate_edit.tpl\"\r\n	ViewTemplate=\"news_view.tpl\"\r\n	Action=\"list\"\r\n	LoginRequired=\"true\"\r\n	HeadingColor=\"99CCFF\"\r\n	HighlightColor=\"F6F9D5\"\r\n	HeadingStyle=\"heading\"\r\n	ResultsPerPage=\"20\"\r\n	Color1=\"F7F7F7\"\r\n	Color2=\"E7E7E7\"\r\n	DataStyle=\"hideWrap\"\r\n	MaxStringLength=\"50\"\r\n	DateFormat=\"l, F d, Y g:i a \"\r\n	}\r\n'),(2825,175,0.39,'smarty','0','Page created.',1104183978,2,'67.166.75.78','{if $user->isLoggedIn()}\r\n	{store_messages}\r\n	{redirect href=\"index.php?pg=myhome\"}\r\n{else}\r\n{assign var=\"hideLogin\" value=\"true\"}\r\n{display var=$smarty.session}\r\n<table align=\"center\" width=\"305\" cellpadding=\"0\" cellspacing=\"0\">\r\n<tr><td align=\"center\">\r\n	<h2>{$smarty.session.company.companyName}</h2>\r\n</td></tr>\r\n<tr><td>\r\n	<div align=\"center\" class=\"chunk300\">\r\n		<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n		<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n		<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:$signup.returndefault:\"home\"}\" />\r\n		<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n		<input type=\"hidden\" name=\"forgotPassword\" value=\"\" />\r\n	\r\n		<h2 class=\"withBG\">Log In:</h2>\r\n			Username: <input id=\"usernameBox2\" type=\"text\" name=\"username\" value=\"{$smarty.request.username}\" class=\"textInput\" size=\"12\" /><br />\r\n			Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n			<div class=\"underline\">&nbsp;</div>\r\n			<a href=\"javascript:document.forms[\'loginForm2\'].submit();\">Submit</a> | <a href=\"javascript:doForgotPassword(\'usernameBox2\', \'loginForm2\');\">Forgot Password?</a>\r\n			<input type=\"submit\" name=\"loginSubmit\" value=\"Submit\" style=\"position:absolute; top:-300px; left:-300px;\" />\r\n		</form>\r\n		<script language=\"javascript\">\r\n			document.forms.loginForm2.username.focus();\r\n		</script>\r\n	</div>\r\n</td></tr>\r\n<tr><td align=\"right\">\r\n	<br />\r\n	<small>Not registered yet?</small> <a href=\"?pg=signup/begin\">Sign Up Now!</a> &nbsp;\r\n</td></tr>\r\n</table>\r\n{/if}'),(2657,113,1.10,'smarty','0','Fixed redirect to not specify the vanity and domain',1103272005,2,'67.166.75.78','{assign var=\"pgLayout\" value=\"layouts/default.tpl\"}\r\n{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n{assign var=\"return\" value=$smarty.request.return|default:$signup.return|default:\"home\"}\r\n<!-- {$return} -->\r\n{if $user->isLoggedIn() and $return neq \"\"}\r\n	{if $return eq \"home\"}\r\n		{message type=\"error\" value=\"You cannot sign up for a membership when you are already logged in.\"}\r\n	{/if}\r\n	{store_messages}\r\n	{redirect href=\"?pg=`$return`\"}\r\n{/if}\r\n\r\n<h1 class=\"underline\">Sign Up - Step 1</h1>\r\nCreating your <em>FREE</em> membership is simple.  Just fill out the forms below and click Next. <small> * indicates a required field</small>\r\n<br />\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n	<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n	<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:$signup.returndefault:\"home\"}\" />\r\n	<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n	<h2 class=\"withBG\">Already a Member?</h2>\r\n		<b>Log in now.</b><br />\r\n		Username: <input type=\"text\" name=\"username\" class=\"textInput\" size=\"12\" /><br />\r\n		Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n		<div class=\"underline\">&nbsp;</div>\r\n		<a href=\"javascript:document.loginForm2.submit();\">Submit</a> | <a href=\"javascript:doForgotPassword();\">Forgot Password?</a>\r\n	</form>\r\n</div>\r\n<div class=\"underline\" style=\"clear:left;\"></div>\r\n\r\n{toc_next assign=\"next\"}\r\n{toc_prev assign=\"prev\"}\r\n<form name=\"signup\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$next.pageName}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" id=\"signupReturn\" name=\"signup[return]\" value=\"{$return}\">\r\n\r\n<table><tr><td>\r\n\r\n<div class=\"chunk300 h150 w300\">\r\n<h2 class=\"withBG\">Create your Membership </h2>\r\n	*First Name:\r\n	<input type=\"text\" name=\"signup[firstName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*Last Name:\r\n	<input type=\"text\" name=\"signup[lastName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*E-mail:\r\n	<input type=\"text\" name=\"signup[email]\" class=\"textInput\" size=\"30\" /><br />\r\n\r\n	*Desired Username:\r\n	<input type=\"text\" name=\"signup[username]\" class=\"textInput\" size=\"12\"><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Password</h2>\r\n{if $signup.password}\r\n	<small>You have already chosen a valid password. If you would like to choose a different one, enter it below and confirm it.</small><br /><br />\r\n{/if}\r\n	*Choose Your Password:\r\n	<input type=\"password\" name=\"signupSecure[password]\" size=\"12\" class=\"textInput\"><br />\r\n	<small>(Password must be at least 8 characters long)</small><br />\r\n\r\n	*Confirm Your Password:\r\n	<input type=\"password\" name=\"signupSecure[passwordConfirm]\" size=\"12\" class=\"textInput\"><br />\r\n</div>\r\n\r\n</td><td valign=\"top\">\r\n\r\n<div class=\"chunk300 w300\">\r\n	<h2 class=\"withBG\">Shipping &amp; Contact Address</h2>\r\n	\r\n	<div id=\"addressInfo\" style=\"display:block;\">\r\n	*Address:\r\n	<input type=\"text\" name=\"signup[address1]\" value=\"{$smarty.request.signup.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"signup[address2]\" value=\"{$smarty.request.signup.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*City:\r\n	<input type=\"text\" name=\"signup[city]\" value=\"{$smarty.request.signup.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*State, *Zip:\r\n	<input type=\"text\" name=\"signup[state]\" value=\"{$smarty.request.signup.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"signup[zip]\" value=\"{$smarty.request.signup.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n\r\n	<div style=\"float:left;\">*Country:</div>\r\n	<div id=\"signupcountry\" style=\"float:right; border:1px solid black;\"><input type=\"text\" name=\"signup[country]\" value=\"{$smarty.request.signup.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /></div>\r\n\r\n	Phone:\r\n	<input type=\"text\" name=\"signup[phone1]\" value=\"{$smarty.request.signup.phone1}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	Phone 2:\r\n	<input type=\"text\" name=\"signup[phone2]\" value=\"{$smarty.request.signup.phone2}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	</div>\r\n</div>\r\n\r\n</td></tr></table>\r\n\r\n<div id=\"fMatches\" class=\"xFloat\" style=\"padding:3px; background-color:#FFFFFF; border:#666666 1px solid;\">\r\n</div>\r\n\r\n{if $modules.spadeAutoComplete}\r\n	{* <script language=\"javascript\" src=\"{$modules.x}\"></script> *}\r\n	<script language=\"javascript\" src=\"{$modules.spadeAutoComplete}\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_states.js\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_countries.js\"></script>\r\n	<script language=\"javascript\">\r\n		initAutoComplete(\'signup[state]\', states, true);\r\n		initAutoComplete(\'signup[country]\', countries, true);\r\n		alert (\'allo. left = \' + xLeft(\'signupcountry\') + \'\\ntop = \' + xTop(\'signupcountry\'));\r\n	</script>\r\n{/if}\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<br />\r\n	{if $prev.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\"><!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;&lt;&lt; Back&nbsp;\" onclick=\"pg.value=\'{$prev.pageName}\';\"> |-->&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\"> <!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;Next &gt;&gt;&nbsp;\"> -->	{/if}\r\n</div>\r\n\r\n{stored_object_fill_form object=$signup name=\"signup\"}\r\n<script language=\"javascript\">document.getElementById(\'signupReturn\').value = \'{$return}\';</script>\r\n\r\n</form>'),(2819,184,0.25,'smarty','0','Page created.',1103675261,2,'67.166.75.78','{assign var=\"pgLayout\" value=\"file:./layouts/lite.tpl\"}\r\n{include_php file=\"shared_handle:company/survey\"}\r\n\r\n<h2 class=\"withBG\">Take a Survey: {$survey.surveyName}</h2>\r\n<div style=\"margin-left:20px;\">May be taken: {$survey.frequency}</div>\r\n\r\n<form name=\"surveyForm\" action=\"index.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"id\" value=\"{$smarty.request.id}\" />\r\n\r\n<ol id=\"surveyQuestionList\">\r\n	{foreach name=\"questions\" from=$survey.questions item=\"question\"}\r\n	<li>{$question.question}\r\n	<dl>\r\n		{if $question.A !== \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}A\" type=\"radio\" name=\"q[{$question.id}]\" value=\"A\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}A\').checked = true;\">{$question.A}</a></dt>{/if}\r\n		{if $question.B !== \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}B\" type=\"radio\" name=\"q[{$question.id}]\" value=\"B\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}B\').checked = true;\">{$question.B}</a></dt>{/if}\r\n		{if $question.C !== \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}C\" type=\"radio\" name=\"q[{$question.id}]\" value=\"C\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}C\').checked = true;\">{$question.C}</a></dt>{/if}\r\n		{if $question.D !== \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}D\" type=\"radio\" name=\"q[{$question.id}]\" value=\"D\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}D\').checked = true;\">{$question.D}</a></dt>{/if}\r\n		{if $question.E !== \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}E\" type=\"radio\" name=\"q[{$question.id}]\" value=\"E\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}E\').checked = true;\">{$question.E}</a></dt>{/if}\r\n	</dl></li>\r\n	{/foreach}\r\n</ol>\r\n\r\n<div style=\"text-align:center;\"><input type=\"submit\" value=\"Submit Responses\" /></div>\r\n</form>\r\n'),(2820,184,0.26,'smarty','0','Page created.',1103675339,2,'67.166.75.78','{assign var=\"pgLayout\" value=\"file:./layouts/lite.tpl\"}\r\n{include_php file=\"shared_handle:company/survey\"}\r\n\r\n<h2 class=\"withBG\">Take a Survey: {$survey.surveyName}</h2>\r\n<div style=\"margin-left:20px;\">May be taken: {$survey.frequency}</div>\r\n\r\n<form name=\"surveyForm\" action=\"index.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"id\" value=\"{$smarty.request.id}\" />\r\n\r\n<ol id=\"surveyQuestionList\">\r\n	{foreach name=\"questions\" from=$survey.questions item=\"question\"}\r\n	<li>{$question.question}\r\n	<dl>\r\n		{if $question.A != \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}A\" type=\"radio\" name=\"q[{$question.id}]\" value=\"A\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}A\').checked = true;\">{$question.A}</a></dt>{/if}\r\n		{if $question.B != \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}B\" type=\"radio\" name=\"q[{$question.id}]\" value=\"B\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}B\').checked = true;\">{$question.B}</a></dt>{/if}\r\n		{if $question.C != \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}C\" type=\"radio\" name=\"q[{$question.id}]\" value=\"C\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}C\').checked = true;\">{$question.C}</a></dt>{/if}\r\n		{if $question.D != \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}D\" type=\"radio\" name=\"q[{$question.id}]\" value=\"D\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}D\').checked = true;\">{$question.D}</a></dt>{/if}\r\n		{if $question.E != \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}E\" type=\"radio\" name=\"q[{$question.id}]\" value=\"E\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}E\').checked = true;\">{$question.E}</a></dt>{/if}\r\n	</dl></li>\r\n	{/foreach}\r\n</ol>\r\n\r\n<div style=\"text-align:center;\"><input type=\"submit\" value=\"Submit Responses\" /></div>\r\n</form>\r\n'),(2658,113,1.11,'smarty','0','Fixed redirect to not specify the vanity and domain',1103272467,2,'67.166.75.78','{assign var=\"pgLayout\" value=\"layouts/default.tpl\"}\r\n{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n{assign var=\"return\" value=$smarty.request.return|default:$signup.return|default:\"home\"}\r\n<!-- {$return} -->\r\n{if $user->isLoggedIn() and $return neq \"\"}\r\n	{if $return eq \"home\"}\r\n		{message type=\"error\" value=\"You cannot sign up for a membership when you are already logged in.\"}\r\n	{/if}\r\n	{store_messages}\r\n	{redirect href=\"?pg=`$return`\"}\r\n{/if}\r\n\r\n<h1 class=\"underline\">Sign Up - Step 1</h1>\r\nCreating your <em>FREE</em> membership is simple.  Just fill out the forms below and click Next. <small> * indicates a required field</small>\r\n<br />\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n	<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n	<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:$signup.returndefault:\"home\"}\" />\r\n	<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n	<h2 class=\"withBG\">Already a Member?</h2>\r\n		<b>Log in now.</b><br />\r\n		Username: <input type=\"text\" name=\"username\" class=\"textInput\" size=\"12\" /><br />\r\n		Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n		<div class=\"underline\">&nbsp;</div>\r\n		<a href=\"javascript:document.loginForm2.submit();\">Submit</a> | <a href=\"javascript:doForgotPassword();\">Forgot Password?</a>\r\n	</form>\r\n</div>\r\n<div class=\"underline\" style=\"clear:left;\"></div>\r\n\r\n{toc_next assign=\"next\"}\r\n{toc_prev assign=\"prev\"}\r\n<form name=\"signup\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$next.pageName}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" id=\"signupReturn\" name=\"signup[return]\" value=\"{$return}\">\r\n\r\n<table><tr><td>\r\n\r\n<div class=\"chunk300 h150 w300\">\r\n<h2 class=\"withBG\">Create your Membership </h2>\r\n	*First Name:\r\n	<input type=\"text\" name=\"signup[firstName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*Last Name:\r\n	<input type=\"text\" name=\"signup[lastName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*E-mail:\r\n	<input type=\"text\" name=\"signup[email]\" class=\"textInput\" size=\"30\" /><br />\r\n\r\n	*Desired Username:\r\n	<input type=\"text\" name=\"signup[username]\" class=\"textInput\" size=\"12\"><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Password</h2>\r\n{if $signup.password}\r\n	<small>You have already chosen a valid password. If you would like to choose a different one, enter it below and confirm it.</small><br /><br />\r\n{/if}\r\n	*Choose Your Password:\r\n	<input type=\"password\" name=\"signupSecure[password]\" size=\"12\" class=\"textInput\"><br />\r\n	<small>(Password must be at least 8 characters long)</small><br />\r\n\r\n	*Confirm Your Password:\r\n	<input type=\"password\" name=\"signupSecure[passwordConfirm]\" size=\"12\" class=\"textInput\"><br />\r\n</div>\r\n\r\n</td><td valign=\"top\">\r\n\r\n<div class=\"chunk300 w300\">\r\n	<h2 class=\"withBG\">Shipping &amp; Contact Address</h2>\r\n	\r\n	<div id=\"addressInfo\" style=\"display:block;\">\r\n	*Address:\r\n	<input type=\"text\" name=\"signup[address1]\" value=\"{$smarty.request.signup.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"signup[address2]\" value=\"{$smarty.request.signup.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*City:\r\n	<input type=\"text\" name=\"signup[city]\" value=\"{$smarty.request.signup.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*State, *Zip:\r\n	<input type=\"text\" name=\"signup[state]\" value=\"{$smarty.request.signup.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"signup[zip]\" value=\"{$smarty.request.signup.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n\r\n	<div style=\"float:left;\">*Country:</div>\r\n	<div id=\"signupcountry\" style=\"float:right; border:1px solid black;\"><input type=\"text\" name=\"signup[country]\" value=\"{$smarty.request.signup.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /></div>\r\n\r\n	Phone:\r\n	<input type=\"text\" name=\"signup[phone1]\" value=\"{$smarty.request.signup.phone1}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	Phone 2:\r\n	<input type=\"text\" name=\"signup[phone2]\" value=\"{$smarty.request.signup.phone2}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	</div>\r\n</div>\r\n\r\n</td></tr></table>\r\n\r\n<div id=\"fMatches\" class=\"xFloat\" style=\"padding:3px; background-color:#FFFFFF; border:#666666 1px solid;\">\r\n</div>\r\n\r\n{if $modules.spadeAutoComplete}\r\n	{* <script language=\"javascript\" src=\"{$modules.x}\"></script> *}\r\n	<script language=\"javascript\" src=\"{$modules.spadeAutoComplete}\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_states.js\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_countries.js\"></script>\r\n	<script language=\"javascript\">\r\n		initAutoComplete(\'signup[state]\', states, true);\r\n		initAutoComplete(\'signup[country]\', countries, true);\r\n	</script>\r\n{/if}\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<br />\r\n	{if $prev.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\"><!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;&lt;&lt; Back&nbsp;\" onclick=\"pg.value=\'{$prev.pageName}\';\"> |-->&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\"> <!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;Next &gt;&gt;&nbsp;\"> -->	{/if}\r\n</div>\r\n\r\n{stored_object_fill_form object=$signup name=\"signup\"}\r\n<script language=\"javascript\">document.getElementById(\'signupReturn\').value = \'{$return}\';</script>\r\n\r\n</form>'),(2817,184,0.23,'smarty','0','Page created.',1103675230,2,'67.166.75.78','{assign var=\"pgLayout\" value=\"file:./layouts/lite.tpl\"}\r\n{include_php file=\"shared_handle:company/survey\"}\r\n\r\n{display var=$survey}\r\n\r\n<h2 class=\"withBG\">Take a Survey: {$survey.surveyName}</h2>\r\n<div style=\"margin-left:20px;\">May be taken: {$survey.frequency}</div>\r\n\r\n<form name=\"surveyForm\" action=\"index.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"id\" value=\"{$smarty.request.id}\" />\r\n\r\n<ol id=\"surveyQuestionList\">\r\n	{foreach name=\"questions\" from=$survey.questions item=\"question\"}\r\n	<li>{$question.question}\r\n	<dl>\r\n		{if $question.A !== \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}A\" type=\"radio\" name=\"q[{$question.id}]\" value=\"A\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}A\').checked = true;\">{$question.A}</a></dt>\r\n		{if $question.B !== \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}B\" type=\"radio\" name=\"q[{$question.id}]\" value=\"B\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}B\').checked = true;\">{$question.B}</a></dt>\r\n		{if $question.C !== \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}C\" type=\"radio\" name=\"q[{$question.id}]\" value=\"C\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}C\').checked = true;\">{$question.C}</a></dt>\r\n		{if $question.D !== \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}D\" type=\"radio\" name=\"q[{$question.id}]\" value=\"D\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}D\').checked = true;\">{$question.D}</a></dt>\r\n		{if $question.E !== \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}E\" type=\"radio\" name=\"q[{$question.id}]\" value=\"E\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}E\').checked = true;\">{$question.E}</a></dt>\r\n	</dl></li>\r\n	{/foreach}\r\n</ol>\r\n\r\n<div style=\"text-align:center;\"><input type=\"submit\" value=\"Submit Responses\" /></div>\r\n</form>\r\n'),(2818,184,0.24,'smarty','0','Page created.',1103675252,2,'67.166.75.78','{assign var=\"pgLayout\" value=\"file:./layouts/lite.tpl\"}\r\n{include_php file=\"shared_handle:company/survey\"}\r\n\r\n{display var=$survey}\r\n\r\n<h2 class=\"withBG\">Take a Survey: {$survey.surveyName}</h2>\r\n<div style=\"margin-left:20px;\">May be taken: {$survey.frequency}</div>\r\n\r\n<form name=\"surveyForm\" action=\"index.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"id\" value=\"{$smarty.request.id}\" />\r\n\r\n<ol id=\"surveyQuestionList\">\r\n	{foreach name=\"questions\" from=$survey.questions item=\"question\"}\r\n	<li>{$question.question}\r\n	<dl>\r\n		{if $question.A !== \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}A\" type=\"radio\" name=\"q[{$question.id}]\" value=\"A\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}A\').checked = true;\">{$question.A}</a></dt>{/if}\r\n		{if $question.B !== \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}B\" type=\"radio\" name=\"q[{$question.id}]\" value=\"B\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}B\').checked = true;\">{$question.B}</a></dt>{/if}\r\n		{if $question.C !== \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}C\" type=\"radio\" name=\"q[{$question.id}]\" value=\"C\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}C\').checked = true;\">{$question.C}</a></dt>{/if}\r\n		{if $question.D !== \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}D\" type=\"radio\" name=\"q[{$question.id}]\" value=\"D\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}D\').checked = true;\">{$question.D}</a></dt>{/if}\r\n		{if $question.E !== \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}E\" type=\"radio\" name=\"q[{$question.id}]\" value=\"E\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}E\').checked = true;\">{$question.E}</a></dt>{/if}\r\n	</dl></li>\r\n	{/foreach}\r\n</ol>\r\n\r\n<div style=\"text-align:center;\"><input type=\"submit\" value=\"Submit Responses\" /></div>\r\n</form>\r\n'),(2659,113,1.12,'smarty','0','Fixed redirect to not specify the vanity and domain',1103318880,3,'67.166.75.78','{assign var=\"pgLayout\" value=\"layouts/default.tpl\"}\r\n{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n{assign var=\"return\" value=$smarty.request.return|default:$signup.return|default:\"home\"}\r\n<!-- {$return} -->\r\n{if $user->isLoggedIn() and $return neq \"\"}\r\n	{if $return eq \"home\"}\r\n		{message type=\"error\" value=\"You cannot sign up for a membership when you are already logged in.\"}\r\n	{/if}\r\n	{store_messages}\r\n	{redirect href=\"?pg=`$return`\"}\r\n{/if}\r\n\r\n<h1 class=\"underline\">Sign Up - Step 1</h1>\r\nCreating your <em>FREE</em> membership is simple.  Just fill out the forms below and click Next.\r\n<br />\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n	<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n	<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:$signup.returndefault:\"home\"}\" />\r\n	<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n	<h2 class=\"withBG\">Already a Member?</h2>\r\n		<b>Log in now.</b><br />\r\n		Username: <input type=\"text\" name=\"username\" class=\"textInput\" size=\"12\" /><br />\r\n		Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n		<div class=\"underline\">&nbsp;</div>\r\n		<a href=\"javascript:document.loginForm2.submit();\">Submit</a> | <a href=\"javascript:doForgotPassword();\">Forgot Password?</a>\r\n	</form>\r\n</div>\r\n<div class=\"underline\" style=\"clear:left;\"></div>\r\n<h4>* indicates a required field</h4>\r\n{toc_next assign=\"next\"}\r\n{toc_prev assign=\"prev\"}\r\n<form name=\"signup\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$next.pageName}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" id=\"signupReturn\" name=\"signup[return]\" value=\"{$return}\">\r\n\r\n<table><tr><td>\r\n\r\n<div class=\"chunk300 h150 w300\">\r\n<h2 class=\"withBG\">Create your Membership </h2>\r\n	*First Name:\r\n	<input type=\"text\" name=\"signup[firstName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*Last Name:\r\n	<input type=\"text\" name=\"signup[lastName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*E-mail:\r\n	<input type=\"text\" name=\"signup[email]\" class=\"textInput\" size=\"30\" /><br />\r\n\r\n	*Desired Username:\r\n	<input type=\"text\" name=\"signup[username]\" class=\"textInput\" size=\"12\"><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Password</h2>\r\n{if $signup.password}\r\n	<small>You have already chosen a valid password. If you would like to choose a different one, enter it below and confirm it.</small><br /><br />\r\n{/if}\r\n	*Choose Your Password:\r\n	<input type=\"password\" name=\"signupSecure[password]\" size=\"12\" class=\"textInput\"><br />\r\n	<small>(Password must be at least 8 characters long)</small><br />\r\n\r\n	*Confirm Your Password:\r\n	<input type=\"password\" name=\"signupSecure[passwordConfirm]\" size=\"12\" class=\"textInput\"><br />\r\n</div>\r\n\r\n</td><td valign=\"top\">\r\n\r\n<div class=\"chunk300 w300\">\r\n	<h2 class=\"withBG\">Shipping &amp; Contact Address</h2>\r\n	\r\n	<div id=\"addressInfo\" style=\"display:block;\">\r\n	*Address:\r\n	<input type=\"text\" name=\"signup[address1]\" value=\"{$smarty.request.signup.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"signup[address2]\" value=\"{$smarty.request.signup.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*City:\r\n	<input type=\"text\" name=\"signup[city]\" value=\"{$smarty.request.signup.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*State, *Zip:\r\n	<input type=\"text\" name=\"signup[state]\" value=\"{$smarty.request.signup.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"signup[zip]\" value=\"{$smarty.request.signup.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n\r\n	<div style=\"float:left;\">*Country:</div>\r\n	<div id=\"signupcountry\" style=\"float:right; border:1px solid black;\"><input type=\"text\" name=\"signup[country]\" value=\"{$smarty.request.signup.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /></div>\r\n\r\n	Phone:\r\n	<input type=\"text\" name=\"signup[phone1]\" value=\"{$smarty.request.signup.phone1}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	Phone 2:\r\n	<input type=\"text\" name=\"signup[phone2]\" value=\"{$smarty.request.signup.phone2}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	</div>\r\n</div>\r\n\r\n</td></tr></table>\r\n\r\n<div id=\"fMatches\" class=\"xFloat\" style=\"padding:3px; background-color:#FFFFFF; border:#666666 1px solid;\">\r\n</div>\r\n\r\n{if $modules.spadeAutoComplete}\r\n	{* <script language=\"javascript\" src=\"{$modules.x}\"></script> *}\r\n	<script language=\"javascript\" src=\"{$modules.spadeAutoComplete}\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_states.js\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_countries.js\"></script>\r\n	<script language=\"javascript\">\r\n		initAutoComplete(\'signup[state]\', states, true);\r\n		initAutoComplete(\'signup[country]\', countries, true);\r\n	</script>\r\n{/if}\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<br />\r\n	{if $prev.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\"><!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;&lt;&lt; Back&nbsp;\" onclick=\"pg.value=\'{$prev.pageName}\';\"> |-->&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\"> <!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;Next &gt;&gt;&nbsp;\"> -->	{/if}\r\n</div>\r\n\r\n{stored_object_fill_form object=$signup name=\"signup\"}\r\n<script language=\"javascript\">document.getElementById(\'signupReturn\').value = \'{$return}\';</script>\r\n\r\n</form>'),(2816,184,0.22,'smarty','0','Page created.',1103674713,2,'67.166.75.78','{assign var=\"pgLayout\" value=\"file:./layouts/lite.tpl\"}\r\n{include_php file=\"shared_handle:company/survey\"}\r\n\r\n{display var=$survey}\r\n\r\n<h2 class=\"withBG\">Survey #10203 - Week 7 - Day 3</h2>\r\n<form name=\"surveyForm\" action=\"index.php\" method=\"POST\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n<ol id=\"surveyQuestionList\">\r\n	<li>Please choose one of the following:\r\n	<dl>\r\n		<dt onclick=\"document.getElementById(\'q1_A\').checked = true;\"><input id=\"q1_A\" type=\"radio\" name=\"q1\" value=\"\"> Option 1</dt>\r\n		<dt onclick=\"document.getElementById(\'q1_B\').checked = true;\"><input id=\"q1_B\" type=\"radio\" name=\"q1\" value=\"\"> Option 2</dt>\r\n		<dt onclick=\"document.getElementById(\'q1_C\').checked = true;\"><input id=\"q1_C\" type=\"radio\" name=\"q1\" value=\"\"> Option 3</dt>\r\n		<dt onclick=\"document.getElementById(\'q1_D\').checked = true;\"><input id=\"q1_D\" type=\"radio\" name=\"q1\" value=\"\"> Option 4</dt>\r\n	</dl></li>\r\n</ol>\r\n\r\n<div style=\"text-align:center;\"><input type=\"submit\" value=\"Submit Responses\" /></div>\r\n</form>\r\n'),(2660,113,1.13,'smarty','0','Fixed redirect to not specify the vanity and domain',1103318940,3,'67.166.75.78','{assign var=\"pgLayout\" value=\"layouts/default.tpl\"}\r\n{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n{assign var=\"return\" value=$smarty.request.return|default:$signup.return|default:\"home\"}\r\n<!-- {$return} -->\r\n{if $user->isLoggedIn() and $return neq \"\"}\r\n	{if $return eq \"home\"}\r\n		{message type=\"error\" value=\"You cannot sign up for a membership when you are already logged in.\"}\r\n	{/if}\r\n	{store_messages}\r\n	{redirect href=\"?pg=`$return`\"}\r\n{/if}\r\n\r\n<h1 class=\"underline\">Sign Up - Step 1</h1>\r\nCreating your <em>FREE</em> membership is simple.  Just fill out the forms below and click Next.\r\n<br />\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n	<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n	<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:$signup.returndefault:\"home\"}\" />\r\n	<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n	<h2 class=\"withBG\">Already a Member?</h2>\r\n		<b>Log in now.</b><br />\r\n		Username: <input type=\"text\" name=\"username\" class=\"textInput\" size=\"12\" /><br />\r\n		Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n		<div class=\"underline\">&nbsp;</div>\r\n		<a href=\"javascript:document.loginForm2.submit();\">Submit</a> | <a href=\"javascript:doForgotPassword();\">Forgot Password?</a>\r\n	</form>\r\n</div>\r\n<div class=\"underline\" style=\"clear:left;\"></div>\r\n<p><b>* indicates a required field</b></p>\r\n{toc_next assign=\"next\"}\r\n{toc_prev assign=\"prev\"}\r\n<form name=\"signup\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$next.pageName}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" id=\"signupReturn\" name=\"signup[return]\" value=\"{$return}\">\r\n\r\n<table><tr><td>\r\n\r\n<div class=\"chunk300 h150 w300\">\r\n<h2 class=\"withBG\">Create your Membership </h2>\r\n	*First Name:\r\n	<input type=\"text\" name=\"signup[firstName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*Last Name:\r\n	<input type=\"text\" name=\"signup[lastName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*E-mail:\r\n	<input type=\"text\" name=\"signup[email]\" class=\"textInput\" size=\"30\" /><br />\r\n\r\n	*Desired Username:\r\n	<input type=\"text\" name=\"signup[username]\" class=\"textInput\" size=\"12\"><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Password</h2>\r\n{if $signup.password}\r\n	<small>You have already chosen a valid password. If you would like to choose a different one, enter it below and confirm it.</small><br /><br />\r\n{/if}\r\n	*Choose Your Password:\r\n	<input type=\"password\" name=\"signupSecure[password]\" size=\"12\" class=\"textInput\"><br />\r\n	<small>(Password must be at least 8 characters long)</small><br />\r\n\r\n	*Confirm Your Password:\r\n	<input type=\"password\" name=\"signupSecure[passwordConfirm]\" size=\"12\" class=\"textInput\"><br />\r\n</div>\r\n\r\n</td><td valign=\"top\">\r\n\r\n<div class=\"chunk300 w300\">\r\n	<h2 class=\"withBG\">Shipping &amp; Contact Address</h2>\r\n	\r\n	<div id=\"addressInfo\" style=\"display:block;\">\r\n	*Address:\r\n	<input type=\"text\" name=\"signup[address1]\" value=\"{$smarty.request.signup.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"signup[address2]\" value=\"{$smarty.request.signup.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*City:\r\n	<input type=\"text\" name=\"signup[city]\" value=\"{$smarty.request.signup.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*State, *Zip:\r\n	<input type=\"text\" name=\"signup[state]\" value=\"{$smarty.request.signup.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"signup[zip]\" value=\"{$smarty.request.signup.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n\r\n	<div style=\"float:left;\">*Country:</div>\r\n	<div id=\"signupcountry\" style=\"float:right; border:1px solid black;\"><input type=\"text\" name=\"signup[country]\" value=\"{$smarty.request.signup.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /></div>\r\n\r\n	Phone:\r\n	<input type=\"text\" name=\"signup[phone1]\" value=\"{$smarty.request.signup.phone1}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	Phone 2:\r\n	<input type=\"text\" name=\"signup[phone2]\" value=\"{$smarty.request.signup.phone2}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	</div>\r\n</div>\r\n\r\n</td></tr></table>\r\n\r\n<div id=\"fMatches\" class=\"xFloat\" style=\"padding:3px; background-color:#FFFFFF; border:#666666 1px solid;\">\r\n</div>\r\n\r\n{if $modules.spadeAutoComplete}\r\n	{* <script language=\"javascript\" src=\"{$modules.x}\"></script> *}\r\n	<script language=\"javascript\" src=\"{$modules.spadeAutoComplete}\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_states.js\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_countries.js\"></script>\r\n	<script language=\"javascript\">\r\n		initAutoComplete(\'signup[state]\', states, true);\r\n		initAutoComplete(\'signup[country]\', countries, true);\r\n	</script>\r\n{/if}\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<br />\r\n	{if $prev.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\"><!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;&lt;&lt; Back&nbsp;\" onclick=\"pg.value=\'{$prev.pageName}\';\"> |-->&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\"> <!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;Next &gt;&gt;&nbsp;\"> -->	{/if}\r\n</div>\r\n\r\n{stored_object_fill_form object=$signup name=\"signup\"}\r\n<script language=\"javascript\">document.getElementById(\'signupReturn\').value = \'{$return}\';</script>\r\n\r\n</form>'),(2661,113,1.14,'smarty','0','Fixed redirect to not specify the vanity and domain',1103318990,3,'67.166.75.78','{assign var=\"pgLayout\" value=\"layouts/default.tpl\"}\r\n{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n{assign var=\"return\" value=$smarty.request.return|default:$signup.return|default:\"home\"}\r\n<!-- {$return} -->\r\n{if $user->isLoggedIn() and $return neq \"\"}\r\n	{if $return eq \"home\"}\r\n		{message type=\"error\" value=\"You cannot sign up for a membership when you are already logged in.\"}\r\n	{/if}\r\n	{store_messages}\r\n	{redirect href=\"?pg=`$return`\"}\r\n{/if}\r\n\r\n<h1 class=\"underline\">Sign Up - Step 1</h1>\r\nCreating your <em>FREE</em> membership is simple.  Just fill out the forms below and click Next.\r\n<br />\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n	<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n	<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:$signup.returndefault:\"home\"}\" />\r\n	<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n	<h2 class=\"withBG\">Already a Member?</h2>\r\n		<b>Log in now.</b><br />\r\n		Username: <input type=\"text\" name=\"username\" class=\"textInput\" size=\"12\" /><br />\r\n		Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n		<div class=\"underline\">&nbsp;</div>\r\n		<a href=\"javascript:document.loginForm2.submit();\">Submit</a> | <a href=\"javascript:doForgotPassword();\">Forgot Password?</a>\r\n	</form>\r\n</div>\r\n<div class=\"underline\" style=\"clear:left;\"></div>\r\n{toc_next assign=\"next\"}\r\n{toc_prev assign=\"prev\"}\r\n<form name=\"signup\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$next.pageName}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" id=\"signupReturn\" name=\"signup[return]\" value=\"{$return}\">\r\n\r\n<table><tr><td>\r\n\r\n<div class=\"chunk300 h150 w300\">\r\n<h2 class=\"withBG\">Create your Membership </h2>\r\n	*First Name:\r\n	<input type=\"text\" name=\"signup[firstName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*Last Name:\r\n	<input type=\"text\" name=\"signup[lastName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*E-mail:\r\n	<input type=\"text\" name=\"signup[email]\" class=\"textInput\" size=\"30\" /><br />\r\n\r\n	*Desired Username:\r\n	<input type=\"text\" name=\"signup[username]\" class=\"textInput\" size=\"12\"><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Password</h2>\r\n{if $signup.password}\r\n	<small>You have already chosen a valid password. If you would like to choose a different one, enter it below and confirm it.</small><br /><br />\r\n{/if}\r\n	*Choose Your Password:\r\n	<input type=\"password\" name=\"signupSecure[password]\" size=\"12\" class=\"textInput\"><br />\r\n	<small>(Password must be at least 8 characters long)</small><br />\r\n\r\n	*Confirm Your Password:\r\n	<input type=\"password\" name=\"signupSecure[passwordConfirm]\" size=\"12\" class=\"textInput\"><br />\r\n</div>\r\n\r\n</td><td valign=\"top\">\r\n\r\n<div class=\"chunk300 w300\">\r\n	<h2 class=\"withBG\">Shipping &amp; Contact Address</h2>\r\n	\r\n	<div id=\"addressInfo\" style=\"display:block;\">\r\n	*Address:\r\n	<input type=\"text\" name=\"signup[address1]\" value=\"{$smarty.request.signup.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"signup[address2]\" value=\"{$smarty.request.signup.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*City:\r\n	<input type=\"text\" name=\"signup[city]\" value=\"{$smarty.request.signup.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*State, *Zip:\r\n	<input type=\"text\" name=\"signup[state]\" value=\"{$smarty.request.signup.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"signup[zip]\" value=\"{$smarty.request.signup.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n\r\n	<div style=\"float:left;\">*Country:</div>\r\n	<div id=\"signupcountry\" style=\"float:right; border:1px solid black;\"><input type=\"text\" name=\"signup[country]\" value=\"{$smarty.request.signup.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /></div>\r\n\r\n	Phone:\r\n	<input type=\"text\" name=\"signup[phone1]\" value=\"{$smarty.request.signup.phone1}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	Phone 2:\r\n	<input type=\"text\" name=\"signup[phone2]\" value=\"{$smarty.request.signup.phone2}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	</div>\r\n</div>\r\n\r\n</td></tr></table>\r\n<em>* indicates a required field</em>\r\n\r\n<div id=\"fMatches\" class=\"xFloat\" style=\"padding:3px; background-color:#FFFFFF; border:#666666 1px solid;\">\r\n</div>\r\n\r\n{if $modules.spadeAutoComplete}\r\n	{* <script language=\"javascript\" src=\"{$modules.x}\"></script> *}\r\n	<script language=\"javascript\" src=\"{$modules.spadeAutoComplete}\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_states.js\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_countries.js\"></script>\r\n	<script language=\"javascript\">\r\n		initAutoComplete(\'signup[state]\', states, true);\r\n		initAutoComplete(\'signup[country]\', countries, true);\r\n	</script>\r\n{/if}\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<br />\r\n	{if $prev.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\"><!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;&lt;&lt; Back&nbsp;\" onclick=\"pg.value=\'{$prev.pageName}\';\"> |-->&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\"> <!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;Next &gt;&gt;&nbsp;\"> -->	{/if}\r\n</div>\r\n\r\n{stored_object_fill_form object=$signup name=\"signup\"}\r\n<script language=\"javascript\">document.getElementById(\'signupReturn\').value = \'{$return}\';</script>\r\n\r\n</form>'),(2635,102,0.61,'smarty','0','Renamed Goals to Profile.',1103235697,3,'67.166.75.78','{assign var=\"pgLayout\" value=\"layouts/default.tpl\"}\r\n{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\r\n<!-- return:{$smarty.request.signup.return} -->\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n\r\n<h1 class=\"underline\">Sign Up - Step 2 - Your Profile</h1>\r\n<p>This step includes recording you initial weight and goals. Each field will be used to calculate other factors including your Body Mass Index. To hide your body weight from others select \'Yes.\' By selecting \'Yes\' others will only see your change in weight (i.e. -5 lbs).<small> * indicates a required field</small></p>\r\n\r\n{include_php file=\"shared_handle:signup.details\"}\r\n\r\n<div>\r\n\r\n{toc_next assign=\"next\"}\r\n{toc_prev assign=\"prev\"}\r\n<form name=\"signup\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$next.pageName}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr><td>\r\n\r\n<div class=\"chunk300\" style=\"width:310px;\">\r\n<h2 class=\"withBG\">Personal Profile</h2>\r\n*Date of Birth:\r\n{get_month name=\"signup[dob][month]\"}\r\n{get_day   name=\"signup[dob][day]\"}\r\n{math assign=\"end_year\" equation=\"x - 18\" x=$smarty.now|date_format2:\"Y\"}  {* Minimum age is 18 years for now *}\r\n{get_year  name=\"signup[dob][year]\" start=\"1915\" end=$end_year}<br />\r\n\r\n*Gender: \r\n<input type=\"radio\" name=\"signup[gender]\" value=\"not specified\" checked />Not Specified &nbsp;<input type=\"radio\" name=\"signup[gender]\" value=\"male\" />Male &nbsp; <input type=\"radio\" name=\"signup[gender]\" value=\"female\" />Female &nbsp;<br />\r\n\r\n*Current Weight:\r\n<input type=\"text\" name=\"signup[initialWeight]\" size=\"4\" maxlength=\"3\" class=\"textInput\" style=\"width:25px;\" /><br />\r\n\r\n*Hide Initial Weight?:\r\n<input type=\"radio\" name=\"signup[hideInitialWeight]\" value=\"Yes\"{if $signup[hideInitialWeight] neq \"No\"} checked{/if} /> Yes &nbsp;<input type=\"radio\" name=\"signup[hideInitialWeight]\" value=\"No\"{if $signup[hideInitialWeight] eq \"No\"} checked{/if} /> No &nbsp;<br />\r\n\r\n*Goal Weight:\r\n<input type=\"text\" name=\"signup[goalWeight]\" size=\"4\" maxlength=\"3\" class=\"textInput\" style=\"width:25px;\" /><br />\r\n\r\n*Height:\r\n<input type=\"text\" name=\"signup[height][feet]\" class=\"textInput\" maxlength=\"1\" style=\"width:18px;\" /> feet, \r\n<input type=\"text\" name=\"signup[height][inches]\" class=\"textInput\" maxlength=\"2\" style=\"width:20px;\" /> inches<br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Goal</h2>\r\n        This will show up on your about page, and can be changed often.\r\n	<textarea name=\"signup[personalGoal]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Motto</h2>\r\n        This will show up on your about page, and can be changed often.\r\n	<textarea name=\"signup[personalSaying]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Your Signature</h2>\r\n        Be creative with your signature! This will go at the bottom of the messages you post on the discussion board and can be changed often.\r\n	<textarea name=\"signup[signature]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<br />\r\n	{if $prev.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\">&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\">{/if}\r\n</div>\r\n\r\n{stored_object_fill_form object=$signup name=\"signup\"}\r\n\r\n</form>\r\n</div>'),(2636,99,3.39,'smarty','0','commented Team Management Lbs and Wt. columns, only showing %',1103237831,2,'67.166.75.78','{assign var=\"hideWidgets\" value=0}\r\n{assign var=\"hideUserBox\" value=\"false\"}\r\n{assign var=\"showCompanyNews\" value=\"true\"}\r\n{assign var=\"pgLayout\" value=\"file:./layouts/comp_layout2.tpl\"}\r\n{if $competition.userId eq $user->id or $acm->isDomainAdmin()}\r\n	{assign var=\"isManager\" value=\"true\"}\r\n	<!-- ismanager -->\r\n	{include_php file=\"shared_handle:competition.manageTeams\"}\r\n	{include_php file=\"shared_handle:competition.managePlayers\"}\r\n{/if}\r\n\r\n{include_php file=\"shared_handle:competition.load\"}\r\n{include_php file=\"shared_handle:competition.verifyInitialPot\"}\r\n<div id=\"jackpot\">{if $competition.potAmount gt 0}${$competition.potAmount|number_format:2}{/if}</div>\r\n<h1 class=\"underline\">{$competition.title|default:\"Competition Title\"}</h1>\r\n\r\n{* ******************************** COMPETITION END *********************************** *}\r\n{if $competition.endDate lt $smarty.now}   {* COMPETITION IS OVER *}\r\n	<div style=\"width:480px;\">\r\n	{if $competition.results.winners|@count eq 1}\r\n		{* There was one winner, either by scoringMethod or tieBreakerMethod *}\r\n\r\n		{math assign=\"daysOfCompetition\" equation=\"(x - y) / z\" x=$competition.endDate y=$competition.startDate z=\"86400\"}\r\n		{math assign=\"marginOfVictory\" equation=\"x - y\" x=$competition.results.winningStat y=$competition.results.secondPlaceStat}\r\n\r\n		{foreach from=$competition.results.winners item=\"winnerData\" key=\"winnerName\"}\r\n			\r\n			<h2><br /><b>{$winnerName}</b> wins{if $competition.potAmount} <b>$<i>{$competition.potAmount|number_format:2}</i></b>{/if}!</h2>\r\n			<br />\r\n			{if not $competition.results.isTie}   {* Not a Tie *}\r\n				After a difficult <b>{$daysOfCompetition|number_format:0}</b> days of weight loss rumble, <b>{$winnerName}</b> is the Winner! Based on <b>{$competition.results.winningMethod}</b>, <b>{$winnerName}</b> wins after losing <b>{$competition.results.winningStat|number_format:2} {if $competition.results.winningMethod eq \"Weight Lost\"}pounds{else}% body weight{/if}</b>.\r\n			{else}                                {* A Tie! *}\r\n				{assign var=\"weightLost\" value=\"Weight Lost\"}\r\n				{assign var=\"percentLost\" value=\"Percentage Weight Lost\"}\r\n				After a difficult <b>{$daysOfCompetition|number_format:0}</b> days of weight loss rumble, there was a tie in the judging method, <b>{$competition.scoringMethod}</b>. To break this tie, the selected tie breaking method, <b>{$competition.tieBreakerMethod}</b>, was used to determine <b>{$winnerName}</b> as the winner. <b>{$winnerName}</b> lost <b>{$winnerData.$weightLost|number_format:0} pounds</b>, which was <b>{$winnerData.$percentLost|number_format:4}%</b> body weight.\r\n			{/if}\r\n			<br />\r\n			<br />\r\n			<b>{$winnerName}</b> won with a <b>{$marginOfVictory|number_format:4}</b> margin over {foreach from=$competition.results.losers item=\"loser\" key=\"loserName\"}<b>{$loserName}</b>{php}break;{/php}{/foreach}.\r\n			\r\n			<h2><br />Congratulations to you all!</h2>\r\n			<br />\r\n			<div class=\"underline\"></div>\r\n		{/foreach}\r\n\r\n	{elseif $competition.results.winners|@count gt 1}\r\n		{* There were multiple winners, even after tieBreakerMethod (should RARELY happen) *}\r\n	\r\n		<h2>There was a tie in this competition. The winners, by <b>{$competition.results.winningMethod}</b> having lost <b>{$competition.results.winningStat}</b>, are:<br /></h2>\r\n		<ul>\r\n		{foreach from=$competition.results.winners item=\"winnerData\" key=\"winnerName\"}\r\n			<li>{$winnerName}</li>\r\n		{/foreach}\r\n		</ul>\r\n		\r\n	{else}\r\n		{* For some reason, there were no winners *}\r\n\r\n		<h2><br />Sorry, we were unable to determine the winner of this competition! This may have been caused by an error.<br /><br /></h2>\r\n	{/if}\r\n	This competition has ended and is no longer active.<br />\r\n	</div>\r\n{/if}\r\n{* ************************************************************************************ *}\r\n\r\n<div id=\"prizeDesc\">{$competition.potDescription}<br />\r\n{if $competition.potAmount}<small style=\"color:#FFF;\">(${$competition.individualPotAmount} from {$competition.potMethod})</small>{/if}</div>\r\n\r\n{if $competition.startDate lt $smarty.now}\r\n	Time remaining: <b>{$competition.timeLeft}</b><br />\r\n{else}\r\n	This competition has not yet started!<br />\r\n{/if}\r\n\r\nStart{if $competition.startDate lt $smarty.now}ed{else}s{/if}: <b>{$competition.startDate|date_format2:\"n/j/Y\"}</b> &nbsp; \r\nEnd{if $competition.endDate lt $smarty.now}ed{else}s{/if}: <b>{$competition.endDate|date_format2:\"n/j/Y\"}</b></br>\r\n<div style=\"font-size:5px;clear:left;\">&nbsp;</div>\r\n{assign var=\"scoringMethod\" value=$competition.scoringMethod}\r\n{assign var=\"tieBreakerMethod\" value=$competition.tieBreakerMethod}\r\n{assign var=\"weeklyWinnersMethod1\" value=$competition.weeklyWinnersMethod1}\r\n{assign var=\"weeklyWinnersMethod2\" value=$competition.weeklyWinnersMethod2}\r\n\r\n{* ******************** WEEKLY WINNERS ********************* *}\r\n{if $competition.weeklyWinners}\r\n	{if $weeklyWinnersMethod1}             {* DON\'T FORGET TO REMOVE THE ACM CHECK WHEN READY!!! *}\r\n		<h2 class=\"withBG\">\r\n			<div class=\"topRight hideShow\">\r\n			<a href=\"javascript:toggle(\'weeklyWinners\', \'\', \'showHide\');\"><img id=\"weeklyWinners_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n			Last Weeks Winners<i>!</i> <small style=\"color:#000; font-size:11px;\">(<i><b>{$competition.weeklyWinners.startDate|date_format2:\"D n/j\"}</b> through <b>{$competition.weeklyWinners.endDate|date_format2:\"D n/j\"}</b></i>)</small></h2> \r\n		<div id=\"weeklyWinners\">\r\n		<table width=\"100%\" cellpadding=\"3\" cellspacing=\"0\"><tr>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<div class=\"cellHeadLarge\" style=\"width:auto;float:none;\">{$weeklyWinnersMethod1}</div>\r\n		<img src=\"{$skinFolder}images/winner_1.gif\" style=\"float:left;\" />\r\n		{strip}\r\n		{foreach name=\"method1\" from=$competition.weeklyWinners.$weeklyWinnersMethod1 item=\"username\"}\r\n			{assign var=\"userValue\" value=$competition.weeklyWinners.users.$username.$weeklyWinnersMethod1}\r\n			{if $smarty.foreach.method1.iteration gt 3 OR $userValue lte 0}{if $smarty.foreach.method1.iteration eq 1}Don\'t forget to update your progress so there will be winners next week{/if}<i>!</i>{php}break;{/php}\r\n			{elseif $smarty.foreach.method1.iteration eq 1}\r\n				<b>{$username|default:\"[ ?? ]\"|ucfirst}</b> led the way last week by \r\n				{if $weeklyWinnersMethod1 eq \'Weight Lost\'}losing <b>{$userValue}</b> pounds{elseif $weeklyWinnersMethod1 eq \'Percentage Weight Lost\'}losing <b>{$userValue}% of thier body weight{elseif $weeklyWinnersMethod1 eq \'Minutes Exercise\'}exercising <b>{$userValue}</b> minutes{elseif $weeklyWinnersMethod1 eq \'Distance Exercised\'}exercising <b>{$userValue}</b> miles{elseif $weeklyWinnersMethod1 eq \'Weight Gained\'}gaining <b>{$userValue}</b> pounds{else}<b>default</b>{/if}\r\n			{else}\r\n				{if $smarty.foreach.method1.iteration eq 2}, followed by <b>{$username|default:\"[ ?? ]\"|ucfirst}</b> with \r\n				{else}, and then <b>{$username|default:\"[ ?? ]\"|ucfirst}</b> with \r\n				{/if}\r\n				{if $weeklyWinnersMethod1 eq \'Weight Lost\'}<b>{$userValue}</b> pounds{elseif $weeklyWinnersMethod1 eq \'Percentage Weight Lost\'}<b>{$userValue}%{elseif $weeklyWinnersMethod1 eq \'Minutes Exercise\'}<b>{$userValue}</b> minutes{elseif $weeklyWinnersMethod1 eq \'Distance Exercised\'}<b>{$userValue}</b> miles{elseif $weeklyWinnersMethod1 eq \'Weight Gained\'}<b>{$userValue}</b> pounds{/if}\r\n			{/if}\r\n		{/foreach}\r\n		{/strip}\r\n		</td>\r\n	{/if}\r\n	{if $weeklyWinnersMethod2} \r\n		<td valign=\"top\" width=\"50%\">\r\n		<div class=\"cellHeadLarge\" style=\"width:auto;float:none;\">{$weeklyWinnersMethod2}</div>\r\n		<img src=\"{$skinFolder}images/winner_2.gif\" style=\"float:left;\" />\r\n		{* display var=$competition.weeklyWinners.users *}\r\n		{strip}\r\n		{foreach name=\"method2\" from=$competition.weeklyWinners.$weeklyWinnersMethod2 item=\"username\"}\r\n			{assign var=\"userValue\" value=$competition.weeklyWinners.users.$username.$weeklyWinnersMethod2}\r\n			\r\n			{if $smarty.foreach.method2.iteration gt 3 OR $userValue lte 0}{if $smarty.foreach.method2.iteration eq 1}Don\'t forget to update your progress so there will be winners next week{/if}<i>!</i>{php}break;{/php}\r\n			{elseif $smarty.foreach.method2.iteration eq 1}\r\n				<b>{$username|default:\"[ ?? ]\"|ucfirst}</b> won by \r\n				{if $weeklyWinnersMethod2 eq \'Weight Lost\'}losing <b>{$userValue}</b> pounds{elseif $weeklyWinnersMethod2 eq \'Percentage Weight Lost\'}losing <b>{$userValue}% of thier body weight{elseif $weeklyWinnersMethod2 eq \'Minutes Exercise\'}exercising <b>{$userValue}</b> minutes{elseif $weeklyWinnersMethod2 eq \'Distance Exercised\'}exercising <b>{$userValue}</b> miles{elseif $weeklyWinnersMethod2 eq \'Weight Gained\'}gaining <b>{$userValue}</b> pounds{/if}\r\n			{else}\r\n				{if $smarty.foreach.method2.iteration eq 2}, followed by <b>{$username|default:\"[ ?? ]\"|ucfirst}</b> with \r\n				{else}, and then <b>{$username|default:\"[ ?? ]\"|ucfirst}</b> with \r\n				{/if}\r\n				{if $weeklyWinnersMethod2 eq \'Weight Lost\'}<b>{$userValue}</b> pounds{elseif $weeklyWinnersMethod2 eq \'Percentage Weight Lost\'}<b>{$userValue}%{elseif $weeklyWinnersMethod2 eq \'Minutes Exercise\'}<b>{$userValue}</b> minutes{elseif $weeklyWinnersMethod2 eq \'Distance Exercised\'}<b>{$userValue}</b> miles{elseif $weeklyWinnersMethod2 eq \'Weight Gained\'}<b>{$userValue}</b> pounds{/if}\r\n			{/if}\r\n		{/foreach}\r\n		{/strip}\r\n		</td>\r\n	{/if}\r\n	{if $weeklyWinnersMethod1}\r\n	</tr></table></div>{/if}\r\n{/if}\r\n{* ********************************************************* *}\r\n\r\n{if $acm->isDomainAdmin() and $smarty.request.debug}\r\n	{display var=$competition}\r\n{/if} \r\n\r\n{* ******************************** COMPARISON GRAPHS ***************************************** *}\r\n\r\n<h2 class=\"withBG\"><a name=\"graph\"></a>\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'graphs\', \'\', \'showHide\');\"><img id=\"graphs_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	Comparison Graphs &nbsp; <small><i>No graph? <a href=\"http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" target=\"_blank\">click here</a> to download the free Flash Player plug-in.</i></small></h2>\r\n<div id=\"graphs\" style=\"display:block;\">\r\n	<table border=\"0\" cellpadding=\"0\" width=\"100%\">\r\n	{if $competition.scoringMethod eq \"Distance Exercised\"}\r\n		{assign var=\"graphURL\" value=\"?pg=flashgraph-frame&compId=`$competition.id`&type=distanceExercised&fillPrevious=0&precision=1&totalChange=0&format=wide\"}\r\n	{elseif $competition.scoringMethod eq \"Minutes Exercise\"}\r\n		{assign var=\"graphURL\" value=\"?pg=flashgraph-frame&compId=`$competition.id`&type=minutesExercise&fillPrevious=0&precision=1&totalChange=0&format=wide\"}\r\n	{else}  {* weight lost, percent lost, weight gained, etc... *}\r\n		{assign var=\"graphURL\" value=\"?pg=flashgraph-frame&compId=`$competition.id`&type=weight&fillPrevious=1&precision=0&totalChange=1&format=wide\"}\r\n	{/if}\r\n	<tr>\r\n		<td><div style=\"border:#999 1px solid;background-color:#FFF;padding:5px;\"><iframe name=\"graphwindow\" src=\"{$graphURL}\" frameborder=\"0\" width=\"625\" height=\"220\" scrollbars=\"no\"></iframe></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td valign=\"top\" align=\"center\" width=\"100%\">\r\n		<small><a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=weight&fillPrevious=1&precision=0&totalChange=1&format=wide\" target=\"graphwindow\">Change in Weight</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=weight&fillPrevious=1&precision=0&format=wide\" target=\"graphwindow\">Weight</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=fat&fillPrevious=0&precision=1&format=wide\" target=\"graphwindow\">Fat Intake</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=calories&fillPrevious=0&precision=1&format=wide\" target=\"graphwindow\">Calorie Intake</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=carbs&fillPrevious=0&precision=1&format=wide\" target=\"graphwindow\">Carb Intake</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=minutesExercise&fillPrevious=0&precision=1&format=wide\" target=\"graphwindow\">Exercise Minutes</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=distanceExercised&fillPrevious=0&precision=1&format=wide\" target=\"graphwindow\">Distance Exercised</a>\r\n		</small></td>\r\n	</tr>\r\n	{* <tr>\r\n		<td colspan=\"2\">\r\n			<h3 class=\"withBG\">Compare With Stars!</h3>\r\n			<div>To graphically and numerically compare to different \"stars\", click a \r\n				category and select one or more stars (hold down the CTRL or SHIFT \r\n				key to select/deselect multiple) then click the \"Compare Now!\" \r\n				button below. When you do, the graph above will be updated to include\r\n				the selected \"stars\" and you will see a comparison window appear below\r\n				to show how you compare.</div>\r\n\r\n			<!-- This DIV is initially Empty. Will contain IFRAME of comparison view. -->\r\n			<div id=\"compareFrameDiv\" style=\"width:375px; display:none;\"><iframe name=\"compareFrame\" src=\"?pg=compare-frame\" frameborder=\"0\" width=\"375\" height=\"180\" scrollbars=\"no\"></iframe></div>\r\n\r\n			<table xwidth=\"99%\" cellspacing=\"1\" cellpadding=\"1\">\r\n			<tr>\r\n			<td xwidth=\"45%\" align=\"center\">\r\n				<div class=\"chunk\" style=\"width:150px;\">\r\n					<a href=\"javascript://\" onclick=\"toggle(\'players\');\" class=\"button\">Players</a>\r\n					<div id=\"players\" style=\"display:block;\">\r\n						<select size=\"6\" id=\"comparePlayers\" name=\"compare[players]\" style=\"width:100%\">\r\n						{if $competition.style eq \'Group-vs-Group\'}\r\n							{foreach from=$competition.teams item=\"teams\" key=\"teamName\"}\r\n								{foreach from=$teams.users item=\"users\" key=\"userName\"}\r\n									{if $users.hideInitialWeight neq \"Yes\" OR $users.id eq $user->id}<option value=\"{$users.id}\">{$userName}</option>{/if}\r\n								{/foreach}\r\n							{/foreach}\r\n						{else}\r\n							{foreach from=$competition.users item=\"users\" key=\"username\" name=\"dateUpdated\"}\r\n								{if $users.hideInitialWeight neq \"Yes\" OR $users.id eq $user->id}<option value=\"{$users.id}\">{$username}</option>{/if}\r\n							{/foreach}\r\n						{/if}\r\n						</select>\r\n					</div>\r\n				</div>\r\n			</td>\r\n			<td xwidth=\"10%\" style=\"border-left:1px solid #CCC; border-right:1px solid #CCC;\" valign=\"middle\" align=\"center\"><b>Versus</b></td>\r\n			<td xwidth=\"45%\" align=\"center\">\r\n				<div class=\"chunk\" style=\"width:150px;\">\r\n					<a href=\"javascript://\" onclick=\"toggle(\'animals\');\" class=\"button\">Animals</a>\r\n					<div id=\"animals\" style=\"display:none;\">\r\n						<select size=\"6\" id=\"compareAnimals\" multiple=\"multiple\" name=\"compare[animals]\" style=\"width:100%;\">\r\n						{foreach from=$stars.animals item=\"row\"}\r\n							<option value=\"{$row.id}\">{$row.name}</option>\r\n						{/foreach}\r\n						</select>\r\n					</div>\r\n				</div>\r\n				<div class=\"chunk\" style=\"width:150px;\">\r\n					<a href=\"javascript://\" onclick=\"toggle(\'athletes\');\" class=\"button\">Athletes</a>\r\n					<div id=\"athletes\" style=\"display:none;\">\r\n						<select size=\"6\" id=\"compareAthletes\" multiple=\"multiple\" name=\"compare[athletes]\" style=\"width:100%;\">\r\n						{foreach from=$stars.athletes item=\"row\"}\r\n							<option value=\"{$row.id}\">{$row.name}</option>\r\n						{/foreach}\r\n						</select>\r\n					</div>\r\n				</div>\r\n				<div class=\"chunk\" style=\"width:150px;\">\r\n					<a href=\"javascript://\" onclick=\"toggle(\'movies\');\" class=\"button\">Movie Stars</a>\r\n					<div id=\"movies\" style=\"display:none;\">\r\n						<select size=\"6\" id=\"compareMovies\" multiple=\"multiple\" name=\"compare[movies]\" style=\"width:100%;\">\r\n						{foreach from=$stars.movies item=\"row\"}\r\n							<option value=\"{$row.id}\">{$row.name}</option>\r\n						{/foreach}\r\n						</select>\r\n					</div>\r\n				</div>\r\n				<div class=\"chunk\" style=\"width:150px;\">\r\n					<a href=\"javascript://\" onclick=\"toggle(\'politics\');\" class=\"button\">Politicians</a>\r\n					<div id=\"politics\" style=\"display:none;\">\r\n						<select size=\"6\" id=\"comparePolitics\" multiple=\"multiple\" name=\"compare[politics]\" style=\"width:100%;\">\r\n						{foreach from=$stars.politics item=\"row\"}\r\n							<option value=\"{$row.id}\">{$row.name}</option>\r\n						{/foreach}\r\n						</select>\r\n					</div>\r\n				</div>\r\n			</td>\r\n			</tr>\r\n			<tr>\r\n			<td colspan=\"3\" align=\"center\">\r\n				<br /><a href=\"#graph\" class=\"button\" onclick=\"goCompareGraph();\"> &nbsp; &gt; Compare Now! &lt; &nbsp; </a><br />\r\n			</td>\r\n			</table>\r\n		</td>\r\n	</tr> *}\r\n	</table>\r\n<br />\r\n</div>\r\n\r\n{*   comparisons currently disabled\r\n{include_php file=\"shared_handle:getStarStats\"}\r\n\r\n<script language=\"javascript\">{literal}\r\n\r\nfunction goCompareGraph() {\r\n	var elementIds = Array(\'compareAnimals\', \'compareAthletes\', \'compareMovies\', \'comparePolitics\');\r\n	var obj = \'\';\r\n	var ids = \'\';\r\n\r\n	for (var a = 0; a < elementIds.length; a++) {\r\n		obj = document.getElementById(elementIds[a]);\r\n\r\n		for (var x = 0; x < obj.options.length; x++) {\r\n			if (obj.options[x].selected)\r\n				ids += obj.options[x].value + \',\';\r\n		}\r\n	}\r\n\r\n	if (ids) {\r\n		ids = ids.replace(/\\,$/, \'\');\r\n		var url = \'?pg=flashgraph-frame&compId={/literal}{$competition.id}{literal}&type=weight&fillPrevious=1&precision=0&stars=\' + ids;\r\n		graphwindow.location.replace(url);\r\n\r\n		// Now update the content of the compare frame.\r\n		obj = document.getElementById(\'compareFrameDiv\');\r\n		obj.style.display = \'block\';\r\n		\r\n		obj = document.getElementById(\'comparePlayers\');\r\n		var userIds = \'\';\r\n\r\n		for (var x = 0; x < obj.options.length; x++)\r\n			if (obj.options[x].selected)\r\n				userIds += obj.options[x].value;\r\n\r\n		compareFrame.location.replace(\'?pg=compare-frame&stars=\' + ids + \'&userId=\' + userIds);\r\n	} else {\r\n		alert (\'Click on one of the categories to the left and select as many \"stars\" as you would like.\\n\\nTo select multiple \"stars\", hold down the SHIFT or CTRL key while clicking on their names.\\n\\nWhen finished, click this link again to see the comparison.\');\r\n	}\r\n}\r\n\r\n{/literal}</script>\r\n*}  {* End commented out comparison stuff *}\r\n\r\n{* ******************************** GROUP TEAMS/PLAYERS SUMMARY W/MOVING ***************************************** *}\r\n{if $competition.style eq \'Group-vs-Group\'}\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'teams\', \'\', \'showHide\');\"><img id=\"teams_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	The Teams &nbsp; <small><i>Assignments and statistics</i></small></h2>\r\n<div id=\"teams\" style=\"display:block;\">\r\n<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\"><tr><td>\r\n	{if $isManager}\r\n		<form name=\"changeTeam\" action=\"index.php\" method=\"POST\" style=\"margin:0px;\">\r\n			<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n			<input type=\"hidden\" name=\"cid\" value=\"{$competition.id}\">\r\n			<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n	{/if}\r\n		{assign var=\"minEx\" value=\"Minutes Exercise\"}\r\n		{assign var=\"distEx\" value=\"Distance Exercised\"}\r\n		{assign var=\"pctLst\" value=\"Percentage Weight Lost\"}\r\n		{assign var=\"wtLst\" value=\"Percentage Weight Lost\"}\r\n		{foreach from=$competition.teams item=\"teams\" key=\"teamName\"}\r\n			{counter name=\"counterI\" start=\"0\" print=0}\r\n			<div id=\"playersList{counter}\" style=\"float:left;width:310px;overflow:hidden;word-wrap:nowrap; margin:0px 5px 5px 0px;\">\r\n			<h4>{if $teams.name eq \"Waiting to Join\"}Not assigned to a team{else}{$teams.name|default:\"&nbsp;\"}{/if}</h4>\r\n		{if $scoringMethod|regex_match:\"/exercise/i\"}\r\n			<span class=\"cellHeadLarge\">Name</span>\r\n			<span class=\"cellHeadSmall\">Min.</span>\r\n			<span class=\"cellHeadSmall\">Dist.</span>\r\n			<span class=\"cellHeadSmall\">Update</span><br />\r\n			{foreach from=$teams.users item=\"users\" key=\"userName\"}\r\n				<span class=\"cellLarge\" style=\"text-align:left;\"><small>{if $isManager}<input type=\"checkbox\" name=\"changeTeam[players][{$userName}]\" style=\"width:14px;height:14px;margin:0px 2px;\" />{/if}{$userName}</small></span>\r\n				<span class=\"cellSmall\"><small>{$users.$minEx|default:\"-\"|replace:\".00\":\"\"}</small></span>\r\n				<span class=\"cellSmall\"><small>{$users.$distEx|default:\"-\"|replace:\".00\":\"\"}</small></span>\r\n				<span class=\"cellSmall\"><small>{$users.dateOfEntry|date_format2:\"n/j/y\"|default:\"-\"}</small></span>\r\n			{foreachelse}\r\n				{* No players assigned to this team. *}\r\n			{/foreach}\r\n		{else}\r\n			{* display var=$users *}\r\n			<span class=\"cellHeadLarge\">Name</span>\r\n			{* <span class=\"cellHeadTiny\">Wt.</span>\r\n			<span class=\"cellHeadTiny\">{if $scoringMethod eq \"Percentage Weight Lost\"}%\r\n						{elseif $scoringMethod eq \"Weight Lost\"}Lost\r\n						{elseif $scoringMethod eq \"Weight Gained\"}Gain\r\n						{else}Lbs{/if}</span>\r\n			<span class=\"cellHeadTiny\">{if $scoringMethod eq \"Percentage Weight Lost\"}Lost{else}%{/if}</span> *}\r\n			<span class=\"cellHeadTiny\">%</span>\r\n			<span class=\"cellHeadSmall\">Update</span><br />\r\n			{foreach from=$teams.users item=\"users\" key=\"userName\"}\r\n				<span class=\"cellLarge\" style=\"clear:left;text-align:left;\"><small>{if $isManager}<input type=\"checkbox\" name=\"changeTeam[players][{$userName}]\" style=\"width:14px;height:14px;margin:0px 2px;\" />{/if}{$userName}</small></span>\r\n				{* <span class=\"cellTiny\"><small>{if $users.hideInitialWeight neq \"Yes\"}{if $users.CurrentWeight eq \'\'}-{else}{$users.CurrentWeight}{/if}{else}Hidden{/if}</small></span>\r\n				<span class=\"cellTiny\"><small>{if $scoringMethod eq \"Percentage Weight Lost\"}{$users.$scoringMethod|number_format:\"2\"|replace:\".00\":\"\"}{else}{$users.$scoringMethod|default:\"-\"|replace:\".00\":\"\"}{/if}</small></span>\r\n				<span class=\"cellTiny\"><small>{if $scoringMethod eq \"Percentage Weight Lost\"}{$users.$wtLost|default:\"-\"|replace:\".00\":\"\"}{else}{if $users.hideInitialWeight neq \"Yes\"}{$users.$pctLst|number_format:\"2\"|replace:\".00\":\"\"}{else}-{/if}{/if}</small></span> \r\n				*}\r\n				<span class=\"cellTiny\"><small>{if $users.hideInitialWeight neq \"Yes\"}{$users.$pctLst|number_format:\"2\"|replace:\".00\":\"\"}{else}-{/if}</span>\r\n				<span class=\"cellSmall\"><small>{$users.dateOfEntry|date_format2:\"n/j/y\"|default:\"-\"}</small></span><br />\r\n			{foreachelse}\r\n				{* No players assigned to this team. *}\r\n			{/foreach}\r\n		{/if}\r\n			</div>\r\n		{/foreach}\r\n	{if $isManager}\r\n		<br />\r\n		<select name=\"changeTeam[team]\">\r\n			<option value=\"\">Move selected players to...</option>\r\n			{foreach from=$competition.teams item=\"newTeams\" key=\"newTeamName\"}\r\n				{*if $newTeams.name ne $teams.name and $newTeams.name ne \"Waiting to Join\"*}\r\n				{if $newTeams.name ne \"Waiting to Join\"}\r\n					<option value=\"{$newTeams.name}\">{$newTeams.name}</option>\r\n				{/if}\r\n			{/foreach}\r\n		</select><br />\r\n		<input type=\"submit\" class=\"button\" value=\"Submit Changes\">\r\n		</form>\r\n	{/if}\r\n</td></tr></table>\r\n</div>\r\n{/if}\r\n\r\n{* ********************** LEADERS ******************************* *}\r\n{* <div class=\"chunk300\">\r\n<h2 class=\"withBG\">Leaders</h2>\r\n<div id=\"leadersList\" class=\"contentColumn\">\r\n	<span class=\"cellHeadLarge\">{if $competition.style eq \'Group-vs-Group\'}# of members{else}Competitor{/if}</span\r\n	><span class=\"cellHeadSmall\">{if $scoringMethod eq \"Percentage Weight Lost\"}% Lost{elseif $scoringMethod eq \"Weight Lost\"}lbsLost{elseif $scoringMethod eq \"Weight Gained\"}lbsGain{elseif $scoringMethod eq \"Minutes Exercise\"}Min.{elseif $scoringMethod eq \"Distance Exercised\"}Dist.{/if}</span\r\n	><br />\r\n{if $competition.style eq \'Group-vs-Group\'}\r\n	{foreach from=$competition.teams item=\"compUser\" key=\"username\"}\r\n	<span class=\"cell\"><small>{$compUser.userCount}</small></span><br />\r\n	{/foreach}\r\n{else}\r\n	{foreach from=$competition.users item=\"compUser\" key=\"username\" name=\"leaders\"}\r\n	{*$smarty.foreach.leaders.iteration* }<span class=\"cellLarge\"><small>{$username}</small></span>\r\n	<span class=\"cellSmall\"><small>{if $scoringMethod eq \"Percentage Weight Lost\"}{$compUser.$scoringMethod|number_format:\"2\"} %{else}{$compUser.$scoringMethod}{/if}</small></span><br />\r\n	{/foreach}\r\n{/if}\r\n</div> *}'),(2695,102,0.63,'smarty','0','Changed note for',1103408479,2,'67.166.75.78','{assign var=\"pgLayout\" value=\"layouts/default.tpl\"}\r\n{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\r\n<!-- return:{$smarty.request.signup.return} -->\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n\r\n<h1 class=\"underline\">Sign Up - Step 2 - Your Profile</h1>\r\n<p>This step includes recording you initial weight and goals. Each field will be used to calculate \r\nother factors including your Body Mass Index. To hide your body weight from others select \'Yes.\' \r\nBy selecting \'Yes\' others will only see your change in weight (i.e. -5 lbs).<br />\r\n<br />\r\n<small> * indicates a required field</small></p>\r\n\r\n{include_php file=\"shared_handle:signup.details\"}\r\n\r\n<div>\r\n\r\n{toc_next assign=\"next\"}\r\n{toc_prev assign=\"prev\"}\r\n<form name=\"signup\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$next.pageName}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr><td>\r\n\r\n<div class=\"chunk300\" style=\"width:310px;\">\r\n<h2 class=\"withBG\">Personal Profile</h2>\r\n*Date of Birth:\r\n{get_month name=\"signup[dob][month]\"}\r\n{get_day   name=\"signup[dob][day]\"}\r\n{math assign=\"end_year\" equation=\"x - 18\" x=$smarty.now|date_format2:\"Y\"}  {* Minimum age is 18 years for now *}\r\n{get_year  name=\"signup[dob][year]\" start=\"1915\" end=$end_year}<br />\r\n\r\n*Gender: \r\n<input type=\"radio\" name=\"signup[gender]\" value=\"not specified\" checked />Not Specified &nbsp;<input type=\"radio\" name=\"signup[gender]\" value=\"male\" />Male &nbsp; <input type=\"radio\" name=\"signup[gender]\" value=\"female\" />Female &nbsp;<br />\r\n\r\n*Current Weight:\r\n<input type=\"text\" name=\"signup[initialWeight]\" size=\"4\" maxlength=\"3\" class=\"textInput\" style=\"width:25px;\" /><br />\r\n\r\n*Hide Weight From Others?:\r\n<input type=\"radio\" name=\"signup[hideInitialWeight]\" value=\"Yes\"{if $signup[hideInitialWeight] neq \"No\"} checked{/if} /> Yes &nbsp;<input type=\"radio\" name=\"signup[hideInitialWeight]\" value=\"No\"{if $signup[hideInitialWeight] eq \"No\"} checked{/if} /> No &nbsp;<br />\r\n\r\n*Goal Weight:\r\n<input type=\"text\" name=\"signup[goalWeight]\" size=\"4\" maxlength=\"3\" class=\"textInput\" style=\"width:25px;\" /><br />\r\n\r\n*Height:\r\n<input type=\"text\" name=\"signup[height][feet]\" class=\"textInput\" maxlength=\"1\" style=\"width:18px;\" /> feet, \r\n<input type=\"text\" name=\"signup[height][inches]\" class=\"textInput\" maxlength=\"2\" style=\"width:20px;\" /> inches<br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Goal</h2>\r\n        This will show up on your about page, and can be changed often.\r\n	<textarea name=\"signup[personalGoal]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Motto</h2>\r\n        This will show up on your about page, and can be changed often.\r\n	<textarea name=\"signup[personalSaying]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Your Signature</h2>\r\n        Be creative with your signature! This will go at the bottom of the messages you post on the discussion board and can be changed often.\r\n	<textarea name=\"signup[signature]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<br />\r\n	{if $prev.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\">&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\">{/if}\r\n</div>\r\n\r\n{stored_object_fill_form object=$signup name=\"signup\"}\r\n\r\n</form>\r\n</div>'),(2696,176,0.10,'smarty','0','Page created.',1103409163,2,'67.166.75.78',''),(2697,176,0.11,'smarty','0','Page created.',1103409179,2,'67.166.75.78','{if $user->isLoggedIn()}\r\n	{store_messages}	\r\n	{redirect href=\"?pg=myhome\"}\r\n{/if}\r\n{assign var=\"pgLayout\" value=\"file:./layouts/home.tpl\"}'),(2698,1,2.89,'smarty','0','Added redirect to signup/begin if on a company vanity.',1103514811,2,'67.166.75.78','{if $user->isLoggedIn()}\r\n	{store_messages}	\r\n	{redirect href=\"?pg=myhome\"}\r\n{elseif $smarty.session.company.companyName}\r\n	{store_messages}\r\n	{redirect href=\"?pg=signup/begin\"}\r\n{/if}\r\n{assign var=\"pgLayout\" value=\"file:./layouts/home.tpl\"}'),(2710,175,0.21,'smarty','0','Page created.',1103518086,2,'67.166.75.78','{if $user->isLoggedIn()}\r\n	{redirect href=\"index.php?pg=myhome\"}\r\n{else}\r\n{assign var=\"hideLogin\" value=\"true\"}\r\n<div style=\"width:auto;\">\r\n	<div>\r\n		<div class=\"chunk300\">\r\n			<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n			<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n			<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:$signup.returndefault:\"home\"}\" />\r\n			<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n			<input type=\"hidden\" name=\"forgotPassword\" value=\"\" />\r\n		\r\n			<h2 class=\"withBG\">Log In:</h2>\r\n				Username: <input id=\"usernameBox2\" type=\"text\" name=\"username\" class=\"textInput\" size=\"12\" /><br />\r\n				Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n				<div class=\"underline\">&nbsp;</div>\r\n				<a href=\"javascript:document.loginForm2.submit();\">Submit</a> | <a href=\"javascript:doForgotPassword(\'usernameBox2\', \'loginForm2\');\">Forgot Password?</a>\r\n			</form>\r\n			<script language=\"javascript\">\r\n				document.forms.loginForm2.username.focus();\r\n			</script>\r\n		</div>\r\n	</div>\r\n	<div align=\"right\">\r\n		<a href=\"?pg=signup/begin\">Sign Up Now!</a>\r\n	</div>\r\n</div>\r\n{/if}'),(2711,175,0.22,'smarty','0','Page created.',1103518108,2,'67.166.75.78','{if $user->isLoggedIn()}\r\n	{redirect href=\"index.php?pg=myhome\"}\r\n{else}\r\n{assign var=\"hideLogin\" value=\"true\"}\r\n<div style=\"width:auto;\">\r\n	<div>\r\n		<div class=\"chunk300\">\r\n			<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n			<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n			<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:$signup.returndefault:\"home\"}\" />\r\n			<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n			<input type=\"hidden\" name=\"forgotPassword\" value=\"\" />\r\n		\r\n			<h2 class=\"withBG\">Log In:</h2>\r\n				Username: <input id=\"usernameBox2\" type=\"text\" name=\"username\" class=\"textInput\" size=\"12\" /><br />\r\n				Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n				<div class=\"underline\">&nbsp;</div>\r\n				<a href=\"javascript:document.loginForm2.submit();\">Submit</a> | <a href=\"javascript:doForgotPassword(\'usernameBox2\', \'loginForm2\');\">Forgot Password?</a>\r\n			</form>\r\n			<script language=\"javascript\">\r\n				document.forms.loginForm2.username.focus();\r\n			</script>\r\n		</div>\r\n	</div>\r\n	<div align=\"right\" style=\"clear:left;\">\r\n		<a href=\"?pg=signup/begin\">Sign Up Now!</a>\r\n	</div>\r\n</div>\r\n{/if}'),(1873,124,0.56,'smarty','0','cleaned up the payment recieved (isComplete) section',1088111294,3,'208.187.110.149','<h1 class=\"underline\">Competition Entry Fee Payment</h1>\r\n\r\n{include_php file=\"shared_handle:competition.prepareContribution\"}\r\n{include_php file=\"shared_handle:competition.processContribution\"}\r\n\r\n{select_query assign=\"userInfo\" return=\"row\"}\r\n	firstName, lastName, address1, address2, city, state, country, zip\r\n	FROM _users	\r\n	WHERE id = \'{$user->id}\'\r\n{/select_query}\r\n\r\n{if $isComplete}\r\n	<p>You must click the continue button to finish the competition creation process, and deliver the invitation emails.</p>\r\n	\r\n	<div class=\"hBox\" style=\"text-align:right;\">\r\n		<a href=\"?pg={$smarty.request.return|default:\"home\"}\" class=\"link\">Continue</a>\r\n	</div>\r\n{else}\r\n\r\n<form name=\"potContribution\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n<input type=\"hidden\" name=\"cAction\" value=\"process\" />\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"no_exire_keep_alive\" value=\"cid newcomp return\" />\r\n<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:\"home\"}\" />\r\n<input type=\"hidden\" name=\"cid\" value=\"{$smarty.request.cid}\" />\r\n<input type=\"hidden\" name=\"newcomp\" value=\"{$smarty.request.newcomp}\">\r\n\r\n{if $competition}\r\n\r\n<input type=\"hidden\" name=\"contribution[cid]\" value=\"{$competition.id|default:\"newcomp\"}\" />\r\n<input type=\"hidden\" name=\"contribution[total]\" value=\"{$competition.total}\" />\r\n<input type=\"hidden\" name=\"contribution[entryFee]\" value=\"{$competition.entryFee}\" />\r\n<input type=\"hidden\" name=\"contribution[individualPotAmount]\" value=\"{$competition.individualPotAmount}\" />\r\n\r\n<p>You are about to pay the entry fee for the following competition. Please make sure this is the correct competition before proceding!</p>\r\n\r\nCompetition Title: <b>{$competition.title}</b><br />\r\nCompetition Type: <b>{$competition.type|niceText}, {$competition.style}</b><br />\r\nStarted By: <b>{$competition.firstName} {$competition.lastName} ({$competition.username})</b><br />\r\nTerm: <b>{$competition.startDate|date_format2:\"M j, Y\"} to {$competition.endDate|date_format2:\"M j, Y\"}</b><br />\r\n<br />\r\n{if $competition.individualPotAmount}\r\n	Individual Pot Contribution Amount: <b>${$competition.individualPotAmount|number_format:\"2\"}</b> (You are agreeing to pay the winner this amount when the competition is over!)<br />\r\n{else}\r\n	There is no individual contribution required for this competition, as it is funded by third party donations ({$competition.potMethod}).<br />\r\n{/if}\r\nWeightLossWars.com Entry Fee: <b>${$competition.entryFee|number_format:\"2\"}</b><br />\r\n<h2 class=\"underline2\">&nbsp;</h2>\r\n<b>Total Due:</b> <em>${$competition.total|number_format:\"2\"}</em><br />\r\n{if $order.invoiceNum}<input type=\"hidden\" name=\"orderInvoiceNum\" value=\"{$order.invoiceNum}\" />{/if}\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">\r\n		<div class=\"topRight hideShow\"><a href=\"javascript:toggle(\'billInfo\', \'\', \'showHide\');\"><img id=\"billInfo_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n		Billing Information</h2>	\r\n	<div id=\"billInfo\" style=\"display:{if $success.billIsValid}none{else}block{/if};\">\r\n	First Name:\r\n	<input type=\"text\" name=\"bill[firstname]\" value=\"{$smarty.request.bill.firstname|default:$userInfo.firstName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Last Name:\r\n	<input type=\"text\" name=\"bill[lastname]\" value=\"{$smarty.request.bill.lastname|default:$userInfo.lastName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Company:\r\n	<input type=\"text\" name=\"bill[company]\" value=\"{$smarty.request.bill.company|default:$userInfo.company}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Address:\r\n	<input type=\"text\" name=\"bill[address1]\" value=\"{$smarty.request.bill.address1|default:$userInfo.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"bill[address2]\" value=\"{$smarty.request.bill.address2|default:$userInfo.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	City:\r\n	<input type=\"text\" name=\"bill[city]\" value=\"{$smarty.request.bill.city|default:$userInfo.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	State, Zip:\r\n	<input type=\"text\" name=\"bill[state]\" value=\"{$smarty.request.bill.state|default:$userInfo.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"bill[zip]\" value=\"{$smarty.request.bill.zip|default:$userInfo.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n\r\n	Country:\r\n	<input type=\"text\" name=\"bill[country]\" value=\"{$smarty.request.bill.country|default:$userInfo.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /><br />\r\n\r\n	Phone:\r\n	<input type=\"text\" name=\"bill[phone]\" value=\"{$smarty.request.bill.phone|default:$userInfo.phone}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	Email:\r\n	<input type=\"text\" name=\"bill[email]\" value=\"{$smarty.request.bill.email|default:$userInfo.email}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n	\r\n	</div>\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Payment Information</h2>\r\n	Payment Method:\r\n	<select name=\"bill[paymentMethod]\" size=\"1\">\r\n		<option value=\"visa\"{if $smarty.request.bill.paymentMethod eq \"visa\"} selected{/if}>Visa</option>\r\n		<option value=\"mastercard\"{if $smarty.request.bill.paymentMethod eq \"mastercard\"} selected{/if}>Mastercard</option>\r\n		<option value=\"american express\"{if $smarty.request.bill.paymentMethod eq \"american express\"} selected{/if}>American Express</option>\r\n		<option value=\"discover\"{if $smarty.request.bill.paymentMethod eq \"discover\"} selected{/if}>Discover</option>\r\n	</select><br />\r\n\r\n	Card Number:\r\n	<input type=\"text\" name=\"bill[ccnum]\" value=\"\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Expiration Date: <small>(MMYY)</small>\r\n	<input type=\"text\" name=\"bill[ccexp]\" value=\"\" class=\"textInput\" maxlength=\"4\" style=\"width:50px;\" /><br />\r\n</div>\r\n</td></tr></table>\r\n<div class=\"hBox\" style=\"text-align:right;\">\r\n	<a href=\"?pg=newcomp/review\" class=\"link\">Back to Review</a> | \r\n	<a href=\"javascript://\" onclick=\"document.forms[\'potContribution\'].submit(); return false;\" class=\"link\">Submit Contribution</a>\r\n</div>\r\n<div id=\"fMatches\" class=\"xFloat\" style=\"padding:3px; background-color:#FFFFFF; border:#666666 1px solid;\"></div>\r\n\r\n{if $modules.spadeAutoComplete}\r\n	<script language=\"JavaScript\" src=\"{$modules.x}\"></script>\r\n	<script language=\"JavaScript\" src=\"{$modules.spadeAutoComplete}\"></script>\r\n	<script language=\"JavaScript\">\r\n		var states = new Array(\'AL\',\'AK\',\'AS\',\'AZ\',\'AR\',\'CA\',\'CO\',\'CT\',\'DE\',\'DC\',\'FL\',\'GA\',\'GU\',\r\n					\'HI\',\'ID\',\'IL\',\'IN\',\'IA\',\'KS\',\'KY\',\'LA\',\'ME\',\'MH\',\'MD\',\'MA\',\r\n					\'MI\',\'MN\',\'MS\',\'MO\',\'MT\',\'NE\',\'NV\',\'NH\',\'NJ\',\'NM\',\'NY\',\'NC\',\r\n					\'ND\',\'OH\',\'OK\',\'OR\',\'PW\',\'PA\',\'PR\',\'RI\',\'SC\',\'SD\',\'TN\',\'TX\',\r\n					\'UT\',\'VT\',\'USVI\',\'VA\',\'WA\',\'WV\',\'WI\',\'WY\',\'AB\',\'BC\',\'LB\',\'MB\',\r\n					\'NB\',\'NF\',\'NT\',\'NS\',\'ON\',\'PE\',\'PQ\',\'SK\',\'YT\');\r\n		initAutoComplete(\'bill[state]\', \'states\', true);\r\n\r\n		{* var countries = new Array (\'United States of America\', \'Canada\', \'Germany\', \'United Kingdom\', \'India\', \'---------------------\', \'Albania\', \'Algeria\', \'Andorra\', \'Angola\', \'Anguilla\', \'Antarctica\', \'Antigua and Barbuda\', \'Argentina\', \'Armenia\', \'Aruba\', \'Australia\', \'Austria\', \'Azerbaijan\', \'Bahamas\', \'Bahrain\', \'Bangladesh\', \'Barbados\', \'Belarus\', \'Belgium\', \'Belize\', \'Benin\', \'Bermuda\', \'Bhutan\', \'Bolivia\', \'Bosnia and Herzegowina\', \'Botswana\', \'Bouvet Island\', \'Brazil\', \'British Ind. Ocean Terr\', \'Brunei Darussalam\', \'Bulgaria\', \'Burkina Faso\', \'Burundi\', \'Cambodia\', \'Cameroon\', \'Cape Verde\', \'Cayman Islands\', \'Central African Rep.\', \'Chad\', \'Chile\', \'China\', \'Christmas Island\', \'Cocoa (Keeling) Isl.\', \'Colombia\', \'Comoros\', \'Congo\', \'Cook Islands\', \'Costa Rica\', \'Cote Divoire\', \'Hrvatska\', \'Cyprus\', \'Czech Republic\', \'Denmark\', \'Djibouti\', \'Dominica\', \'Dominican Republic\', \'East Timor\', \'Ecuador\', \'Egypt\', \'El Salvador\', \'Equatorial Guinea\', \'Eritrea\', \'Estonia\', \'Ethiopia\', \'Falkland Isl. (Malvinas)\', \'Faroe Islands\', \'Fiji\', \'Finland\', \'France\', \'French Guiana\', \'French Polynesia\', \'French Southern Terr.\', \'Gabon\', \'Gambia\', \'Georgia\', \'Ghana\', \'Gibraltar\', \'Greece\', \'Greenland\', \'Grenada\', \'Guadeloupe\', \'Guatemala\', \'Guinea\', \'Guinea-Bissau\', \'Guyana\', \'Haiti\', \'Heard & McDonald Isl.\', \'Honduras\', \'Hong Kong\', \'Hungary\', \'Iceland\', \'Indonesia\', \'Ireland\', \'Israel\', \'Italy\', \'Jamaica\', \'Japan\', \'Jordan\', \'Kazakhstan\', \'Kenya\', \'Kiribati\', \'Republic of Korea\', \'Kuwait\', \'Kyrgyzstan\', \'Lao Peoples Dem. Rep.\', \'Latvia\', \'Lebanon\', \'Lesotho\', \'Liberia\', \'Liechtenstein\', \'Lithuania\', \'Luxembourg\', \'Macau\', \'Macedonia\', \'Madagascar\', \'Malawi\', \'Malaysia\', \'Maldives\', \'Mali\', \'Malta\', \'Marshall Islands\', \'Martinique\', \'Mauritania\', \'Mauritius\', \'Mayotte\', \'Mexico\', \'Micronesia: Fed. States of\', \'Moldova: Republic of\', \'Monaco\', \'Mongolia\', \'Montserrat\', \'Morocco\', \'Mozambique\', \'Myanmar\', \'Namibia\', \'Nauru\', \'Nepal\', \'Netherlands\', \'Netherlands Antilles\', \'New Caledonia\', \'New Zealand\', \'Nicaragua\', \'Niger\', \'Nigeria\', \'Niue\', \'Norfolk Island\', \'Northern Mariana Isl.\', \'Norway\', \'Oman\', \'Pakistan\', \'Palau\', \'Panama\', \'Papua New Guinea\', \'Paraguay\', \'Peru\', \'Philippines\', \'Pitcairn\', \'Poland\', \'Portugal\', \'Qatar\', \'Reunion\', \'Romania\', \'Russian Federation\', \'Rwanda\', \'Saint Kitts and Nevis\', \'Saint Lucia\', \'St. Vincent & Grenadines\', \'Samoa\', \'San Marino\', \'Sao Tome and Principe\', \'Saudi Arabia\', \'Senegal\', \'Seychelles\', \'Sierra Leone\', \'Singapore\', \'Slovakia\', \'Slovenia\', \'Solomon Islands\', \'Somalia\', \'South Africa\', \'S. Georgia & S. Sandwich Isl.\', \'Spain\', \'Sri Lanka\', \'St. Helena\', \'St. Pierre and Miquelon\', \'Suriname\', \'Svalbard & Jan Mayen Isl.\', \'Swaziland\', \'Sweden\', \'Switzerland\', \'Syrian Arab Republic\', \'Taiwan\', \'Tajikistan\', \'Tanzania: United Rep. of\', \'Thailand\', \'Togo\', \'Tokelau\', \'Tonga\', \'Trinidad and Tobago\', \'Tunisia\', \'Turkey\', \'Turkmenistan\', \'Turks and Caicos Islands\', \'Tuvalu\', \'Uganda\', \'Ukraine\', \'United Arab Emirates\', \'US Minor Outlying Isl.\', \'Uruguay\', \'Uzbekistan\', \'Vanuatu\', \'Vatican City (Holy See)\', \'Venezuela\', \'Vietnam\', \'Virgin Islands (British)\', \'Wallis and Futuna Islands\', \'Western Sahara\', \'Yemen\', \'Yugoslavia\', \'Zaire\', \'Zambia\', \'Zimbabwe\', \'Not Listed\'); *}\r\n		var countries = new Array (\'USA\', \'Canada\', \'Germany\', \'UK\', \'India\', \'Albania\', \'Algeria\', \'Andorra\', \'Angola\', \'Anguilla\', \'Antarctica\', \'Antigua and Barbuda\', \'Argentina\', \'Armenia\', \'Aruba\', \'Australia\', \'Austria\', \'Azerbaijan\', \'Bahamas\', \'Bahrain\', \'Bangladesh\', \'Barbados\', \'Belarus\', \'Belgium\', \'Belize\', \'Benin\', \'Bermuda\', \'Bhutan\', \'Bolivia\', \'Bosnia and Herzegowina\', \'Botswana\', \'Bouvet Island\', \'Brazil\', \'British Ind. Ocean Terr\', \'Brunei Darussalam\', \'Bulgaria\', \'Burkina Faso\', \'Burundi\', \'Cambodia\', \'Cameroon\', \'Cape Verde\', \'Cayman Islands\', \'Central African Rep.\', \'Chad\', \'Chile\', \'China\', \'Christmas Island\', \'Cocoa (Keeling) Isl.\', \'Colombia\', \'Comoros\', \'Congo\', \'Cook Islands\', \'Costa Rica\', \'Cote Divoire\', \'Hrvatska\', \'Cyprus\', \'Czech Republic\', \'Denmark\', \'Djibouti\', \'Dominica\', \'Dominican Republic\', \'East Timor\', \'Ecuador\', \'Egypt\', \'El Salvador\', \'Equatorial Guinea\', \'Eritrea\', \'Estonia\', \'Ethiopia\', \'Falkland Isl. (Malvinas)\', \'Faroe Islands\', \'Fiji\', \'Finland\', \'France\', \'French Guiana\', \'French Polynesia\', \'French Southern Terr.\', \'Gabon\', \'Gambia\', \'Georgia\', \'Ghana\', \'Gibraltar\', \'Greece\', \'Greenland\', \'Grenada\', \'Guadeloupe\', \'Guatemala\', \'Guinea\', \'Guinea-Bissau\', \'Guyana\', \'Haiti\', \'Heard & McDonald Isl.\', \'Honduras\', \'Hong Kong\', \'Hungary\', \'Iceland\', \'Indonesia\', \'Ireland\', \'Israel\', \'Italy\', \'Jamaica\', \'Japan\', \'Jordan\', \'Kazakhstan\', \'Kenya\', \'Kiribati\', \'Republic of Korea\', \'Kuwait\', \'Kyrgyzstan\', \'Lao Peoples Dem. Rep.\', \'Latvia\', \'Lebanon\', \'Lesotho\', \'Liberia\', \'Liechtenstein\', \'Lithuania\', \'Luxembourg\', \'Macau\', \'Macedonia\', \'Madagascar\', \'Malawi\', \'Malaysia\', \'Maldives\', \'Mali\', \'Malta\', \'Marshall Islands\', \'Martinique\', \'Mauritania\', \'Mauritius\', \'Mayotte\', \'Mexico\', \'Micronesia: Fed. States of\', \'Moldova: Republic of\', \'Monaco\', \'Mongolia\', \'Montserrat\', \'Morocco\', \'Mozambique\', \'Myanmar\', \'Namibia\', \'Nauru\', \'Nepal\', \'Netherlands\', \'Netherlands Antilles\', \'New Caledonia\', \'New Zealand\', \'Nicaragua\', \'Niger\', \'Nigeria\', \'Niue\', \'Norfolk Island\', \'Northern Mariana Isl.\', \'Norway\', \'Oman\', \'Pakistan\', \'Palau\', \'Panama\', \'Papua New Guinea\', \'Paraguay\', \'Peru\', \'Philippines\', \'Pitcairn\', \'Poland\', \'Portugal\', \'Qatar\', \'Reunion\', \'Romania\', \'Russian Federation\', \'Rwanda\', \'Saint Kitts and Nevis\', \'Saint Lucia\', \'St. Vincent & Grenadines\', \'Samoa\', \'San Marino\', \'Sao Tome and Principe\', \'Saudi Arabia\', \'Senegal\', \'Seychelles\', \'Sierra Leone\', \'Singapore\', \'Slovakia\', \'Slovenia\', \'Solomon Islands\', \'Somalia\', \'South Africa\', \'S. Georgia & S. Sandwich Isl.\', \'Spain\', \'Sri Lanka\', \'St. Helena\', \'St. Pierre and Miquelon\', \'Suriname\', \'Svalbard & Jan Mayen Isl.\', \'Swaziland\', \'Sweden\', \'Switzerland\', \'Syrian Arab Republic\', \'Taiwan\', \'Tajikistan\', \'Tanzania: United Rep. of\', \'Thailand\', \'Togo\', \'Tokelau\', \'Tonga\', \'Trinidad and Tobago\', \'Tunisia\', \'Turkey\', \'Turkmenistan\', \'Turks and Caicos Islands\', \'Tuvalu\', \'Uganda\', \'Ukraine\', \'United Arab Emirates\', \'US Minor Outlying Isl.\', \'Uruguay\', \'Uzbekistan\', \'Vanuatu\', \'Vatican City (Holy See)\', \'Venezuela\', \'Vietnam\', \'Virgin Islands (British)\', \'Wallis and Futuna Islands\', \'Western Sahara\', \'Yemen\', \'Yugoslavia\', \'Zaire\', \'Zambia\', \'Zimbabwe\', \'Not Listed\');\r\n		\r\n		initAutoComplete(\'bill[country]\', \'countries\', true);\r\n	</script>\r\n{/if}\r\n\r\n{else}   {* If NOT competition... *}\r\n\r\n	Because errors were encountered, we cannont process your contribution at this time. If you continue to have problems, please <a href=\"?pg=contact\">contact us</a>.\r\n\r\n{/if}\r\n\r\n</form>\r\n\r\n{/if}  {* If is NOT complete... *}'),(1874,122,0.17,'smarty','0','reset was deleting a signup type stored object, changed to be newcomp type',1088111408,3,'208.187.110.149','{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"newcomp\" from=\"newcomp\" assign=\"newcomp\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"newcomp\" destroy=\"true\"}{/if}\r\n\r\n{include_php file=\"shared_handle:newcomp.prepareInvitation\"}\r\n{include_php file=\"shared_handle:newcomp.review\"}\r\n{include_php file=\"shared_handle:newcomp.verifyAccount\"}\r\n{include_php file=\"shared_handle:newcomp.verifyInitialPot\"}\r\n{include_php file=\"shared_handle:newcomp.createCompetition\"}\r\n\r\n<h1 class=\"underline\">Congratulations!<br />\r\n	You have successfully created a competition!</h1>\r\n\r\nReturn now to \"<a href=\"?pg=myhome\">My Home</a>\" to view your active competitions!<br />\r\n<br />\r\nYou may notice that your competition does not immediately show up under \"Competitions I am in\". You must log out, then back in,\r\nbefore your competition will show up in that list.'),(1875,124,0.57,'smarty','0','minor verbage change',1088112172,3,'208.187.110.149','<h1 class=\"underline\">Competition Entry Fee Payment</h1>\r\n\r\n{include_php file=\"shared_handle:competition.prepareContribution\"}\r\n{include_php file=\"shared_handle:competition.processContribution\"}\r\n\r\n{select_query assign=\"userInfo\" return=\"row\"}\r\n	firstName, lastName, address1, address2, city, state, country, zip\r\n	FROM _users	\r\n	WHERE id = \'{$user->id}\'\r\n{/select_query}\r\n\r\n{if $isComplete}\r\n	<p>You must click the continue button to finish the competition creation process, and deliver the invitation emails.</p>\r\n	\r\n	<div class=\"hBox\" style=\"text-align:right;\">\r\n		<a href=\"?pg={$smarty.request.return|default:\"home\"}\" class=\"link\">Continue</a>\r\n	</div>\r\n{else}\r\n\r\n<form name=\"potContribution\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n<input type=\"hidden\" name=\"cAction\" value=\"process\" />\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"no_exire_keep_alive\" value=\"cid newcomp return\" />\r\n<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:\"home\"}\" />\r\n<input type=\"hidden\" name=\"cid\" value=\"{$smarty.request.cid}\" />\r\n<input type=\"hidden\" name=\"newcomp\" value=\"{$smarty.request.newcomp}\">\r\n\r\n{if $competition}\r\n\r\n<input type=\"hidden\" name=\"contribution[cid]\" value=\"{$competition.id|default:\"newcomp\"}\" />\r\n<input type=\"hidden\" name=\"contribution[total]\" value=\"{$competition.total}\" />\r\n<input type=\"hidden\" name=\"contribution[entryFee]\" value=\"{$competition.entryFee}\" />\r\n<input type=\"hidden\" name=\"contribution[individualPotAmount]\" value=\"{$competition.individualPotAmount}\" />\r\n\r\n<p>You are about to pay the entry fee for the following competition. Please make sure this is the correct competition before proceding!</p>\r\n\r\nCompetition Title: <b>{$competition.title}</b><br />\r\nCompetition Type: <b>{$competition.type|niceText}, {$competition.style}</b><br />\r\nStarted By: <b>{$competition.firstName} {$competition.lastName} ({$competition.username})</b><br />\r\nTerm: <b>{$competition.startDate|date_format2:\"M j, Y\"} to {$competition.endDate|date_format2:\"M j, Y\"}</b><br />\r\n<br />\r\n{if $competition.individualPotAmount}\r\n	Individual Pot Contribution Amount: <b>${$competition.individualPotAmount|number_format:\"2\"}</b> (You are agreeing to pay the winner this amount when the competition is over!)<br />\r\n{else}\r\n	There is no individual contribution required for this competition, as it is funded by third party donations ({$competition.potMethod}).<br />\r\n{/if}\r\nWeightLossWars.com Entry Fee: <b>${$competition.entryFee|number_format:\"2\"}</b><br />\r\n<h2 class=\"underline2\">&nbsp;</h2>\r\n<b>Total Due:</b> <em>${$competition.total|number_format:\"2\"}</em><br />\r\n{if $order.invoiceNum}<input type=\"hidden\" name=\"orderInvoiceNum\" value=\"{$order.invoiceNum}\" />{/if}\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">\r\n		<div class=\"topRight hideShow\"><a href=\"javascript:toggle(\'billInfo\', \'\', \'showHide\');\"><img id=\"billInfo_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n		Billing Information</h2>	\r\n	<div id=\"billInfo\" style=\"display:{if $success.billIsValid}none{else}block{/if};\">\r\n	First Name:\r\n	<input type=\"text\" name=\"bill[firstname]\" value=\"{$smarty.request.bill.firstname|default:$userInfo.firstName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Last Name:\r\n	<input type=\"text\" name=\"bill[lastname]\" value=\"{$smarty.request.bill.lastname|default:$userInfo.lastName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Company:\r\n	<input type=\"text\" name=\"bill[company]\" value=\"{$smarty.request.bill.company|default:$userInfo.company}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Address:\r\n	<input type=\"text\" name=\"bill[address1]\" value=\"{$smarty.request.bill.address1|default:$userInfo.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"bill[address2]\" value=\"{$smarty.request.bill.address2|default:$userInfo.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	City:\r\n	<input type=\"text\" name=\"bill[city]\" value=\"{$smarty.request.bill.city|default:$userInfo.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	State, Zip:\r\n	<input type=\"text\" name=\"bill[state]\" value=\"{$smarty.request.bill.state|default:$userInfo.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"bill[zip]\" value=\"{$smarty.request.bill.zip|default:$userInfo.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n\r\n	Country:\r\n	<input type=\"text\" name=\"bill[country]\" value=\"{$smarty.request.bill.country|default:$userInfo.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /><br />\r\n\r\n	Phone:\r\n	<input type=\"text\" name=\"bill[phone]\" value=\"{$smarty.request.bill.phone|default:$userInfo.phone}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	Email:\r\n	<input type=\"text\" name=\"bill[email]\" value=\"{$smarty.request.bill.email|default:$userInfo.email}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n	\r\n	</div>\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Payment Information</h2>\r\n	Payment Method:\r\n	<select name=\"bill[paymentMethod]\" size=\"1\">\r\n		<option value=\"visa\"{if $smarty.request.bill.paymentMethod eq \"visa\"} selected{/if}>Visa</option>\r\n		<option value=\"mastercard\"{if $smarty.request.bill.paymentMethod eq \"mastercard\"} selected{/if}>Mastercard</option>\r\n		<option value=\"american express\"{if $smarty.request.bill.paymentMethod eq \"american express\"} selected{/if}>American Express</option>\r\n		<option value=\"discover\"{if $smarty.request.bill.paymentMethod eq \"discover\"} selected{/if}>Discover</option>\r\n	</select><br />\r\n\r\n	Card Number:\r\n	<input type=\"text\" name=\"bill[ccnum]\" value=\"\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Expiration Date: <small>(MMYY)</small>\r\n	<input type=\"text\" name=\"bill[ccexp]\" value=\"\" class=\"textInput\" maxlength=\"4\" style=\"width:50px;\" /><br />\r\n</div>\r\n</td></tr></table>\r\n<div class=\"hBox\" style=\"text-align:right;\">\r\n	<a href=\"?pg=newcomp/review\" class=\"link\">Back to Review</a> | \r\n	<a href=\"javascript://\" onclick=\"document.forms[\'potContribution\'].submit(); return false;\" class=\"link\">Submit Payment</a>\r\n</div>\r\n<div id=\"fMatches\" class=\"xFloat\" style=\"padding:3px; background-color:#FFFFFF; border:#666666 1px solid;\"></div>\r\n\r\n{if $modules.spadeAutoComplete}\r\n	<script language=\"JavaScript\" src=\"{$modules.x}\"></script>\r\n	<script language=\"JavaScript\" src=\"{$modules.spadeAutoComplete}\"></script>\r\n	<script language=\"JavaScript\">\r\n		var states = new Array(\'AL\',\'AK\',\'AS\',\'AZ\',\'AR\',\'CA\',\'CO\',\'CT\',\'DE\',\'DC\',\'FL\',\'GA\',\'GU\',\r\n					\'HI\',\'ID\',\'IL\',\'IN\',\'IA\',\'KS\',\'KY\',\'LA\',\'ME\',\'MH\',\'MD\',\'MA\',\r\n					\'MI\',\'MN\',\'MS\',\'MO\',\'MT\',\'NE\',\'NV\',\'NH\',\'NJ\',\'NM\',\'NY\',\'NC\',\r\n					\'ND\',\'OH\',\'OK\',\'OR\',\'PW\',\'PA\',\'PR\',\'RI\',\'SC\',\'SD\',\'TN\',\'TX\',\r\n					\'UT\',\'VT\',\'USVI\',\'VA\',\'WA\',\'WV\',\'WI\',\'WY\',\'AB\',\'BC\',\'LB\',\'MB\',\r\n					\'NB\',\'NF\',\'NT\',\'NS\',\'ON\',\'PE\',\'PQ\',\'SK\',\'YT\');\r\n		initAutoComplete(\'bill[state]\', \'states\', true);\r\n\r\n		{* var countries = new Array (\'United States of America\', \'Canada\', \'Germany\', \'United Kingdom\', \'India\', \'---------------------\', \'Albania\', \'Algeria\', \'Andorra\', \'Angola\', \'Anguilla\', \'Antarctica\', \'Antigua and Barbuda\', \'Argentina\', \'Armenia\', \'Aruba\', \'Australia\', \'Austria\', \'Azerbaijan\', \'Bahamas\', \'Bahrain\', \'Bangladesh\', \'Barbados\', \'Belarus\', \'Belgium\', \'Belize\', \'Benin\', \'Bermuda\', \'Bhutan\', \'Bolivia\', \'Bosnia and Herzegowina\', \'Botswana\', \'Bouvet Island\', \'Brazil\', \'British Ind. Ocean Terr\', \'Brunei Darussalam\', \'Bulgaria\', \'Burkina Faso\', \'Burundi\', \'Cambodia\', \'Cameroon\', \'Cape Verde\', \'Cayman Islands\', \'Central African Rep.\', \'Chad\', \'Chile\', \'China\', \'Christmas Island\', \'Cocoa (Keeling) Isl.\', \'Colombia\', \'Comoros\', \'Congo\', \'Cook Islands\', \'Costa Rica\', \'Cote Divoire\', \'Hrvatska\', \'Cyprus\', \'Czech Republic\', \'Denmark\', \'Djibouti\', \'Dominica\', \'Dominican Republic\', \'East Timor\', \'Ecuador\', \'Egypt\', \'El Salvador\', \'Equatorial Guinea\', \'Eritrea\', \'Estonia\', \'Ethiopia\', \'Falkland Isl. (Malvinas)\', \'Faroe Islands\', \'Fiji\', \'Finland\', \'France\', \'French Guiana\', \'French Polynesia\', \'French Southern Terr.\', \'Gabon\', \'Gambia\', \'Georgia\', \'Ghana\', \'Gibraltar\', \'Greece\', \'Greenland\', \'Grenada\', \'Guadeloupe\', \'Guatemala\', \'Guinea\', \'Guinea-Bissau\', \'Guyana\', \'Haiti\', \'Heard & McDonald Isl.\', \'Honduras\', \'Hong Kong\', \'Hungary\', \'Iceland\', \'Indonesia\', \'Ireland\', \'Israel\', \'Italy\', \'Jamaica\', \'Japan\', \'Jordan\', \'Kazakhstan\', \'Kenya\', \'Kiribati\', \'Republic of Korea\', \'Kuwait\', \'Kyrgyzstan\', \'Lao Peoples Dem. Rep.\', \'Latvia\', \'Lebanon\', \'Lesotho\', \'Liberia\', \'Liechtenstein\', \'Lithuania\', \'Luxembourg\', \'Macau\', \'Macedonia\', \'Madagascar\', \'Malawi\', \'Malaysia\', \'Maldives\', \'Mali\', \'Malta\', \'Marshall Islands\', \'Martinique\', \'Mauritania\', \'Mauritius\', \'Mayotte\', \'Mexico\', \'Micronesia: Fed. States of\', \'Moldova: Republic of\', \'Monaco\', \'Mongolia\', \'Montserrat\', \'Morocco\', \'Mozambique\', \'Myanmar\', \'Namibia\', \'Nauru\', \'Nepal\', \'Netherlands\', \'Netherlands Antilles\', \'New Caledonia\', \'New Zealand\', \'Nicaragua\', \'Niger\', \'Nigeria\', \'Niue\', \'Norfolk Island\', \'Northern Mariana Isl.\', \'Norway\', \'Oman\', \'Pakistan\', \'Palau\', \'Panama\', \'Papua New Guinea\', \'Paraguay\', \'Peru\', \'Philippines\', \'Pitcairn\', \'Poland\', \'Portugal\', \'Qatar\', \'Reunion\', \'Romania\', \'Russian Federation\', \'Rwanda\', \'Saint Kitts and Nevis\', \'Saint Lucia\', \'St. Vincent & Grenadines\', \'Samoa\', \'San Marino\', \'Sao Tome and Principe\', \'Saudi Arabia\', \'Senegal\', \'Seychelles\', \'Sierra Leone\', \'Singapore\', \'Slovakia\', \'Slovenia\', \'Solomon Islands\', \'Somalia\', \'South Africa\', \'S. Georgia & S. Sandwich Isl.\', \'Spain\', \'Sri Lanka\', \'St. Helena\', \'St. Pierre and Miquelon\', \'Suriname\', \'Svalbard & Jan Mayen Isl.\', \'Swaziland\', \'Sweden\', \'Switzerland\', \'Syrian Arab Republic\', \'Taiwan\', \'Tajikistan\', \'Tanzania: United Rep. of\', \'Thailand\', \'Togo\', \'Tokelau\', \'Tonga\', \'Trinidad and Tobago\', \'Tunisia\', \'Turkey\', \'Turkmenistan\', \'Turks and Caicos Islands\', \'Tuvalu\', \'Uganda\', \'Ukraine\', \'United Arab Emirates\', \'US Minor Outlying Isl.\', \'Uruguay\', \'Uzbekistan\', \'Vanuatu\', \'Vatican City (Holy See)\', \'Venezuela\', \'Vietnam\', \'Virgin Islands (British)\', \'Wallis and Futuna Islands\', \'Western Sahara\', \'Yemen\', \'Yugoslavia\', \'Zaire\', \'Zambia\', \'Zimbabwe\', \'Not Listed\'); *}\r\n		var countries = new Array (\'USA\', \'Canada\', \'Germany\', \'UK\', \'India\', \'Albania\', \'Algeria\', \'Andorra\', \'Angola\', \'Anguilla\', \'Antarctica\', \'Antigua and Barbuda\', \'Argentina\', \'Armenia\', \'Aruba\', \'Australia\', \'Austria\', \'Azerbaijan\', \'Bahamas\', \'Bahrain\', \'Bangladesh\', \'Barbados\', \'Belarus\', \'Belgium\', \'Belize\', \'Benin\', \'Bermuda\', \'Bhutan\', \'Bolivia\', \'Bosnia and Herzegowina\', \'Botswana\', \'Bouvet Island\', \'Brazil\', \'British Ind. Ocean Terr\', \'Brunei Darussalam\', \'Bulgaria\', \'Burkina Faso\', \'Burundi\', \'Cambodia\', \'Cameroon\', \'Cape Verde\', \'Cayman Islands\', \'Central African Rep.\', \'Chad\', \'Chile\', \'China\', \'Christmas Island\', \'Cocoa (Keeling) Isl.\', \'Colombia\', \'Comoros\', \'Congo\', \'Cook Islands\', \'Costa Rica\', \'Cote Divoire\', \'Hrvatska\', \'Cyprus\', \'Czech Republic\', \'Denmark\', \'Djibouti\', \'Dominica\', \'Dominican Republic\', \'East Timor\', \'Ecuador\', \'Egypt\', \'El Salvador\', \'Equatorial Guinea\', \'Eritrea\', \'Estonia\', \'Ethiopia\', \'Falkland Isl. (Malvinas)\', \'Faroe Islands\', \'Fiji\', \'Finland\', \'France\', \'French Guiana\', \'French Polynesia\', \'French Southern Terr.\', \'Gabon\', \'Gambia\', \'Georgia\', \'Ghana\', \'Gibraltar\', \'Greece\', \'Greenland\', \'Grenada\', \'Guadeloupe\', \'Guatemala\', \'Guinea\', \'Guinea-Bissau\', \'Guyana\', \'Haiti\', \'Heard & McDonald Isl.\', \'Honduras\', \'Hong Kong\', \'Hungary\', \'Iceland\', \'Indonesia\', \'Ireland\', \'Israel\', \'Italy\', \'Jamaica\', \'Japan\', \'Jordan\', \'Kazakhstan\', \'Kenya\', \'Kiribati\', \'Republic of Korea\', \'Kuwait\', \'Kyrgyzstan\', \'Lao Peoples Dem. Rep.\', \'Latvia\', \'Lebanon\', \'Lesotho\', \'Liberia\', \'Liechtenstein\', \'Lithuania\', \'Luxembourg\', \'Macau\', \'Macedonia\', \'Madagascar\', \'Malawi\', \'Malaysia\', \'Maldives\', \'Mali\', \'Malta\', \'Marshall Islands\', \'Martinique\', \'Mauritania\', \'Mauritius\', \'Mayotte\', \'Mexico\', \'Micronesia: Fed. States of\', \'Moldova: Republic of\', \'Monaco\', \'Mongolia\', \'Montserrat\', \'Morocco\', \'Mozambique\', \'Myanmar\', \'Namibia\', \'Nauru\', \'Nepal\', \'Netherlands\', \'Netherlands Antilles\', \'New Caledonia\', \'New Zealand\', \'Nicaragua\', \'Niger\', \'Nigeria\', \'Niue\', \'Norfolk Island\', \'Northern Mariana Isl.\', \'Norway\', \'Oman\', \'Pakistan\', \'Palau\', \'Panama\', \'Papua New Guinea\', \'Paraguay\', \'Peru\', \'Philippines\', \'Pitcairn\', \'Poland\', \'Portugal\', \'Qatar\', \'Reunion\', \'Romania\', \'Russian Federation\', \'Rwanda\', \'Saint Kitts and Nevis\', \'Saint Lucia\', \'St. Vincent & Grenadines\', \'Samoa\', \'San Marino\', \'Sao Tome and Principe\', \'Saudi Arabia\', \'Senegal\', \'Seychelles\', \'Sierra Leone\', \'Singapore\', \'Slovakia\', \'Slovenia\', \'Solomon Islands\', \'Somalia\', \'South Africa\', \'S. Georgia & S. Sandwich Isl.\', \'Spain\', \'Sri Lanka\', \'St. Helena\', \'St. Pierre and Miquelon\', \'Suriname\', \'Svalbard & Jan Mayen Isl.\', \'Swaziland\', \'Sweden\', \'Switzerland\', \'Syrian Arab Republic\', \'Taiwan\', \'Tajikistan\', \'Tanzania: United Rep. of\', \'Thailand\', \'Togo\', \'Tokelau\', \'Tonga\', \'Trinidad and Tobago\', \'Tunisia\', \'Turkey\', \'Turkmenistan\', \'Turks and Caicos Islands\', \'Tuvalu\', \'Uganda\', \'Ukraine\', \'United Arab Emirates\', \'US Minor Outlying Isl.\', \'Uruguay\', \'Uzbekistan\', \'Vanuatu\', \'Vatican City (Holy See)\', \'Venezuela\', \'Vietnam\', \'Virgin Islands (British)\', \'Wallis and Futuna Islands\', \'Western Sahara\', \'Yemen\', \'Yugoslavia\', \'Zaire\', \'Zambia\', \'Zimbabwe\', \'Not Listed\');\r\n		\r\n		initAutoComplete(\'bill[country]\', \'countries\', true);\r\n	</script>\r\n{/if}\r\n\r\n{else}   {* If NOT competition... *}\r\n\r\n	Because errors were encountered, we cannont process your contribution at this time. If you continue to have problems, please <a href=\"?pg=contact\">contact us</a>.\r\n\r\n{/if}\r\n\r\n</form>\r\n\r\n{/if}  {* If is NOT complete... *}'),(1876,150,0.19,'smarty','0','slight styling update',1088113094,3,'208.187.110.149','{include_php file=\"shared_handle:loadInvitation\"}\r\n\r\n<h1 class=\"underline\">Accept an Invitation</h1>\r\n\r\n{toc_next assign=\"next\"}\r\n\r\n<div><br />\r\nWelcome \"<b>{$invitation.name}</b>\". <b>{$competition.ownerName}</b> (username: {$competition.ownerUsername}), \r\nwho described you as \"<b>{$invitation.relation}</b>\" has invited you to join a Weight Loss War&trade;\r\ntitled \"<b>{$competition.title}</b>\", which will end on <b>{$competition.endDate|date_format2:\"l n/j/Y\"}</b>. \r\nAre you up to the challenge?<br />\r\n<br />\r\n{$competition.ownerName} selected <b>{$competition.scoringMethod}</b> as the final judging method and \r\n{if $competition.potMethod eq \"Individual Charity\"}\r\n	{if $competition.individualPotAmount}\r\n		<b>${$competition.individualPotAmount|number_format:2}</b>\r\n	{else}\r\n		no money\r\n	{/if}\r\n	to be put up by each competitor.\r\n{elseif $competition.potMethod neq \"Other-None\"}\r\n	{if $competition.individualPotAmount}\r\n		a jackpot of <b>${$competition.individualPotAmount|number_format:2}</b> provided by {$competition.potMethod}.\r\n	{else}\r\n		an unspecified jackpot.\r\n	{/if}\r\n{else}\r\n	an unspecified jackpot.\r\n{/if}\r\n{if $competition.potDescription}\r\n	The jackpot was further described as \"<b>{$competition.potDescription}</b>\".\r\n{/if}\r\n\r\n<br /><br />\r\nIf you would like to accept this invitation and join the competition, just click the <b>\"Next\"</b> button below!<br />\r\n<br />\r\n{if not $user->isLoggedIn()}\r\n	<b>Note:</b> If you are already a member of this site, <b>please log in now</b>, before proceeding!<br /><br />\r\n{/if}\r\n\r\n<div class=\"hBox\" align=\"right\" style=\"margin:0px;\">\r\n	<a href=\"?pg={$next.pageName}&cid={$competition.id}&icode={$smarty.request.icode}\"><img src=\"{$skinFolder}images/btn_next.gif\" border=\"0\" /></a></div>'),(1931,124,0.59,'smarty','0','Updated link to now say Cancel/Go Back--gets value from _GET[cancel]',1088507738,2,'67.172.245.198','<h1 class=\"underline\">Competition Entry Fee Payment</h1>\r\n\r\n{include_php file=\"shared_handle:competition.prepareContribution\"}\r\n{include_php file=\"shared_handle:competition.processContribution\"}\r\n\r\n{select_query assign=\"userInfo\" return=\"row\"}\r\n	firstName, lastName, address1, address2, city, state, country, zip\r\n	FROM _users	\r\n	WHERE id = \'{$user->id}\'\r\n{/select_query}\r\n\r\n{if $isComplete}\r\n	<p>You must click the continue button to finish the competition creation process, and deliver the invitation emails.</p>\r\n	\r\n	<div class=\"hBox\" style=\"text-align:right;\">\r\n		<a href=\"?pg={$smarty.request.return|default:\"home\"}\" class=\"link\">Continue</a>\r\n	</div>\r\n{else}\r\n\r\n<form name=\"potContribution\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n<input type=\"hidden\" name=\"cAction\" value=\"process\" />\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"no_exire_keep_alive\" value=\"cid newcomp return\" />\r\n<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:\"home\"}\" />\r\n<input type=\"hidden\" name=\"cid\" value=\"{$smarty.request.cid}\" />\r\n<input type=\"hidden\" name=\"newcomp\" value=\"{$smarty.request.newcomp}\">\r\n\r\n{if $competition}\r\n\r\n<input type=\"hidden\" name=\"contribution[cid]\" value=\"{$competition.id|default:\"newcomp\"}\" />\r\n<input type=\"hidden\" name=\"contribution[total]\" value=\"{$competition.total}\" />\r\n<input type=\"hidden\" name=\"contribution[entryFee]\" value=\"{$competition.entryFee}\" />\r\n<input type=\"hidden\" name=\"contribution[individualPotAmount]\" value=\"{$competition.individualPotAmount}\" />\r\n\r\n<p>You are about to pay the entry fee for the following competition. Please make sure this is the correct competition before proceding!</p>\r\n\r\nCompetition Title: <b>{$competition.title}</b><br />\r\nCompetition Type: <b>{$competition.type|niceText}, {$competition.style}</b><br />\r\nStarted By: <b>{$competition.firstName} {$competition.lastName} ({$competition.username})</b><br />\r\nTerm: <b>{$competition.startDate|date_format2:\"M j, Y\"} to {$competition.endDate|date_format2:\"M j, Y\"}</b><br />\r\n<br />\r\n{if $competition.individualPotAmount}\r\n	Individual Pot Contribution Amount: <b>${$competition.individualPotAmount|number_format:\"2\"}</b> (You are agreeing to pay the winner this amount when the competition is over!)<br />\r\n{else}\r\n	There is no individual contribution required for this competition, as it is funded by third party donations ({$competition.potMethod}).<br />\r\n{/if}\r\nWeightLossWars.com Entry Fee: <b>${$competition.entryFee|number_format:\"2\"}</b><br />\r\n<h2 class=\"underline2\">&nbsp;</h2>\r\n<b>Total Due:</b> <em>${$competition.total|number_format:\"2\"}</em><br />\r\n{if $order.invoiceNum}<input type=\"hidden\" name=\"orderInvoiceNum\" value=\"{$order.invoiceNum}\" />{/if}\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">\r\n		<div class=\"topRight hideShow\"><a href=\"javascript:toggle(\'billInfo\', \'\', \'showHide\');\"><img id=\"billInfo_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n		Billing Information</h2>	\r\n	<div id=\"billInfo\" style=\"display:{if $success.billIsValid}none{else}block{/if};\">\r\n	First Name:\r\n	<input type=\"text\" name=\"bill[firstname]\" value=\"{$smarty.request.bill.firstname|default:$userInfo.firstName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Last Name:\r\n	<input type=\"text\" name=\"bill[lastname]\" value=\"{$smarty.request.bill.lastname|default:$userInfo.lastName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Company:\r\n	<input type=\"text\" name=\"bill[company]\" value=\"{$smarty.request.bill.company|default:$userInfo.company}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Address:\r\n	<input type=\"text\" name=\"bill[address1]\" value=\"{$smarty.request.bill.address1|default:$userInfo.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"bill[address2]\" value=\"{$smarty.request.bill.address2|default:$userInfo.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	City:\r\n	<input type=\"text\" name=\"bill[city]\" value=\"{$smarty.request.bill.city|default:$userInfo.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	State, Zip:\r\n	<input type=\"text\" name=\"bill[state]\" value=\"{$smarty.request.bill.state|default:$userInfo.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"bill[zip]\" value=\"{$smarty.request.bill.zip|default:$userInfo.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n\r\n	Country:\r\n	<input type=\"text\" name=\"bill[country]\" value=\"{$smarty.request.bill.country|default:$userInfo.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /><br />\r\n\r\n	Phone:\r\n	<input type=\"text\" name=\"bill[phone]\" value=\"{$smarty.request.bill.phone|default:$userInfo.phone}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	Email:\r\n	<input type=\"text\" name=\"bill[email]\" value=\"{$smarty.request.bill.email|default:$userInfo.email}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n	\r\n	</div>\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Payment Information</h2>\r\n	Payment Method:\r\n	<select name=\"bill[paymentMethod]\" size=\"1\">\r\n		<option value=\"visa\"{if $smarty.request.bill.paymentMethod eq \"visa\"} selected{/if}>Visa</option>\r\n		<option value=\"mastercard\"{if $smarty.request.bill.paymentMethod eq \"mastercard\"} selected{/if}>Mastercard</option>\r\n		<option value=\"american express\"{if $smarty.request.bill.paymentMethod eq \"american express\"} selected{/if}>American Express</option>\r\n		<option value=\"discover\"{if $smarty.request.bill.paymentMethod eq \"discover\"} selected{/if}>Discover</option>\r\n	</select><br />\r\n\r\n	Card Number:\r\n	<input type=\"text\" name=\"bill[ccnum]\" value=\"\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Expiration Date: <small>(MMYY)</small>\r\n	<input type=\"text\" name=\"bill[ccexp]\" value=\"\" class=\"textInput\" maxlength=\"4\" style=\"width:50px;\" /><br />\r\n</div>\r\n</td></tr></table>\r\n<div class=\"hBox\" style=\"text-align:right;\">\r\n	<a href=\"?pg={$smarty.request.cancel|default:\"home\"}\" class=\"link\">Cancel/Go Back</a> | \r\n	<a href=\"javascript://\" onclick=\"document.forms[\'potContribution\'].submit(); return false;\" class=\"link\">Submit Payment</a>\r\n</div>\r\n<div id=\"fMatches\" class=\"xFloat\" style=\"padding:3px; background-color:#FFFFFF; border:#666666 1px solid;\"></div>\r\n\r\n{if $modules.spadeAutoComplete}\r\n	<script language=\"JavaScript\" src=\"{$modules.x}\"></script>\r\n	<script language=\"JavaScript\" src=\"{$modules.spadeAutoComplete}\"></script>\r\n	<script language=\"JavaScript\">\r\n		var states = new Array(\'AL\',\'AK\',\'AS\',\'AZ\',\'AR\',\'CA\',\'CO\',\'CT\',\'DE\',\'DC\',\'FL\',\'GA\',\'GU\',\r\n					\'HI\',\'ID\',\'IL\',\'IN\',\'IA\',\'KS\',\'KY\',\'LA\',\'ME\',\'MH\',\'MD\',\'MA\',\r\n					\'MI\',\'MN\',\'MS\',\'MO\',\'MT\',\'NE\',\'NV\',\'NH\',\'NJ\',\'NM\',\'NY\',\'NC\',\r\n					\'ND\',\'OH\',\'OK\',\'OR\',\'PW\',\'PA\',\'PR\',\'RI\',\'SC\',\'SD\',\'TN\',\'TX\',\r\n					\'UT\',\'VT\',\'USVI\',\'VA\',\'WA\',\'WV\',\'WI\',\'WY\',\'AB\',\'BC\',\'LB\',\'MB\',\r\n					\'NB\',\'NF\',\'NT\',\'NS\',\'ON\',\'PE\',\'PQ\',\'SK\',\'YT\');\r\n		initAutoComplete(\'bill[state]\', \'states\', true);\r\n\r\n		{* var countries = new Array (\'United States of America\', \'Canada\', \'Germany\', \'United Kingdom\', \'India\', \'---------------------\', \'Albania\', \'Algeria\', \'Andorra\', \'Angola\', \'Anguilla\', \'Antarctica\', \'Antigua and Barbuda\', \'Argentina\', \'Armenia\', \'Aruba\', \'Australia\', \'Austria\', \'Azerbaijan\', \'Bahamas\', \'Bahrain\', \'Bangladesh\', \'Barbados\', \'Belarus\', \'Belgium\', \'Belize\', \'Benin\', \'Bermuda\', \'Bhutan\', \'Bolivia\', \'Bosnia and Herzegowina\', \'Botswana\', \'Bouvet Island\', \'Brazil\', \'British Ind. Ocean Terr\', \'Brunei Darussalam\', \'Bulgaria\', \'Burkina Faso\', \'Burundi\', \'Cambodia\', \'Cameroon\', \'Cape Verde\', \'Cayman Islands\', \'Central African Rep.\', \'Chad\', \'Chile\', \'China\', \'Christmas Island\', \'Cocoa (Keeling) Isl.\', \'Colombia\', \'Comoros\', \'Congo\', \'Cook Islands\', \'Costa Rica\', \'Cote Divoire\', \'Hrvatska\', \'Cyprus\', \'Czech Republic\', \'Denmark\', \'Djibouti\', \'Dominica\', \'Dominican Republic\', \'East Timor\', \'Ecuador\', \'Egypt\', \'El Salvador\', \'Equatorial Guinea\', \'Eritrea\', \'Estonia\', \'Ethiopia\', \'Falkland Isl. (Malvinas)\', \'Faroe Islands\', \'Fiji\', \'Finland\', \'France\', \'French Guiana\', \'French Polynesia\', \'French Southern Terr.\', \'Gabon\', \'Gambia\', \'Georgia\', \'Ghana\', \'Gibraltar\', \'Greece\', \'Greenland\', \'Grenada\', \'Guadeloupe\', \'Guatemala\', \'Guinea\', \'Guinea-Bissau\', \'Guyana\', \'Haiti\', \'Heard & McDonald Isl.\', \'Honduras\', \'Hong Kong\', \'Hungary\', \'Iceland\', \'Indonesia\', \'Ireland\', \'Israel\', \'Italy\', \'Jamaica\', \'Japan\', \'Jordan\', \'Kazakhstan\', \'Kenya\', \'Kiribati\', \'Republic of Korea\', \'Kuwait\', \'Kyrgyzstan\', \'Lao Peoples Dem. Rep.\', \'Latvia\', \'Lebanon\', \'Lesotho\', \'Liberia\', \'Liechtenstein\', \'Lithuania\', \'Luxembourg\', \'Macau\', \'Macedonia\', \'Madagascar\', \'Malawi\', \'Malaysia\', \'Maldives\', \'Mali\', \'Malta\', \'Marshall Islands\', \'Martinique\', \'Mauritania\', \'Mauritius\', \'Mayotte\', \'Mexico\', \'Micronesia: Fed. States of\', \'Moldova: Republic of\', \'Monaco\', \'Mongolia\', \'Montserrat\', \'Morocco\', \'Mozambique\', \'Myanmar\', \'Namibia\', \'Nauru\', \'Nepal\', \'Netherlands\', \'Netherlands Antilles\', \'New Caledonia\', \'New Zealand\', \'Nicaragua\', \'Niger\', \'Nigeria\', \'Niue\', \'Norfolk Island\', \'Northern Mariana Isl.\', \'Norway\', \'Oman\', \'Pakistan\', \'Palau\', \'Panama\', \'Papua New Guinea\', \'Paraguay\', \'Peru\', \'Philippines\', \'Pitcairn\', \'Poland\', \'Portugal\', \'Qatar\', \'Reunion\', \'Romania\', \'Russian Federation\', \'Rwanda\', \'Saint Kitts and Nevis\', \'Saint Lucia\', \'St. Vincent & Grenadines\', \'Samoa\', \'San Marino\', \'Sao Tome and Principe\', \'Saudi Arabia\', \'Senegal\', \'Seychelles\', \'Sierra Leone\', \'Singapore\', \'Slovakia\', \'Slovenia\', \'Solomon Islands\', \'Somalia\', \'South Africa\', \'S. Georgia & S. Sandwich Isl.\', \'Spain\', \'Sri Lanka\', \'St. Helena\', \'St. Pierre and Miquelon\', \'Suriname\', \'Svalbard & Jan Mayen Isl.\', \'Swaziland\', \'Sweden\', \'Switzerland\', \'Syrian Arab Republic\', \'Taiwan\', \'Tajikistan\', \'Tanzania: United Rep. of\', \'Thailand\', \'Togo\', \'Tokelau\', \'Tonga\', \'Trinidad and Tobago\', \'Tunisia\', \'Turkey\', \'Turkmenistan\', \'Turks and Caicos Islands\', \'Tuvalu\', \'Uganda\', \'Ukraine\', \'United Arab Emirates\', \'US Minor Outlying Isl.\', \'Uruguay\', \'Uzbekistan\', \'Vanuatu\', \'Vatican City (Holy See)\', \'Venezuela\', \'Vietnam\', \'Virgin Islands (British)\', \'Wallis and Futuna Islands\', \'Western Sahara\', \'Yemen\', \'Yugoslavia\', \'Zaire\', \'Zambia\', \'Zimbabwe\', \'Not Listed\'); *}\r\n		var countries = new Array (\'USA\', \'Canada\', \'Germany\', \'UK\', \'India\', \'Albania\', \'Algeria\', \'Andorra\', \'Angola\', \'Anguilla\', \'Antarctica\', \'Antigua and Barbuda\', \'Argentina\', \'Armenia\', \'Aruba\', \'Australia\', \'Austria\', \'Azerbaijan\', \'Bahamas\', \'Bahrain\', \'Bangladesh\', \'Barbados\', \'Belarus\', \'Belgium\', \'Belize\', \'Benin\', \'Bermuda\', \'Bhutan\', \'Bolivia\', \'Bosnia and Herzegowina\', \'Botswana\', \'Bouvet Island\', \'Brazil\', \'British Ind. Ocean Terr\', \'Brunei Darussalam\', \'Bulgaria\', \'Burkina Faso\', \'Burundi\', \'Cambodia\', \'Cameroon\', \'Cape Verde\', \'Cayman Islands\', \'Central African Rep.\', \'Chad\', \'Chile\', \'China\', \'Christmas Island\', \'Cocoa (Keeling) Isl.\', \'Colombia\', \'Comoros\', \'Congo\', \'Cook Islands\', \'Costa Rica\', \'Cote Divoire\', \'Hrvatska\', \'Cyprus\', \'Czech Republic\', \'Denmark\', \'Djibouti\', \'Dominica\', \'Dominican Republic\', \'East Timor\', \'Ecuador\', \'Egypt\', \'El Salvador\', \'Equatorial Guinea\', \'Eritrea\', \'Estonia\', \'Ethiopia\', \'Falkland Isl. (Malvinas)\', \'Faroe Islands\', \'Fiji\', \'Finland\', \'France\', \'French Guiana\', \'French Polynesia\', \'French Southern Terr.\', \'Gabon\', \'Gambia\', \'Georgia\', \'Ghana\', \'Gibraltar\', \'Greece\', \'Greenland\', \'Grenada\', \'Guadeloupe\', \'Guatemala\', \'Guinea\', \'Guinea-Bissau\', \'Guyana\', \'Haiti\', \'Heard & McDonald Isl.\', \'Honduras\', \'Hong Kong\', \'Hungary\', \'Iceland\', \'Indonesia\', \'Ireland\', \'Israel\', \'Italy\', \'Jamaica\', \'Japan\', \'Jordan\', \'Kazakhstan\', \'Kenya\', \'Kiribati\', \'Republic of Korea\', \'Kuwait\', \'Kyrgyzstan\', \'Lao Peoples Dem. Rep.\', \'Latvia\', \'Lebanon\', \'Lesotho\', \'Liberia\', \'Liechtenstein\', \'Lithuania\', \'Luxembourg\', \'Macau\', \'Macedonia\', \'Madagascar\', \'Malawi\', \'Malaysia\', \'Maldives\', \'Mali\', \'Malta\', \'Marshall Islands\', \'Martinique\', \'Mauritania\', \'Mauritius\', \'Mayotte\', \'Mexico\', \'Micronesia: Fed. States of\', \'Moldova: Republic of\', \'Monaco\', \'Mongolia\', \'Montserrat\', \'Morocco\', \'Mozambique\', \'Myanmar\', \'Namibia\', \'Nauru\', \'Nepal\', \'Netherlands\', \'Netherlands Antilles\', \'New Caledonia\', \'New Zealand\', \'Nicaragua\', \'Niger\', \'Nigeria\', \'Niue\', \'Norfolk Island\', \'Northern Mariana Isl.\', \'Norway\', \'Oman\', \'Pakistan\', \'Palau\', \'Panama\', \'Papua New Guinea\', \'Paraguay\', \'Peru\', \'Philippines\', \'Pitcairn\', \'Poland\', \'Portugal\', \'Qatar\', \'Reunion\', \'Romania\', \'Russian Federation\', \'Rwanda\', \'Saint Kitts and Nevis\', \'Saint Lucia\', \'St. Vincent & Grenadines\', \'Samoa\', \'San Marino\', \'Sao Tome and Principe\', \'Saudi Arabia\', \'Senegal\', \'Seychelles\', \'Sierra Leone\', \'Singapore\', \'Slovakia\', \'Slovenia\', \'Solomon Islands\', \'Somalia\', \'South Africa\', \'S. Georgia & S. Sandwich Isl.\', \'Spain\', \'Sri Lanka\', \'St. Helena\', \'St. Pierre and Miquelon\', \'Suriname\', \'Svalbard & Jan Mayen Isl.\', \'Swaziland\', \'Sweden\', \'Switzerland\', \'Syrian Arab Republic\', \'Taiwan\', \'Tajikistan\', \'Tanzania: United Rep. of\', \'Thailand\', \'Togo\', \'Tokelau\', \'Tonga\', \'Trinidad and Tobago\', \'Tunisia\', \'Turkey\', \'Turkmenistan\', \'Turks and Caicos Islands\', \'Tuvalu\', \'Uganda\', \'Ukraine\', \'United Arab Emirates\', \'US Minor Outlying Isl.\', \'Uruguay\', \'Uzbekistan\', \'Vanuatu\', \'Vatican City (Holy See)\', \'Venezuela\', \'Vietnam\', \'Virgin Islands (British)\', \'Wallis and Futuna Islands\', \'Western Sahara\', \'Yemen\', \'Yugoslavia\', \'Zaire\', \'Zambia\', \'Zimbabwe\', \'Not Listed\');\r\n		\r\n		initAutoComplete(\'bill[country]\', \'countries\', true);\r\n	</script>\r\n{/if}\r\n\r\n{else}   {* If NOT competition... *}\r\n\r\n	Because errors were encountered, we cannont process your contribution at this time. If you continue to have problems, please <a href=\"?pg=contact\">contact us</a>.\r\n\r\n{/if}\r\n\r\n</form>\r\n\r\n{/if}  {* If is NOT complete... *}'),(2699,136,0.17,'smarty','0','fixed messed h1 tag',1103515464,2,'67.166.75.78','<h1 class=\"underline\">Latest News</h1>\r\n<p>Things happening specifically with {$domain|upper}, and other health related news items.</p>\r\n\r\n{tablemanager\r\n	Assign=\"tm\"\r\n	Group=\"display_tools\"\r\n	Profile=\"news\"\r\n	DeleteLogFile=\"tm-delete.log\"\r\n	TemplatePath=\"TM/templates/\"\r\n	StyleTablePath=\"systems/wlw/img/st/\"\r\n	AddTemplate=\"slate_edit.tpl\"\r\n	MainTemplate=\"recipe_main.tpl\"\r\n	ListTemplate=\"news_list.tpl\"\r\n	EditTemplate=\"slate_edit.tpl\"\r\n	ViewTemplate=\"news_view.tpl\"\r\n	Action=\"list\"\r\n	LoginRequired=\"true\"\r\n	HeadingColor=\"99CCFF\"\r\n	HighlightColor=\"F6F9D5\"\r\n	HeadingStyle=\"heading\"\r\n	ResultsPerPage=\"20\"\r\n	Color1=\"F7F7F7\"\r\n	Color2=\"E7E7E7\"\r\n	DataStyle=\"hideWrap\"\r\n	MaxStringLength=\"50\"\r\n	DateFormat=\"l, F d, Y g:i a \"\r\n	}\r\n'),(2700,136,0.18,'smarty','0','fixed messed h1 tag',1103515476,2,'67.166.75.78','<h1 class=\"underline\">Latest News</h1>\r\n<p>Things happening specifically with eHealthCompete, and other health related news items.</p>\r\n\r\n{tablemanager\r\n	Assign=\"tm\"\r\n	Group=\"display_tools\"\r\n	Profile=\"news\"\r\n	DeleteLogFile=\"tm-delete.log\"\r\n	TemplatePath=\"TM/templates/\"\r\n	StyleTablePath=\"systems/wlw/img/st/\"\r\n	AddTemplate=\"slate_edit.tpl\"\r\n	MainTemplate=\"recipe_main.tpl\"\r\n	ListTemplate=\"news_list.tpl\"\r\n	EditTemplate=\"slate_edit.tpl\"\r\n	ViewTemplate=\"news_view.tpl\"\r\n	Action=\"list\"\r\n	LoginRequired=\"true\"\r\n	HeadingColor=\"99CCFF\"\r\n	HighlightColor=\"F6F9D5\"\r\n	HeadingStyle=\"heading\"\r\n	ResultsPerPage=\"20\"\r\n	Color1=\"F7F7F7\"\r\n	Color2=\"E7E7E7\"\r\n	DataStyle=\"hideWrap\"\r\n	MaxStringLength=\"50\"\r\n	DateFormat=\"l, F d, Y g:i a \"\r\n	}\r\n'),(2701,176,0.12,'smarty','0','Page created.',1103515648,2,'67.166.75.78','{* Need to include \'home\' *}'),(2702,176,0.13,'smarty','1','Page created.',1103515923,2,'67.166.75.78','{select_query assign=\"homePage\" return=\"val\"}\r\n		h.content \r\n	FROM _toc t \r\n		INNER JOIN _pages p ON (t.pageId = p.id)\r\n		INNER JOIN _page_history h ON (h.pageId = p.id)\r\n		LEFT JOIN _users u ON (h.userId = u.id)\r\n	WHERE\r\n		t.pageName = \'home\' AND h.isActive = \'1\'\r\n	ORDER BY h.version DESC\r\n	LIMIT 1\r\n{/select_query}\r\n\r\n{eval var=$homePage}'),(2703,1,2.90,'smarty','0','Added redirect to signup/begin if on a company vanity.',1103516608,2,'67.166.75.78','{if $user->isLoggedIn()}\r\n	{store_messages}	\r\n	{redirect href=\"?pg=myhome\"}\r\n{elseif $smarty.session.company.companyName}\r\n	{store_messages}\r\n	{redirect href=\"?pg=login\"}\r\n{/if}\r\n{assign var=\"pgLayout\" value=\"file:./layouts/home.tpl\"}'),(5299,328,0.19,'smarty','0','Page created.',1251102416,2,'71.195.230.181','{include_php file=\"shared_handle:forgotPassword\"}\r\n\r\n<h1>Forgot Password</h1>\r\n\r\n{if $smarty.request.temporaryId}\r\n\r\n	<form method=\"post\" action=\"?pg={$page.name}&temporaryId={$smarty.request.temporaryId}\">\r\n		<div class=\"chunk300\">\r\n		<h2 class=\"withBG\">Change Password</h2>\r\n			New Password: <input type=\"password\" class=\"textInput\" name=\"new_password\" value=\"\" /><br />\r\n			Confirm New: <input type=\"password\" class=\"textInput\" name=\"new_password_confirm\" value=\"\" /><br />\r\n			<input type=\"submit\" class=\"button\" name=\"submit\" value=\"Submit\" />\r\n		</div>\r\n	</form>\r\n\r\n{else}\r\n	A temporary URI will be e-mailed to the e-mail address we have\r\n	on file for the username you specified [{$account.username}]. <br />\r\n	<br />\r\n	Click the link inside the e-mail <b>within 30 minutes</b>\r\n	to reset your password.\r\n{/if}'),(5300,328,0.20,'smarty','1','Page created.',1251102579,2,'71.195.230.181','{include_php file=\"shared_handle:forgotPassword\"}\r\n\r\n<h1>Forgot Password</h1>\r\n\r\n{if $smarty.request.temporaryId}\r\n\r\n	<form method=\"post\" action=\"?pg={$page.name}&temporaryId={$smarty.request.temporaryId}\">\r\n		<div class=\"chunk300\">\r\n		<h2 class=\"withBG\">Change Password</h2>\r\n			New Password: <input type=\"password\" class=\"textInput\" name=\"new_password\" value=\"\" /><br />\r\n			Confirm New: <input type=\"password\" class=\"textInput\" name=\"new_password_confirm\" value=\"\" /><br />\r\n			<input type=\"submit\" class=\"button\" name=\"submit\" value=\"Submit\" />\r\n		</div>\r\n	</form>\r\n\r\n{else}\r\n	A temporary link will be e-mailed to the e-mail address we have\r\n	on file for the username you specified [{$account.username}]. <br />\r\n	<br />\r\n	Click the link inside the e-mail <b>within 30 minutes</b>\r\n	to reset your password.<br />\r\n	<br />\r\n	If you do not receive the e-mail or have any other issues, please\r\n	<a href=\"?pg=contact&mfSubject=Login+Trouble\">click here to contact us</a>.<br />\r\n{/if}'),(1202,115,0.15,'smarty','0','Hiding widgets.',1086133395,2,'24.2.64.190','{assign var=\"hideWidgets\" value=\"true\"}\r\n\r\n{if $smarty.request.tm_style_table}\r\n	{session_write var=\"tm_style_table\" value=$smarty.request.tm_style_table}\r\n{/if}\r\n{if $smarty.request.tm_template}\r\n	{session_write var=\"tm_template\" value=$smarty.request.tm_template}\r\n{/if}\r\n\r\n{assign var=\"template\" value=$smarty.session.safe.tm_template|default:\"slate\"}\r\n\r\n{tablemanager\r\n	Assign=\"tm\"\r\n	Group=\"user_lists\"\r\n	Profile=\"my_inbox\"\r\n	DeleteLogFile=\"tm-delete.log\"\r\n	TemplatePath=\"TM/templates/\"\r\n	StyleTablePath=\"systems/jobswap/img/st/\"\r\n	StyleTable=$smarty.session.safe.tm_style_table|default:\"gray\"\r\n	AddTemplate=$template|cat:\"_edit.tpl\"\r\n	MainTemplate=$template|cat:\"_main.tpl\"\r\n	ListTemplate=\"pm_slate_list.tpl\"\r\n	EditTemplate=$template|cat:\"_edit.tpl\"\r\n	ViewTemplate=$template|cat:\"_view.tpl\"\r\n	Action=\"list\"\r\n	LoginRequired=\"true\"\r\n	HeadingColor=\"7089A4\"\r\n	HighlightColor=\"F6F9D5\"\r\n	ResultsPerPage=\"20\"\r\n	Color1=\"F7F7F7\"\r\n	Color2=\"E7E7E7\"\r\n	DataStyle=\"hideWrap\"\r\n	MaxStringLength=\"50\"\r\n	DateFormat=\"l, F d, Y g:i a \"\r\n	}\r\n'),(1203,91,0.68,'smarty','0','Changed (name) to (title) to more correctly correspond with the database.',1086133420,16,'64.85.237.174','{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"newcomp\" from=\"newcomp\" assign=\"newcomp\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n\r\n{* display var=$newcomp *}\r\n\r\n<h1>Create a Competition: Step 1</h1>\r\nIn this first step you will select the competition type, all the detials of your competition, and the type of invitation letter you want to send. Then click \'Next\'\r\n<div class=\"pixel underline\">&nbsp;</div>\r\n<br />\r\n\r\n<form name=\"compStartForm\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{toc_next}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'selectComp\',\'hideSelectComp\', \'showHide\');\"><img id=\"selectComp_img\" src=\"./img/blank.gif\" width=\"48\" height=\"17\" class=\"showHide_{if $newcomp.hideSelectComp eq 1}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Selected Competition Type:</h2>\r\n<input type=\"hidden\" id=\"hideSelectComp\" name=\"newcomp[hideSelectComp]\" value=\"{$newcomp.hideSelectComp|default:0}\" />\r\n<div id=\"selectComp\" style=\"margin:10px;\" style=\"display:{if $newcomp.hideSelectComp eq 1}none{else}block{/if};\">\r\n	<table>\r\n	<tr>\r\n		<td><div id=\"corporate\" style=\"display:{if $newcomp.type eq \"corporate\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_money.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Corporate</h2>\r\n				Discover how WeightLossWars can help your business cut costs, and boost productivity!</div>\r\n			</div>\r\n					\r\n			<div id=\"friends\" style=\"display:{if $newcomp.type eq \"friends\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_family.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Family/Friends</h2>\r\n				\'Call out\' your friends and see who has what it takes to win the Weight War!</div>\r\n			</div>\r\n				\r\n			<div id=\"partner\" style=\"display:{if $newcomp.type eq \"partner\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_weights.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Partner/Spouse</h2>\r\n				Face off in a grueling head to head competition against your spouse or close friend.</div>\r\n			</div>\r\n				\r\n			<div id=\"group\" style=\"display:{if $newcomp.type eq \"group\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_alert.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Group/Club</h2>\r\n				Team up with your homies to battle another group in an all-out weight loss rumble</div>\r\n			</div>\r\n			\r\n			<div class=\"chunk\" style=\"text-align:left; width:140px; height:140px;\" id=\"compRadios\">\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"corporateRadio\" value=\"corporate\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'corporateRadio\').checked=\'true\';selectType();return false;\">Corporate</a><br />\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"friendsRadio\" value=\"friends\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'friendsRadio\').checked=\'true\';selectType();return false;\">Family / Friends</a><br />\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"partnerRadio\" value=\"partner\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'partnerRadio\').checked=\'true\';selectType();return false;\">Partner / Spouse</a><!-- <br />\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"groupRadio\" value=\"group\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'groupRadio\').checked=\'true\';selectType();return false;\">Group / Club</a> -->\r\n			</div></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n\r\n{assign var=\"includeX\" value=\"true\"}\r\n\r\n{if $newcomp.startDate}\r\n	{assign var=\"startDate\" value=$newcomp.startDate}\r\n{else}\r\n	{assign var=\"startDate\" value=$smarty.now}\r\n{/if}\r\n{if $newcomp.endDate}\r\n	{assign var=\"endDate\" value=$newcomp.endDate}\r\n{else}\r\n	{assign var=\"endDate\" value=$smarty.now|math:\"x+5184000\"}  {* Now + 2 Months *}\r\n{/if}\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'selectParams\',\'hideSelectParams\', \'showHide\');\"><img id=\"selectParams_img\" src=\"./img/blank.gif\" class=\"showHide_{if $newcomp.hideSelectParams eq 1}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Competition Details:</h2>\r\n<input type=\"hidden\" id=\"hideSelectParams\" name=\"newcomp[hideSelectParams]\" value=\"{$newcomp.hideSelectParams|default:0}\" />\r\n<div id=\"selectParams\" style=\"margin:10px; display:{if $newcomp.hideSelectParams eq 1}none{else}block{/if};\">\r\n	<table>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><div>Competition Title:</div></td>\r\n		<td><input type=\"text\" name=\"newcomp[title]\" class=\"textInput\" size=\"22\" maxlength=\"32\" style=\"width:220px;\" /></td>\r\n	</tr>\r\n	<tr>\r\n		<td>&nbsp;</td>\r\n		<td><div style=\"margin-left:15px;\"><small>Give your competition a title.</small></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><div>Start Date:</div></td>\r\n		<td valign=\"middle\"><div id=\"fCalendar0\" style=\"float:left; display:none; border:#999999 1px solid; width:100px; z-index:20;\" align=\"center\">\r\n				<iframe name=\"frameCalendar\" height=\"144\" width=\"100%\" src=\"?pg=jscalendar&id=0&year={$startDate|date_format2:\"Y\"}&month={$startDate|date_format2:\"m\"}&day={$startDate|date_format2:\"j\"}\" scrolling=\"No\" frameborder=\"image/gif\"></iframe>\r\n			</div>\r\n			<input type=\"text\" class=\"textLabel\" disabled=\"disabled\" name=\"newcomp[startDateViewable]\" value=\"{if not $newcomp.startDate}Click a Date >{else}{$newcomp.startDate|date_format2:\"M j, Y\"}{/if}\">\r\n			<a href=\"javascript:toggle(\'fCalendar0\');\" onmouseover=\"self.status=\'Show/Hide Calendar\'; return true;\" onmouseout=\"self.status=\'\'; return true;\"><img src=\"{$skinFolder}images/ico_calendar.gif\" border=\"0\" alt=\"Show/Hide Calendar\" /></a>\r\n			<input type=\"hidden\" name=\"newcomp[startDate]\" value=\"\">\r\n		</td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><div>End Date:</div></td>\r\n		<td valign=\"middle\"><div id=\"fCalendar1\" style=\"float:left; display:none; border:#999999 1px solid; width:100px;\" align=\"center\">\r\n				<iframe name=\"frameCalendar2\" height=\"144\" width=\"100%\" src=\"?pg=jscalendar&id=1&year={$endDate|date_format2:\"Y\"}&month={$endDate|date_format2:\"m\"}&day={$endDate|date_format2:\"j\"}\" scrolling=\"No\" frameborder=\"image/gif\"></iframe>\r\n			</div>\r\n			<input type=\"text\" class=\"textLabel\" disabled=\"disabled\" name=\"newcomp[endDateViewable]\" value=\"{if not $newcomp.endDate}Click a Date ^{else}{$newcomp.endDate|date_format2:\"M j, Y\"}{/if}\">\r\n			<a href=\"javascript:toggle(\'fCalendar1\');\" onmouseover=\"self.status=\'Show/Hide Calendar\'; return true;\" onmouseout=\"self.status=\'\'; return true;\"><img src=\"{$skinFolder}images/ico_calendar.gif\" border=\"0\" alt=\"Show/Hide Calendar\" /></a>\r\n			<input type=\"hidden\" name=\"newcomp[endDate]\" value=\"\">\r\n		</td>\r\n	</tr>\r\n	\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><div>Competition Style:</div></td>\r\n		<td><select name=\"newcomp[style]\" size=\"1\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Everyone-vs-Everyone\">Everyone vs. Everyone</option>\r\n			<option value=\"Group-vs-Group\">Team vs. Team</option>\r\n			<option value=\"One-on-One\">One on One</option></select></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><div>Jackpot Method:</div></td>\r\n		<td><select name=\"newcomp[potMethod]\" size=\"1\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Per-competitor Donations\">Per-competitor Donations</option>\r\n			<option value=\"Individual Charity\">Individual Charity</option>\r\n			<option value=\"Company Charity\">Company Charity</option></select></td>\r\n	</tr>\r\n	<tr>\r\n		<td>&nbsp;</td>\r\n		<td><div style=\"margin-left:15px;\"><small>The \"Jackpot\" money can come from everyone, or you can supply the entire \"pot\" by selecting \"Individual Charity\".</small></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\" nowrap><div>Jackpot Contribution:</div></td>\r\n		<td valign=\"middle\"><span style=\"position:relative; top:-5px;\">$</span><input type=\"text\" name=\"newcomp[individualPotAmount]\" class=\"textInput\" size=\"4\" maxlength=\"4\" style=\"width:30px;\" /><span style=\"position:relative; top:-5px;\">.00</span></td>\r\n	</tr>\r\n	<tr>\r\n		<td>&nbsp;</td>\r\n		<td><div style=\"margin-left:15px;\"><small>Each individual must enter this much money into the jackpot to join the competition.</small></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><div>Scoring Method:</div></td>\r\n		<td><select name=\"newcomp[scoringMethod]\" size=\"1\" onchange=\"updateScoringMethod(this);\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Weight Lost\">Weight Lost</option>\r\n			<option value=\"Percentage Weight Lost\">Percentage Weight Lost</option></select></td>\r\n	</tr>\r\n	<tr>\r\n		<td>&nbsp;</td>\r\n		<td><div style=\"margin-left:15px;\"><small>How the winner is determined.</small></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><span>Tie-Breaker Method:</span></td>\r\n		<td><select name=\"newcomp[tieBreakerMethod]\" size=\"1\" onchange=\"updateScoringMethod(this);\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Weight Lost\">Weight Lost</option>\r\n			<option value=\"Percentage Weight Lost\"{if not $newcomp.tieBreakerMethod} selected{/if}>Percentage Weight Lost</option></select></td>\r\n	</tr>\r\n	<tr>\r\n		<td>&nbsp;</td>\r\n		<td><div style=\"margin-left:15px;\"><small>How the winner is determined, in the event of a tie.</small></div></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'selectInvite\', \'hideSelectInvite\', \'showHide\');\"><img id=\"selectInvite_img\" src=\"./img/blank.gif\" class=\"showHide_{if $newcomp.hideSelectInvite eq 1}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Choose an Invitation Style:</h2>\r\n<input type=\"hidden\" id=\"hideSelectInvite\" name=\"newcomp[hideSelectInvite]\" value=\"{$newcomp.hideSelectInvite|default:0}\" />	\r\n<div id=\"selectInvite\" style=\"margin:10px;\" style=\"display:{if $newcomp.hideSelectInvite eq 1}none{else}block{/if};\">\r\n	<table>\r\n	<tr>\r\n		<td><div>\r\n			Select the type of invitation you want to send.</div>\r\n				\r\n		<div id=\"smack\" style=\"display:{if $newcomp.type eq \"corporate\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_money.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">SMACK!</h2>\r\n				<b>example:</b><br /> &quot;Hey Blubber Butt,I challenge you to the battle of all battles...&quot;</div>\r\n			</div>\r\n					\r\n			<div id=\"challenge\" style=\"display:{if $newcomp.type eq \"friends\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_family.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Challenge</h2>\r\n				<b>example:</b><br /> &quot;I\'m putting up $100 that says I can take you down in a 6-week weight-loss competition...&quot;</div>\r\n			</div>\r\n				\r\n			<div id=\"friendly\" style=\"display:{if $newcomp.type eq \"partner\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_weights.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Friendly</h2>\r\n				<b>example:</b><br /> &quot;A healthy weight loss challenge is what we all need to lose these extra pounds...&quot;</div>\r\n			</div>\r\n			\r\n			<div class=\"chunk\" style=\"text-align:left; width:140px; height:140px;\" id=\"inviteRadios\">\r\n				<input type=\"radio\" name=\"newcomp[invitationType]\" id=\"smackRadio\" value=\"smack\" onclick=\"selectInvite();\" onchange=\"selectInvite();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'smackRadio\').checked=\'true\';selectInvite();return false;\">SMACK!</a><br />\r\n				<input type=\"radio\" name=\"newcomp[invitationType]\" id=\"challengeRadio\" value=\"challenge\" onclick=\"selectInvite();\" onchange=\"selectInvite();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'challengeRadio\').checked=\'true\';selectInvite();return false;\">Challenge</a><br />\r\n				<input type=\"radio\" name=\"newcomp[invitationType]\" id=\"friendlyRadio\" value=\"friendly\" onclick=\"selectInvite();\" onchange=\"selectInvite();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'friendlyRadio\').checked=\'true\';selectInvite();return false;\">Friendly</a>\r\n			</div></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n\r\n<div class=\"hBox\" align=\"right\" style=\"margin:0px;\">\r\n	<a href=\"javascript:document.compStartForm.submit();\"><img src=\"{$skinFolder}images/btn_next.gif\" border=\"0\" /></a></div>\r\n\r\n{stored_object_fill_form object=$newcomp name=\"newcomp\"}\r\n\r\n</form>\r\n\r\n	<script language=\"JavaScript\">{literal}\r\n	function selectType() {\r\n		var type;\r\n		var types = Array(\'corporate\',\'friends\',\'partner\',\'group\');\r\n		var elems = document.getElementsByName(\'newcomp[type]\');\r\n	\r\n		for (var x = 0; x < elems.length; x++) {\r\n			if (elems[x].checked) {\r\n				type = elems[x].value;\r\n				break;\r\n			}\r\n		}\r\n	\r\n		if (!type) type = \'friends\';\r\n	\r\n		for (x = 0; x < types.length; x++) {\r\n			document.getElementById(types[x]).style.display = (types[x] != type) ? \'none\' : \'block\';\r\n		}\r\n	\r\n		return false;\r\n	}\r\n	\r\n	function selectInvite() {\r\n		var type;\r\n		var types = Array(\'smack\',\'challenge\',\'friendly\');\r\n		var elems = document.getElementsByName(\'newcomp[invitationType]\');\r\n	\r\n		for (var x = 0; x < elems.length; x++) {\r\n			if (elems[x].checked) {\r\n				type = elems[x].value;\r\n				break;\r\n			}\r\n		}\r\n	\r\n		if (!type) type = \'smack\';\r\n	\r\n		for (x = 0; x < types.length; x++) {\r\n			document.getElementById(types[x]).style.display = (types[x] != type) ? \'none\' : \'block\';\r\n		}\r\n	\r\n		return false;\r\n	}\r\n	\r\n	function updateScoringMethod(obj) {\r\n		var name = obj.name;\r\n		var other = (name == \'newcomp[scoringMethod]\') ? \'newcomp[tieBreakerMethod]\' : \'newcomp[scoringMethod]\';\r\n		other = document.getElementsByName(other)[0];\r\n	\r\n		other.selectedIndex = (obj.selectedIndex == 0) ? 1 : 0;\r\n	}\r\n	\r\n	{/literal}\r\n</script>'),(1531,124,0.42,'smarty','0','Added return button... for now.',1087447195,2,'67.166.75.185','<h1>Competition Entry Fee Payment</h1>\r\n\r\n{include_php file=\"shared_handle:competition.prepareContribution\"}\r\n{include_php file=\"shared_handle:competition.processContribution\"}\r\n\r\n{select_query assign=\"userInfo\" return=\"row\"}\r\n	firstName, lastName, address1, address2, city, state, country, zip\r\n	FROM _users	\r\n	WHERE id = \'{$user->id}\'\r\n{/select_query}\r\n\r\n{if $isComplete}\r\n	<div align=\"right\"><a href=\"?pg={$smarty.request.return|default:\"home\"}\">Return</a></div>\r\n{else}\r\n\r\n<form name=\"potContribution\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:\"home\"}\" />\r\n<input type=\"hidden\" name=\"cid\" value=\"{$smarty.request.cid}\" />\r\n\r\n{if $competition}\r\n\r\n<input type=\"hidden\" name=\"contribution[cid]\" value=\"{$competition.id|default:\"newcomp\"}\" />\r\n<input type=\"hidden\" name=\"contribution[total]\" value=\"{$competition.total}\" />\r\n\r\nYou are about to pay the entry fee for the following competition. Please make sure this is the correct competition before proceding!<br /><br />\r\n\r\nCompetition Title: <b>{$competition.title}</b><br />\r\nCompetition Type: <b>{$competition.type|niceText}, {$competition.style}</b><br />\r\nStarted By: <b>{$competition.firstName} {$competition.lastName} ({$competition.username})</b><br />\r\nTerm: <b>{$competition.startDate|date_format2:\"M j, Y\"} to {$competition.endDate|date_format2:\"M j, Y\"}</b><br />\r\n<br />\r\n{if $competition.individualPotAmount}\r\n	Individual Pot Contribution Amount: <b>${$competition.individualPotAmount|number_format:\"2\"}</b> (You are agreeing to pay the winner this amount when the competition is over!)<br />\r\n{else}\r\n	There is no individual contribution required for this competition, as it is funded by third party donations ({$competition.potMethod}).<br />\r\n{/if}\r\nWeightLossWars.com Entry Fee: <b>${$competition.entryFee|number_format:\"2\"}</b><br />\r\n<h2 class=\"underline\">&nbsp;</h2>\r\nTOTAL: <em>${$competition.total|number_format:\"2\"}</em><br />\r\n<h2 class=\"overline\">&nbsp;</h2>\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Billing Information</h2>\r\n	First Name:\r\n	<input type=\"text\" name=\"bill[firstname]\" value=\"{$smarty.request.bill.firstname|default:$userInfo.firstName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Last Name:\r\n	<input type=\"text\" name=\"bill[lastname]\" value=\"{$smarty.request.bill.lastname|default:$userInfo.lastName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Address:\r\n	<input type=\"text\" name=\"bill[address1]\" value=\"{$smarty.request.bill.address1|default:$userInfo.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"bill[address2]\" value=\"{$smarty.request.bill.address2|default:$userInfo.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	City:\r\n	<input type=\"text\" name=\"bill[city]\" value=\"{$smarty.request.bill.city|default:$userInfo.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	State, Zip, Country:\r\n	<input type=\"text\" name=\"bill[state]\" value=\"{$smarty.request.bill.state|default:$userInfo.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"bill[zip]\" value=\"{$smarty.request.bill.zip|default:$userInfo.zip}\" class=\"textInput\" style=\"width:50px;\" />\r\n	<input type=\"text\" name=\"bill[country]\" value=\"{$smarty.request.bill.country|default:$userInfo.country}\" class=\"textInput\" style=\"width:50px;\" maxlength=\"2\" /><br />\r\n</div>\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Payment Information</h2>\r\n	Payment Method:\r\n	<select name=\"bill[paymentMethod]\" size=\"1\">\r\n		<option value=\"Visa\"{if $smarty.request.bill.paymentMethod eq \"Visa\"} selected{/if}>Visa</option>\r\n		<option value=\"Mastercard\"{if $smarty.request.bill.paymentMethod eq \"Mastercard\"} selected{/if}>Mastercard</option>	\r\n	</select><br />\r\n\r\n	Card Number:\r\n	<input type=\"text\" name=\"bill[ccnum]\" value=\"\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Expiration Date: <small>(MMYY)</small>\r\n	<input type=\"text\" name=\"bill[ccexp]\" value=\"\" class=\"textInput\" maxlength=\"4\" style=\"width:50px;\" /><br />\r\n</div>\r\n</td></tr></table>\r\n<div class=\"hBox\" style=\"text-align:right;\">\r\n	<a href=\"javascript://\" onclick=\"document.forms[\'potContribution\'].submit(); return false;\" class=\"button\"> Submit Contribution </a>\r\n</div>\r\n<div id=\"fMatches\" class=\"xFloat\" style=\"padding:3px; background-color:#FFFFFF; border:#666666 1px solid;\"></div>\r\n\r\n{if $modules.spadeAutoComplete}\r\n	<script language=\"JavaScript\" src=\"{$modules.x}\"></script>\r\n	<script language=\"JavaScript\" src=\"{$modules.spadeAutoComplete}\"></script>\r\n	<script language=\"JavaScript\">\r\n		var states = new Array(\'AL\',\'AK\',\'AS\',\'AZ\',\'AR\',\'CA\',\'CO\',\'CT\',\'DE\',\'DC\',\'FL\',\'GA\',\'GU\',\r\n					\'HI\',\'ID\',\'IL\',\'IN\',\'IA\',\'KS\',\'KY\',\'LA\',\'ME\',\'MH\',\'MD\',\'MA\',\r\n					\'MI\',\'MN\',\'MS\',\'MO\',\'MT\',\'NE\',\'NV\',\'NH\',\'NJ\',\'NM\',\'NY\',\'NC\',\r\n					\'ND\',\'OH\',\'OK\',\'OR\',\'PW\',\'PA\',\'PR\',\'RI\',\'SC\',\'SD\',\'TN\',\'TX\',\r\n					\'UT\',\'VT\',\'USVI\',\'VA\',\'WA\',\'WV\',\'WI\',\'WY\',\'AB\',\'BC\',\'LB\',\'MB\',\r\n					\'NB\',\'NF\',\'NT\',\'NS\',\'ON\',\'PE\',\'PQ\',\'SK\',\'YT\');\r\n		initAutoComplete(\'bill[state]\', \'states\', true);\r\n\r\n		{* var countries = new Array (\'United States of America\', \'Canada\', \'Germany\', \'United Kingdom\', \'India\', \'---------------------\', \'Albania\', \'Algeria\', \'Andorra\', \'Angola\', \'Anguilla\', \'Antarctica\', \'Antigua and Barbuda\', \'Argentina\', \'Armenia\', \'Aruba\', \'Australia\', \'Austria\', \'Azerbaijan\', \'Bahamas\', \'Bahrain\', \'Bangladesh\', \'Barbados\', \'Belarus\', \'Belgium\', \'Belize\', \'Benin\', \'Bermuda\', \'Bhutan\', \'Bolivia\', \'Bosnia and Herzegowina\', \'Botswana\', \'Bouvet Island\', \'Brazil\', \'British Ind. Ocean Terr\', \'Brunei Darussalam\', \'Bulgaria\', \'Burkina Faso\', \'Burundi\', \'Cambodia\', \'Cameroon\', \'Cape Verde\', \'Cayman Islands\', \'Central African Rep.\', \'Chad\', \'Chile\', \'China\', \'Christmas Island\', \'Cocoa (Keeling) Isl.\', \'Colombia\', \'Comoros\', \'Congo\', \'Cook Islands\', \'Costa Rica\', \'Cote Divoire\', \'Hrvatska\', \'Cyprus\', \'Czech Republic\', \'Denmark\', \'Djibouti\', \'Dominica\', \'Dominican Republic\', \'East Timor\', \'Ecuador\', \'Egypt\', \'El Salvador\', \'Equatorial Guinea\', \'Eritrea\', \'Estonia\', \'Ethiopia\', \'Falkland Isl. (Malvinas)\', \'Faroe Islands\', \'Fiji\', \'Finland\', \'France\', \'French Guiana\', \'French Polynesia\', \'French Southern Terr.\', \'Gabon\', \'Gambia\', \'Georgia\', \'Ghana\', \'Gibraltar\', \'Greece\', \'Greenland\', \'Grenada\', \'Guadeloupe\', \'Guatemala\', \'Guinea\', \'Guinea-Bissau\', \'Guyana\', \'Haiti\', \'Heard & McDonald Isl.\', \'Honduras\', \'Hong Kong\', \'Hungary\', \'Iceland\', \'Indonesia\', \'Ireland\', \'Israel\', \'Italy\', \'Jamaica\', \'Japan\', \'Jordan\', \'Kazakhstan\', \'Kenya\', \'Kiribati\', \'Republic of Korea\', \'Kuwait\', \'Kyrgyzstan\', \'Lao Peoples Dem. Rep.\', \'Latvia\', \'Lebanon\', \'Lesotho\', \'Liberia\', \'Liechtenstein\', \'Lithuania\', \'Luxembourg\', \'Macau\', \'Macedonia\', \'Madagascar\', \'Malawi\', \'Malaysia\', \'Maldives\', \'Mali\', \'Malta\', \'Marshall Islands\', \'Martinique\', \'Mauritania\', \'Mauritius\', \'Mayotte\', \'Mexico\', \'Micronesia: Fed. States of\', \'Moldova: Republic of\', \'Monaco\', \'Mongolia\', \'Montserrat\', \'Morocco\', \'Mozambique\', \'Myanmar\', \'Namibia\', \'Nauru\', \'Nepal\', \'Netherlands\', \'Netherlands Antilles\', \'New Caledonia\', \'New Zealand\', \'Nicaragua\', \'Niger\', \'Nigeria\', \'Niue\', \'Norfolk Island\', \'Northern Mariana Isl.\', \'Norway\', \'Oman\', \'Pakistan\', \'Palau\', \'Panama\', \'Papua New Guinea\', \'Paraguay\', \'Peru\', \'Philippines\', \'Pitcairn\', \'Poland\', \'Portugal\', \'Qatar\', \'Reunion\', \'Romania\', \'Russian Federation\', \'Rwanda\', \'Saint Kitts and Nevis\', \'Saint Lucia\', \'St. Vincent & Grenadines\', \'Samoa\', \'San Marino\', \'Sao Tome and Principe\', \'Saudi Arabia\', \'Senegal\', \'Seychelles\', \'Sierra Leone\', \'Singapore\', \'Slovakia\', \'Slovenia\', \'Solomon Islands\', \'Somalia\', \'South Africa\', \'S. Georgia & S. Sandwich Isl.\', \'Spain\', \'Sri Lanka\', \'St. Helena\', \'St. Pierre and Miquelon\', \'Suriname\', \'Svalbard & Jan Mayen Isl.\', \'Swaziland\', \'Sweden\', \'Switzerland\', \'Syrian Arab Republic\', \'Taiwan\', \'Tajikistan\', \'Tanzania: United Rep. of\', \'Thailand\', \'Togo\', \'Tokelau\', \'Tonga\', \'Trinidad and Tobago\', \'Tunisia\', \'Turkey\', \'Turkmenistan\', \'Turks and Caicos Islands\', \'Tuvalu\', \'Uganda\', \'Ukraine\', \'United Arab Emirates\', \'US Minor Outlying Isl.\', \'Uruguay\', \'Uzbekistan\', \'Vanuatu\', \'Vatican City (Holy See)\', \'Venezuela\', \'Vietnam\', \'Virgin Islands (British)\', \'Wallis and Futuna Islands\', \'Western Sahara\', \'Yemen\', \'Yugoslavia\', \'Zaire\', \'Zambia\', \'Zimbabwe\', \'Not Listed\'); *}\r\n		var countries = new Array (\'USA\', \'Canada\', \'Germany\', \'UK\', \'India\', \'Albania\', \'Algeria\', \'Andorra\', \'Angola\', \'Anguilla\', \'Antarctica\', \'Antigua and Barbuda\', \'Argentina\', \'Armenia\', \'Aruba\', \'Australia\', \'Austria\', \'Azerbaijan\', \'Bahamas\', \'Bahrain\', \'Bangladesh\', \'Barbados\', \'Belarus\', \'Belgium\', \'Belize\', \'Benin\', \'Bermuda\', \'Bhutan\', \'Bolivia\', \'Bosnia and Herzegowina\', \'Botswana\', \'Bouvet Island\', \'Brazil\', \'British Ind. Ocean Terr\', \'Brunei Darussalam\', \'Bulgaria\', \'Burkina Faso\', \'Burundi\', \'Cambodia\', \'Cameroon\', \'Cape Verde\', \'Cayman Islands\', \'Central African Rep.\', \'Chad\', \'Chile\', \'China\', \'Christmas Island\', \'Cocoa (Keeling) Isl.\', \'Colombia\', \'Comoros\', \'Congo\', \'Cook Islands\', \'Costa Rica\', \'Cote Divoire\', \'Hrvatska\', \'Cyprus\', \'Czech Republic\', \'Denmark\', \'Djibouti\', \'Dominica\', \'Dominican Republic\', \'East Timor\', \'Ecuador\', \'Egypt\', \'El Salvador\', \'Equatorial Guinea\', \'Eritrea\', \'Estonia\', \'Ethiopia\', \'Falkland Isl. (Malvinas)\', \'Faroe Islands\', \'Fiji\', \'Finland\', \'France\', \'French Guiana\', \'French Polynesia\', \'French Southern Terr.\', \'Gabon\', \'Gambia\', \'Georgia\', \'Ghana\', \'Gibraltar\', \'Greece\', \'Greenland\', \'Grenada\', \'Guadeloupe\', \'Guatemala\', \'Guinea\', \'Guinea-Bissau\', \'Guyana\', \'Haiti\', \'Heard & McDonald Isl.\', \'Honduras\', \'Hong Kong\', \'Hungary\', \'Iceland\', \'Indonesia\', \'Ireland\', \'Israel\', \'Italy\', \'Jamaica\', \'Japan\', \'Jordan\', \'Kazakhstan\', \'Kenya\', \'Kiribati\', \'Republic of Korea\', \'Kuwait\', \'Kyrgyzstan\', \'Lao Peoples Dem. Rep.\', \'Latvia\', \'Lebanon\', \'Lesotho\', \'Liberia\', \'Liechtenstein\', \'Lithuania\', \'Luxembourg\', \'Macau\', \'Macedonia\', \'Madagascar\', \'Malawi\', \'Malaysia\', \'Maldives\', \'Mali\', \'Malta\', \'Marshall Islands\', \'Martinique\', \'Mauritania\', \'Mauritius\', \'Mayotte\', \'Mexico\', \'Micronesia: Fed. States of\', \'Moldova: Republic of\', \'Monaco\', \'Mongolia\', \'Montserrat\', \'Morocco\', \'Mozambique\', \'Myanmar\', \'Namibia\', \'Nauru\', \'Nepal\', \'Netherlands\', \'Netherlands Antilles\', \'New Caledonia\', \'New Zealand\', \'Nicaragua\', \'Niger\', \'Nigeria\', \'Niue\', \'Norfolk Island\', \'Northern Mariana Isl.\', \'Norway\', \'Oman\', \'Pakistan\', \'Palau\', \'Panama\', \'Papua New Guinea\', \'Paraguay\', \'Peru\', \'Philippines\', \'Pitcairn\', \'Poland\', \'Portugal\', \'Qatar\', \'Reunion\', \'Romania\', \'Russian Federation\', \'Rwanda\', \'Saint Kitts and Nevis\', \'Saint Lucia\', \'St. Vincent & Grenadines\', \'Samoa\', \'San Marino\', \'Sao Tome and Principe\', \'Saudi Arabia\', \'Senegal\', \'Seychelles\', \'Sierra Leone\', \'Singapore\', \'Slovakia\', \'Slovenia\', \'Solomon Islands\', \'Somalia\', \'South Africa\', \'S. Georgia & S. Sandwich Isl.\', \'Spain\', \'Sri Lanka\', \'St. Helena\', \'St. Pierre and Miquelon\', \'Suriname\', \'Svalbard & Jan Mayen Isl.\', \'Swaziland\', \'Sweden\', \'Switzerland\', \'Syrian Arab Republic\', \'Taiwan\', \'Tajikistan\', \'Tanzania: United Rep. of\', \'Thailand\', \'Togo\', \'Tokelau\', \'Tonga\', \'Trinidad and Tobago\', \'Tunisia\', \'Turkey\', \'Turkmenistan\', \'Turks and Caicos Islands\', \'Tuvalu\', \'Uganda\', \'Ukraine\', \'United Arab Emirates\', \'US Minor Outlying Isl.\', \'Uruguay\', \'Uzbekistan\', \'Vanuatu\', \'Vatican City (Holy See)\', \'Venezuela\', \'Vietnam\', \'Virgin Islands (British)\', \'Wallis and Futuna Islands\', \'Western Sahara\', \'Yemen\', \'Yugoslavia\', \'Zaire\', \'Zambia\', \'Zimbabwe\', \'Not Listed\');\r\n		\r\n		initAutoComplete(\'bill[country]\', \'countries\', true);\r\n	</script>\r\n{/if}\r\n\r\n{else}   {* If NOT competition... *}\r\n\r\n	Because errors were encountered, we cannont process your contribution at this time. If you continue to have problems, please <a href=\"?pg=contact\">contact us</a>.\r\n\r\n{/if}\r\n\r\n</form>\r\n\r\n{/if}  {* If is NOT complete... *}'),(1523,142,0.17,'php','0','Change to ucfirst instead of ucwords.',1087372016,2,'67.166.75.185','<h1>Nutrition Database Fix</h1>\r\n\r\n<?php\r\n\r\nif (!$_REQUEST[\'confirm\']) {\r\n	?>\r\n	<a href=\"?pg=<?php echo $SPADE[\'page\'][\'name\']; ?>&confirm=true\">Click here to proceed.</a>\r\n	<?php\r\n} else {\r\n	// Here we go!\r\n\r\n	$datas = $SPADE[\'db\']->query(\"SELECT id, description FROM nutrition\");\r\n\r\n	foreach ($datas as $item) {\r\n		//$SPADE[\'db\']->query(\"UPDATE nutrition SET description = \'\".addslashes(ucwords($item[\'description\'])).\"\' WHERE id = \'\".$item[\'id\'].\"\'\");\r\n		echo \"UPDATE nutrition SET description = \'\".addslashes(ucfirst(strtolower($item[\'description\']))).\"\' WHERE id = \'\".$item[\'id\'].\"\'\".BR;\r\n	}\r\n\r\n	//display($datas);\r\n}\r\n\r\n?>'),(1524,142,0.18,'php','1','Actual queries... using ucwords',1087372879,2,'67.166.75.185','<h1>Nutrition Database Fix</h1>\r\n\r\n<?php\r\n\r\nif (!$_REQUEST[\'confirm\']) {\r\n	?>\r\n	<a href=\"?pg=<?php echo $SPADE[\'page\'][\'name\']; ?>&confirm=true\">Click here to proceed.</a>\r\n	<?php\r\n} else {\r\n	// Here we go!\r\n\r\n	$datas = $SPADE[\'db\']->query(\"SELECT id, description FROM nutrition\");\r\n\r\n	foreach ($datas as $item) {\r\n		$SPADE[\'db\']->query(\"UPDATE nutrition SET description = \'\".addslashes(ucwords(strtolower($item[\'description\']))).\"\' WHERE id = \'\".$item[\'id\'].\"\'\");\r\n		//echo \"UPDATE nutrition SET description = \'\".addslashes(ucwords(strtolower($item[\'description\']))).\"\' WHERE id = \'\".$item[\'id\'].\"\'\".BR;\r\n	}\r\n\r\n	//display($datas);\r\n}\r\n\r\n?>'),(1525,141,0.13,'smarty','0','Added USDA note',1087373185,2,'67.166.75.185','<h1 class=\"underline\">Nutrition Data</h1>\r\n<p>Browse through our database of nutrition information, to help you track your calories and such. This data has been provided by the USDA.</p>\r\n\r\n{tablemanager\r\n	Assign=\"tm\"\r\n	Group=\"display_tools\"\r\n	Profile=\"nutrition\"\r\n	DeleteLogFile=\"tm-delete.log\"\r\n	TemplatePath=\"TM/templates/\"\r\n	StyleTablePath=\"systems/wlw/img/st/\"\r\n	AddTemplate=\"slate_edit.tpl\"\r\n	MainTemplate=\"nutrition_main.tpl\"\r\n	ListTemplate=\"nutrition_list.tpl\"\r\n	EditTemplate=\"slate_edit.tpl\"\r\n	ViewTemplate=\"nutrition_view.tpl\"\r\n	Action=\"list\"\r\n	LoginRequired=\"true\"\r\n	HeadingColor=\"99CCFF\"\r\n	HighlightColor=\"F6F9D5\"\r\n	HeadingStyle=\"heading\"\r\n	ResultsPerPage=\"20\"\r\n	Color1=\"F7F7F7\"\r\n	Color2=\"E7E7E7\"\r\n	DataStyle=\"hideWrap\"\r\n	MaxStringLength=\"50\"\r\n	DateFormat=\"l, F d, Y g:i a \"\r\n	}\r\n'),(1526,124,0.38,'smarty','0','Added handler for contribution processing.',1087439953,2,'67.166.75.185','<h1>Competition Entry Fee Payment</h1>\r\n\r\n{include_php file=\"shared_handle:competition.prepareContribution\"}\r\n{include_php file=\"shared_handle:competition.processContribution\"}\r\n\r\n{select_query assign=\"userInfo\" return=\"row\"}\r\n	firstName, lastName, address1, address2, city, state, country, zip\r\n	FROM _users	\r\n	WHERE id = \'{$user->id}\'\r\n{/select_query}\r\n\r\n\r\n<form name=\"potContribution\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:\"home\"}\" />\r\n\r\n{if $competition}\r\n\r\n<input type=\"hidden\" name=\"contribution[cid]\" value=\"{$competition.id|default:\"newcomp\"}\" />\r\n<input type=\"hidden\" name=\"contribution[total]\" value=\"{$competition.total}\" />\r\n\r\nYou are about to pay the entry fee for the following competition. Please make sure this is the correct competition before proceding!<br /><br />\r\n\r\nCompetition Title: <b>{$competition.title}</b><br />\r\nCompetition Type: <b>{$competition.type|niceText}, {$competition.style}</b><br />\r\nStarted By: <b>{$competition.firstName} {$competition.lastName} ({$competition.username})</b><br />\r\nTerm: <b>{$competition.startDate|date_format2:\"M j, Y\"} to {$competition.endDate|date_format2:\"M j, Y\"}</b><br />\r\n<br />\r\n{if $competition.individualPotAmount}\r\n	Individual Pot Contribution Amount: <b>${$competition.individualPotAmount|number_format:\"2\"}</b> (You are agreeing to pay the winner this amount when the competition is over!)<br />\r\n{else}\r\n	There is no individual contribution required for this competition, as it is funded by third party donations ({$competition.potMethod}).<br />\r\n{/if}\r\nWeightLossWars.com Entry Fee: <b>${$competition.entryFee|number_format:\"2\"}</b><br />\r\n<h2 class=\"underline\">&nbsp;</h2>\r\nTOTAL: <em>${$competition.total|number_format:\"2\"}</em><br />\r\n<h2 class=\"overline\">&nbsp;</h2>\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Billing Information</h2>\r\n	First Name:\r\n	<input type=\"text\" name=\"bill[firstname]\" value=\"{$smarty.request.bill.firstname|default:$userInfo.firstName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Last Name:\r\n	<input type=\"text\" name=\"bill[lastname]\" value=\"{$smarty.request.bill.lastname|default:$userInfo.lastName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Address:\r\n	<input type=\"text\" name=\"bill[address1]\" value=\"{$smarty.request.bill.address1|default:$userInfo.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"bill[address2]\" value=\"{$smarty.request.bill.address2|default:$userInfo.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	City:\r\n	<input type=\"text\" name=\"bill[city]\" value=\"{$smarty.request.bill.city|default:$userInfo.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	State, Zip, Country:\r\n	<input type=\"text\" name=\"bill[state]\" value=\"{$smarty.request.bill.state|default:$userInfo.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"bill[zip]\" value=\"{$smarty.request.bill.zip|default:$userInfo.zip}\" class=\"textInput\" style=\"width:50px;\" />\r\n	<input type=\"text\" name=\"bill[country]\" value=\"{$smarty.request.bill.country|default:$userInfo.country}\" class=\"textInput\" style=\"width:50px;\" maxlength=\"2\" /><br />\r\n</div>\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Payment Information</h2>\r\n	Payment Method:\r\n	<select name=\"bill[paymentMethod]\" size=\"1\">\r\n		<option value=\"Visa\"{if $smarty.request.bill.paymentMethod eq \"Visa\"} selected{/if}>Visa</option>\r\n		<option value=\"Mastercard\"{if $smarty.request.bill.paymentMethod eq \"Mastercard\"} selected{/if}>Mastercard</option>	\r\n	</select><br />\r\n\r\n	Card Number:\r\n	<input type=\"text\" name=\"bill[ccnum]\" value=\"\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Expiration Date: <small>(MMYY)</small>\r\n	<input type=\"text\" name=\"bill[ccexp]\" value=\"\" class=\"textInput\" maxlength=\"4\" style=\"width:50px;\" /><br />\r\n</div>\r\n</td></tr></table>\r\n<div class=\"hBox\" style=\"text-align:right;\">\r\n	<a href=\"javascript://\" class=\"button\"> Submit Contribution </a>\r\n</div>\r\n<div id=\"fMatches\" class=\"xFloat\" style=\"padding:3px; background-color:#FFFFFF; border:#666666 1px solid;\"></div>\r\n\r\n{if $modules.spadeAutoComplete}\r\n	<script language=\"JavaScript\" src=\"{$modules.x}\"></script>\r\n	<script language=\"JavaScript\" src=\"{$modules.spadeAutoComplete}\"></script>\r\n	<script language=\"JavaScript\">\r\n		var states = new Array(\'AL\',\'AK\',\'AS\',\'AZ\',\'AR\',\'CA\',\'CO\',\'CT\',\'DE\',\'DC\',\'FL\',\'GA\',\'GU\',\r\n					\'HI\',\'ID\',\'IL\',\'IN\',\'IA\',\'KS\',\'KY\',\'LA\',\'ME\',\'MH\',\'MD\',\'MA\',\r\n					\'MI\',\'MN\',\'MS\',\'MO\',\'MT\',\'NE\',\'NV\',\'NH\',\'NJ\',\'NM\',\'NY\',\'NC\',\r\n					\'ND\',\'OH\',\'OK\',\'OR\',\'PW\',\'PA\',\'PR\',\'RI\',\'SC\',\'SD\',\'TN\',\'TX\',\r\n					\'UT\',\'VT\',\'USVI\',\'VA\',\'WA\',\'WV\',\'WI\',\'WY\',\'AB\',\'BC\',\'LB\',\'MB\',\r\n					\'NB\',\'NF\',\'NT\',\'NS\',\'ON\',\'PE\',\'PQ\',\'SK\',\'YT\');\r\n		initAutoComplete(bill[state]\', \'states\', true);\r\n\r\n		{* var countries = new Array (\'United States of America\', \'Canada\', \'Germany\', \'United Kingdom\', \'India\', \'---------------------\', \'Albania\', \'Algeria\', \'Andorra\', \'Angola\', \'Anguilla\', \'Antarctica\', \'Antigua and Barbuda\', \'Argentina\', \'Armenia\', \'Aruba\', \'Australia\', \'Austria\', \'Azerbaijan\', \'Bahamas\', \'Bahrain\', \'Bangladesh\', \'Barbados\', \'Belarus\', \'Belgium\', \'Belize\', \'Benin\', \'Bermuda\', \'Bhutan\', \'Bolivia\', \'Bosnia and Herzegowina\', \'Botswana\', \'Bouvet Island\', \'Brazil\', \'British Ind. Ocean Terr\', \'Brunei Darussalam\', \'Bulgaria\', \'Burkina Faso\', \'Burundi\', \'Cambodia\', \'Cameroon\', \'Cape Verde\', \'Cayman Islands\', \'Central African Rep.\', \'Chad\', \'Chile\', \'China\', \'Christmas Island\', \'Cocoa (Keeling) Isl.\', \'Colombia\', \'Comoros\', \'Congo\', \'Cook Islands\', \'Costa Rica\', \'Cote Divoire\', \'Hrvatska\', \'Cyprus\', \'Czech Republic\', \'Denmark\', \'Djibouti\', \'Dominica\', \'Dominican Republic\', \'East Timor\', \'Ecuador\', \'Egypt\', \'El Salvador\', \'Equatorial Guinea\', \'Eritrea\', \'Estonia\', \'Ethiopia\', \'Falkland Isl. (Malvinas)\', \'Faroe Islands\', \'Fiji\', \'Finland\', \'France\', \'French Guiana\', \'French Polynesia\', \'French Southern Terr.\', \'Gabon\', \'Gambia\', \'Georgia\', \'Ghana\', \'Gibraltar\', \'Greece\', \'Greenland\', \'Grenada\', \'Guadeloupe\', \'Guatemala\', \'Guinea\', \'Guinea-Bissau\', \'Guyana\', \'Haiti\', \'Heard & McDonald Isl.\', \'Honduras\', \'Hong Kong\', \'Hungary\', \'Iceland\', \'Indonesia\', \'Ireland\', \'Israel\', \'Italy\', \'Jamaica\', \'Japan\', \'Jordan\', \'Kazakhstan\', \'Kenya\', \'Kiribati\', \'Republic of Korea\', \'Kuwait\', \'Kyrgyzstan\', \'Lao Peoples Dem. Rep.\', \'Latvia\', \'Lebanon\', \'Lesotho\', \'Liberia\', \'Liechtenstein\', \'Lithuania\', \'Luxembourg\', \'Macau\', \'Macedonia\', \'Madagascar\', \'Malawi\', \'Malaysia\', \'Maldives\', \'Mali\', \'Malta\', \'Marshall Islands\', \'Martinique\', \'Mauritania\', \'Mauritius\', \'Mayotte\', \'Mexico\', \'Micronesia: Fed. States of\', \'Moldova: Republic of\', \'Monaco\', \'Mongolia\', \'Montserrat\', \'Morocco\', \'Mozambique\', \'Myanmar\', \'Namibia\', \'Nauru\', \'Nepal\', \'Netherlands\', \'Netherlands Antilles\', \'New Caledonia\', \'New Zealand\', \'Nicaragua\', \'Niger\', \'Nigeria\', \'Niue\', \'Norfolk Island\', \'Northern Mariana Isl.\', \'Norway\', \'Oman\', \'Pakistan\', \'Palau\', \'Panama\', \'Papua New Guinea\', \'Paraguay\', \'Peru\', \'Philippines\', \'Pitcairn\', \'Poland\', \'Portugal\', \'Qatar\', \'Reunion\', \'Romania\', \'Russian Federation\', \'Rwanda\', \'Saint Kitts and Nevis\', \'Saint Lucia\', \'St. Vincent & Grenadines\', \'Samoa\', \'San Marino\', \'Sao Tome and Principe\', \'Saudi Arabia\', \'Senegal\', \'Seychelles\', \'Sierra Leone\', \'Singapore\', \'Slovakia\', \'Slovenia\', \'Solomon Islands\', \'Somalia\', \'South Africa\', \'S. Georgia & S. Sandwich Isl.\', \'Spain\', \'Sri Lanka\', \'St. Helena\', \'St. Pierre and Miquelon\', \'Suriname\', \'Svalbard & Jan Mayen Isl.\', \'Swaziland\', \'Sweden\', \'Switzerland\', \'Syrian Arab Republic\', \'Taiwan\', \'Tajikistan\', \'Tanzania: United Rep. of\', \'Thailand\', \'Togo\', \'Tokelau\', \'Tonga\', \'Trinidad and Tobago\', \'Tunisia\', \'Turkey\', \'Turkmenistan\', \'Turks and Caicos Islands\', \'Tuvalu\', \'Uganda\', \'Ukraine\', \'United Arab Emirates\', \'US Minor Outlying Isl.\', \'Uruguay\', \'Uzbekistan\', \'Vanuatu\', \'Vatican City (Holy See)\', \'Venezuela\', \'Vietnam\', \'Virgin Islands (British)\', \'Wallis and Futuna Islands\', \'Western Sahara\', \'Yemen\', \'Yugoslavia\', \'Zaire\', \'Zambia\', \'Zimbabwe\', \'Not Listed\'); *}\r\n		var countries = new Array (\'USA\', \'Canada\', \'Germany\', \'UK\', \'India\', \'Albania\', \'Algeria\', \'Andorra\', \'Angola\', \'Anguilla\', \'Antarctica\', \'Antigua and Barbuda\', \'Argentina\', \'Armenia\', \'Aruba\', \'Australia\', \'Austria\', \'Azerbaijan\', \'Bahamas\', \'Bahrain\', \'Bangladesh\', \'Barbados\', \'Belarus\', \'Belgium\', \'Belize\', \'Benin\', \'Bermuda\', \'Bhutan\', \'Bolivia\', \'Bosnia and Herzegowina\', \'Botswana\', \'Bouvet Island\', \'Brazil\', \'British Ind. Ocean Terr\', \'Brunei Darussalam\', \'Bulgaria\', \'Burkina Faso\', \'Burundi\', \'Cambodia\', \'Cameroon\', \'Cape Verde\', \'Cayman Islands\', \'Central African Rep.\', \'Chad\', \'Chile\', \'China\', \'Christmas Island\', \'Cocoa (Keeling) Isl.\', \'Colombia\', \'Comoros\', \'Congo\', \'Cook Islands\', \'Costa Rica\', \'Cote Divoire\', \'Hrvatska\', \'Cyprus\', \'Czech Republic\', \'Denmark\', \'Djibouti\', \'Dominica\', \'Dominican Republic\', \'East Timor\', \'Ecuador\', \'Egypt\', \'El Salvador\', \'Equatorial Guinea\', \'Eritrea\', \'Estonia\', \'Ethiopia\', \'Falkland Isl. (Malvinas)\', \'Faroe Islands\', \'Fiji\', \'Finland\', \'France\', \'French Guiana\', \'French Polynesia\', \'French Southern Terr.\', \'Gabon\', \'Gambia\', \'Georgia\', \'Ghana\', \'Gibraltar\', \'Greece\', \'Greenland\', \'Grenada\', \'Guadeloupe\', \'Guatemala\', \'Guinea\', \'Guinea-Bissau\', \'Guyana\', \'Haiti\', \'Heard & McDonald Isl.\', \'Honduras\', \'Hong Kong\', \'Hungary\', \'Iceland\', \'Indonesia\', \'Ireland\', \'Israel\', \'Italy\', \'Jamaica\', \'Japan\', \'Jordan\', \'Kazakhstan\', \'Kenya\', \'Kiribati\', \'Republic of Korea\', \'Kuwait\', \'Kyrgyzstan\', \'Lao Peoples Dem. Rep.\', \'Latvia\', \'Lebanon\', \'Lesotho\', \'Liberia\', \'Liechtenstein\', \'Lithuania\', \'Luxembourg\', \'Macau\', \'Macedonia\', \'Madagascar\', \'Malawi\', \'Malaysia\', \'Maldives\', \'Mali\', \'Malta\', \'Marshall Islands\', \'Martinique\', \'Mauritania\', \'Mauritius\', \'Mayotte\', \'Mexico\', \'Micronesia: Fed. States of\', \'Moldova: Republic of\', \'Monaco\', \'Mongolia\', \'Montserrat\', \'Morocco\', \'Mozambique\', \'Myanmar\', \'Namibia\', \'Nauru\', \'Nepal\', \'Netherlands\', \'Netherlands Antilles\', \'New Caledonia\', \'New Zealand\', \'Nicaragua\', \'Niger\', \'Nigeria\', \'Niue\', \'Norfolk Island\', \'Northern Mariana Isl.\', \'Norway\', \'Oman\', \'Pakistan\', \'Palau\', \'Panama\', \'Papua New Guinea\', \'Paraguay\', \'Peru\', \'Philippines\', \'Pitcairn\', \'Poland\', \'Portugal\', \'Qatar\', \'Reunion\', \'Romania\', \'Russian Federation\', \'Rwanda\', \'Saint Kitts and Nevis\', \'Saint Lucia\', \'St. Vincent & Grenadines\', \'Samoa\', \'San Marino\', \'Sao Tome and Principe\', \'Saudi Arabia\', \'Senegal\', \'Seychelles\', \'Sierra Leone\', \'Singapore\', \'Slovakia\', \'Slovenia\', \'Solomon Islands\', \'Somalia\', \'South Africa\', \'S. Georgia & S. Sandwich Isl.\', \'Spain\', \'Sri Lanka\', \'St. Helena\', \'St. Pierre and Miquelon\', \'Suriname\', \'Svalbard & Jan Mayen Isl.\', \'Swaziland\', \'Sweden\', \'Switzerland\', \'Syrian Arab Republic\', \'Taiwan\', \'Tajikistan\', \'Tanzania: United Rep. of\', \'Thailand\', \'Togo\', \'Tokelau\', \'Tonga\', \'Trinidad and Tobago\', \'Tunisia\', \'Turkey\', \'Turkmenistan\', \'Turks and Caicos Islands\', \'Tuvalu\', \'Uganda\', \'Ukraine\', \'United Arab Emirates\', \'US Minor Outlying Isl.\', \'Uruguay\', \'Uzbekistan\', \'Vanuatu\', \'Vatican City (Holy See)\', \'Venezuela\', \'Vietnam\', \'Virgin Islands (British)\', \'Wallis and Futuna Islands\', \'Western Sahara\', \'Yemen\', \'Yugoslavia\', \'Zaire\', \'Zambia\', \'Zimbabwe\', \'Not Listed\');\r\n		\r\n		initAutoComplete(\'bill[country]\', \'countries\', true);\r\n	</script>\r\n{/if}\r\n\r\n{else}   {* If NOT competition... *}\r\n\r\n	Because errors were encountered, we cannont process your contribution at this time. If you continue to have problems, please <a href=\"?pg=contact\">contact us</a>.\r\n\r\n{/if}\r\n\r\n</form>'),(1540,124,0.44,'smarty','0','Added return button... for now.',1087461576,2,'67.166.75.185','<h1>Competition Entry Fee Payment</h1>\r\n\r\n{include_php file=\"shared_handle:competition.prepareContribution\"}\r\n{include_php file=\"shared_handle:competition.processContribution\"}\r\n\r\n{select_query assign=\"userInfo\" return=\"row\"}\r\n	firstName, lastName, address1, address2, city, state, country, zip\r\n	FROM _users	\r\n	WHERE id = \'{$user->id}\'\r\n{/select_query}\r\n\r\n{if $isComplete}\r\n	<div align=\"right\"><a href=\"?pg={$smarty.request.return|default:\"home\"}\" class=\"button\">Continue</a></div>\r\n{else}\r\n\r\n<form name=\"potContribution\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:\"home\"}\" />\r\n<input type=\"hidden\" name=\"cid\" value=\"{$smarty.request.cid}\" />\r\n\r\n{if $competition}\r\n\r\n<input type=\"hidden\" name=\"contribution[cid]\" value=\"{$competition.id|default:\"newcomp\"}\" />\r\n<input type=\"hidden\" name=\"contribution[total]\" value=\"{$competition.total}\" />\r\n<input type=\"hidden\" name=\"contribution[entryFee]\" value=\"{$competition.entryFee}\" />\r\n<input type=\"hidden\" name=\"contribution[individualPotAmount]\" value=\"{$competition.individualPotAmount}\" />\r\n\r\nYou are about to pay the entry fee for the following competition. Please make sure this is the correct competition before proceding!<br /><br />\r\n\r\nCompetition Title: <b>{$competition.title}</b><br />\r\nCompetition Type: <b>{$competition.type|niceText}, {$competition.style}</b><br />\r\nStarted By: <b>{$competition.firstName} {$competition.lastName} ({$competition.username})</b><br />\r\nTerm: <b>{$competition.startDate|date_format2:\"M j, Y\"} to {$competition.endDate|date_format2:\"M j, Y\"}</b><br />\r\n<br />\r\n{if $competition.individualPotAmount}\r\n	Individual Pot Contribution Amount: <b>${$competition.individualPotAmount|number_format:\"2\"}</b> (You are agreeing to pay the winner this amount when the competition is over!)<br />\r\n{else}\r\n	There is no individual contribution required for this competition, as it is funded by third party donations ({$competition.potMethod}).<br />\r\n{/if}\r\nWeightLossWars.com Entry Fee: <b>${$competition.entryFee|number_format:\"2\"}</b><br />\r\n<h2 class=\"underline\">&nbsp;</h2>\r\nTOTAL: <em>${$competition.total|number_format:\"2\"}</em><br />\r\n<h2 class=\"overline\">&nbsp;</h2>\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Billing Information</h2>\r\n	First Name:\r\n	<input type=\"text\" name=\"bill[firstname]\" value=\"{$smarty.request.bill.firstname|default:$userInfo.firstName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Last Name:\r\n	<input type=\"text\" name=\"bill[lastname]\" value=\"{$smarty.request.bill.lastname|default:$userInfo.lastName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Address:\r\n	<input type=\"text\" name=\"bill[address1]\" value=\"{$smarty.request.bill.address1|default:$userInfo.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"bill[address2]\" value=\"{$smarty.request.bill.address2|default:$userInfo.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	City:\r\n	<input type=\"text\" name=\"bill[city]\" value=\"{$smarty.request.bill.city|default:$userInfo.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	State, Zip, Country:\r\n	<input type=\"text\" name=\"bill[state]\" value=\"{$smarty.request.bill.state|default:$userInfo.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"bill[zip]\" value=\"{$smarty.request.bill.zip|default:$userInfo.zip}\" class=\"textInput\" style=\"width:50px;\" />\r\n	<input type=\"text\" name=\"bill[country]\" value=\"{$smarty.request.bill.country|default:$userInfo.country}\" class=\"textInput\" style=\"width:50px;\" maxlength=\"2\" /><br />\r\n</div>\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Payment Information</h2>\r\n	Payment Method:\r\n	<select name=\"bill[paymentMethod]\" size=\"1\">\r\n		<option value=\"Visa\"{if $smarty.request.bill.paymentMethod eq \"Visa\"} selected{/if}>Visa</option>\r\n		<option value=\"Mastercard\"{if $smarty.request.bill.paymentMethod eq \"Mastercard\"} selected{/if}>Mastercard</option>	\r\n	</select><br />\r\n\r\n	Card Number:\r\n	<input type=\"text\" name=\"bill[ccnum]\" value=\"\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Expiration Date: <small>(MMYY)</small>\r\n	<input type=\"text\" name=\"bill[ccexp]\" value=\"\" class=\"textInput\" maxlength=\"4\" style=\"width:50px;\" /><br />\r\n</div>\r\n</td></tr></table>\r\n<div class=\"hBox\" style=\"text-align:right;\">\r\n	<a href=\"javascript://\" onclick=\"document.forms[\'potContribution\'].submit(); return false;\" class=\"button\"> Submit Contribution </a>\r\n</div>\r\n<div id=\"fMatches\" class=\"xFloat\" style=\"padding:3px; background-color:#FFFFFF; border:#666666 1px solid;\"></div>\r\n\r\n{if $modules.spadeAutoComplete}\r\n	<script language=\"JavaScript\" src=\"{$modules.x}\"></script>\r\n	<script language=\"JavaScript\" src=\"{$modules.spadeAutoComplete}\"></script>\r\n	<script language=\"JavaScript\">\r\n		var states = new Array(\'AL\',\'AK\',\'AS\',\'AZ\',\'AR\',\'CA\',\'CO\',\'CT\',\'DE\',\'DC\',\'FL\',\'GA\',\'GU\',\r\n					\'HI\',\'ID\',\'IL\',\'IN\',\'IA\',\'KS\',\'KY\',\'LA\',\'ME\',\'MH\',\'MD\',\'MA\',\r\n					\'MI\',\'MN\',\'MS\',\'MO\',\'MT\',\'NE\',\'NV\',\'NH\',\'NJ\',\'NM\',\'NY\',\'NC\',\r\n					\'ND\',\'OH\',\'OK\',\'OR\',\'PW\',\'PA\',\'PR\',\'RI\',\'SC\',\'SD\',\'TN\',\'TX\',\r\n					\'UT\',\'VT\',\'USVI\',\'VA\',\'WA\',\'WV\',\'WI\',\'WY\',\'AB\',\'BC\',\'LB\',\'MB\',\r\n					\'NB\',\'NF\',\'NT\',\'NS\',\'ON\',\'PE\',\'PQ\',\'SK\',\'YT\');\r\n		initAutoComplete(\'bill[state]\', \'states\', true);\r\n\r\n		{* var countries = new Array (\'United States of America\', \'Canada\', \'Germany\', \'United Kingdom\', \'India\', \'---------------------\', \'Albania\', \'Algeria\', \'Andorra\', \'Angola\', \'Anguilla\', \'Antarctica\', \'Antigua and Barbuda\', \'Argentina\', \'Armenia\', \'Aruba\', \'Australia\', \'Austria\', \'Azerbaijan\', \'Bahamas\', \'Bahrain\', \'Bangladesh\', \'Barbados\', \'Belarus\', \'Belgium\', \'Belize\', \'Benin\', \'Bermuda\', \'Bhutan\', \'Bolivia\', \'Bosnia and Herzegowina\', \'Botswana\', \'Bouvet Island\', \'Brazil\', \'British Ind. Ocean Terr\', \'Brunei Darussalam\', \'Bulgaria\', \'Burkina Faso\', \'Burundi\', \'Cambodia\', \'Cameroon\', \'Cape Verde\', \'Cayman Islands\', \'Central African Rep.\', \'Chad\', \'Chile\', \'China\', \'Christmas Island\', \'Cocoa (Keeling) Isl.\', \'Colombia\', \'Comoros\', \'Congo\', \'Cook Islands\', \'Costa Rica\', \'Cote Divoire\', \'Hrvatska\', \'Cyprus\', \'Czech Republic\', \'Denmark\', \'Djibouti\', \'Dominica\', \'Dominican Republic\', \'East Timor\', \'Ecuador\', \'Egypt\', \'El Salvador\', \'Equatorial Guinea\', \'Eritrea\', \'Estonia\', \'Ethiopia\', \'Falkland Isl. (Malvinas)\', \'Faroe Islands\', \'Fiji\', \'Finland\', \'France\', \'French Guiana\', \'French Polynesia\', \'French Southern Terr.\', \'Gabon\', \'Gambia\', \'Georgia\', \'Ghana\', \'Gibraltar\', \'Greece\', \'Greenland\', \'Grenada\', \'Guadeloupe\', \'Guatemala\', \'Guinea\', \'Guinea-Bissau\', \'Guyana\', \'Haiti\', \'Heard & McDonald Isl.\', \'Honduras\', \'Hong Kong\', \'Hungary\', \'Iceland\', \'Indonesia\', \'Ireland\', \'Israel\', \'Italy\', \'Jamaica\', \'Japan\', \'Jordan\', \'Kazakhstan\', \'Kenya\', \'Kiribati\', \'Republic of Korea\', \'Kuwait\', \'Kyrgyzstan\', \'Lao Peoples Dem. Rep.\', \'Latvia\', \'Lebanon\', \'Lesotho\', \'Liberia\', \'Liechtenstein\', \'Lithuania\', \'Luxembourg\', \'Macau\', \'Macedonia\', \'Madagascar\', \'Malawi\', \'Malaysia\', \'Maldives\', \'Mali\', \'Malta\', \'Marshall Islands\', \'Martinique\', \'Mauritania\', \'Mauritius\', \'Mayotte\', \'Mexico\', \'Micronesia: Fed. States of\', \'Moldova: Republic of\', \'Monaco\', \'Mongolia\', \'Montserrat\', \'Morocco\', \'Mozambique\', \'Myanmar\', \'Namibia\', \'Nauru\', \'Nepal\', \'Netherlands\', \'Netherlands Antilles\', \'New Caledonia\', \'New Zealand\', \'Nicaragua\', \'Niger\', \'Nigeria\', \'Niue\', \'Norfolk Island\', \'Northern Mariana Isl.\', \'Norway\', \'Oman\', \'Pakistan\', \'Palau\', \'Panama\', \'Papua New Guinea\', \'Paraguay\', \'Peru\', \'Philippines\', \'Pitcairn\', \'Poland\', \'Portugal\', \'Qatar\', \'Reunion\', \'Romania\', \'Russian Federation\', \'Rwanda\', \'Saint Kitts and Nevis\', \'Saint Lucia\', \'St. Vincent & Grenadines\', \'Samoa\', \'San Marino\', \'Sao Tome and Principe\', \'Saudi Arabia\', \'Senegal\', \'Seychelles\', \'Sierra Leone\', \'Singapore\', \'Slovakia\', \'Slovenia\', \'Solomon Islands\', \'Somalia\', \'South Africa\', \'S. Georgia & S. Sandwich Isl.\', \'Spain\', \'Sri Lanka\', \'St. Helena\', \'St. Pierre and Miquelon\', \'Suriname\', \'Svalbard & Jan Mayen Isl.\', \'Swaziland\', \'Sweden\', \'Switzerland\', \'Syrian Arab Republic\', \'Taiwan\', \'Tajikistan\', \'Tanzania: United Rep. of\', \'Thailand\', \'Togo\', \'Tokelau\', \'Tonga\', \'Trinidad and Tobago\', \'Tunisia\', \'Turkey\', \'Turkmenistan\', \'Turks and Caicos Islands\', \'Tuvalu\', \'Uganda\', \'Ukraine\', \'United Arab Emirates\', \'US Minor Outlying Isl.\', \'Uruguay\', \'Uzbekistan\', \'Vanuatu\', \'Vatican City (Holy See)\', \'Venezuela\', \'Vietnam\', \'Virgin Islands (British)\', \'Wallis and Futuna Islands\', \'Western Sahara\', \'Yemen\', \'Yugoslavia\', \'Zaire\', \'Zambia\', \'Zimbabwe\', \'Not Listed\'); *}\r\n		var countries = new Array (\'USA\', \'Canada\', \'Germany\', \'UK\', \'India\', \'Albania\', \'Algeria\', \'Andorra\', \'Angola\', \'Anguilla\', \'Antarctica\', \'Antigua and Barbuda\', \'Argentina\', \'Armenia\', \'Aruba\', \'Australia\', \'Austria\', \'Azerbaijan\', \'Bahamas\', \'Bahrain\', \'Bangladesh\', \'Barbados\', \'Belarus\', \'Belgium\', \'Belize\', \'Benin\', \'Bermuda\', \'Bhutan\', \'Bolivia\', \'Bosnia and Herzegowina\', \'Botswana\', \'Bouvet Island\', \'Brazil\', \'British Ind. Ocean Terr\', \'Brunei Darussalam\', \'Bulgaria\', \'Burkina Faso\', \'Burundi\', \'Cambodia\', \'Cameroon\', \'Cape Verde\', \'Cayman Islands\', \'Central African Rep.\', \'Chad\', \'Chile\', \'China\', \'Christmas Island\', \'Cocoa (Keeling) Isl.\', \'Colombia\', \'Comoros\', \'Congo\', \'Cook Islands\', \'Costa Rica\', \'Cote Divoire\', \'Hrvatska\', \'Cyprus\', \'Czech Republic\', \'Denmark\', \'Djibouti\', \'Dominica\', \'Dominican Republic\', \'East Timor\', \'Ecuador\', \'Egypt\', \'El Salvador\', \'Equatorial Guinea\', \'Eritrea\', \'Estonia\', \'Ethiopia\', \'Falkland Isl. (Malvinas)\', \'Faroe Islands\', \'Fiji\', \'Finland\', \'France\', \'French Guiana\', \'French Polynesia\', \'French Southern Terr.\', \'Gabon\', \'Gambia\', \'Georgia\', \'Ghana\', \'Gibraltar\', \'Greece\', \'Greenland\', \'Grenada\', \'Guadeloupe\', \'Guatemala\', \'Guinea\', \'Guinea-Bissau\', \'Guyana\', \'Haiti\', \'Heard & McDonald Isl.\', \'Honduras\', \'Hong Kong\', \'Hungary\', \'Iceland\', \'Indonesia\', \'Ireland\', \'Israel\', \'Italy\', \'Jamaica\', \'Japan\', \'Jordan\', \'Kazakhstan\', \'Kenya\', \'Kiribati\', \'Republic of Korea\', \'Kuwait\', \'Kyrgyzstan\', \'Lao Peoples Dem. Rep.\', \'Latvia\', \'Lebanon\', \'Lesotho\', \'Liberia\', \'Liechtenstein\', \'Lithuania\', \'Luxembourg\', \'Macau\', \'Macedonia\', \'Madagascar\', \'Malawi\', \'Malaysia\', \'Maldives\', \'Mali\', \'Malta\', \'Marshall Islands\', \'Martinique\', \'Mauritania\', \'Mauritius\', \'Mayotte\', \'Mexico\', \'Micronesia: Fed. States of\', \'Moldova: Republic of\', \'Monaco\', \'Mongolia\', \'Montserrat\', \'Morocco\', \'Mozambique\', \'Myanmar\', \'Namibia\', \'Nauru\', \'Nepal\', \'Netherlands\', \'Netherlands Antilles\', \'New Caledonia\', \'New Zealand\', \'Nicaragua\', \'Niger\', \'Nigeria\', \'Niue\', \'Norfolk Island\', \'Northern Mariana Isl.\', \'Norway\', \'Oman\', \'Pakistan\', \'Palau\', \'Panama\', \'Papua New Guinea\', \'Paraguay\', \'Peru\', \'Philippines\', \'Pitcairn\', \'Poland\', \'Portugal\', \'Qatar\', \'Reunion\', \'Romania\', \'Russian Federation\', \'Rwanda\', \'Saint Kitts and Nevis\', \'Saint Lucia\', \'St. Vincent & Grenadines\', \'Samoa\', \'San Marino\', \'Sao Tome and Principe\', \'Saudi Arabia\', \'Senegal\', \'Seychelles\', \'Sierra Leone\', \'Singapore\', \'Slovakia\', \'Slovenia\', \'Solomon Islands\', \'Somalia\', \'South Africa\', \'S. Georgia & S. Sandwich Isl.\', \'Spain\', \'Sri Lanka\', \'St. Helena\', \'St. Pierre and Miquelon\', \'Suriname\', \'Svalbard & Jan Mayen Isl.\', \'Swaziland\', \'Sweden\', \'Switzerland\', \'Syrian Arab Republic\', \'Taiwan\', \'Tajikistan\', \'Tanzania: United Rep. of\', \'Thailand\', \'Togo\', \'Tokelau\', \'Tonga\', \'Trinidad and Tobago\', \'Tunisia\', \'Turkey\', \'Turkmenistan\', \'Turks and Caicos Islands\', \'Tuvalu\', \'Uganda\', \'Ukraine\', \'United Arab Emirates\', \'US Minor Outlying Isl.\', \'Uruguay\', \'Uzbekistan\', \'Vanuatu\', \'Vatican City (Holy See)\', \'Venezuela\', \'Vietnam\', \'Virgin Islands (British)\', \'Wallis and Futuna Islands\', \'Western Sahara\', \'Yemen\', \'Yugoslavia\', \'Zaire\', \'Zambia\', \'Zimbabwe\', \'Not Listed\');\r\n		\r\n		initAutoComplete(\'bill[country]\', \'countries\', true);\r\n	</script>\r\n{/if}\r\n\r\n{else}   {* If NOT competition... *}\r\n\r\n	Because errors were encountered, we cannont process your contribution at this time. If you continue to have problems, please <a href=\"?pg=contact\">contact us</a>.\r\n\r\n{/if}\r\n\r\n</form>\r\n\r\n{/if}  {* If is NOT complete... *}'),(1215,128,0.10,'smarty','0','Page created.',1086159922,2,'67.171.116.106',''),(1216,128,0.11,'php','0','Page created.',1086159959,2,'67.171.116.106','<?php include \"systems/wlw/handlers/handle.flashGraph.php\"; ?>'),(1217,128,0.12,'php','0','Page created.',1086160071,2,'67.171.116.106','<?php\r\n\r\n$SPADE[\'template\']->_tpl_vars[\'pgLayout\'] = \'NONE\';\r\n\r\ninclude \"systems/wlw/handlers/handle.graphStats.php\";\r\n\r\n?>'),(2168,133,0.86,'smarty','0','Fixed a display bug.',1094706329,16,'128.187.0.165','<h1 class=\"underline\">Check Out</h1>\r\n<br />\r\n{if !$user->isLoggedIn()}\r\n<p>Please <a href=\"?pg=signup\">Sign Up</a> or Log In.</p>\r\n{else}\r\n{select_query assign=\"userInfo\" return=\"row\"}\r\n	firstName, lastName, address1, address2, city, state, country, zip\r\n	FROM _users	\r\n	WHERE id = \'{$user->id}\'\r\n{/select_query}\r\n{/if}\r\n{include_php file=\"shared_handle:cart\"}{include_php file=\"shared_handle:checkout\"}\r\n{if $cart.items|@count gt 0 AND $cart.items neq \'\'}{** Show INPUT **}\r\n{if $success.shipIsValid eq \"\" OR $success.billIsValid eq \"\"}\r\n	<p>Below is a list of your shopping cart products.</p>\r\n	<blockquote>\r\n	<table>\r\n	{foreach from=$cart.items key=\"productCode\" item=\"lineItem\"}\r\n		<tr><td align=\"right\"><small>{$lineItem.title}</small></td>\r\n		<td>{$lineItem.quantity} @ \r\n		${$lineItem.each|number_format:\"2\"} \r\n		= ${$lineItem.subtotal|number_format:\"2\"}</td></tr>\r\n	{/foreach}</table></blockquote>\r\n	<br />\r\n	<div class=\"underline pixel\"></div>\r\n	\r\n	<p>Enter the shipping and billing address below and then click Continue.</p>\r\n{else}\r\n	<p>Almost done! Take note of the associated Shipping and Tax sub totals, fill out your credit card number and expiration date, then click the <b>\'Submit Payment\'</b>.</p>\r\n{/if}\r\n<form name=\"checkoutForm\" method=\"post\" action=\"index.php\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"cAction\" value=\"{if $success.billIsValid}shipProcess{else}validateShippingBilling{/if}\" />\r\n<table width=\"100%\"><tr><td>\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\"><a href=\"javascript:toggle(\'shipInfo\', \'\', \'showHide\');\"><img id=\"shipInfo_img\" src=\"./img/blank.gif\" class=\"showHide_{if $success.shipIsValid}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Shipping Information</h2>\r\n\r\n	<p>Enter the shipping address.<br />\r\n	<small>(* indicates a required field)</small></p>\r\n	\r\n	<div id=\"shipInfo\" style=\"display:{if $success.shipIsValid}none{else}block{/if};\">\r\n	<a href=\"javascript:shipFromBill();\" class=\"button\">Same as Billing</a><br />\r\n	*First Name:\r\n	<input type=\"text\" name=\"ship[firstname]\" value=\"{$smarty.request.ship.firstname|default:$userInfo.firstName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	*Last Name:\r\n	<input type=\"text\" name=\"ship[lastname]\" value=\"{$smarty.request.ship.lastname|default:$userInfo.lastName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	\r\n	Company:\r\n	<input type=\"text\" name=\"ship[company]\" value=\"{$smarty.request.ship.company|default:$userInfo.company}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*Address:\r\n	<input type=\"text\" name=\"ship[address1]\" value=\"{$smarty.request.ship.address1|default:$userInfo.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"ship[address2]\" value=\"{$smarty.request.ship.address2|default:$userInfo.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*City:\r\n	<input type=\"text\" name=\"ship[city]\" value=\"{$smarty.request.ship.city|default:$userInfo.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*State, *Zip:\r\n	<input type=\"text\" name=\"ship[state]\" value=\"{$smarty.request.ship.state|default:$userInfo.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"ship[zip]\" value=\"{$smarty.request.ship.zip|default:$userInfo.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n	\r\n	*Country:\r\n	<input type=\"text\" name=\"ship[country]\" value=\"{$smarty.request.ship.country|default:$userInfo.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /><br />\r\n\r\n	*Email:\r\n	<input type=\"text\" name=\"ship[email]\" value=\"{$smarty.request.ship.email|default:$userInfo.email}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	Method:\r\n	<input type=\"radio\" name=\"ship[method]\" value=\"3-5-day\"{if $smarty.request.ship.method neq \"2-day\"} checked{/if}> 3 - 5 day \r\n	<input type=\"radio\" name=\"ship[method]\" value=\"2-day\"{if $smarty.request.ship.method eq \"2-day\"} checked{/if}> 2 day <br />\r\n\r\n	</div>\r\n</div>\r\n\r\n<script language=\"javascript\">{literal}\r\n\r\nfunction billFromShip() {\r\n	df = document.checkoutForm;\r\n	df[\'bill[firstname]\'].value = df[\'ship[firstname]\'].value;\r\n	df[\'bill[lastname]\'].value = df[\'ship[lastname]\'].value;\r\n	df[\'bill[company]\'].value = df[\'ship[company]\'].value;\r\n	df[\'bill[address1]\'].value = df[\'ship[address1]\'].value;\r\n	df[\'bill[address2]\'].value = df[\'ship[address2]\'].value;\r\n	df[\'bill[city]\'].value = df[\'ship[city]\'].value;\r\n	df[\'bill[state]\'].value = df[\'ship[state]\'].value;\r\n	df[\'bill[zip]\'].value = df[\'ship[zip]\'].value;\r\n	df[\'bill[country]\'].value = df[\'ship[country]\'].value;\r\n}\r\n\r\nfunction shipFromBill() {\r\n	df = document.checkoutForm;\r\n	df[\'ship[firstname]\'].value = df[\'bill[firstname]\'].value;\r\n	df[\'ship[lastname]\'].value = df[\'bill[lastname]\'].value;\r\n	df[\'ship[company]\'].value = df[\'bill[company]\'].value;\r\n	df[\'ship[address1]\'].value = df[\'bill[address1]\'].value;\r\n	df[\'ship[address2]\'].value = df[\'bill[address2]\'].value;\r\n	df[\'ship[city]\'].value = df[\'bill[city]\'].value;\r\n	df[\'ship[state]\'].value = df[\'bill[state]\'].value;\r\n	df[\'ship[zip]\'].value = df[\'bill[zip]\'].value;\r\n	df[\'ship[country]\'].value = df[\'bill[country]\'].value;\r\n}\r\n\r\n{/literal}</script>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">\r\n		<div class=\"topRight hideShow\"><a href=\"javascript:toggle(\'billInfo\', \'\', \'showHide\');\"><img id=\"billInfo_img\" src=\"./img/blank.gif\" class=\"showHide_{if $success.billIsValid}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n		Billing Information</h2>\r\n	<p>Enter the billing information for the credit card owner.<br />\r\n	<small>(* indicates a required field)</small></p>\r\n	\r\n	<div id=\"billInfo\" style=\"display:{if $success.billIsValid}none{else}block{/if};\">\r\n	<a href=\"javascript:billFromShip();\" class=\"button\">Same as Shipping</a><br />\r\n	*First Name:\r\n	<input type=\"text\" name=\"bill[firstname]\" value=\"{$smarty.request.bill.firstname|default:$userInfo.firstName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	*Last Name:\r\n	<input type=\"text\" name=\"bill[lastname]\" value=\"{$smarty.request.bill.lastname|default:$userInfo.lastName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Company:\r\n	<input type=\"text\" name=\"bill[company]\" value=\"{$smarty.request.bill.company|default:$userInfo.company}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*Address:\r\n	<input type=\"text\" name=\"bill[address1]\" value=\"{$smarty.request.bill.address1|default:$userInfo.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"bill[address2]\" value=\"{$smarty.request.bill.address2|default:$userInfo.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*City:\r\n	<input type=\"text\" name=\"bill[city]\" value=\"{$smarty.request.bill.city|default:$userInfo.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*State, *Zip:\r\n	<input type=\"text\" name=\"bill[state]\" value=\"{$smarty.request.bill.state|default:$userInfo.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"bill[zip]\" value=\"{$smarty.request.bill.zip|default:$userInfo.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n\r\n	*Country:\r\n	<input type=\"text\" name=\"bill[country]\" value=\"{$smarty.request.bill.country|default:$userInfo.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /><br />\r\n\r\n	*Phone:<small>(xxx-xxx-xxxx)\r\n	<input type=\"text\" name=\"bill[phone]\" value=\"{$smarty.request.bill.phone|default:$userInfo.phone}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	</div>\r\n</div>\r\n\r\n<div id=\"fMatches\" class=\"xFloat\" style=\"padding:3px; background-color:#FFFFFF; border:#666666 1px solid;\"></div>\r\n\r\n{if $modules.spadeAutoComplete}\r\n	<script language=\"JavaScript\" src=\"{$modules.x}\"></script>\r\n	<script language=\"JavaScript\" src=\"{$modules.spadeAutoComplete}\"></script>\r\n	<script language=\"JavaScript\">\r\n		var states = new Array(\'AL\',\'AK\',\'AS\',\'AZ\',\'AR\',\'CA\',\'CO\',\'CT\',\'DE\',\'DC\',\'FL\',\'GA\',\'GU\',\r\n					\'HI\',\'ID\',\'IL\',\'IN\',\'IA\',\'KS\',\'KY\',\'LA\',\'ME\',\'MH\',\'MD\',\'MA\',\r\n					\'MI\',\'MN\',\'MS\',\'MO\',\'MT\',\'NE\',\'NV\',\'NH\',\'NJ\',\'NM\',\'NY\',\'NC\',\r\n					\'ND\',\'OH\',\'OK\',\'OR\',\'PW\',\'PA\',\'PR\',\'RI\',\'SC\',\'SD\',\'TN\',\'TX\',\r\n					\'UT\',\'VT\',\'USVI\',\'VA\',\'WA\',\'WV\',\'WI\',\'WY\',\'AB\',\'BC\',\'LB\',\'MB\',\r\n					\'NB\',\'NF\',\'NT\',\'NS\',\'ON\',\'PE\',\'PQ\',\'SK\',\'YT\');\r\n		initAutoComplete(\'bill[state]\', states, true);\r\n		initAutoComplete(\'ship[state]\', states, true);\r\n\r\n		{* var countries = new Array (\'United States of America\', \'Canada\', \'Germany\', \'United Kingdom\', \'India\', \'---------------------\', \'Albania\', \'Algeria\', \'Andorra\', \'Angola\', \'Anguilla\', \'Antarctica\', \'Antigua and Barbuda\', \'Argentina\', \'Armenia\', \'Aruba\', \'Australia\', \'Austria\', \'Azerbaijan\', \'Bahamas\', \'Bahrain\', \'Bangladesh\', \'Barbados\', \'Belarus\', \'Belgium\', \'Belize\', \'Benin\', \'Bermuda\', \'Bhutan\', \'Bolivia\', \'Bosnia and Herzegowina\', \'Botswana\', \'Bouvet Island\', \'Brazil\', \'British Ind. Ocean Terr\', \'Brunei Darussalam\', \'Bulgaria\', \'Burkina Faso\', \'Burundi\', \'Cambodia\', \'Cameroon\', \'Cape Verde\', \'Cayman Islands\', \'Central African Rep.\', \'Chad\', \'Chile\', \'China\', \'Christmas Island\', \'Cocoa (Keeling) Isl.\', \'Colombia\', \'Comoros\', \'Congo\', \'Cook Islands\', \'Costa Rica\', \'Cote Divoire\', \'Hrvatska\', \'Cyprus\', \'Czech Republic\', \'Denmark\', \'Djibouti\', \'Dominica\', \'Dominican Republic\', \'East Timor\', \'Ecuador\', \'Egypt\', \'El Salvador\', \'Equatorial Guinea\', \'Eritrea\', \'Estonia\', \'Ethiopia\', \'Falkland Isl. (Malvinas)\', \'Faroe Islands\', \'Fiji\', \'Finland\', \'France\', \'French Guiana\', \'French Polynesia\', \'French Southern Terr.\', \'Gabon\', \'Gambia\', \'Georgia\', \'Ghana\', \'Gibraltar\', \'Greece\', \'Greenland\', \'Grenada\', \'Guadeloupe\', \'Guatemala\', \'Guinea\', \'Guinea-Bissau\', \'Guyana\', \'Haiti\', \'Heard & McDonald Isl.\', \'Honduras\', \'Hong Kong\', \'Hungary\', \'Iceland\', \'Indonesia\', \'Ireland\', \'Israel\', \'Italy\', \'Jamaica\', \'Japan\', \'Jordan\', \'Kazakhstan\', \'Kenya\', \'Kiribati\', \'Republic of Korea\', \'Kuwait\', \'Kyrgyzstan\', \'Lao Peoples Dem. Rep.\', \'Latvia\', \'Lebanon\', \'Lesotho\', \'Liberia\', \'Liechtenstein\', \'Lithuania\', \'Luxembourg\', \'Macau\', \'Macedonia\', \'Madagascar\', \'Malawi\', \'Malaysia\', \'Maldives\', \'Mali\', \'Malta\', \'Marshall Islands\', \'Martinique\', \'Mauritania\', \'Mauritius\', \'Mayotte\', \'Mexico\', \'Micronesia: Fed. States of\', \'Moldova: Republic of\', \'Monaco\', \'Mongolia\', \'Montserrat\', \'Morocco\', \'Mozambique\', \'Myanmar\', \'Namibia\', \'Nauru\', \'Nepal\', \'Netherlands\', \'Netherlands Antilles\', \'New Caledonia\', \'New Zealand\', \'Nicaragua\', \'Niger\', \'Nigeria\', \'Niue\', \'Norfolk Island\', \'Northern Mariana Isl.\', \'Norway\', \'Oman\', \'Pakistan\', \'Palau\', \'Panama\', \'Papua New Guinea\', \'Paraguay\', \'Peru\', \'Philippines\', \'Pitcairn\', \'Poland\', \'Portugal\', \'Qatar\', \'Reunion\', \'Romania\', \'Russian Federation\', \'Rwanda\', \'Saint Kitts and Nevis\', \'Saint Lucia\', \'St. Vincent & Grenadines\', \'Samoa\', \'San Marino\', \'Sao Tome and Principe\', \'Saudi Arabia\', \'Senegal\', \'Seychelles\', \'Sierra Leone\', \'Singapore\', \'Slovakia\', \'Slovenia\', \'Solomon Islands\', \'Somalia\', \'South Africa\', \'S. Georgia & S. Sandwich Isl.\', \'Spain\', \'Sri Lanka\', \'St. Helena\', \'St. Pierre and Miquelon\', \'Suriname\', \'Svalbard & Jan Mayen Isl.\', \'Swaziland\', \'Sweden\', \'Switzerland\', \'Syrian Arab Republic\', \'Taiwan\', \'Tajikistan\', \'Tanzania: United Rep. of\', \'Thailand\', \'Togo\', \'Tokelau\', \'Tonga\', \'Trinidad and Tobago\', \'Tunisia\', \'Turkey\', \'Turkmenistan\', \'Turks and Caicos Islands\', \'Tuvalu\', \'Uganda\', \'Ukraine\', \'United Arab Emirates\', \'US Minor Outlying Isl.\', \'Uruguay\', \'Uzbekistan\', \'Vanuatu\', \'Vatican City (Holy See)\', \'Venezuela\', \'Vietnam\', \'Virgin Islands (British)\', \'Wallis and Futuna Islands\', \'Western Sahara\', \'Yemen\', \'Yugoslavia\', \'Zaire\', \'Zambia\', \'Zimbabwe\', \'Not Listed\'); *}\r\n		var countries = new Array (\'USA\', \'Canada\', \'Germany\', \'UK\', \'India\', \'Albania\', \'Algeria\', \'Andorra\', \'Angola\', \'Anguilla\', \'Antarctica\', \'Antigua and Barbuda\', \'Argentina\', \'Armenia\', \'Aruba\', \'Australia\', \'Austria\', \'Azerbaijan\', \'Bahamas\', \'Bahrain\', \'Bangladesh\', \'Barbados\', \'Belarus\', \'Belgium\', \'Belize\', \'Benin\', \'Bermuda\', \'Bhutan\', \'Bolivia\', \'Bosnia and Herzegowina\', \'Botswana\', \'Bouvet Island\', \'Brazil\', \'British Ind. Ocean Terr\', \'Brunei Darussalam\', \'Bulgaria\', \'Burkina Faso\', \'Burundi\', \'Cambodia\', \'Cameroon\', \'Cape Verde\', \'Cayman Islands\', \'Central African Rep.\', \'Chad\', \'Chile\', \'China\', \'Christmas Island\', \'Cocoa (Keeling) Isl.\', \'Colombia\', \'Comoros\', \'Congo\', \'Cook Islands\', \'Costa Rica\', \'Cote Divoire\', \'Hrvatska\', \'Cyprus\', \'Czech Republic\', \'Denmark\', \'Djibouti\', \'Dominica\', \'Dominican Republic\', \'East Timor\', \'Ecuador\', \'Egypt\', \'El Salvador\', \'Equatorial Guinea\', \'Eritrea\', \'Estonia\', \'Ethiopia\', \'Falkland Isl. (Malvinas)\', \'Faroe Islands\', \'Fiji\', \'Finland\', \'France\', \'French Guiana\', \'French Polynesia\', \'French Southern Terr.\', \'Gabon\', \'Gambia\', \'Georgia\', \'Ghana\', \'Gibraltar\', \'Greece\', \'Greenland\', \'Grenada\', \'Guadeloupe\', \'Guatemala\', \'Guinea\', \'Guinea-Bissau\', \'Guyana\', \'Haiti\', \'Heard & McDonald Isl.\', \'Honduras\', \'Hong Kong\', \'Hungary\', \'Iceland\', \'Indonesia\', \'Ireland\', \'Israel\', \'Italy\', \'Jamaica\', \'Japan\', \'Jordan\', \'Kazakhstan\', \'Kenya\', \'Kiribati\', \'Republic of Korea\', \'Kuwait\', \'Kyrgyzstan\', \'Lao Peoples Dem. Rep.\', \'Latvia\', \'Lebanon\', \'Lesotho\', \'Liberia\', \'Liechtenstein\', \'Lithuania\', \'Luxembourg\', \'Macau\', \'Macedonia\', \'Madagascar\', \'Malawi\', \'Malaysia\', \'Maldives\', \'Mali\', \'Malta\', \'Marshall Islands\', \'Martinique\', \'Mauritania\', \'Mauritius\', \'Mayotte\', \'Mexico\', \'Micronesia: Fed. States of\', \'Moldova: Republic of\', \'Monaco\', \'Mongolia\', \'Montserrat\', \'Morocco\', \'Mozambique\', \'Myanmar\', \'Namibia\', \'Nauru\', \'Nepal\', \'Netherlands\', \'Netherlands Antilles\', \'New Caledonia\', \'New Zealand\', \'Nicaragua\', \'Niger\', \'Nigeria\', \'Niue\', \'Norfolk Island\', \'Northern Mariana Isl.\', \'Norway\', \'Oman\', \'Pakistan\', \'Palau\', \'Panama\', \'Papua New Guinea\', \'Paraguay\', \'Peru\', \'Philippines\', \'Pitcairn\', \'Poland\', \'Portugal\', \'Qatar\', \'Reunion\', \'Romania\', \'Russian Federation\', \'Rwanda\', \'Saint Kitts and Nevis\', \'Saint Lucia\', \'St. Vincent & Grenadines\', \'Samoa\', \'San Marino\', \'Sao Tome and Principe\', \'Saudi Arabia\', \'Senegal\', \'Seychelles\', \'Sierra Leone\', \'Singapore\', \'Slovakia\', \'Slovenia\', \'Solomon Islands\', \'Somalia\', \'South Africa\', \'S. Georgia & S. Sandwich Isl.\', \'Spain\', \'Sri Lanka\', \'St. Helena\', \'St. Pierre and Miquelon\', \'Suriname\', \'Svalbard & Jan Mayen Isl.\', \'Swaziland\', \'Sweden\', \'Switzerland\', \'Syrian Arab Republic\', \'Taiwan\', \'Tajikistan\', \'Tanzania: United Rep. of\', \'Thailand\', \'Togo\', \'Tokelau\', \'Tonga\', \'Trinidad and Tobago\', \'Tunisia\', \'Turkey\', \'Turkmenistan\', \'Turks and Caicos Islands\', \'Tuvalu\', \'Uganda\', \'Ukraine\', \'United Arab Emirates\', \'US Minor Outlying Isl.\', \'Uruguay\', \'Uzbekistan\', \'Vanuatu\', \'Vatican City (Holy See)\', \'Venezuela\', \'Vietnam\', \'Virgin Islands (British)\', \'Wallis and Futuna Islands\', \'Western Sahara\', \'Yemen\', \'Yugoslavia\', \'Zaire\', \'Zambia\', \'Zimbabwe\', \'Not Listed\');\r\n		\r\n		initAutoComplete(\'bill[country]\', countries, true);\r\n		initAutoComplete(\'ship[country]\', countries, true);\r\n	</script>\r\n{/if}\r\n\r\n{if $success.shipIsValid AND $success.billIsValid}\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Billing Summary</h2>\r\n	<strong>\r\n	Order Total = ${$order.total|default:\"0\"|number_format:\"2\"}<br />\r\n	Shipping / Handling = ${$order.shipping|default:\"0\"|number_format:\"2\"}<br />\r\n	Sales Tax = ${$order.tax|default:\"0\"|number_format:\"2\"}<br /><br />\r\n	</strong>\r\n	<div class=\"underline\"></div>\r\n	Total Amount Due: <em>${$order.grandTotal|default:\"0\"|number_format:\"2\"}</em>\r\n</div>\r\n\r\n{if $order.invoiceNum gt 0}<input type=\"hidden\" name=\"orderInvoiceNum\" value=\"{$order.invoiceNum}\" />{/if}\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Payment Information</h2>\r\n\r\n	<script language=\"javascript\">{literal}\r\n	function verifyFormatCcnum(obj) {\r\n		if (obj.value.match(/[^\\d]/)) {\r\n			alert(\'The Credit Card Number should contain no dashes or spaces.\\n\\nI.E.  4007000000027\');\r\n			obj.value = obj.value.replace(/[^\\d]/g, \'\');\r\n			obj.focus();\r\n		}\r\n	}\r\n	function verifyFormatCcexp(obj) {\r\n		if (obj.value.match(/[^\\d]/)) {\r\n			alert(\'The format for Credit Card expiration date is MMYY with no slash.\\n\\nI.E.  0606  for June, 2006\');\r\n			obj.value = obj.value.replace(/[^\\d]/g, \'\');\r\n			obj.focus();\r\n		}\r\n	}\r\n	{/literal}</script>\r\n\r\n	Payment Method:\r\n	<select name=\"bill[paymentMethod]\" size=\"1\">\r\n		<option value=\"visa\"{if $smarty.request.bill.paymentMethod eq \"visa\"} selected{/if}>Visa</option>\r\n		<option value=\"mastercard\"{if $smarty.request.bill.paymentMethod eq \"mastercard\"} selected{/if}>Mastercard</option>\r\n		<option value=\"american express\"{if $smarty.request.bill.paymentMethod eq \"american express\"} selected{/if}>American Express</option>\r\n		<option value=\"discover\"{if $smarty.request.bill.paymentMethod eq \"discover\"} selected{/if}>Discover</option>\r\n	</select><br />\r\n\r\n	Card Number:\r\n	<input type=\"text\" name=\"bill[ccnum]\" value=\"\" class=\"textInput\" style=\"width:200px;\" onchange=\"verifyFormatCcnum(this);\" onkeyup=\"verifyFormatCcnum(this);\" /><br />\r\n\r\n	Expiration Date: <small>(MMYY)</small>\r\n	<input type=\"text\" name=\"bill[ccexp]\" value=\"\" class=\"textInput\" maxlength=\"4\" style=\"width:50px;\" onchange=\"verifyFormatCcexp(this);\" onkeyup=\"verifyFormatCcexp(this);\" /><br />\r\n</div>\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" style=\"text-align:right\"><a href=\"javascript:document.checkoutForm.submit();\" class=\"button\"> Submit Payment </a></div>\r\n{else}\r\n</td></tr></table> \r\n\r\n<div class=\"hBox\" style=\"text-align:right\"><a href=\"javascript:document.checkoutForm.submit();\" class=\"button\"> Continue </a></div>\r\n{/if}\r\n</form>\r\n{** END INPUT **}\r\n{elseif $success.ccTransId}\r\n	<h2>Complete!</h2>\r\n	<p>Your order has been processed and approved, an email receipt has been mailed to you.</p>\r\n	<p><a href=\"?pg=home\">Click here</a> to go to the home page.</p>\r\n{else}\r\n	{redirect href=\"?pg=cart\"}\r\n{/if}\r\n'),(1544,122,0.15,'smarty','0','Page created.',1087467658,2,'67.166.75.185','{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"newcomp\" from=\"newcomp\" assign=\"newcomp\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n\r\n{include_php file=\"shared_handle:newcomp.prepareInvitation\"}\r\n{include_php file=\"shared_handle:newcomp.review\"}\r\n{include_php file=\"shared_handle:newcomp.verifyAccount\"}\r\n{include_php file=\"shared_handle:newcomp.verifyInitialPot\"}\r\n{include_php file=\"shared_handle:newcomp.createCompetition\"}\r\n\r\n<h1 class=\"underline\">Congratulations! You have successfully created a competition!</h1>\r\n\r\nReturn now to \"<a href=\"?pg=myhome\">My Home</a>\" to view your active competitions!<br />\r\n<br />\r\nYou may notice that your competition does not immediately show up under \"Competitions I am in\". You must log out, then back in,\r\nbefore your competition will show up in that list.'),(2845,98,1.71,'smarty','0','Including surveyList handler.',1104245343,3,'24.10.217.227','{assign var=\"pgLayout\" value=\"layouts/myhome_layout2.tpl\"}\r\n{include_php file=\"shared_handle:acceptRejectRequests\"} \r\n{include_php file=\"shared_handle:myHome\"}\r\n\r\n{assign var=\"hideUserBox\" value=\"false\"}\r\n{assign var=\"showCompanyNews\" value=\"true\"}\r\n{assign var=\"hideWLWLinks\" value=\"true\"}\r\n{assign var=\"hideWidgets\" value=\"true\"}\r\n\r\n{* getProfile is included by getStats *}\r\n{* include_php file=\"shared_handle:getStats\" *}\r\n\r\n{* Now getting only Profile because getStats does TONS of unneccesary processing *}\r\n{include_php file=\"shared_handle:getProfile\"}\r\n\r\n{if $smarty.request.debug}\r\n	{display var=$competitions}\r\n{/if}\r\n\r\n<h1 class=\"underline\">My Home - {$userProfile.firstName} {$userProfile.lastName} ({$userProfile.username})</h1>\r\n<br />\r\n\r\n{$user->firstName}, this is your personal Wellness &quot;Home&quot;.\r\nFrom this page you can manage the competitions you are in, and update your wellness profile. \r\nClick on the \'Update Profile\' button to change your Motto, and other information about yourself, or \'Account Settings\' to change your password.<br />\r\n<br />\r\n<script language=\"javascript\">{literal}\r\nfunction goNewGraph() {\r\n	var obj = document.getElementById(\'graphDropdown\');\r\n	var url;\r\n\r\n	for (var x = 0; x < obj.options.length; x++) {\r\n		if (obj.options[x].selected)\r\n			url = obj.options[x].value;\r\n	}\r\n\r\n	graphwindow.location.replace(url);\r\n\r\n	obj.selectedIndex = 0;\r\n}{/literal}\r\n</script>\r\n\r\n<table border=\"0\">\r\n<tr>\r\n	<td valign=\"top\">\r\n		<div id=\"UserProfileColumn\" class=\"contentColumn\">\r\n			<h2 class=\"withBG\">Your Profile</h2>\r\n			<span class=\"cellHeadLarge\">Age:</span><span class=\"cellSmall\">{$userProfile.age}</span><br />\r\n			<span class=\"cellHeadLarge\">Start Weight:</span><span class=\"cellSmall\">{$userProfile.initialWeight}</span><br />\r\n			<span class=\"cellHeadLarge\">Height:</span><span class=\"cellSmall\">{$userProfile.heightFeet}\'{$userProfile.heightInches}&quot;</span><br />\r\n			<span class=\"cellHeadLarge\">Start BMI:</span><span class=\"cellSmall\">{$userProfile.startBMI}</span><br />\r\n			<span class=\"cellHeadLarge\">Goal Weight:</span><span class=\"cellSmall\">{$userProfile.goalWeight}</span><br />\r\n		<br />\r\n                {* <form name=\"notUsed\" style=\"margin:0px;\">\r\n		<select id=\"graphDropdown\" onchange=\"goNewGraph();\">\r\n			<option value=\"\">(Change Graph)</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=0&totalChange=1\">Change in Weight</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=0\" target=\"graphwindow\">Weight</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=fat&fillPrevious=0&precision=1\" target=\"graphwindow\">Fat Intake</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=calories&fillPrevious=0&precision=1\" target=\"graphwindow\">Calorie Intake</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=carbs&fillPrevious=0&precision=1\" target=\"graphwindow\">Carb Intake</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=minutesExercise&fillPrevious=0&precision=1\" target=\"graphwindow\">Exercise</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=distanceExercised&fillPrevious=0&precision=1\" target=\"graphwindow\">Distance Exercised</option>\r\n		</select>\r\n		</form> *}\r\n		<h2 class=\"withBG\">Links</h2>\r\n		<small>\r\n		&nbsp;&middot; <a href=\"?pg=tips\">Weight Loss Tips</a><br /> \r\n		&nbsp;&middot; <a href=\"?pg=calculators\">Calculators</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=recipes\">Recipes</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=nutrition\">Nutrition Data</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=ptinfo\">Customized Fitness Plan</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=dietitianinfo\">Personal Nutrition Coach</a><br />\r\n		</small>\r\n                </div>\r\n               	</td>\r\n	<td align=\"center\">\r\n		<div style=\"margin:0px 10px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n		<iframe name=\"graphwindow\" src=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&type=weight&fillPrevious=1&precision=0&totalChange=0&userIds={$userProfile.id}\" frameborder=\"0\" width=\"425\" height=\"230\" scrollbars=\"no\"></iframe></div>\r\n		<small>\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=0&totalChange=1\" target=\"graphwindow\">Change in Weight</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=0\" target=\"graphwindow\">Weight</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=fat&fillPrevious=0&precision=1\" target=\"graphwindow\">Fat Intake</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=calories&fillPrevious=0&precision=1\" target=\"graphwindow\">Calorie Intake</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=carbs&fillPrevious=0&precision=1\" target=\"graphwindow\">Carb Intake</a><br />\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=water&fillPrevious=0&precision=1\" target=\"graphwindow\">Water Intake</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=minutesExercise&fillPrevious=0&precision=1\" target=\"graphwindow\">Exercise</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=distanceExercised&fillPrevious=0&precision=1\" target=\"graphwindow\">Distance Exercised</a>\r\n		</small>\r\n</td>\r\n	<td valign=\"top\" width=\"100%\" style=\"padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n		<h2><i>\"{$userProfile.personalSaying|default:\"Your personal motto goes here.\"|replace:\'\"\':\'\'}\"</i></h2>\r\n		</td>\r\n</tr>\r\n</table>\r\n<br />\r\n{if $smarty.request.hideComps neq \"1\"}\r\n<table width=\"100%\"><tr><td valign=\"top\">\r\n{* ********************************* COMPETITIONS I AM IN ********************************** *}\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'inComps\', \'\', \'showHide\');\"><img id=\"inComps_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	Competitions I Am In</h2>\r\nHere are the competitions you have signed up to participate in. If you have an ID of a competition you would like to join, enter it below.<br />\r\n<div id=\"inComps\" style=\"display:block;\">	\r\n	<div style=\"margin:10px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n	<table cellspacing=\"0\" cellpadding=\"1\" align=\"center\">\r\n	<tr>\r\n		<td class=\"underline2\"><span>&nbsp;<b>ID</b></span></td>\r\n		<td class=\"underline2\"><span>&nbsp;<b>Title</b></span></td>\r\n		<td class=\"underline2\"><span>&nbsp;<b>Type</b></span></td>\r\n		<td class=\"underline2\"><span>&nbsp;<b>Style</b></span></td>\r\n		{* <td class=\"underline2\"><span>&nbsp;<b>Rank</b></span></td> *}\r\n		{* <td class=\"underline2\" nowrap><span>&nbsp;<b>Time Remaining</b></span></td> *}\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>Ends</b></span></td>\r\n		{* <td class=\"underline2\" nowrap><span>&nbsp;<b>Prize</b></span></td> *}\r\n	</tr>\r\n	{* Set up the warning period... 7 days from now (604800 = 7 days in seconds) *}\r\n	{math assign=\"endsSoon\" equation=\"x + y\" x=$smarty.now y=\"604800\"}\r\n	{foreach from=$competitions item=\"comp\"}\r\n	<tr>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;<a href=\"?pg=competition&cid={$comp.id}\">{$comp.id}</a> &nbsp;</small></span></td>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;<a href=\"?pg=competition&cid={$comp.id}\">{$comp.title|truncate:35:\"...\"}</a> &nbsp;</small></span></td>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;{$comp.type|niceText}</small> &nbsp;</span></td>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;{if $comp.style eq \"Group-vs-Group\"}Team{else}Individual{/if}</small> &nbsp;</span></td>\r\n		{* <td nowrap=\"nowrap\"><span><small>&nbsp;{if $comp.rank ne \"N/A\"}{$comp.rank}/{$comp.rankOutOf}{else}N/A{/if}</small> &nbsp;</span></td> *}\r\n		{* <td nowrap><span><small{if $comp.endDate lt $smarty.now} style=\"font-weight:bold;\"{elseif $comp.endDate lt $endsSoon} style=\"color:#C00;font-weight:bold;\"{/if}>&nbsp;{$comp.timeLeft}</small> &nbsp;</span></td> *}\r\n		<td nowrap=\"nowrap\"><span><small{if $comp.endDate lt $smarty.now} style=\"font-weight:bold;\"{elseif $comp.endDate lt $endsSoon} style=\"color:#C00;font-weight:bold;\"{/if}>&nbsp;{$comp.endDate|date_format2:\"D n/j/y\"}</small> &nbsp;</span></td>\r\n		{* <td nowrap=\"nowrap\" align=\"right\"><span><small>&nbsp;{if not $comp.potAmount and $comp.potDescription}(Special){else}{math assign=\"fontSizeFactor\" equation=\"x / y\" x=$comp.potAmount y=\"100\"}{math assign=\"fontSize\" equation=\"x + y\" x=\"11\" y=$fontSizeFactor|number_format:\"0\"}<span style=\"font-size:{$fontSize}px;\">${$comp.potAmount|number_format:\"0\"}</span>{/if}</small> &nbsp;</span></td> *}\r\n	</tr>\r\n	{foreachelse}\r\n	<tr>\r\n		<td colspan=\"6\"><span><small>You have not joined any competitions.</small></span></td>\r\n	</tr>\r\n	{/foreach}\r\n	</table>\r\n	</div>\r\n	<span style=\"margin-left:65px;\"><small>(NOTE: <b>Bold Date</b> = Ended, <span style=\"color:#C00;\"><b>Red Date</b></span> = Ends Soon)</small></span>\r\n\r\n	<div style=\"text-align:right;\">\r\n	<form name=\"joinCompForm\" method=\"post\" style=\"margin:4px;\">\r\n		<input type=\"hidden\" name=\"pg\" value=\"competition/join\" />\r\n		<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n		<b>Competition ID#</b> <input type=\"text\" class=\"textInput\" name=\"cid\"> <a href=\"javascript:document.joinCompForm.submit();\" class=\"button\">Join</a><br />\r\n	</form>\r\n	</div>\r\n</div>\r\n</td><td valign=\"top\" style=\"margin-left:10px;\">\r\n{* ********************************* COMPETITIONS I HAVE STARTED ********************************** *}\r\n{if $user->inGroupName(\'coordinators\')}\r\n<form name=\"requestsForm\" action=\"index.php\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" name=\"acceptReject\" value=\"\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'myComps\', \'\', \'showHide\');\"><img id=\"myComps_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	Competitions I Have Started</h2>\r\n\r\n<div id=\"myComps\" style=\"display:block;\">\r\n{if $myCompetitions|@count gt 0}\r\n	<div style=\"margin:0px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n	<table cellspacing=\"0\" cellpadding=\"1\" align=\"center\">\r\n	<tr>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>ID</b> &nbsp;</span></td>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>Title</b> &nbsp;</span></td>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>Type</b> &nbsp;</span></td>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>People wanting to join</b> &nbsp;</span></td>\r\n	</tr>\r\n	{foreach from=$myCompetitions item=\"comp\"}\r\n	<tr>\r\n		<td valign=\"top\"><span>&nbsp;<small><a href=\"?pg=competition&cid={$comp.id}\">{$comp.id}</a></small></span></td>\r\n		<td valign=\"top\" nowrap=\"nowrap\" style=\"overflow:hidden;\"><span>&nbsp;<small><a href=\"?pg=competition&cid={$comp.id}\">{$comp.title}</a></small></span></td>\r\n		<td valign=\"top\" nowrap=\"nowrap\">&nbsp;<span><small>{$comp.type}</small></td>\r\n		<td valign=\"top\" style=\"border-left:1px solid #000;\"><span>{if $comp.requests|@count}{assign var=\"isRequests\" value=\"true\"}{/if}{foreach from=$comp.requests item=\"request\"}<div class=\"hangingIndent\"><input type=\"checkbox\" name=\"request[{$comp.id}][]\" value=\"{$request.id}\"><small>({$request.dateAdded|date_format2:\"n/j/y\"}) {$request.name} &lt;{mailto address=$request.email encode=\"javascript\"}&gt;: &quot;<i>{$request.comment|strip_tags}</i>&quot;</small></div>{foreachelse}&nbsp;None right now.{/foreach}</span></td>\r\n	</tr>\r\n	{/foreach}\r\n	{if $isRequests}\r\n	<tr>\r\n		<td colspan=\"4\" align=\"center\">\r\n			<span><br /><a href=\"javascript://\" onclick=\"acceptReject.value=\'accept\';requestsForm.submit();return false;\" class=\"button\">Accept Selected</a>\r\n			<a href=\"javascript://\" onclick=\"acceptReject.value=\'reject\';requestsForm.submit();return false;\" class=\"button\">Reject Selected</a><small><br /><br /></small></span></td>\r\n	</tr>\r\n	{/if}\r\n	</table>\r\n	</div>\r\n{else}\r\n	<div class=\"underline2\">&nbsp;</div>\r\n	<small>&nbsp; &nbsp; You have not created any competitions.</small>\r\n{/if}\r\n{/if}\r\n</div>\r\n<br />\r\n</form>\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'myIncentives\', \'\', \'showHide\');\"><img id=\"myIncentives_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	My Incentives Program</h2>\r\n\r\n<div id=\"myIncentives\" style=\"display:block;\">\r\n        <div style=\"margin:0px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n        <table id=\"surveyContainer\" width=\"100%\">\r\n           {include_php file=\"shared_handle:company/surveyList\"}\r\n           <thead>\r\n               <tr><td width=\"100%\"><u>Survey Name</u></td><td><u>Available</u></td><td nowrap><u>Points Earned</u></td></tr>\r\n           </thead>\r\n           <tbody>\r\n           {foreach from=$surveys item=item name=\"loopSurveys\"}<tr><td nowrap>\r\n                {if $smarty.foreach.loopSurveys.last AND $smarty.foreach.loopSurveys.total lt 3}&nbsp;<br />&nbsp;<br />&nbsp;<br /></td><td>&nbsp;</td>{/if}\r\n		{if $item.dateAvailable gt 0}\r\n		{$item.surveyName}</td><td>{$item.dateAvailable|date_format2:\"m/d/y\"}</td>\r\n		{else}\r\n		<a href=\"javascript://\" onclick=\"openSurvey({$item.id});\">{$item.surveyName}</a></td><td>Now</td>\r\n		{/if}{if $smarty.foreach.loopSurveys.first}<td rowspan=\"{$surveys|@count|default:1}\">blah<br />blah<br />blah<br />blah</td>{/if}</tr>\r\n                {foreachelse}\r\n		None found.</td><td>&nbsp;</td></tr>{/foreach}\r\n           </tbody>\r\n        </table>\r\n        </div>\r\n</div>\r\n</td></tr></table>\r\n{/if}'),(1640,144,0.19,'smarty','0','Page created.',1087637078,2,'24.2.105.196','{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}\r\n\r\n{include_php file=\"shared_handle:updateStats\"}\r\n\r\n<h1>Update Stats</h1>\r\n\r\n<table align=\"center\">\r\n<tr>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td><b>{$dayInfo.$dayNo.timestamp|date_format2:\"l\"}</b><br />{$dayInfo.$dayNo.timestamp|date_format2:\"n/j/y\"}</td>\r\n	{/section}\r\n</tr>\r\n</table>\r\n\r\nHere it is! <input type=\"text\" class=\"largeInput\" name=\"blah\" value=\"3\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\">\r\n'),(1642,144,0.20,'smarty','0','Page created.',1087637895,2,'24.2.105.196','{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}\r\n\r\n{include_php file=\"shared_handle:updateStats\"}\r\n\r\n<h1>Update Stats</h1>\r\n\r\n<form name=\"updateForm\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" name=\"start\" value=\"{$smarty.request.start}\">\r\n<input type=\"hidden\" name=\"userId\" value=\"{$smarty.request.userId}\">\r\n\r\n<table align=\"center\" cellpadding=\"2\" cellspacing=\"2\">\r\n<tr>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\"><b>{$dayInfo.$dayNo.timestamp|date_format2:\"l\"}</b><br />{$dayInfo.$dayNo.timestamp|date_format2:\"n/j/y\"}</td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][weight]\" value=\"{$dayInfo.$dayNo.weight}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n</table>\r\n\r\n</form>\r\n\r\nHere it is! <input type=\"text\" class=\"largeInput\" name=\"blah\" value=\"3\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\">\r\n'),(1643,144,0.21,'smarty','0','Page created.',1087638066,2,'24.2.105.196','{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}\r\n\r\n{include_php file=\"shared_handle:updateStats\"}\r\n\r\n<h1>Update Stats</h1>\r\n\r\n<form name=\"updateForm\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" name=\"start\" value=\"{$smarty.request.start}\">\r\n<input type=\"hidden\" name=\"userId\" value=\"{$smarty.request.userId}\">\r\n\r\n<table align=\"center\" cellpadding=\"2\" cellspacing=\"1\">\r\n<tr>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><b>{$dayInfo.$dayNo.timestamp|date_format2:\"l\"}</b><br />{$dayInfo.$dayNo.timestamp|date_format2:\"n/j/y\"}</td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][weight]\" value=\"{$dayInfo.$dayNo.weight}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n</table>\r\n\r\n</form>\r\n\r\nHere it is! <input type=\"text\" class=\"largeInput\" name=\"blah\" value=\"3\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\">\r\n'),(3655,105,1.19,'php','0','Finished adding new section for competition questions.',1115336095,16,'128.187.0.164','\r\n<?php\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n\r\n$FAQ = array(\r\n	\"0\" => array(\r\n		\"title\" => \"Competition Questions\",\r\n		\"anchor\" => \"comp\",\r\n		\"questions\" => array(\r\n			\"How is the scoring calculated?\",\r\n			\"My weight loss is incorrect! Why?\"\r\n		),\r\n		\"answers\" => array(\r\n			\"This depends on what the scoring method is.<br /><br />If the scoring method is based on a totals-type category, where the winner has the largest (or smallest) sum of one category (such as minutes or distance exercise), then the totals are simply calculated on all entries you placed between (or on) the start date and the end date of the competition.<br /><br />If the competition is based on weight (weight lost or percentage weight lost), the site uses the earliest weight entry for you on or after the start date of the competition. This number is subracted by the weight entry nearest, but not after the competition end date to calculate your weight lost for the competition.<br /><br />The site does not use any weight entries before the start date of the competition as your start weight because it will not assume that your weight was consistent between that time and the start of the competition.<br /><br />We recommend weighing yourself on the starting date of the competition (or as soon as possible after it begins) and making that entry in your weight loss journal.\",\r\n			\"There are many possible reasons for this, but the most common is covered above in \\\"How is the scoring calculated?\\\".<br /><br />It is also possible that you have entered incorrect data, or incorrectly calculated what you think your loss should be; please be careful to make sure your weight loss is indeed incorrectly calculated in a competition before contacting us for help.<br /><br />Another reason your weight loss might not seem correct is that the competition calculation has been cached and has not been updated since you saved entries in your weight loss journal. Please note the \\\"as of MM/DD/YYYY HH:MM A\\\" time at the top of your leader board. Some competitions are only updated manually when the competition creator or a site administrator requests a calculation update. If your competition is considerably out of date, try contacting the creator of the competition, or <a href=\\\"?pg=contact\\\">contact us</a> and let us know.\"\r\n		)\r\n	),\r\n	\"1\" => array(\r\n		\"title\" => \"Account Questions\",\r\n		\"anchor\" => \"cat1\",\r\n		\"questions\" => array(\r\n			\"How do I change my password?\",\r\n			\"I entered the wrong birthdate how do I change my entry?\",\r\n			\"My weight loss goals have changed, is there a way to set a new goal?\",\r\n			\"What is a Weight Loss Journal?\"\r\n\r\n		),\r\n		\"answers\" => array(\r\n			\"You can manage many aspects of you account by clicking on the Account Settings button towards the top of the My Home page.\",\r\n			\"Having the correct age is important - and is configured in some of the calculators and other site tools to help you understand health issues facing your age group.  Unfortunately there isn\'t a way to change your birthdate at this time, but a customer service representative would be happy to change it for you.  Simply click on the Contact Us link at the bottom of the page and let them know of the change you need.\",\r\n			\"You can make changes to your goals by clicking on the Update My Profile button near the top of the My Home page.  check back often for enhanced goal management features!\",\r\n			\"A weight loss Journal is a place to record your weight loss efforts in exercise and nutrition.  It has been proven that those who keep a record of what they eat are more successful in losing weight.  WeightLossWars provides you an interactive and informative FREE weight loss journal.\"\r\n		\r\n		)\r\n	),\r\n	\"2\" => array(\r\n		\"title\" => \"Incentive Survey Questions\",\r\n		\"anchor\" => \"cat2\",\r\n		\"questions\" => array(\r\n			\"I can no longer take the wellness surveys, what happened?\",\r\n			\"I entered some wrong information, is there any way I can change my answers?\",\r\n			\"How are the points awarded?\",\r\n			\"How many points do I need to receive different prizes and bonuses?\"\r\n\r\n		),\r\n		\"answers\" => array(\r\n			\"Each survey has a time limit that must expire before you take the survey again.  Currently the Life Style survey can be taken once a month, while the Physical Activity and Nutrition surveys can be taken weekly.  The date that is displayed next to each survey will let you know when you can take them again.\",\r\n			\"Data that you have entered cannot be changed.  As you select your answers be careful to select the answer that most appropriately represents you.\",\r\n			\"Points are distributed based on frequency of participation and the answers that you give.  Participation points are awarded for filling out the survey, and then, based on your answers, you receive points that reward healthier life styles.\",\r\n			\"Receiving prizes depends upon your company.  Ask your benefits manager or wellness director for the details on redeeming your points for prizes.\"\r\n		)\r\n	),\r\n	\"3\" => array(\r\n		\"title\" => \"Health and Wellness Questions\",\r\n		\"anchor\" => \"cat3\",\r\n		\"questions\" => array(\r\n			\"What does BMI stand for and what is a healthy BMI for me? \",\r\n			\"How accurate is the BMI measurement? \",\r\n			\"What is a healthy blood pressure? \",\r\n			\"How can I lower blood pressure besides medication?\",\r\n			\"Where should my cholesterol levels be?\",\r\n			\"How much exercise do I need to do to lose weight?\",\r\n			\"What is the best type of exercise to lose body fat?\",\r\n			\"How can I know what my body fat percentage is?\",\r\n			\"What is heart disease and how does exercise and nutrition affect my risks?\",\r\n			\"What is the Target Heart Rate zone? \",\r\n			\"Do I really need to lift weights?\",\r\n			\"What if I just don\'t have time to exercise?\",\r\n			\"If I am overweight or obese, what diseases am I at risk for?\"\r\n		),\r\n		\"answers\" => array(\r\n			\"BMI stands for Body Mass Index and is a ratio of weight to height, used to estimate the relationship of body composition to risk factors of certain diseases. Use our calculator to determine what your BMI is and refer to the chart below to see what category you are in.<br />18.5 or less is Under Weight <br />18.5 to 24.9 is Normal <br />25.0 to 29.9 is Overweight <br />30.0 to 34.9 is Level 1 Obese <br />35.0 to 39.9 is Level 2 Obese <br />40 or greater is Extreme Obese\",\r\n			\"For the vast majority of average individuals, the BMI is a useful and accurate measurement. The drawback lies in the fact that short, muscular individuals may be falsely labeled as obese, and tall lean individuals as underweight.\",\r\n			\"According to national guidelines, normal blood pressure is below 120/80 mmHg. Blood pressure above 140/90 mmHg is diagnosed as hypertension, or high blood pressure. Someone with hypertension is at higher risk of having strokes, heart attacks and kidney failure.\",\r\n			\"Hypertension can be treated through increased exercise and a better diet. Many recent studies have shown that regular aerobic exercise (workouts like brisk walking that use large muscles for an extended period) over several months may modestly lower blood pressure. According to a recent National Institutes of Health conference, aerobic exercise reduces resting (nonexercise) blood pressure in people who have hypertension by an average of 11 points off the top number and 9 points off the bottom number. That could be enough to lower high blood pressure to normal. Reducing sodium(salt) in your diet can also help to lower blood pressure.\",\r\n			\"Your TOTAL blood cholesterol will fall into one of these categories:<br /><b>Desirable</b> is Less than 200 mg/dL <br /><b>Borderline high risk</b> is 200 to 239 mg/dL <br /><b>High risk</b> is 240 mg/dL and over<br />There are two types of cholesterol in your body: LDL is bad cholesterol and contributes to artery clogging. You want Low LDL levels (below 100 is optimal). HDL is good cholesterol and helps to clear arterial blockage. You want High HDL levels. (Less than 40 is too low) To lower your LDL and raise your HDL levels you can: <br />Quit Smoking <br />Lose weight (or maintain a healthy weight) <br />Be physically active for at least 30 to 60 minutes a day on most or all days of the week.\",\r\n			\"This depends on how many calories you are consuming. To lose weight you need to burn more calories than you take in. It takes 3500 calories burned to lose 1 pound. That’s going into a deficit of 1,000 calories a day if you want to lose 2 lbs a week. This can be done by eating 500 calories less than you normally do and burning 500 calories per day more through exercise. That is equivalent to about a 45 minute jog.<br />Exercising 30 to 60 minutes 5 days a week is a good guideline to follow and will not only aid in weight loss but will also reduce your risk for several diseases including heart disease, diabetes and colon cancer.\",\r\n			\"When your body is engaged in aerobic exercise, it utilizes fat as its fuel. So if your goal is to lose body fat, your main modes of exercise should be walking, jogging, biking or swimming in your target heart rate zone.\",\r\n			\"There are several different methods used to determine body fat percentage. Hydrostatic or underwater weighing is probably the most accurate and widely used. There are other methods and devices including the DEXA machine, the Bod Pod, Tanita scales, hand held devices and Skin Calipers. The key is to use the same method consistently so that you can see the change in your body fat percentage. \",\r\n			\"Heart disease occurs because of inadequate blood flow to the heart muscle. This occurs when the arteries that supply the heart muscle (the coronary arteries) become partially or completely blocked. Obese people are at increased risk of heart disease due to their higher rates of hypercholesterolemia, diabetes and hypertension. Several studies have proven the beneficial effects of exercise on heart diseases. Not only will it reduce body fat, but it will also help to lower blood cholesterol, blood pressure and regulate glucose metabolism. Eating a diet high low in saturated fat and cholesterol and high in dietary fiber will lower your risk for heart disease.\",\r\n			\"The Target Heart Rate zone refers to the range that you want your heart rate to be in while you are doing aerobic exercise. This is the best zone to be in to burn body fat. Calculate your target heart rate zone using our calculator.\",\r\n			\"There are many benefits to strength training including:<br />Higher metabolism<br />Stronger bones<br />Increased muscle strength and endurance<br />Increased balance, flexibility and stability<br />Decreased risk of coronary heart disease<br />Injury prevention<br />Feel and look better<br />Strength training will help you with weight loss because the more muscle you have the more calories you burn at rest.\",\r\n			\"We all have busy schedules and the trick with exercising is plan, plan, plan. Schedule it in before your busy week begins. Make it a priority. Set aside time one day a week to plan when, where and for how long you will exercise. It may require getting up half hour earlier, or taking a little longer lunch break. If there is absolutely no time in your schedule for a formal exercise session you can do little tricks like parking farther away at the store, not taking the elevator, etc. Every little bit helps.\",\r\n			\"Obesity places you at risk for several diseases including heart disease, diabetes, some forms of cancer, sleep apnea, abdominal hernias, varicose veins, gout, gall bladder disease, respiratory problems, and liver malfunction. Losing just 10% of your body weight will significantly lower your risk for these diseases.\"\r\n		)\r\n	)\r\n);\r\n\r\n/*// If you want to make the [0] section active, delete this block!\r\nif (!$SPADE[\'acm\']->isDomainAdmin()) {\r\n	$FAQ[0] = $FAQ[1];\r\n	$FAQ[1] = $FAQ[2];\r\n	$FAQ[2] = $FAQ[3];\r\n	unset($FAQ[3]);\r\n}\r\n//Delete through this line*/\r\n\r\n?>\r\n<h1 class=\"underline\">Frequently Asked Questions</h1>\r\n<br />\r\n<a name=\"toc\" />\r\n<h2 class=\"withBG\">Table of Contents</h2>\r\n<ul>\r\n<?php\r\n	for ($x = 0; $x < count($FAQ); $x++) { ?>\r\n	<li><a href=\"#<?php echo $FAQ[$x][\"anchor\"] ?>\"><?php echo  strtoupper($FAQ[$x][\"title\"]) ?></a><br /><br /></li>\r\n	<ul>\r\n	<?php\r\n		for ($y = 0; $y < count($FAQ[$x][\"questions\"]); $y++) { ?>\r\n		<li><a href=\"#question_<?php echo $x?>_<?php echo $y?>\"><?php echo  $FAQ[$x][\"questions\"][$y] ?></a></li>\r\n		<?php } ?>\r\n	</ul>\r\n	<div class=\"underline\">&nbsp;</div>\r\n	<br />\r\n<?php }	?>\r\n</ul>\r\n\r\n<br />\r\n\r\n<?php\r\n	for ($x = 0; $x < count($FAQ); $x++) { ?>\r\n\r\n<a name=\"<?php echo  $FAQ[$x][\"anchor\"] ?>\" />\r\n<h2 class=\"withBG\"><?php echo  strtoupper($FAQ[$x][\"title\"]) ?></h2>\r\n\r\n<?php \r\n	for ($y = 0; $y < count($FAQ[$x][\"questions\"]); $y++) { ?>\r\n\r\n<a name=\"question_<?php echo $x?>_<?php echo $y?>\" />\r\n<b>Q.</b> &nbsp;<?php echo  $FAQ[$x][\"questions\"][$y] ?>\r\n<div style=\"margin:10px;margin-top:2px;\">\r\n	<b>A.</b> &nbsp;<?php echo $FAQ[$x][\"answers\"][$y] ?><br />\r\n	<div align=\"right\"><a href=\"#toc\" class=\"button\">Return to top</a><br /></div>\r\n</div>\r\n	<?php } ?>\r\n<?php } ?>\r\n\r\n<br />\r\n<br />\r\nStill have questions? <a href=\"?pg=contact\">Contact Us</a><br />\r\n'),(1238,123,0.12,'php','0','Updated to utilize new randString().',1086386618,2,'67.166.74.95','<h1>Password Generator</h1>\r\n\r\n<div><b>Note:</b> Passwords will not contain the letters \'o\', \'i\', or \'l\'.</div>\r\n\r\n<?php\r\n\r\nif ($_REQUEST[\'min\'])\r\n	$min = $_REQUEST[\'min\'];\r\nelse\r\n	$min = 8;\r\n\r\nif ($_REQUEST[\'max\'])\r\n	$max = $_REQUEST[\'max\'];\r\nelse\r\n	$max = 10;\r\n\r\nif ($_REQUEST[\'count\'])\r\n	$count = $_REQUEST[\'count\'];\r\nelse\r\n	$count = 100;\r\n\r\necho \"<ul>\";\r\n\r\nfor ($x = 0; $x < $count; $x++) {\r\n	do {\r\n		$string = randString($min, $max, \'\', \'abcdefghjkmnpqrtwxyzABCDEFGHJKMNPQRTWYZ0123456789!@#$%^&*()-=+.><? \');\r\n	} while (preg_match(\"/[oil]/i\", $string));\r\n\r\n	echo \'<li>\'.$string.\'</li>\';\r\n}\r\n\r\necho \"</ul>\";\r\n?>'),(1239,123,0.13,'php','1','Took out some messy characters from valid list.',1086386785,2,'67.166.74.95','<h1>Password Generator</h1>\r\n\r\n<div><b>Note:</b> Passwords will not contain the letters \'o\', \'i\', or \'l\'.</div>\r\n\r\n<?php\r\n\r\nif ($_REQUEST[\'min\'])\r\n	$min = $_REQUEST[\'min\'];\r\nelse\r\n	$min = 8;\r\n\r\nif ($_REQUEST[\'max\'])\r\n	$max = $_REQUEST[\'max\'];\r\nelse\r\n	$max = 10;\r\n\r\nif ($_REQUEST[\'count\'])\r\n	$count = $_REQUEST[\'count\'];\r\nelse\r\n	$count = 100;\r\n\r\necho \"<ul>\";\r\n\r\nfor ($x = 0; $x < $count; $x++) {\r\n	do {\r\n		$string = randString($min, $max, \'\', \'abcdefghjkmnpqrtwxyzABCDEFGHJKMNPQRTWYZ0123456789!@#$%^&*?\');\r\n	} while (preg_match(\"/[oil]/i\", $string));\r\n\r\n	echo \'<li>\'.$string.\'</li>\';\r\n}\r\n\r\necho \"</ul>\";\r\n?>'),(1648,144,0.24,'smarty','0','Page created.',1087638547,2,'24.2.105.196','{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}\r\n\r\n{include_php file=\"shared_handle:updateStats\"}\r\n\r\n<h1>Update Stats</h1>\r\n\r\n<form name=\"updateForm\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" name=\"start\" value=\"{$smarty.request.start}\">\r\n<input type=\"hidden\" name=\"userId\" value=\"{$smarty.request.userId}\">\r\n\r\n<table align=\"center\" cellpadding=\"2\" cellspacing=\"1\">\r\n<tr>\r\n	<td style=\"border-right:1px solid black; border-bottom:1px solid black;\"><div>&nbsp;</div></td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td width=\"85\" align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><b>{$dayInfo.$dayNo.timestamp|date_format2:\"l\"}</b><br />{$dayInfo.$dayNo.timestamp|date_format2:\"n/j/y\"}</td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Weight</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][weight]\" value=\"{$dayInfo.$dayNo.weight}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n</table>\r\n\r\n</form>\r\n\r\nHere it is! <input type=\"text\" class=\"largeInput\" name=\"blah\" value=\"3\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\">\r\n'),(1649,144,0.25,'smarty','0','Page created.',1087638786,2,'24.2.105.196','{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}\r\n\r\n{include_php file=\"shared_handle:updateStats\"}\r\n\r\n<h1>Update Stats</h1>\r\n\r\n<form name=\"updateForm\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" name=\"start\" value=\"{$smarty.request.start}\">\r\n<input type=\"hidden\" name=\"userId\" value=\"{$smarty.request.userId}\">\r\n\r\n<table align=\"center\" cellpadding=\"2\" cellspacing=\"1\">\r\n<tr>\r\n	<td style=\"border-right:1px solid black; border-bottom:1px solid black;\"><div>&nbsp;</div></td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td width=\"85\" align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><b>{$dayInfo.$dayNo.timestamp|date_format2:\"l\"}</b><br />{$dayInfo.$dayNo.timestamp|date_format2:\"n/j/y\"}</td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Weight</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][weight]\" value=\"{$dayInfo.$dayNo.weight}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Calories</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][calories]\" value=\"{$dayInfo.$dayNo.calories}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Carbs</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][carbs]\" value=\"{$dayInfo.$dayNo.carbs}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Fat</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][fat]\" value=\"{$dayInfo.$dayNo.fat}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Minutes Exercise</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][minutesExercise]\" value=\"{$dayInfo.$dayNo.minutesExercise}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Distance Run</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][distanceRun]\" value=\"{$dayInfo.$dayNo.distanceRun}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n</table>\r\n\r\n</form>'),(1664,133,0.47,'smarty','0','put shipping total info in a chunk300',1087697768,3,'24.10.220.247','<h1 class=\"underline\">Check Out</h1>\r\n<br />\r\n{if !$user->isLoggedIn()}\r\n<p>Please <a href=\"?pg=signup\">Sign Up</a> or Log In.</p>\r\n{else}\r\n{select_query assign=\"userInfo\" return=\"row\"}\r\n	firstName, lastName, address1, address2, city, state, country, zip\r\n	FROM _users	\r\n	WHERE id = \'{$user->id}\'\r\n{/select_query}\r\n{/if}\r\n{include_php file=\"shared_handle:cart\"}{include_php file=\"shared_handle:checkout\"}\r\n{if $cart.items|@count gt 0}\r\n<p>Below is a preview list of the selected products and the sub total associated.</p>\r\n<blockquote>\r\n{foreach from=$cart.items key=\"productCode\" item=\"lineItem\"}\r\n	<small>{$lineItem.title|truncate:20:\"...\"}</small>\r\n	{$lineItem.quantity} @ \r\n	${$lineItem.each|number_format:\"2\"} \r\n	= ${$lineItem.subtotal|number_format:\"2\"}<br />\r\n{/foreach}</blockquote>\r\n<br />\r\n<h2 class=\"underline\">Sub Total: ${$cart.total|number_format:\"2\"}</h2>\r\n\r\n<p>Once you have entered your shipping and billing address, click the Continue button and the forms will be verified for required fields, afterwhich a credit card form will show at the bottom of this page.</p>\r\n\r\n<form name=\"checkoutForm\" method=\"post\" action=\"index.php\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n<input type=\"hidden\" name=\"cAction\" value=\"{if $success.billIsValid}shipProcess{else}validateShippingBilling{/if}\" />\r\n<table width=\"100%\"><tr><td>\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Shipping Information</h2>\r\n<p>Enter the address for the location where you would like these products shipped to.</p>\r\n	First Name:\r\n	<input type=\"text\" name=\"ship[firstname]\" value=\"{$smarty.request.ship.firstname|default:$userInfo.firstName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Last Name:\r\n	<input type=\"text\" name=\"ship[lastname]\" value=\"{$smarty.request.ship.lastname|default:$userInfo.lastName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Address:\r\n	<input type=\"text\" name=\"ship[address1]\" value=\"{$smarty.request.ship.address1|default:$userInfo.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"ship[address2]\" value=\"{$smarty.request.ship.address2|default:$userInfo.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	City:\r\n	<input type=\"text\" name=\"ship[city]\" value=\"{$smarty.request.ship.city|default:$userInfo.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	State, Zip:\r\n	<input type=\"text\" name=\"ship[state]\" value=\"{$smarty.request.ship.state|default:$userInfo.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"ship[zip]\" value=\"{$smarty.request.ship.zip|default:$userInfo.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n	\r\n	Country:\r\n	<input type=\"text\" name=\"ship[country]\" value=\"{$smarty.request.ship.country|default:$userInfo.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Billing Information</h2>\r\n	<p>Enter the billing information for the credit card owner.</p>\r\n	First Name:\r\n	<input type=\"text\" name=\"bill[firstname]\" value=\"{$smarty.request.bill.firstname|default:$userInfo.firstName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Last Name:\r\n	<input type=\"text\" name=\"bill[lastname]\" value=\"{$smarty.request.bill.lastname|default:$userInfo.lastName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Address:\r\n	<input type=\"text\" name=\"bill[address1]\" value=\"{$smarty.request.bill.address1|default:$userInfo.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"bill[address2]\" value=\"{$smarty.request.bill.address2|default:$userInfo.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	City:\r\n	<input type=\"text\" name=\"bill[city]\" value=\"{$smarty.request.bill.city|default:$userInfo.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	State, Zip:\r\n	<input type=\"text\" name=\"bill[state]\" value=\"{$smarty.request.bill.state|default:$userInfo.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"bill[zip]\" value=\"{$smarty.request.bill.zip|default:$userInfo.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n\r\n	Country:\r\n	<input type=\"text\" name=\"bill[country]\" value=\"{$smarty.request.bill.country|default:$userInfo.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /><br />\r\n\r\n	Email:\r\n	<input type=\"text\" name=\"bill[email]\" value=\"{$smarty.request.bill.email|default:$userInfo.email}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	Phone:\r\n	<input type=\"text\" name=\"bill[phone]\" value=\"{$smarty.request.bill.phone|default:$userInfo.phone}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n</div>\r\n\r\n<div id=\"fMatches\" class=\"xFloat\" style=\"padding:3px; background-color:#FFFFFF; border:#666666 1px solid;\"></div>\r\n\r\n{if $modules.spadeAutoComplete}\r\n	<script language=\"JavaScript\" src=\"{$modules.x}\"></script>\r\n	<script language=\"JavaScript\" src=\"{$modules.spadeAutoComplete}\"></script>\r\n	<script language=\"JavaScript\">\r\n		var states = new Array(\'AL\',\'AK\',\'AS\',\'AZ\',\'AR\',\'CA\',\'CO\',\'CT\',\'DE\',\'DC\',\'FL\',\'GA\',\'GU\',\r\n					\'HI\',\'ID\',\'IL\',\'IN\',\'IA\',\'KS\',\'KY\',\'LA\',\'ME\',\'MH\',\'MD\',\'MA\',\r\n					\'MI\',\'MN\',\'MS\',\'MO\',\'MT\',\'NE\',\'NV\',\'NH\',\'NJ\',\'NM\',\'NY\',\'NC\',\r\n					\'ND\',\'OH\',\'OK\',\'OR\',\'PW\',\'PA\',\'PR\',\'RI\',\'SC\',\'SD\',\'TN\',\'TX\',\r\n					\'UT\',\'VT\',\'USVI\',\'VA\',\'WA\',\'WV\',\'WI\',\'WY\',\'AB\',\'BC\',\'LB\',\'MB\',\r\n					\'NB\',\'NF\',\'NT\',\'NS\',\'ON\',\'PE\',\'PQ\',\'SK\',\'YT\');\r\n		initAutoComplete(\'bill[state]\', states, true);\r\n		initAutoComplete(\'ship[state]\', states, true);\r\n\r\n		{* var countries = new Array (\'United States of America\', \'Canada\', \'Germany\', \'United Kingdom\', \'India\', \'---------------------\', \'Albania\', \'Algeria\', \'Andorra\', \'Angola\', \'Anguilla\', \'Antarctica\', \'Antigua and Barbuda\', \'Argentina\', \'Armenia\', \'Aruba\', \'Australia\', \'Austria\', \'Azerbaijan\', \'Bahamas\', \'Bahrain\', \'Bangladesh\', \'Barbados\', \'Belarus\', \'Belgium\', \'Belize\', \'Benin\', \'Bermuda\', \'Bhutan\', \'Bolivia\', \'Bosnia and Herzegowina\', \'Botswana\', \'Bouvet Island\', \'Brazil\', \'British Ind. Ocean Terr\', \'Brunei Darussalam\', \'Bulgaria\', \'Burkina Faso\', \'Burundi\', \'Cambodia\', \'Cameroon\', \'Cape Verde\', \'Cayman Islands\', \'Central African Rep.\', \'Chad\', \'Chile\', \'China\', \'Christmas Island\', \'Cocoa (Keeling) Isl.\', \'Colombia\', \'Comoros\', \'Congo\', \'Cook Islands\', \'Costa Rica\', \'Cote Divoire\', \'Hrvatska\', \'Cyprus\', \'Czech Republic\', \'Denmark\', \'Djibouti\', \'Dominica\', \'Dominican Republic\', \'East Timor\', \'Ecuador\', \'Egypt\', \'El Salvador\', \'Equatorial Guinea\', \'Eritrea\', \'Estonia\', \'Ethiopia\', \'Falkland Isl. (Malvinas)\', \'Faroe Islands\', \'Fiji\', \'Finland\', \'France\', \'French Guiana\', \'French Polynesia\', \'French Southern Terr.\', \'Gabon\', \'Gambia\', \'Georgia\', \'Ghana\', \'Gibraltar\', \'Greece\', \'Greenland\', \'Grenada\', \'Guadeloupe\', \'Guatemala\', \'Guinea\', \'Guinea-Bissau\', \'Guyana\', \'Haiti\', \'Heard & McDonald Isl.\', \'Honduras\', \'Hong Kong\', \'Hungary\', \'Iceland\', \'Indonesia\', \'Ireland\', \'Israel\', \'Italy\', \'Jamaica\', \'Japan\', \'Jordan\', \'Kazakhstan\', \'Kenya\', \'Kiribati\', \'Republic of Korea\', \'Kuwait\', \'Kyrgyzstan\', \'Lao Peoples Dem. Rep.\', \'Latvia\', \'Lebanon\', \'Lesotho\', \'Liberia\', \'Liechtenstein\', \'Lithuania\', \'Luxembourg\', \'Macau\', \'Macedonia\', \'Madagascar\', \'Malawi\', \'Malaysia\', \'Maldives\', \'Mali\', \'Malta\', \'Marshall Islands\', \'Martinique\', \'Mauritania\', \'Mauritius\', \'Mayotte\', \'Mexico\', \'Micronesia: Fed. States of\', \'Moldova: Republic of\', \'Monaco\', \'Mongolia\', \'Montserrat\', \'Morocco\', \'Mozambique\', \'Myanmar\', \'Namibia\', \'Nauru\', \'Nepal\', \'Netherlands\', \'Netherlands Antilles\', \'New Caledonia\', \'New Zealand\', \'Nicaragua\', \'Niger\', \'Nigeria\', \'Niue\', \'Norfolk Island\', \'Northern Mariana Isl.\', \'Norway\', \'Oman\', \'Pakistan\', \'Palau\', \'Panama\', \'Papua New Guinea\', \'Paraguay\', \'Peru\', \'Philippines\', \'Pitcairn\', \'Poland\', \'Portugal\', \'Qatar\', \'Reunion\', \'Romania\', \'Russian Federation\', \'Rwanda\', \'Saint Kitts and Nevis\', \'Saint Lucia\', \'St. Vincent & Grenadines\', \'Samoa\', \'San Marino\', \'Sao Tome and Principe\', \'Saudi Arabia\', \'Senegal\', \'Seychelles\', \'Sierra Leone\', \'Singapore\', \'Slovakia\', \'Slovenia\', \'Solomon Islands\', \'Somalia\', \'South Africa\', \'S. Georgia & S. Sandwich Isl.\', \'Spain\', \'Sri Lanka\', \'St. Helena\', \'St. Pierre and Miquelon\', \'Suriname\', \'Svalbard & Jan Mayen Isl.\', \'Swaziland\', \'Sweden\', \'Switzerland\', \'Syrian Arab Republic\', \'Taiwan\', \'Tajikistan\', \'Tanzania: United Rep. of\', \'Thailand\', \'Togo\', \'Tokelau\', \'Tonga\', \'Trinidad and Tobago\', \'Tunisia\', \'Turkey\', \'Turkmenistan\', \'Turks and Caicos Islands\', \'Tuvalu\', \'Uganda\', \'Ukraine\', \'United Arab Emirates\', \'US Minor Outlying Isl.\', \'Uruguay\', \'Uzbekistan\', \'Vanuatu\', \'Vatican City (Holy See)\', \'Venezuela\', \'Vietnam\', \'Virgin Islands (British)\', \'Wallis and Futuna Islands\', \'Western Sahara\', \'Yemen\', \'Yugoslavia\', \'Zaire\', \'Zambia\', \'Zimbabwe\', \'Not Listed\'); *}\r\n		var countries = new Array (\'USA\', \'Canada\', \'Germany\', \'UK\', \'India\', \'Albania\', \'Algeria\', \'Andorra\', \'Angola\', \'Anguilla\', \'Antarctica\', \'Antigua and Barbuda\', \'Argentina\', \'Armenia\', \'Aruba\', \'Australia\', \'Austria\', \'Azerbaijan\', \'Bahamas\', \'Bahrain\', \'Bangladesh\', \'Barbados\', \'Belarus\', \'Belgium\', \'Belize\', \'Benin\', \'Bermuda\', \'Bhutan\', \'Bolivia\', \'Bosnia and Herzegowina\', \'Botswana\', \'Bouvet Island\', \'Brazil\', \'British Ind. Ocean Terr\', \'Brunei Darussalam\', \'Bulgaria\', \'Burkina Faso\', \'Burundi\', \'Cambodia\', \'Cameroon\', \'Cape Verde\', \'Cayman Islands\', \'Central African Rep.\', \'Chad\', \'Chile\', \'China\', \'Christmas Island\', \'Cocoa (Keeling) Isl.\', \'Colombia\', \'Comoros\', \'Congo\', \'Cook Islands\', \'Costa Rica\', \'Cote Divoire\', \'Hrvatska\', \'Cyprus\', \'Czech Republic\', \'Denmark\', \'Djibouti\', \'Dominica\', \'Dominican Republic\', \'East Timor\', \'Ecuador\', \'Egypt\', \'El Salvador\', \'Equatorial Guinea\', \'Eritrea\', \'Estonia\', \'Ethiopia\', \'Falkland Isl. (Malvinas)\', \'Faroe Islands\', \'Fiji\', \'Finland\', \'France\', \'French Guiana\', \'French Polynesia\', \'French Southern Terr.\', \'Gabon\', \'Gambia\', \'Georgia\', \'Ghana\', \'Gibraltar\', \'Greece\', \'Greenland\', \'Grenada\', \'Guadeloupe\', \'Guatemala\', \'Guinea\', \'Guinea-Bissau\', \'Guyana\', \'Haiti\', \'Heard & McDonald Isl.\', \'Honduras\', \'Hong Kong\', \'Hungary\', \'Iceland\', \'Indonesia\', \'Ireland\', \'Israel\', \'Italy\', \'Jamaica\', \'Japan\', \'Jordan\', \'Kazakhstan\', \'Kenya\', \'Kiribati\', \'Republic of Korea\', \'Kuwait\', \'Kyrgyzstan\', \'Lao Peoples Dem. Rep.\', \'Latvia\', \'Lebanon\', \'Lesotho\', \'Liberia\', \'Liechtenstein\', \'Lithuania\', \'Luxembourg\', \'Macau\', \'Macedonia\', \'Madagascar\', \'Malawi\', \'Malaysia\', \'Maldives\', \'Mali\', \'Malta\', \'Marshall Islands\', \'Martinique\', \'Mauritania\', \'Mauritius\', \'Mayotte\', \'Mexico\', \'Micronesia: Fed. States of\', \'Moldova: Republic of\', \'Monaco\', \'Mongolia\', \'Montserrat\', \'Morocco\', \'Mozambique\', \'Myanmar\', \'Namibia\', \'Nauru\', \'Nepal\', \'Netherlands\', \'Netherlands Antilles\', \'New Caledonia\', \'New Zealand\', \'Nicaragua\', \'Niger\', \'Nigeria\', \'Niue\', \'Norfolk Island\', \'Northern Mariana Isl.\', \'Norway\', \'Oman\', \'Pakistan\', \'Palau\', \'Panama\', \'Papua New Guinea\', \'Paraguay\', \'Peru\', \'Philippines\', \'Pitcairn\', \'Poland\', \'Portugal\', \'Qatar\', \'Reunion\', \'Romania\', \'Russian Federation\', \'Rwanda\', \'Saint Kitts and Nevis\', \'Saint Lucia\', \'St. Vincent & Grenadines\', \'Samoa\', \'San Marino\', \'Sao Tome and Principe\', \'Saudi Arabia\', \'Senegal\', \'Seychelles\', \'Sierra Leone\', \'Singapore\', \'Slovakia\', \'Slovenia\', \'Solomon Islands\', \'Somalia\', \'South Africa\', \'S. Georgia & S. Sandwich Isl.\', \'Spain\', \'Sri Lanka\', \'St. Helena\', \'St. Pierre and Miquelon\', \'Suriname\', \'Svalbard & Jan Mayen Isl.\', \'Swaziland\', \'Sweden\', \'Switzerland\', \'Syrian Arab Republic\', \'Taiwan\', \'Tajikistan\', \'Tanzania: United Rep. of\', \'Thailand\', \'Togo\', \'Tokelau\', \'Tonga\', \'Trinidad and Tobago\', \'Tunisia\', \'Turkey\', \'Turkmenistan\', \'Turks and Caicos Islands\', \'Tuvalu\', \'Uganda\', \'Ukraine\', \'United Arab Emirates\', \'US Minor Outlying Isl.\', \'Uruguay\', \'Uzbekistan\', \'Vanuatu\', \'Vatican City (Holy See)\', \'Venezuela\', \'Vietnam\', \'Virgin Islands (British)\', \'Wallis and Futuna Islands\', \'Western Sahara\', \'Yemen\', \'Yugoslavia\', \'Zaire\', \'Zambia\', \'Zimbabwe\', \'Not Listed\');\r\n		\r\n		initAutoComplete(\'bill[country]\', countries, true);\r\n		initAutoComplete(\'ship[country]\', countries, true);\r\n	</script>\r\n{/if}\r\n\r\n{if $success.shipIsValid AND $success.billIsValid}\r\n<div class=\"chunk300\">\r\n	<small>Shipping / Handling = </small>${$order.shipping|default:\"0\"|number_format:\"2\"}<br />\r\n	<small>Sales Tax = </small>${$order.tax|default:\"0\"|number_format:\"2\"}\r\n\r\n<h2 class=\"underline\">Total Amount Due: ${$order.total|default:\"0\"|number_format:\"2\"}</h2>\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Payment Information</h2>\r\n\r\n	Payment Method:\r\n	<select name=\"bill[paymentMethod]\" size=\"1\">\r\n		<option value=\"visa\"{if $smarty.request.bill.paymentMethod eq \"visa\"} selected{/if}>Visa</option>\r\n		<option value=\"mastercard\"{if $smarty.request.bill.paymentMethod eq \"mastercard\"} selected{/if}>Mastercard</option>\r\n		<option value=\"american express\"{if $smarty.request.bill.paymentMethod eq \"american express\"} selected{/if}>American Express</option>\r\n		<option value=\"discover\"{if $smarty.request.bill.paymentMethod eq \"discover\"} selected{/if}>Discover</option>\r\n	</select><br />\r\n\r\n	Card Number:\r\n	<input type=\"text\" name=\"bill[ccnum]\" value=\"\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Expiration Date: <small>(MMYY)</small>\r\n	<input type=\"text\" name=\"bill[ccexp]\" value=\"\" class=\"textInput\" maxlength=\"4\" style=\"width:50px;\" /><br />\r\n</div>\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" style=\"text-align:right\"><a href=\"javascript:document.checkoutForm.submit();\" class=\"button\"> Submit Payment </a></div>\r\n{else}\r\n<div class=\"hBox\" style=\"text-align:right\"><a href=\"javascript:document.checkoutForm.submit();\" class=\"button\"> Continue </a></div>\r\n{/if}\r\n</form>\r\n\r\n{else}\r\n	{redirect href=\"?pg=cart\"}\r\n{/if}\r\n'),(1673,133,0.55,'smarty','0','added show/hide toggles',1087700093,3,'24.10.220.247','<h1 class=\"underline\">Check Out</h1>\r\n<br />\r\n{if !$user->isLoggedIn()}\r\n<p>Please <a href=\"?pg=signup\">Sign Up</a> or Log In.</p>\r\n{else}\r\n{select_query assign=\"userInfo\" return=\"row\"}\r\n	firstName, lastName, address1, address2, city, state, country, zip\r\n	FROM _users	\r\n	WHERE id = \'{$user->id}\'\r\n{/select_query}\r\n{/if}\r\n{include_php file=\"shared_handle:cart\"}{include_php file=\"shared_handle:checkout\"}\r\n{if $cart.items|@count gt 0}\r\n<p>Below is a preview list of the selected products and the sub total associated.</p>\r\n<blockquote>\r\n{foreach from=$cart.items key=\"productCode\" item=\"lineItem\"}\r\n	<small>{$lineItem.title|truncate:20:\"...\"}</small>\r\n	{$lineItem.quantity} @ \r\n	${$lineItem.each|number_format:\"2\"} \r\n	= ${$lineItem.subtotal|number_format:\"2\"}<br />\r\n{/foreach}</blockquote>\r\n<br />\r\n<div class=\"underline pixel\"></div>\r\n\r\n<p>Once you have entered your shipping and billing address, click the Continue button and the forms will be verified for required fields, afterwhich a credit card form will show at the bottom of this page.</p>\r\n\r\n<form name=\"checkoutForm\" method=\"post\" action=\"index.php\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n<input type=\"hidden\" name=\"cAction\" value=\"{if $success.billIsValid}shipProcess{else}validateShippingBilling{/if}\" />\r\n<table width=\"100%\"><tr><td>\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\"><a href=\"javascript:toggle(\'shipInfo\', \'\', \'showHide\');\"><img id=\"inComps_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Shipping Information</h2>\r\n\r\n	<p>Enter the address for the location where you would like these products shipped to.</p>\r\n	\r\n	<div id=\"shipInfo\" style=\"display:{if $success.shipIsValid}none{else}block{/if};\">\r\n	First Name:\r\n	<input type=\"text\" name=\"ship[firstname]\" value=\"{$smarty.request.ship.firstname|default:$userInfo.firstName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Last Name:\r\n	<input type=\"text\" name=\"ship[lastname]\" value=\"{$smarty.request.ship.lastname|default:$userInfo.lastName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Address:\r\n	<input type=\"text\" name=\"ship[address1]\" value=\"{$smarty.request.ship.address1|default:$userInfo.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"ship[address2]\" value=\"{$smarty.request.ship.address2|default:$userInfo.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	City:\r\n	<input type=\"text\" name=\"ship[city]\" value=\"{$smarty.request.ship.city|default:$userInfo.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	State, Zip:\r\n	<input type=\"text\" name=\"ship[state]\" value=\"{$smarty.request.ship.state|default:$userInfo.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"ship[zip]\" value=\"{$smarty.request.ship.zip|default:$userInfo.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n	\r\n	Country:\r\n	<input type=\"text\" name=\"ship[country]\" value=\"{$smarty.request.ship.country|default:$userInfo.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /><br />\r\n\r\n	Email:\r\n	<input type=\"text\" name=\"bill[email]\" value=\"{$smarty.request.bill.email|default:$userInfo.email}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n	</div>\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">\r\n		<div class=\"topRight hideShow\"><a href=\"javascript:toggle(\'billInfo\', \'\', \'showHide\');\"><img id=\"inComps_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n		Billing Information</h2>\r\n	<p>Enter the billing information for the credit card owner.</p>\r\n	\r\n	<div id=\"billInfo\" style=\"display:{if $success.billIsValid}none{else}block{/if};\">\r\n	First Name:\r\n	<input type=\"text\" name=\"bill[firstname]\" value=\"{$smarty.request.bill.firstname|default:$userInfo.firstName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Last Name:\r\n	<input type=\"text\" name=\"bill[lastname]\" value=\"{$smarty.request.bill.lastname|default:$userInfo.lastName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Address:\r\n	<input type=\"text\" name=\"bill[address1]\" value=\"{$smarty.request.bill.address1|default:$userInfo.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"bill[address2]\" value=\"{$smarty.request.bill.address2|default:$userInfo.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	City:\r\n	<input type=\"text\" name=\"bill[city]\" value=\"{$smarty.request.bill.city|default:$userInfo.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	State, Zip:\r\n	<input type=\"text\" name=\"bill[state]\" value=\"{$smarty.request.bill.state|default:$userInfo.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"bill[zip]\" value=\"{$smarty.request.bill.zip|default:$userInfo.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n\r\n	Country:\r\n	<input type=\"text\" name=\"bill[country]\" value=\"{$smarty.request.bill.country|default:$userInfo.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /><br />\r\n\r\n	Phone:\r\n	<input type=\"text\" name=\"bill[phone]\" value=\"{$smarty.request.bill.phone|default:$userInfo.phone}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n	</div>\r\n</div>\r\n\r\n<div id=\"fMatches\" class=\"xFloat\" style=\"padding:3px; background-color:#FFFFFF; border:#666666 1px solid;\"></div>\r\n\r\n{if $modules.spadeAutoComplete}\r\n	<script language=\"JavaScript\" src=\"{$modules.x}\"></script>\r\n	<script language=\"JavaScript\" src=\"{$modules.spadeAutoComplete}\"></script>\r\n	<script language=\"JavaScript\">\r\n		var states = new Array(\'AL\',\'AK\',\'AS\',\'AZ\',\'AR\',\'CA\',\'CO\',\'CT\',\'DE\',\'DC\',\'FL\',\'GA\',\'GU\',\r\n					\'HI\',\'ID\',\'IL\',\'IN\',\'IA\',\'KS\',\'KY\',\'LA\',\'ME\',\'MH\',\'MD\',\'MA\',\r\n					\'MI\',\'MN\',\'MS\',\'MO\',\'MT\',\'NE\',\'NV\',\'NH\',\'NJ\',\'NM\',\'NY\',\'NC\',\r\n					\'ND\',\'OH\',\'OK\',\'OR\',\'PW\',\'PA\',\'PR\',\'RI\',\'SC\',\'SD\',\'TN\',\'TX\',\r\n					\'UT\',\'VT\',\'USVI\',\'VA\',\'WA\',\'WV\',\'WI\',\'WY\',\'AB\',\'BC\',\'LB\',\'MB\',\r\n					\'NB\',\'NF\',\'NT\',\'NS\',\'ON\',\'PE\',\'PQ\',\'SK\',\'YT\');\r\n		initAutoComplete(\'bill[state]\', states, true);\r\n		initAutoComplete(\'ship[state]\', states, true);\r\n\r\n		{* var countries = new Array (\'United States of America\', \'Canada\', \'Germany\', \'United Kingdom\', \'India\', \'---------------------\', \'Albania\', \'Algeria\', \'Andorra\', \'Angola\', \'Anguilla\', \'Antarctica\', \'Antigua and Barbuda\', \'Argentina\', \'Armenia\', \'Aruba\', \'Australia\', \'Austria\', \'Azerbaijan\', \'Bahamas\', \'Bahrain\', \'Bangladesh\', \'Barbados\', \'Belarus\', \'Belgium\', \'Belize\', \'Benin\', \'Bermuda\', \'Bhutan\', \'Bolivia\', \'Bosnia and Herzegowina\', \'Botswana\', \'Bouvet Island\', \'Brazil\', \'British Ind. Ocean Terr\', \'Brunei Darussalam\', \'Bulgaria\', \'Burkina Faso\', \'Burundi\', \'Cambodia\', \'Cameroon\', \'Cape Verde\', \'Cayman Islands\', \'Central African Rep.\', \'Chad\', \'Chile\', \'China\', \'Christmas Island\', \'Cocoa (Keeling) Isl.\', \'Colombia\', \'Comoros\', \'Congo\', \'Cook Islands\', \'Costa Rica\', \'Cote Divoire\', \'Hrvatska\', \'Cyprus\', \'Czech Republic\', \'Denmark\', \'Djibouti\', \'Dominica\', \'Dominican Republic\', \'East Timor\', \'Ecuador\', \'Egypt\', \'El Salvador\', \'Equatorial Guinea\', \'Eritrea\', \'Estonia\', \'Ethiopia\', \'Falkland Isl. (Malvinas)\', \'Faroe Islands\', \'Fiji\', \'Finland\', \'France\', \'French Guiana\', \'French Polynesia\', \'French Southern Terr.\', \'Gabon\', \'Gambia\', \'Georgia\', \'Ghana\', \'Gibraltar\', \'Greece\', \'Greenland\', \'Grenada\', \'Guadeloupe\', \'Guatemala\', \'Guinea\', \'Guinea-Bissau\', \'Guyana\', \'Haiti\', \'Heard & McDonald Isl.\', \'Honduras\', \'Hong Kong\', \'Hungary\', \'Iceland\', \'Indonesia\', \'Ireland\', \'Israel\', \'Italy\', \'Jamaica\', \'Japan\', \'Jordan\', \'Kazakhstan\', \'Kenya\', \'Kiribati\', \'Republic of Korea\', \'Kuwait\', \'Kyrgyzstan\', \'Lao Peoples Dem. Rep.\', \'Latvia\', \'Lebanon\', \'Lesotho\', \'Liberia\', \'Liechtenstein\', \'Lithuania\', \'Luxembourg\', \'Macau\', \'Macedonia\', \'Madagascar\', \'Malawi\', \'Malaysia\', \'Maldives\', \'Mali\', \'Malta\', \'Marshall Islands\', \'Martinique\', \'Mauritania\', \'Mauritius\', \'Mayotte\', \'Mexico\', \'Micronesia: Fed. States of\', \'Moldova: Republic of\', \'Monaco\', \'Mongolia\', \'Montserrat\', \'Morocco\', \'Mozambique\', \'Myanmar\', \'Namibia\', \'Nauru\', \'Nepal\', \'Netherlands\', \'Netherlands Antilles\', \'New Caledonia\', \'New Zealand\', \'Nicaragua\', \'Niger\', \'Nigeria\', \'Niue\', \'Norfolk Island\', \'Northern Mariana Isl.\', \'Norway\', \'Oman\', \'Pakistan\', \'Palau\', \'Panama\', \'Papua New Guinea\', \'Paraguay\', \'Peru\', \'Philippines\', \'Pitcairn\', \'Poland\', \'Portugal\', \'Qatar\', \'Reunion\', \'Romania\', \'Russian Federation\', \'Rwanda\', \'Saint Kitts and Nevis\', \'Saint Lucia\', \'St. Vincent & Grenadines\', \'Samoa\', \'San Marino\', \'Sao Tome and Principe\', \'Saudi Arabia\', \'Senegal\', \'Seychelles\', \'Sierra Leone\', \'Singapore\', \'Slovakia\', \'Slovenia\', \'Solomon Islands\', \'Somalia\', \'South Africa\', \'S. Georgia & S. Sandwich Isl.\', \'Spain\', \'Sri Lanka\', \'St. Helena\', \'St. Pierre and Miquelon\', \'Suriname\', \'Svalbard & Jan Mayen Isl.\', \'Swaziland\', \'Sweden\', \'Switzerland\', \'Syrian Arab Republic\', \'Taiwan\', \'Tajikistan\', \'Tanzania: United Rep. of\', \'Thailand\', \'Togo\', \'Tokelau\', \'Tonga\', \'Trinidad and Tobago\', \'Tunisia\', \'Turkey\', \'Turkmenistan\', \'Turks and Caicos Islands\', \'Tuvalu\', \'Uganda\', \'Ukraine\', \'United Arab Emirates\', \'US Minor Outlying Isl.\', \'Uruguay\', \'Uzbekistan\', \'Vanuatu\', \'Vatican City (Holy See)\', \'Venezuela\', \'Vietnam\', \'Virgin Islands (British)\', \'Wallis and Futuna Islands\', \'Western Sahara\', \'Yemen\', \'Yugoslavia\', \'Zaire\', \'Zambia\', \'Zimbabwe\', \'Not Listed\'); *}\r\n		var countries = new Array (\'USA\', \'Canada\', \'Germany\', \'UK\', \'India\', \'Albania\', \'Algeria\', \'Andorra\', \'Angola\', \'Anguilla\', \'Antarctica\', \'Antigua and Barbuda\', \'Argentina\', \'Armenia\', \'Aruba\', \'Australia\', \'Austria\', \'Azerbaijan\', \'Bahamas\', \'Bahrain\', \'Bangladesh\', \'Barbados\', \'Belarus\', \'Belgium\', \'Belize\', \'Benin\', \'Bermuda\', \'Bhutan\', \'Bolivia\', \'Bosnia and Herzegowina\', \'Botswana\', \'Bouvet Island\', \'Brazil\', \'British Ind. Ocean Terr\', \'Brunei Darussalam\', \'Bulgaria\', \'Burkina Faso\', \'Burundi\', \'Cambodia\', \'Cameroon\', \'Cape Verde\', \'Cayman Islands\', \'Central African Rep.\', \'Chad\', \'Chile\', \'China\', \'Christmas Island\', \'Cocoa (Keeling) Isl.\', \'Colombia\', \'Comoros\', \'Congo\', \'Cook Islands\', \'Costa Rica\', \'Cote Divoire\', \'Hrvatska\', \'Cyprus\', \'Czech Republic\', \'Denmark\', \'Djibouti\', \'Dominica\', \'Dominican Republic\', \'East Timor\', \'Ecuador\', \'Egypt\', \'El Salvador\', \'Equatorial Guinea\', \'Eritrea\', \'Estonia\', \'Ethiopia\', \'Falkland Isl. (Malvinas)\', \'Faroe Islands\', \'Fiji\', \'Finland\', \'France\', \'French Guiana\', \'French Polynesia\', \'French Southern Terr.\', \'Gabon\', \'Gambia\', \'Georgia\', \'Ghana\', \'Gibraltar\', \'Greece\', \'Greenland\', \'Grenada\', \'Guadeloupe\', \'Guatemala\', \'Guinea\', \'Guinea-Bissau\', \'Guyana\', \'Haiti\', \'Heard & McDonald Isl.\', \'Honduras\', \'Hong Kong\', \'Hungary\', \'Iceland\', \'Indonesia\', \'Ireland\', \'Israel\', \'Italy\', \'Jamaica\', \'Japan\', \'Jordan\', \'Kazakhstan\', \'Kenya\', \'Kiribati\', \'Republic of Korea\', \'Kuwait\', \'Kyrgyzstan\', \'Lao Peoples Dem. Rep.\', \'Latvia\', \'Lebanon\', \'Lesotho\', \'Liberia\', \'Liechtenstein\', \'Lithuania\', \'Luxembourg\', \'Macau\', \'Macedonia\', \'Madagascar\', \'Malawi\', \'Malaysia\', \'Maldives\', \'Mali\', \'Malta\', \'Marshall Islands\', \'Martinique\', \'Mauritania\', \'Mauritius\', \'Mayotte\', \'Mexico\', \'Micronesia: Fed. States of\', \'Moldova: Republic of\', \'Monaco\', \'Mongolia\', \'Montserrat\', \'Morocco\', \'Mozambique\', \'Myanmar\', \'Namibia\', \'Nauru\', \'Nepal\', \'Netherlands\', \'Netherlands Antilles\', \'New Caledonia\', \'New Zealand\', \'Nicaragua\', \'Niger\', \'Nigeria\', \'Niue\', \'Norfolk Island\', \'Northern Mariana Isl.\', \'Norway\', \'Oman\', \'Pakistan\', \'Palau\', \'Panama\', \'Papua New Guinea\', \'Paraguay\', \'Peru\', \'Philippines\', \'Pitcairn\', \'Poland\', \'Portugal\', \'Qatar\', \'Reunion\', \'Romania\', \'Russian Federation\', \'Rwanda\', \'Saint Kitts and Nevis\', \'Saint Lucia\', \'St. Vincent & Grenadines\', \'Samoa\', \'San Marino\', \'Sao Tome and Principe\', \'Saudi Arabia\', \'Senegal\', \'Seychelles\', \'Sierra Leone\', \'Singapore\', \'Slovakia\', \'Slovenia\', \'Solomon Islands\', \'Somalia\', \'South Africa\', \'S. Georgia & S. Sandwich Isl.\', \'Spain\', \'Sri Lanka\', \'St. Helena\', \'St. Pierre and Miquelon\', \'Suriname\', \'Svalbard & Jan Mayen Isl.\', \'Swaziland\', \'Sweden\', \'Switzerland\', \'Syrian Arab Republic\', \'Taiwan\', \'Tajikistan\', \'Tanzania: United Rep. of\', \'Thailand\', \'Togo\', \'Tokelau\', \'Tonga\', \'Trinidad and Tobago\', \'Tunisia\', \'Turkey\', \'Turkmenistan\', \'Turks and Caicos Islands\', \'Tuvalu\', \'Uganda\', \'Ukraine\', \'United Arab Emirates\', \'US Minor Outlying Isl.\', \'Uruguay\', \'Uzbekistan\', \'Vanuatu\', \'Vatican City (Holy See)\', \'Venezuela\', \'Vietnam\', \'Virgin Islands (British)\', \'Wallis and Futuna Islands\', \'Western Sahara\', \'Yemen\', \'Yugoslavia\', \'Zaire\', \'Zambia\', \'Zimbabwe\', \'Not Listed\');\r\n		\r\n		initAutoComplete(\'bill[country]\', countries, true);\r\n		initAutoComplete(\'ship[country]\', countries, true);\r\n	</script>\r\n{/if}\r\n\r\n{if $success.shipIsValid AND $success.billIsValid}\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Billing Summary</h2>\r\n	Order Total = ${$order.total|default:\"0\"|number_format:\"2\"}<br />\r\n	Shipping / Handling = ${$order.shipping|default:\"0\"|number_format:\"2\"}<br />\r\n	Sales Tax = ${$order.tax|default:\"0\"|number_format:\"2\"}<br /><br />\r\n	<div class=\"underline\"></div>\r\n	Total Amount Due: <em>${$order.grandTotal|default:\"0\"|number_format:\"2\"}</em>\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Payment Information</h2>\r\n\r\n	Payment Method:\r\n	<select name=\"bill[paymentMethod]\" size=\"1\">\r\n		<option value=\"visa\"{if $smarty.request.bill.paymentMethod eq \"visa\"} selected{/if}>Visa</option>\r\n		<option value=\"mastercard\"{if $smarty.request.bill.paymentMethod eq \"mastercard\"} selected{/if}>Mastercard</option>\r\n		<option value=\"american express\"{if $smarty.request.bill.paymentMethod eq \"american express\"} selected{/if}>American Express</option>\r\n		<option value=\"discover\"{if $smarty.request.bill.paymentMethod eq \"discover\"} selected{/if}>Discover</option>\r\n	</select><br />\r\n\r\n	Card Number:\r\n	<input type=\"text\" name=\"bill[ccnum]\" value=\"\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Expiration Date: <small>(MMYY)</small>\r\n	<input type=\"text\" name=\"bill[ccexp]\" value=\"\" class=\"textInput\" maxlength=\"4\" style=\"width:50px;\" /><br />\r\n</div>\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" style=\"text-align:right\"><a href=\"javascript:document.checkoutForm.submit();\" class=\"button\"> Submit Payment </a></div>\r\n{else}\r\n</td></tr></table> \r\n\r\n<div class=\"hBox\" style=\"text-align:right\"><a href=\"javascript:document.checkoutForm.submit();\" class=\"button\"> Continue </a></div>\r\n{/if}\r\n</form>\r\n\r\n{else}\r\n	{redirect href=\"?pg=cart\"}\r\n{/if}\r\n'),(1930,124,0.58,'smarty','0','Changed bottom back link to say Go Back instead of Back to Review.',1088507586,2,'67.172.245.198','<h1 class=\"underline\">Competition Entry Fee Payment</h1>\r\n\r\n{include_php file=\"shared_handle:competition.prepareContribution\"}\r\n{include_php file=\"shared_handle:competition.processContribution\"}\r\n\r\n{select_query assign=\"userInfo\" return=\"row\"}\r\n	firstName, lastName, address1, address2, city, state, country, zip\r\n	FROM _users	\r\n	WHERE id = \'{$user->id}\'\r\n{/select_query}\r\n\r\n{if $isComplete}\r\n	<p>You must click the continue button to finish the competition creation process, and deliver the invitation emails.</p>\r\n	\r\n	<div class=\"hBox\" style=\"text-align:right;\">\r\n		<a href=\"?pg={$smarty.request.return|default:\"home\"}\" class=\"link\">Continue</a>\r\n	</div>\r\n{else}\r\n\r\n<form name=\"potContribution\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n<input type=\"hidden\" name=\"cAction\" value=\"process\" />\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"no_exire_keep_alive\" value=\"cid newcomp return\" />\r\n<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:\"home\"}\" />\r\n<input type=\"hidden\" name=\"cid\" value=\"{$smarty.request.cid}\" />\r\n<input type=\"hidden\" name=\"newcomp\" value=\"{$smarty.request.newcomp}\">\r\n\r\n{if $competition}\r\n\r\n<input type=\"hidden\" name=\"contribution[cid]\" value=\"{$competition.id|default:\"newcomp\"}\" />\r\n<input type=\"hidden\" name=\"contribution[total]\" value=\"{$competition.total}\" />\r\n<input type=\"hidden\" name=\"contribution[entryFee]\" value=\"{$competition.entryFee}\" />\r\n<input type=\"hidden\" name=\"contribution[individualPotAmount]\" value=\"{$competition.individualPotAmount}\" />\r\n\r\n<p>You are about to pay the entry fee for the following competition. Please make sure this is the correct competition before proceding!</p>\r\n\r\nCompetition Title: <b>{$competition.title}</b><br />\r\nCompetition Type: <b>{$competition.type|niceText}, {$competition.style}</b><br />\r\nStarted By: <b>{$competition.firstName} {$competition.lastName} ({$competition.username})</b><br />\r\nTerm: <b>{$competition.startDate|date_format2:\"M j, Y\"} to {$competition.endDate|date_format2:\"M j, Y\"}</b><br />\r\n<br />\r\n{if $competition.individualPotAmount}\r\n	Individual Pot Contribution Amount: <b>${$competition.individualPotAmount|number_format:\"2\"}</b> (You are agreeing to pay the winner this amount when the competition is over!)<br />\r\n{else}\r\n	There is no individual contribution required for this competition, as it is funded by third party donations ({$competition.potMethod}).<br />\r\n{/if}\r\nWeightLossWars.com Entry Fee: <b>${$competition.entryFee|number_format:\"2\"}</b><br />\r\n<h2 class=\"underline2\">&nbsp;</h2>\r\n<b>Total Due:</b> <em>${$competition.total|number_format:\"2\"}</em><br />\r\n{if $order.invoiceNum}<input type=\"hidden\" name=\"orderInvoiceNum\" value=\"{$order.invoiceNum}\" />{/if}\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">\r\n		<div class=\"topRight hideShow\"><a href=\"javascript:toggle(\'billInfo\', \'\', \'showHide\');\"><img id=\"billInfo_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n		Billing Information</h2>	\r\n	<div id=\"billInfo\" style=\"display:{if $success.billIsValid}none{else}block{/if};\">\r\n	First Name:\r\n	<input type=\"text\" name=\"bill[firstname]\" value=\"{$smarty.request.bill.firstname|default:$userInfo.firstName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Last Name:\r\n	<input type=\"text\" name=\"bill[lastname]\" value=\"{$smarty.request.bill.lastname|default:$userInfo.lastName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Company:\r\n	<input type=\"text\" name=\"bill[company]\" value=\"{$smarty.request.bill.company|default:$userInfo.company}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Address:\r\n	<input type=\"text\" name=\"bill[address1]\" value=\"{$smarty.request.bill.address1|default:$userInfo.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"bill[address2]\" value=\"{$smarty.request.bill.address2|default:$userInfo.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	City:\r\n	<input type=\"text\" name=\"bill[city]\" value=\"{$smarty.request.bill.city|default:$userInfo.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	State, Zip:\r\n	<input type=\"text\" name=\"bill[state]\" value=\"{$smarty.request.bill.state|default:$userInfo.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"bill[zip]\" value=\"{$smarty.request.bill.zip|default:$userInfo.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n\r\n	Country:\r\n	<input type=\"text\" name=\"bill[country]\" value=\"{$smarty.request.bill.country|default:$userInfo.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /><br />\r\n\r\n	Phone:\r\n	<input type=\"text\" name=\"bill[phone]\" value=\"{$smarty.request.bill.phone|default:$userInfo.phone}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	Email:\r\n	<input type=\"text\" name=\"bill[email]\" value=\"{$smarty.request.bill.email|default:$userInfo.email}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n	\r\n	</div>\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Payment Information</h2>\r\n	Payment Method:\r\n	<select name=\"bill[paymentMethod]\" size=\"1\">\r\n		<option value=\"visa\"{if $smarty.request.bill.paymentMethod eq \"visa\"} selected{/if}>Visa</option>\r\n		<option value=\"mastercard\"{if $smarty.request.bill.paymentMethod eq \"mastercard\"} selected{/if}>Mastercard</option>\r\n		<option value=\"american express\"{if $smarty.request.bill.paymentMethod eq \"american express\"} selected{/if}>American Express</option>\r\n		<option value=\"discover\"{if $smarty.request.bill.paymentMethod eq \"discover\"} selected{/if}>Discover</option>\r\n	</select><br />\r\n\r\n	Card Number:\r\n	<input type=\"text\" name=\"bill[ccnum]\" value=\"\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Expiration Date: <small>(MMYY)</small>\r\n	<input type=\"text\" name=\"bill[ccexp]\" value=\"\" class=\"textInput\" maxlength=\"4\" style=\"width:50px;\" /><br />\r\n</div>\r\n</td></tr></table>\r\n<div class=\"hBox\" style=\"text-align:right;\">\r\n	<a href=\"?pg={$smarty.request.return|default:\"home\"}\" class=\"link\">Go Back</a> | \r\n	<a href=\"javascript://\" onclick=\"document.forms[\'potContribution\'].submit(); return false;\" class=\"link\">Submit Payment</a>\r\n</div>\r\n<div id=\"fMatches\" class=\"xFloat\" style=\"padding:3px; background-color:#FFFFFF; border:#666666 1px solid;\"></div>\r\n\r\n{if $modules.spadeAutoComplete}\r\n	<script language=\"JavaScript\" src=\"{$modules.x}\"></script>\r\n	<script language=\"JavaScript\" src=\"{$modules.spadeAutoComplete}\"></script>\r\n	<script language=\"JavaScript\">\r\n		var states = new Array(\'AL\',\'AK\',\'AS\',\'AZ\',\'AR\',\'CA\',\'CO\',\'CT\',\'DE\',\'DC\',\'FL\',\'GA\',\'GU\',\r\n					\'HI\',\'ID\',\'IL\',\'IN\',\'IA\',\'KS\',\'KY\',\'LA\',\'ME\',\'MH\',\'MD\',\'MA\',\r\n					\'MI\',\'MN\',\'MS\',\'MO\',\'MT\',\'NE\',\'NV\',\'NH\',\'NJ\',\'NM\',\'NY\',\'NC\',\r\n					\'ND\',\'OH\',\'OK\',\'OR\',\'PW\',\'PA\',\'PR\',\'RI\',\'SC\',\'SD\',\'TN\',\'TX\',\r\n					\'UT\',\'VT\',\'USVI\',\'VA\',\'WA\',\'WV\',\'WI\',\'WY\',\'AB\',\'BC\',\'LB\',\'MB\',\r\n					\'NB\',\'NF\',\'NT\',\'NS\',\'ON\',\'PE\',\'PQ\',\'SK\',\'YT\');\r\n		initAutoComplete(\'bill[state]\', \'states\', true);\r\n\r\n		{* var countries = new Array (\'United States of America\', \'Canada\', \'Germany\', \'United Kingdom\', \'India\', \'---------------------\', \'Albania\', \'Algeria\', \'Andorra\', \'Angola\', \'Anguilla\', \'Antarctica\', \'Antigua and Barbuda\', \'Argentina\', \'Armenia\', \'Aruba\', \'Australia\', \'Austria\', \'Azerbaijan\', \'Bahamas\', \'Bahrain\', \'Bangladesh\', \'Barbados\', \'Belarus\', \'Belgium\', \'Belize\', \'Benin\', \'Bermuda\', \'Bhutan\', \'Bolivia\', \'Bosnia and Herzegowina\', \'Botswana\', \'Bouvet Island\', \'Brazil\', \'British Ind. Ocean Terr\', \'Brunei Darussalam\', \'Bulgaria\', \'Burkina Faso\', \'Burundi\', \'Cambodia\', \'Cameroon\', \'Cape Verde\', \'Cayman Islands\', \'Central African Rep.\', \'Chad\', \'Chile\', \'China\', \'Christmas Island\', \'Cocoa (Keeling) Isl.\', \'Colombia\', \'Comoros\', \'Congo\', \'Cook Islands\', \'Costa Rica\', \'Cote Divoire\', \'Hrvatska\', \'Cyprus\', \'Czech Republic\', \'Denmark\', \'Djibouti\', \'Dominica\', \'Dominican Republic\', \'East Timor\', \'Ecuador\', \'Egypt\', \'El Salvador\', \'Equatorial Guinea\', \'Eritrea\', \'Estonia\', \'Ethiopia\', \'Falkland Isl. (Malvinas)\', \'Faroe Islands\', \'Fiji\', \'Finland\', \'France\', \'French Guiana\', \'French Polynesia\', \'French Southern Terr.\', \'Gabon\', \'Gambia\', \'Georgia\', \'Ghana\', \'Gibraltar\', \'Greece\', \'Greenland\', \'Grenada\', \'Guadeloupe\', \'Guatemala\', \'Guinea\', \'Guinea-Bissau\', \'Guyana\', \'Haiti\', \'Heard & McDonald Isl.\', \'Honduras\', \'Hong Kong\', \'Hungary\', \'Iceland\', \'Indonesia\', \'Ireland\', \'Israel\', \'Italy\', \'Jamaica\', \'Japan\', \'Jordan\', \'Kazakhstan\', \'Kenya\', \'Kiribati\', \'Republic of Korea\', \'Kuwait\', \'Kyrgyzstan\', \'Lao Peoples Dem. Rep.\', \'Latvia\', \'Lebanon\', \'Lesotho\', \'Liberia\', \'Liechtenstein\', \'Lithuania\', \'Luxembourg\', \'Macau\', \'Macedonia\', \'Madagascar\', \'Malawi\', \'Malaysia\', \'Maldives\', \'Mali\', \'Malta\', \'Marshall Islands\', \'Martinique\', \'Mauritania\', \'Mauritius\', \'Mayotte\', \'Mexico\', \'Micronesia: Fed. States of\', \'Moldova: Republic of\', \'Monaco\', \'Mongolia\', \'Montserrat\', \'Morocco\', \'Mozambique\', \'Myanmar\', \'Namibia\', \'Nauru\', \'Nepal\', \'Netherlands\', \'Netherlands Antilles\', \'New Caledonia\', \'New Zealand\', \'Nicaragua\', \'Niger\', \'Nigeria\', \'Niue\', \'Norfolk Island\', \'Northern Mariana Isl.\', \'Norway\', \'Oman\', \'Pakistan\', \'Palau\', \'Panama\', \'Papua New Guinea\', \'Paraguay\', \'Peru\', \'Philippines\', \'Pitcairn\', \'Poland\', \'Portugal\', \'Qatar\', \'Reunion\', \'Romania\', \'Russian Federation\', \'Rwanda\', \'Saint Kitts and Nevis\', \'Saint Lucia\', \'St. Vincent & Grenadines\', \'Samoa\', \'San Marino\', \'Sao Tome and Principe\', \'Saudi Arabia\', \'Senegal\', \'Seychelles\', \'Sierra Leone\', \'Singapore\', \'Slovakia\', \'Slovenia\', \'Solomon Islands\', \'Somalia\', \'South Africa\', \'S. Georgia & S. Sandwich Isl.\', \'Spain\', \'Sri Lanka\', \'St. Helena\', \'St. Pierre and Miquelon\', \'Suriname\', \'Svalbard & Jan Mayen Isl.\', \'Swaziland\', \'Sweden\', \'Switzerland\', \'Syrian Arab Republic\', \'Taiwan\', \'Tajikistan\', \'Tanzania: United Rep. of\', \'Thailand\', \'Togo\', \'Tokelau\', \'Tonga\', \'Trinidad and Tobago\', \'Tunisia\', \'Turkey\', \'Turkmenistan\', \'Turks and Caicos Islands\', \'Tuvalu\', \'Uganda\', \'Ukraine\', \'United Arab Emirates\', \'US Minor Outlying Isl.\', \'Uruguay\', \'Uzbekistan\', \'Vanuatu\', \'Vatican City (Holy See)\', \'Venezuela\', \'Vietnam\', \'Virgin Islands (British)\', \'Wallis and Futuna Islands\', \'Western Sahara\', \'Yemen\', \'Yugoslavia\', \'Zaire\', \'Zambia\', \'Zimbabwe\', \'Not Listed\'); *}\r\n		var countries = new Array (\'USA\', \'Canada\', \'Germany\', \'UK\', \'India\', \'Albania\', \'Algeria\', \'Andorra\', \'Angola\', \'Anguilla\', \'Antarctica\', \'Antigua and Barbuda\', \'Argentina\', \'Armenia\', \'Aruba\', \'Australia\', \'Austria\', \'Azerbaijan\', \'Bahamas\', \'Bahrain\', \'Bangladesh\', \'Barbados\', \'Belarus\', \'Belgium\', \'Belize\', \'Benin\', \'Bermuda\', \'Bhutan\', \'Bolivia\', \'Bosnia and Herzegowina\', \'Botswana\', \'Bouvet Island\', \'Brazil\', \'British Ind. Ocean Terr\', \'Brunei Darussalam\', \'Bulgaria\', \'Burkina Faso\', \'Burundi\', \'Cambodia\', \'Cameroon\', \'Cape Verde\', \'Cayman Islands\', \'Central African Rep.\', \'Chad\', \'Chile\', \'China\', \'Christmas Island\', \'Cocoa (Keeling) Isl.\', \'Colombia\', \'Comoros\', \'Congo\', \'Cook Islands\', \'Costa Rica\', \'Cote Divoire\', \'Hrvatska\', \'Cyprus\', \'Czech Republic\', \'Denmark\', \'Djibouti\', \'Dominica\', \'Dominican Republic\', \'East Timor\', \'Ecuador\', \'Egypt\', \'El Salvador\', \'Equatorial Guinea\', \'Eritrea\', \'Estonia\', \'Ethiopia\', \'Falkland Isl. (Malvinas)\', \'Faroe Islands\', \'Fiji\', \'Finland\', \'France\', \'French Guiana\', \'French Polynesia\', \'French Southern Terr.\', \'Gabon\', \'Gambia\', \'Georgia\', \'Ghana\', \'Gibraltar\', \'Greece\', \'Greenland\', \'Grenada\', \'Guadeloupe\', \'Guatemala\', \'Guinea\', \'Guinea-Bissau\', \'Guyana\', \'Haiti\', \'Heard & McDonald Isl.\', \'Honduras\', \'Hong Kong\', \'Hungary\', \'Iceland\', \'Indonesia\', \'Ireland\', \'Israel\', \'Italy\', \'Jamaica\', \'Japan\', \'Jordan\', \'Kazakhstan\', \'Kenya\', \'Kiribati\', \'Republic of Korea\', \'Kuwait\', \'Kyrgyzstan\', \'Lao Peoples Dem. Rep.\', \'Latvia\', \'Lebanon\', \'Lesotho\', \'Liberia\', \'Liechtenstein\', \'Lithuania\', \'Luxembourg\', \'Macau\', \'Macedonia\', \'Madagascar\', \'Malawi\', \'Malaysia\', \'Maldives\', \'Mali\', \'Malta\', \'Marshall Islands\', \'Martinique\', \'Mauritania\', \'Mauritius\', \'Mayotte\', \'Mexico\', \'Micronesia: Fed. States of\', \'Moldova: Republic of\', \'Monaco\', \'Mongolia\', \'Montserrat\', \'Morocco\', \'Mozambique\', \'Myanmar\', \'Namibia\', \'Nauru\', \'Nepal\', \'Netherlands\', \'Netherlands Antilles\', \'New Caledonia\', \'New Zealand\', \'Nicaragua\', \'Niger\', \'Nigeria\', \'Niue\', \'Norfolk Island\', \'Northern Mariana Isl.\', \'Norway\', \'Oman\', \'Pakistan\', \'Palau\', \'Panama\', \'Papua New Guinea\', \'Paraguay\', \'Peru\', \'Philippines\', \'Pitcairn\', \'Poland\', \'Portugal\', \'Qatar\', \'Reunion\', \'Romania\', \'Russian Federation\', \'Rwanda\', \'Saint Kitts and Nevis\', \'Saint Lucia\', \'St. Vincent & Grenadines\', \'Samoa\', \'San Marino\', \'Sao Tome and Principe\', \'Saudi Arabia\', \'Senegal\', \'Seychelles\', \'Sierra Leone\', \'Singapore\', \'Slovakia\', \'Slovenia\', \'Solomon Islands\', \'Somalia\', \'South Africa\', \'S. Georgia & S. Sandwich Isl.\', \'Spain\', \'Sri Lanka\', \'St. Helena\', \'St. Pierre and Miquelon\', \'Suriname\', \'Svalbard & Jan Mayen Isl.\', \'Swaziland\', \'Sweden\', \'Switzerland\', \'Syrian Arab Republic\', \'Taiwan\', \'Tajikistan\', \'Tanzania: United Rep. of\', \'Thailand\', \'Togo\', \'Tokelau\', \'Tonga\', \'Trinidad and Tobago\', \'Tunisia\', \'Turkey\', \'Turkmenistan\', \'Turks and Caicos Islands\', \'Tuvalu\', \'Uganda\', \'Ukraine\', \'United Arab Emirates\', \'US Minor Outlying Isl.\', \'Uruguay\', \'Uzbekistan\', \'Vanuatu\', \'Vatican City (Holy See)\', \'Venezuela\', \'Vietnam\', \'Virgin Islands (British)\', \'Wallis and Futuna Islands\', \'Western Sahara\', \'Yemen\', \'Yugoslavia\', \'Zaire\', \'Zambia\', \'Zimbabwe\', \'Not Listed\');\r\n		\r\n		initAutoComplete(\'bill[country]\', \'countries\', true);\r\n	</script>\r\n{/if}\r\n\r\n{else}   {* If NOT competition... *}\r\n\r\n	Because errors were encountered, we cannont process your contribution at this time. If you continue to have problems, please <a href=\"?pg=contact\">contact us</a>.\r\n\r\n{/if}\r\n\r\n</form>\r\n\r\n{/if}  {* If is NOT complete... *}'),(1680,133,0.56,'smarty','0','Renamed show/hide images to match divs.',1087702850,2,'24.2.105.196','<h1 class=\"underline\">Check Out</h1>\r\n<br />\r\n{if !$user->isLoggedIn()}\r\n<p>Please <a href=\"?pg=signup\">Sign Up</a> or Log In.</p>\r\n{else}\r\n{select_query assign=\"userInfo\" return=\"row\"}\r\n	firstName, lastName, address1, address2, city, state, country, zip\r\n	FROM _users	\r\n	WHERE id = \'{$user->id}\'\r\n{/select_query}\r\n{/if}\r\n{include_php file=\"shared_handle:cart\"}{include_php file=\"shared_handle:checkout\"}\r\n{if $cart.items|@count gt 0}\r\n<p>Below is a preview list of the selected products and the sub total associated.</p>\r\n<blockquote>\r\n{foreach from=$cart.items key=\"productCode\" item=\"lineItem\"}\r\n	<small>{$lineItem.title|truncate:20:\"...\"}</small>\r\n	{$lineItem.quantity} @ \r\n	${$lineItem.each|number_format:\"2\"} \r\n	= ${$lineItem.subtotal|number_format:\"2\"}<br />\r\n{/foreach}</blockquote>\r\n<br />\r\n<div class=\"underline pixel\"></div>\r\n\r\n<p>Once you have entered your shipping and billing address, click the Continue button and the forms will be verified for required fields, afterwhich a credit card form will show at the bottom of this page.</p>\r\n\r\n<form name=\"checkoutForm\" method=\"post\" action=\"index.php\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n<input type=\"hidden\" name=\"cAction\" value=\"{if $success.billIsValid}shipProcess{else}validateShippingBilling{/if}\" />\r\n<table width=\"100%\"><tr><td>\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\"><a href=\"javascript:toggle(\'shipInfo\', \'\', \'showHide\');\"><img id=\"shipInfo_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Shipping Information</h2>\r\n\r\n	<p>Enter the address for the location where you would like these products shipped to.</p>\r\n	\r\n	<div id=\"shipInfo\" style=\"display:{if $success.shipIsValid}none{else}block{/if};\">\r\n	First Name:\r\n	<input type=\"text\" name=\"ship[firstname]\" value=\"{$smarty.request.ship.firstname|default:$userInfo.firstName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Last Name:\r\n	<input type=\"text\" name=\"ship[lastname]\" value=\"{$smarty.request.ship.lastname|default:$userInfo.lastName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Address:\r\n	<input type=\"text\" name=\"ship[address1]\" value=\"{$smarty.request.ship.address1|default:$userInfo.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"ship[address2]\" value=\"{$smarty.request.ship.address2|default:$userInfo.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	City:\r\n	<input type=\"text\" name=\"ship[city]\" value=\"{$smarty.request.ship.city|default:$userInfo.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	State, Zip:\r\n	<input type=\"text\" name=\"ship[state]\" value=\"{$smarty.request.ship.state|default:$userInfo.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"ship[zip]\" value=\"{$smarty.request.ship.zip|default:$userInfo.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n	\r\n	Country:\r\n	<input type=\"text\" name=\"ship[country]\" value=\"{$smarty.request.ship.country|default:$userInfo.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /><br />\r\n\r\n	Email:\r\n	<input type=\"text\" name=\"bill[email]\" value=\"{$smarty.request.bill.email|default:$userInfo.email}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n	</div>\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">\r\n		<div class=\"topRight hideShow\"><a href=\"javascript:toggle(\'billInfo\', \'\', \'showHide\');\"><img id=\"billInfo_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n		Billing Information</h2>\r\n	<p>Enter the billing information for the credit card owner.</p>\r\n	\r\n	<div id=\"billInfo\" style=\"display:{if $success.billIsValid}none{else}block{/if};\">\r\n	First Name:\r\n	<input type=\"text\" name=\"bill[firstname]\" value=\"{$smarty.request.bill.firstname|default:$userInfo.firstName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Last Name:\r\n	<input type=\"text\" name=\"bill[lastname]\" value=\"{$smarty.request.bill.lastname|default:$userInfo.lastName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Address:\r\n	<input type=\"text\" name=\"bill[address1]\" value=\"{$smarty.request.bill.address1|default:$userInfo.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"bill[address2]\" value=\"{$smarty.request.bill.address2|default:$userInfo.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	City:\r\n	<input type=\"text\" name=\"bill[city]\" value=\"{$smarty.request.bill.city|default:$userInfo.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	State, Zip:\r\n	<input type=\"text\" name=\"bill[state]\" value=\"{$smarty.request.bill.state|default:$userInfo.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"bill[zip]\" value=\"{$smarty.request.bill.zip|default:$userInfo.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n\r\n	Country:\r\n	<input type=\"text\" name=\"bill[country]\" value=\"{$smarty.request.bill.country|default:$userInfo.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /><br />\r\n\r\n	Phone:\r\n	<input type=\"text\" name=\"bill[phone]\" value=\"{$smarty.request.bill.phone|default:$userInfo.phone}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n	</div>\r\n</div>\r\n\r\n<div id=\"fMatches\" class=\"xFloat\" style=\"padding:3px; background-color:#FFFFFF; border:#666666 1px solid;\"></div>\r\n\r\n{if $modules.spadeAutoComplete}\r\n	<script language=\"JavaScript\" src=\"{$modules.x}\"></script>\r\n	<script language=\"JavaScript\" src=\"{$modules.spadeAutoComplete}\"></script>\r\n	<script language=\"JavaScript\">\r\n		var states = new Array(\'AL\',\'AK\',\'AS\',\'AZ\',\'AR\',\'CA\',\'CO\',\'CT\',\'DE\',\'DC\',\'FL\',\'GA\',\'GU\',\r\n					\'HI\',\'ID\',\'IL\',\'IN\',\'IA\',\'KS\',\'KY\',\'LA\',\'ME\',\'MH\',\'MD\',\'MA\',\r\n					\'MI\',\'MN\',\'MS\',\'MO\',\'MT\',\'NE\',\'NV\',\'NH\',\'NJ\',\'NM\',\'NY\',\'NC\',\r\n					\'ND\',\'OH\',\'OK\',\'OR\',\'PW\',\'PA\',\'PR\',\'RI\',\'SC\',\'SD\',\'TN\',\'TX\',\r\n					\'UT\',\'VT\',\'USVI\',\'VA\',\'WA\',\'WV\',\'WI\',\'WY\',\'AB\',\'BC\',\'LB\',\'MB\',\r\n					\'NB\',\'NF\',\'NT\',\'NS\',\'ON\',\'PE\',\'PQ\',\'SK\',\'YT\');\r\n		initAutoComplete(\'bill[state]\', states, true);\r\n		initAutoComplete(\'ship[state]\', states, true);\r\n\r\n		{* var countries = new Array (\'United States of America\', \'Canada\', \'Germany\', \'United Kingdom\', \'India\', \'---------------------\', \'Albania\', \'Algeria\', \'Andorra\', \'Angola\', \'Anguilla\', \'Antarctica\', \'Antigua and Barbuda\', \'Argentina\', \'Armenia\', \'Aruba\', \'Australia\', \'Austria\', \'Azerbaijan\', \'Bahamas\', \'Bahrain\', \'Bangladesh\', \'Barbados\', \'Belarus\', \'Belgium\', \'Belize\', \'Benin\', \'Bermuda\', \'Bhutan\', \'Bolivia\', \'Bosnia and Herzegowina\', \'Botswana\', \'Bouvet Island\', \'Brazil\', \'British Ind. Ocean Terr\', \'Brunei Darussalam\', \'Bulgaria\', \'Burkina Faso\', \'Burundi\', \'Cambodia\', \'Cameroon\', \'Cape Verde\', \'Cayman Islands\', \'Central African Rep.\', \'Chad\', \'Chile\', \'China\', \'Christmas Island\', \'Cocoa (Keeling) Isl.\', \'Colombia\', \'Comoros\', \'Congo\', \'Cook Islands\', \'Costa Rica\', \'Cote Divoire\', \'Hrvatska\', \'Cyprus\', \'Czech Republic\', \'Denmark\', \'Djibouti\', \'Dominica\', \'Dominican Republic\', \'East Timor\', \'Ecuador\', \'Egypt\', \'El Salvador\', \'Equatorial Guinea\', \'Eritrea\', \'Estonia\', \'Ethiopia\', \'Falkland Isl. (Malvinas)\', \'Faroe Islands\', \'Fiji\', \'Finland\', \'France\', \'French Guiana\', \'French Polynesia\', \'French Southern Terr.\', \'Gabon\', \'Gambia\', \'Georgia\', \'Ghana\', \'Gibraltar\', \'Greece\', \'Greenland\', \'Grenada\', \'Guadeloupe\', \'Guatemala\', \'Guinea\', \'Guinea-Bissau\', \'Guyana\', \'Haiti\', \'Heard & McDonald Isl.\', \'Honduras\', \'Hong Kong\', \'Hungary\', \'Iceland\', \'Indonesia\', \'Ireland\', \'Israel\', \'Italy\', \'Jamaica\', \'Japan\', \'Jordan\', \'Kazakhstan\', \'Kenya\', \'Kiribati\', \'Republic of Korea\', \'Kuwait\', \'Kyrgyzstan\', \'Lao Peoples Dem. Rep.\', \'Latvia\', \'Lebanon\', \'Lesotho\', \'Liberia\', \'Liechtenstein\', \'Lithuania\', \'Luxembourg\', \'Macau\', \'Macedonia\', \'Madagascar\', \'Malawi\', \'Malaysia\', \'Maldives\', \'Mali\', \'Malta\', \'Marshall Islands\', \'Martinique\', \'Mauritania\', \'Mauritius\', \'Mayotte\', \'Mexico\', \'Micronesia: Fed. States of\', \'Moldova: Republic of\', \'Monaco\', \'Mongolia\', \'Montserrat\', \'Morocco\', \'Mozambique\', \'Myanmar\', \'Namibia\', \'Nauru\', \'Nepal\', \'Netherlands\', \'Netherlands Antilles\', \'New Caledonia\', \'New Zealand\', \'Nicaragua\', \'Niger\', \'Nigeria\', \'Niue\', \'Norfolk Island\', \'Northern Mariana Isl.\', \'Norway\', \'Oman\', \'Pakistan\', \'Palau\', \'Panama\', \'Papua New Guinea\', \'Paraguay\', \'Peru\', \'Philippines\', \'Pitcairn\', \'Poland\', \'Portugal\', \'Qatar\', \'Reunion\', \'Romania\', \'Russian Federation\', \'Rwanda\', \'Saint Kitts and Nevis\', \'Saint Lucia\', \'St. Vincent & Grenadines\', \'Samoa\', \'San Marino\', \'Sao Tome and Principe\', \'Saudi Arabia\', \'Senegal\', \'Seychelles\', \'Sierra Leone\', \'Singapore\', \'Slovakia\', \'Slovenia\', \'Solomon Islands\', \'Somalia\', \'South Africa\', \'S. Georgia & S. Sandwich Isl.\', \'Spain\', \'Sri Lanka\', \'St. Helena\', \'St. Pierre and Miquelon\', \'Suriname\', \'Svalbard & Jan Mayen Isl.\', \'Swaziland\', \'Sweden\', \'Switzerland\', \'Syrian Arab Republic\', \'Taiwan\', \'Tajikistan\', \'Tanzania: United Rep. of\', \'Thailand\', \'Togo\', \'Tokelau\', \'Tonga\', \'Trinidad and Tobago\', \'Tunisia\', \'Turkey\', \'Turkmenistan\', \'Turks and Caicos Islands\', \'Tuvalu\', \'Uganda\', \'Ukraine\', \'United Arab Emirates\', \'US Minor Outlying Isl.\', \'Uruguay\', \'Uzbekistan\', \'Vanuatu\', \'Vatican City (Holy See)\', \'Venezuela\', \'Vietnam\', \'Virgin Islands (British)\', \'Wallis and Futuna Islands\', \'Western Sahara\', \'Yemen\', \'Yugoslavia\', \'Zaire\', \'Zambia\', \'Zimbabwe\', \'Not Listed\'); *}\r\n		var countries = new Array (\'USA\', \'Canada\', \'Germany\', \'UK\', \'India\', \'Albania\', \'Algeria\', \'Andorra\', \'Angola\', \'Anguilla\', \'Antarctica\', \'Antigua and Barbuda\', \'Argentina\', \'Armenia\', \'Aruba\', \'Australia\', \'Austria\', \'Azerbaijan\', \'Bahamas\', \'Bahrain\', \'Bangladesh\', \'Barbados\', \'Belarus\', \'Belgium\', \'Belize\', \'Benin\', \'Bermuda\', \'Bhutan\', \'Bolivia\', \'Bosnia and Herzegowina\', \'Botswana\', \'Bouvet Island\', \'Brazil\', \'British Ind. Ocean Terr\', \'Brunei Darussalam\', \'Bulgaria\', \'Burkina Faso\', \'Burundi\', \'Cambodia\', \'Cameroon\', \'Cape Verde\', \'Cayman Islands\', \'Central African Rep.\', \'Chad\', \'Chile\', \'China\', \'Christmas Island\', \'Cocoa (Keeling) Isl.\', \'Colombia\', \'Comoros\', \'Congo\', \'Cook Islands\', \'Costa Rica\', \'Cote Divoire\', \'Hrvatska\', \'Cyprus\', \'Czech Republic\', \'Denmark\', \'Djibouti\', \'Dominica\', \'Dominican Republic\', \'East Timor\', \'Ecuador\', \'Egypt\', \'El Salvador\', \'Equatorial Guinea\', \'Eritrea\', \'Estonia\', \'Ethiopia\', \'Falkland Isl. (Malvinas)\', \'Faroe Islands\', \'Fiji\', \'Finland\', \'France\', \'French Guiana\', \'French Polynesia\', \'French Southern Terr.\', \'Gabon\', \'Gambia\', \'Georgia\', \'Ghana\', \'Gibraltar\', \'Greece\', \'Greenland\', \'Grenada\', \'Guadeloupe\', \'Guatemala\', \'Guinea\', \'Guinea-Bissau\', \'Guyana\', \'Haiti\', \'Heard & McDonald Isl.\', \'Honduras\', \'Hong Kong\', \'Hungary\', \'Iceland\', \'Indonesia\', \'Ireland\', \'Israel\', \'Italy\', \'Jamaica\', \'Japan\', \'Jordan\', \'Kazakhstan\', \'Kenya\', \'Kiribati\', \'Republic of Korea\', \'Kuwait\', \'Kyrgyzstan\', \'Lao Peoples Dem. Rep.\', \'Latvia\', \'Lebanon\', \'Lesotho\', \'Liberia\', \'Liechtenstein\', \'Lithuania\', \'Luxembourg\', \'Macau\', \'Macedonia\', \'Madagascar\', \'Malawi\', \'Malaysia\', \'Maldives\', \'Mali\', \'Malta\', \'Marshall Islands\', \'Martinique\', \'Mauritania\', \'Mauritius\', \'Mayotte\', \'Mexico\', \'Micronesia: Fed. States of\', \'Moldova: Republic of\', \'Monaco\', \'Mongolia\', \'Montserrat\', \'Morocco\', \'Mozambique\', \'Myanmar\', \'Namibia\', \'Nauru\', \'Nepal\', \'Netherlands\', \'Netherlands Antilles\', \'New Caledonia\', \'New Zealand\', \'Nicaragua\', \'Niger\', \'Nigeria\', \'Niue\', \'Norfolk Island\', \'Northern Mariana Isl.\', \'Norway\', \'Oman\', \'Pakistan\', \'Palau\', \'Panama\', \'Papua New Guinea\', \'Paraguay\', \'Peru\', \'Philippines\', \'Pitcairn\', \'Poland\', \'Portugal\', \'Qatar\', \'Reunion\', \'Romania\', \'Russian Federation\', \'Rwanda\', \'Saint Kitts and Nevis\', \'Saint Lucia\', \'St. Vincent & Grenadines\', \'Samoa\', \'San Marino\', \'Sao Tome and Principe\', \'Saudi Arabia\', \'Senegal\', \'Seychelles\', \'Sierra Leone\', \'Singapore\', \'Slovakia\', \'Slovenia\', \'Solomon Islands\', \'Somalia\', \'South Africa\', \'S. Georgia & S. Sandwich Isl.\', \'Spain\', \'Sri Lanka\', \'St. Helena\', \'St. Pierre and Miquelon\', \'Suriname\', \'Svalbard & Jan Mayen Isl.\', \'Swaziland\', \'Sweden\', \'Switzerland\', \'Syrian Arab Republic\', \'Taiwan\', \'Tajikistan\', \'Tanzania: United Rep. of\', \'Thailand\', \'Togo\', \'Tokelau\', \'Tonga\', \'Trinidad and Tobago\', \'Tunisia\', \'Turkey\', \'Turkmenistan\', \'Turks and Caicos Islands\', \'Tuvalu\', \'Uganda\', \'Ukraine\', \'United Arab Emirates\', \'US Minor Outlying Isl.\', \'Uruguay\', \'Uzbekistan\', \'Vanuatu\', \'Vatican City (Holy See)\', \'Venezuela\', \'Vietnam\', \'Virgin Islands (British)\', \'Wallis and Futuna Islands\', \'Western Sahara\', \'Yemen\', \'Yugoslavia\', \'Zaire\', \'Zambia\', \'Zimbabwe\', \'Not Listed\');\r\n		\r\n		initAutoComplete(\'bill[country]\', countries, true);\r\n		initAutoComplete(\'ship[country]\', countries, true);\r\n	</script>\r\n{/if}\r\n\r\n{if $success.shipIsValid AND $success.billIsValid}\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Billing Summary</h2>\r\n	Order Total = ${$order.total|default:\"0\"|number_format:\"2\"}<br />\r\n	Shipping / Handling = ${$order.shipping|default:\"0\"|number_format:\"2\"}<br />\r\n	Sales Tax = ${$order.tax|default:\"0\"|number_format:\"2\"}<br /><br />\r\n	<div class=\"underline\"></div>\r\n	Total Amount Due: <em>${$order.grandTotal|default:\"0\"|number_format:\"2\"}</em>\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Payment Information</h2>\r\n\r\n	Payment Method:\r\n	<select name=\"bill[paymentMethod]\" size=\"1\">\r\n		<option value=\"visa\"{if $smarty.request.bill.paymentMethod eq \"visa\"} selected{/if}>Visa</option>\r\n		<option value=\"mastercard\"{if $smarty.request.bill.paymentMethod eq \"mastercard\"} selected{/if}>Mastercard</option>\r\n		<option value=\"american express\"{if $smarty.request.bill.paymentMethod eq \"american express\"} selected{/if}>American Express</option>\r\n		<option value=\"discover\"{if $smarty.request.bill.paymentMethod eq \"discover\"} selected{/if}>Discover</option>\r\n	</select><br />\r\n\r\n	Card Number:\r\n	<input type=\"text\" name=\"bill[ccnum]\" value=\"\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Expiration Date: <small>(MMYY)</small>\r\n	<input type=\"text\" name=\"bill[ccexp]\" value=\"\" class=\"textInput\" maxlength=\"4\" style=\"width:50px;\" /><br />\r\n</div>\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" style=\"text-align:right\"><a href=\"javascript:document.checkoutForm.submit();\" class=\"button\"> Submit Payment </a></div>\r\n{else}\r\n</td></tr></table> \r\n\r\n<div class=\"hBox\" style=\"text-align:right\"><a href=\"javascript:document.checkoutForm.submit();\" class=\"button\"> Continue </a></div>\r\n{/if}\r\n</form>\r\n\r\n{else}\r\n	{redirect href=\"?pg=cart\"}\r\n{/if}\r\n'),(1684,131,0.45,'smarty','0','Added \"click to update\" link.',1087704831,2,'24.2.105.196','<h1>My Profile - {$user->firstName}</h1>\r\n\r\n{* getProfile is included by getStats *}\r\n{include_php file=\"shared_handle:getStats\"}\r\n\r\n<table border=\"0\"><tr><td>\r\n\r\n<div id=\"UserProfileColumn\" class=\"contentColumn\">\r\n	<h2 class=\"withBG\">Your Profile</h2>\r\n	<span class=\"cellHeadLarge\">Age:</span><span class=\"cellSmall\">{$userProfile.age}</span><br />\r\n	<span class=\"cellHeadLarge\">Start Weight:</span><span class=\"cellSmall\">{$userProfile.initialWeight}</span><br />\r\n	<span class=\"cellHeadLarge\">Height:</span><span class=\"cellSmall\">{$userProfile.heightFeet}\'{$userProfile.heightInches}&quot;</span><br />\r\n	<span class=\"cellHeadLarge\">Start BMI:</span><span class=\"cellSmall\">{$userProfile.startBMI}</span><br />\r\n	<span class=\"cellHeadLarge\">Goal Weight:</span><span class=\"cellSmall\">{$userProfile.goalWeight}</span><br />\r\n</div>\r\n\r\n<table width=\"98%\" border=\"0\" height=\"328\" cellpadding=\"0\" cellspacing=\"0\" align=\"left\">\r\n<tr height=\"70\">\r\n	<td align=\"right\" style=\"border-right: 1px solid black; border-bottom: 1px solid black;\">Click to Update -&gt; &nbsp;</td>\r\n	<td rowspan=\"6\" width=\"555\"><iframe src=\"?pg=myprofile/statsframe&cid={$smarty.get.cid}#recent\" frameborder=\"0\" width=\"555\" height=\"328\" scrollbars=\"auto\"></iframe></td>\r\n</tr>\r\n<tr height=\"30\">\r\n	<td align=\"right\" valign=\"middle\" style=\"border-right: 1px solid black; border-bottom: 1px solid black;\"><b>Weight </b>&nbsp;</td>\r\n</tr>\r\n<tr height=\"30\">\r\n	<td align=\"right\" valign=\"middle\" style=\"border-right: 1px solid black; border-bottom: 1px solid black;\"><b>Weight Lost</b> &nbsp;</td>\r\n</tr>\r\n<tr height=\"30\">\r\n	<td align=\"right\" valign=\"middle\" style=\"border-right: 1px solid black; border-bottom: 1px solid black;\"><b>BMI </b>&nbsp;</td>\r\n</tr>\r\n<tr height=\"30\">\r\n	<td align=\"right\" valign=\"middle\" style=\"border-right: 1px solid black; border-bottom: 1px solid black;\"><b>Calories </b>&nbsp;</td>\r\n</tr>\r\n<tr height=\"30\">\r\n	<td align=\"right\" valign=\"middle\" style=\"border-right: 1px solid black; border-bottom: 1px solid black;\"><b>Carbs </b>&nbsp;</td>\r\n</tr>\r\n<tr height=\"30\">\r\n	<td align=\"right\" valign=\"middle\" style=\"border-right: 1px solid black; border-bottom: 1px solid black;\"><b>Fat </b>&nbsp;</td>\r\n</tr>\r\n<tr height=\"30\">\r\n	<td align=\"right\" valign=\"middle\" style=\"border-right: 1px solid black; border-bottom: 1px solid black;\"><b>Exercise </b>&nbsp;</td>\r\n</tr>\r\n<tr height=\"30\">\r\n	<td align=\"right\" valign=\"middle\" style=\"border-right: 1px solid black; border-bottom: 1px solid black;\"><b>Distance Run</b> &nbsp;</td>\r\n</tr>\r\n<tr height=\"18\">\r\n	<td><div style=\"height:12px;\"></div></td>\r\n</tr>\r\n</table>\r\n\r\n\r\n</td></tr></table>\r\n\r\n\r\n'),(1965,102,0.43,'smarty','0','Renamed Goals to Profile.',1088754791,2,'67.164.198.253','{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n\r\n<h1 class=\"underline\">Sign Up - Step 2 - Your Profile</h1>\r\n<p>This step includes recording you initial weight and goals. Each field will be used to calculate other factors including your Body Mass Index. To hide your body weight from others select \'Yes.\' By selecting \'Yes\' others will only see your change in weight (i.e. -5 lbs).</p>\r\n\r\n{include_php file=\"shared_handle:signup.details\"}\r\n\r\n<div>\r\n\r\n{toc_next assign=\"next\"}\r\n{toc_prev assign=\"prev\"}\r\n<form name=\"signup\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$next.pageName}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr><td>\r\n\r\n<div class=\"chunk300\" style=\"width:310px;\">\r\n<h2 class=\"withBG\">Personal Profile</h2>\r\nDate of Birth:\r\n{get_month name=\"signup[dob][month]\"}\r\n{get_day   name=\"signup[dob][day]\"}\r\n{math assign=\"end_year\" equation=\"x - 18\" x=$smarty.now|date_format2:\"Y\"}  {* Minimum age is 18 years for now *}\r\n{get_year  name=\"signup[dob][year]\" start=\"1915\" end=$end_year}<br />\r\n\r\nCurrent Weight:\r\n<input type=\"text\" name=\"signup[initialWeight]\" size=\"4\" maxlength=\"3\" class=\"textInput\" style=\"width:25px;\" /><br />\r\n\r\nHide Initial Weight?:\r\n<input type=\"radio\" name=\"signup[hideInitialWeight]\" value=\"Yes\" /> Yes &nbsp; <input type=\"radio\" name=\"signup[hideInitialWeight]\" value=\"No\"{if not $signup[hideInitialWeight]} checked{/if} /> No<br />\r\n\r\nGoal Weight:\r\n<input type=\"text\" name=\"signup[goalWeight]\" size=\"4\" maxlength=\"3\" class=\"textInput\" style=\"width:25px;\" /><br />\r\n\r\nHeight:\r\n<input type=\"text\" name=\"signup[height][feet]\" class=\"textInput\" maxlength=\"1\" style=\"width:18px;\" /> feet, \r\n<input type=\"text\" name=\"signup[height][inches]\" class=\"textInput\" maxlength=\"2\" style=\"width:20px;\" /> inches<br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Goal</h2>\r\n        This will show up on your about page, and can be changed often as you progress.\r\n	<textarea name=\"signup[personalGoal]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Motto</h2>\r\n        This will show up on your about page, and can be changed often as you progress.\r\n	<textarea name=\"signup[personalSaying]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Your Signature</h2>\r\n        Be creative with your signature! This will go at the bottom of the messages you post on the discussion board.\r\n	<textarea name=\"signup[signature]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<br />\r\n	{if $prev.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\">&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\">{/if}\r\n</div>\r\n\r\n{stored_object_fill_form object=$signup name=\"signup\"}\r\n\r\n</form>\r\n</div>'),(1966,104,0.27,'smarty','0','Goals handler was renamed to profile.',1088754848,2,'67.164.198.253','{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n\r\n<h1>Sign Up - Complete!</h1>\r\n\r\n{include_php file=\"shared_handle:signup.details\"}\r\n{include_php file=\"shared_handle:signup.terms\"}\r\n{include_php file=\"shared_handle:signup.profile\"}\r\n\r\n<div>\r\n\r\n<form name=\"signup\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$prev.pageName}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<div align=\"right\">\r\n	<br />\r\n	<a href=\"?pg={$return|default:\"home\"}\" class=\"button\">Continue</a>\r\n</div>\r\n\r\n</form>\r\n</div>\r\n'),(2985,105,1.11,'php','0','Replaced some weird character.',1106559727,2,'67.166.75.78','<?php\r\n\r\n$FAQ = array(\r\n	\"0\" => array(\r\n		\"title\" => \"Account Questions\",\r\n		\"anchor\" => \"cat1\",\r\n		\"questions\" => array(\r\n			\"How do I change my password?\",\r\n			\"I entered the wrong birthdate how do I change my entry?\",\r\n			\"My weight loss goals have changed, is there a way to set a new goal?\",\r\n			\"What is a Weight Loss Journal?\"\r\n\r\n		),\r\n		\"answers\" => array(\r\n			\"You can manage many aspects of you account by clicking on the Account Settings button towards the top of the My Home page.\",\r\n			\"Having the correct age is important - and is configured in some of the calculators and other site tools to help you understand health issues facing your age group.  Unfortunately there isn\'t a way to change your birthdate at this time, but a customer service representative would be happy to change it for you.  Simply click on the Contact Us link at the bottom of the page and let them know of the change you need.\",\r\n			\"You can make changes to your goals by clicking on the Update My Profile button near the top of the My Home page.  check back often for enhanced goal management features!\",\r\n			\"A weight loss Journal is a place to record your weight loss efforts in exercise and nutrition.  It has been proven that those who keep a record of what they eat are more successful in losing weight.  WeightLossWars provides you an interactive and informative FREE weight loss journal.\"\r\n		\r\n		)\r\n	),\r\n	\"1\" => array(\r\n		\"title\" => \"Incentive Survey Questions\",\r\n		\"anchor\" => \"cat2\",\r\n		\"questions\" => array(\r\n			\"I can no longer take the wellness surveys, what happened?\",\r\n			\"I entered some wrong information, is there any way I can change my answers?\",\r\n			\"How are the points awarded?\",\r\n			\"How many points do I need to receive different prizes and bonuses?\"\r\n\r\n		),\r\n		\"answers\" => array(\r\n			\"Each survey has a time limit that must expire before you take the survey again.  Currently the Life Style survey can be taken once a month, while the Physical Activity and Nutrition surveys can be taken weekly.  The date that is displayed next to each survey will let you know when you can take them again.\",\r\n			\"Data that you have entered cannot be changed.  As you select your answers be careful to select the answer that most appropriately represents you.\",\r\n			\"Points are distributed based on frequency of participation and the answers that you give.  Participation points are awarded for filling out the survey, and then, based on your answers, you receive points that reward healthier life styles.\",\r\n			\"Receiving prizes depends upon your company.  Ask your benefits manager or wellness director for the details on redeeming your points for prizes.\"	\r\n		\r\n)\r\n	),\r\n	\"2\" => array(\r\n		\"title\" => \"Health and Wellness Questions\",\r\n		\"anchor\" => \"cat3\",\r\n		\"questions\" => array(\r\n			\"What does BMI stand for and what is a healthy BMI for me? \",\r\n			\"How accurate is the BMI measurement? \",\r\n			\"What is a healthy blood pressure? \",\r\n			\"How can I lower blood pressure besides medication?\",\r\n			\"Where should my cholesterol levels be?\",\r\n			\"How much exercise do I need to do to lose weight?\",\r\n			\"What is the best type of exercise to lose body fat?\",\r\n			\"How can I know what my body fat percentage is?\",\r\n			\"What is heart disease and how does exercise and nutrition affect my risks?\",\r\n			\"What is the Target Heart Rate zone? \",\r\n			\"Do I really need to lift weights?\",\r\n			\"What if I just don\'t have time to exercise?\",\r\n			\"If I am overweight or obese, what diseases am I at risk for?\"\r\n		),\r\n		\"answers\" => array(\r\n			\"BMI stands for Body Mass Index and is a ratio of weight to height, used to estimate the relationship of body composition to risk factors of certain diseases. Use our calculator to determine what your BMI is and refer to the chart below to see what category you are in.<br />18.5 or less is Under Weight <br />18.5 to 24.9 is Normal <br />25.0 to 29.9 is Overweight <br />30.0 to 34.9 is Level 1 Obese <br />35.0 to 39.9 is Level 2 Obese <br />40 or greater is Extreme Obese\",\r\n			\"For the vast majority of average individuals, the BMI is a useful and accurate measurement. The drawback lies in the fact that short, muscular individuals may be falsely labeled as obese, and tall lean individuals as underweight.\",\r\n			\"According to national guidelines, normal blood pressure is below 120/80 mmHg. Blood pressure above 140/90 mmHg is diagnosed as hypertension, or high blood pressure. Someone with hypertension is at higher risk of having strokes, heart attacks and kidney failure.\",\r\n			\"Hypertension can be treated through increased exercise and a better diet. Many recent studies have shown that regular aerobic exercise (workouts like brisk walking that use large muscles for an extended period) over several months may modestly lower blood pressure. According to a recent National Institutes of Health conference, aerobic exercise reduces resting (nonexercise) blood pressure in people who have hypertension by an average of 11 points off the top number and 9 points off the bottom number. That could be enough to lower high blood pressure to normal. Reducing sodium(salt) in your diet can also help to lower blood pressure.\",\r\n			\"Your TOTAL blood cholesterol will fall into one of these categories:<br /><b>Desirable</b> is Less than 200 mg/dL <br /><b>Borderline high risk</b> is 200 to 239 mg/dL <br /><b>High risk</b> is 240 mg/dL and over<br />There are two types of cholesterol in your body: LDL is bad cholesterol and contributes to artery clogging. You want Low LDL levels (below 100 is optimal). HDL is good cholesterol and helps to clear arterial blockage. You want High HDL levels. (Less than 40 is too low) To lower your LDL and raise your HDL levels you can: <br />Quit Smoking <br />Lose weight (or maintain a healthy weight) <br />Be physically active for at least 30 to 60 minutes a day on most or all days of the week.\",\r\n			\"This depends on how many calories you are consuming. To lose weight you need to burn more calories than you take in. It takes 3500 calories burned to lose 1 pound. That’s going into a deficit of 1,000 calories a day if you want to lose 2 lbs a week. This can be done by eating 500 calories less than you normally do and burning 500 calories per day more through exercise. That is equivalent to about a 45 minute jog.<br />Exercising 30 to 60 minutes 5 days a week is a good guideline to follow and will not only aid in weight loss but will also reduce your risk for several diseases including heart disease, diabetes and colon cancer.\",\r\n			\"When your body is engaged in aerobic exercise, it utilizes fat as its fuel. So if your goal is to lose body fat, your main modes of exercise should be walking, jogging, biking or swimming in your target heart rate zone.\",\r\n			\"There are several different methods used to determine body fat percentage. Hydrostatic or underwater weighing is probably the most accurate and widely used. There are other methods and devices including the DEXA machine, the Bod Pod, Tanita scales, hand held devices and Skin Calipers. The key is to use the same method consistently so that you can see the change in your body fat percentage. \",\r\n			\"Heart disease occurs because of inadequate blood flow to the heart muscle. This occurs when the arteries that supply the heart muscle (the coronary arteries) become partially or completely blocked. Obese people are at increased risk of heart disease due to their higher rates of hypercholesterolemia, diabetes and hypertension. Several studies have proven the beneficial effects of exercise on heart diseases. Not only will it reduce body fat, but it will also help to lower blood cholesterol, blood pressure and regulate glucose metabolism. Eating a diet high low in saturated fat and cholesterol and high in dietary fiber will lower your risk for heart disease.\",\r\n			\"The Target Heart Rate zone refers to the range that you want your heart rate to be in while you are doing aerobic exercise. This is the best zone to be in to burn body fat. Calculate your target heart rate zone using our calculator.\",\r\n			\"There are many benefits to strength training including:<br />Higher metabolism<br />Stronger bones<br />Increased muscle strength and endurance<br />Increased balance, flexibility and stability<br />Decreased risk of coronary heart disease<br />Injury prevention<br />Feel and look better<br />Strength training will help you with weight loss because the more muscle you have the more calories you burn at rest.\",\r\n			\"We all have busy schedules and the trick with exercising is plan, plan, plan. Schedule it in before your busy week begins. Make it a priority. Set aside time one day a week to plan when, where and for how long you will exercise. It may require getting up half hour earlier, or taking a little longer lunch break. If there is absolutely no time in your schedule for a formal exercise session you can do little tricks like parking farther away at the store, not taking the elevator, etc. Every little bit helps.\",\r\n			\"Obesity places you at risk for several diseases including heart disease, diabetes, some forms of cancer, sleep apnea, abdominal hernias, varicose veins, gout, gall bladder disease, respiratory problems, and liver malfunction. Losing just 10% of your body weight will significantly lower your risk for these diseases.\"\r\n		)\r\n	)\r\n);\r\n\r\n?>\r\n<h1 class=\"underline\">Frequently Asked Questions</h1>\r\n<br />\r\n<a name=\"toc\" />\r\n<h2 class=\"withBG\">Table of Contents</h2>\r\n<ul>\r\n<?php\r\n	for ($x = 0; $x < count($FAQ); $x++) { ?>\r\n	<li><a href=\"#<?php echo $FAQ[$x][\"anchor\"] ?>\"><?php echo  strtoupper($FAQ[$x][\"title\"]) ?></a><br /><br /></li>\r\n	<ul>\r\n	<?php\r\n		for ($y = 0; $y < count($FAQ[$x][\"questions\"]); $y++) { ?>\r\n		<li><a href=\"#question_<?php echo $x?>_<?php echo $y?>\"><?php echo  $FAQ[$x][\"questions\"][$y] ?></a></li>\r\n		<?php } ?>\r\n	</ul>\r\n	<div class=\"underline\">&nbsp;</div>\r\n	<br />\r\n<?php }	?>\r\n</ul>\r\n\r\n<br />\r\n\r\n<?php\r\n	for ($x = 0; $x < count($FAQ); $x++) { ?>\r\n\r\n<a name=\"<?php echo  $FAQ[$x][\"anchor\"] ?>\" />\r\n<h2 class=\"withBG\"><?php echo  strtoupper($FAQ[$x][\"title\"]) ?></h2>\r\n\r\n<?php \r\n	for ($y = 0; $y < count($FAQ[$x][\"questions\"]); $y++) { ?>\r\n\r\n<a name=\"question_<?php echo $x?>_<?php echo $y?>\" />\r\n<b>Q.</b> &nbsp;<?php echo  $FAQ[$x][\"questions\"][$y] ?>\r\n<div style=\"margin:10px;margin-top:2px;\">\r\n	<b>A.</b> &nbsp;<?php echo $FAQ[$x][\"answers\"][$y] ?><br />\r\n	<div align=\"right\"><a href=\"#toc\" class=\"button\">Return to top</a><br /></div>\r\n</div>\r\n	<?php } ?>\r\n<?php } ?>\r\n\r\n<br />\r\n<br />\r\nStill have questions? <a href=\"?pg=contact\">Contact Us</a><br />\r\n'),(2989,105,1.15,'php','0','Replaced some weird character.',1106561504,2,'67.166.75.78','<?php\r\n\r\n$FAQ = array(\r\n	\"0\" => array(\r\n		\"title\" => \"Competition Questions\",\r\n		\"anchor\" => \"comp\",\r\n		\"questions\" => array(\r\n			\"How is the scoring calculated?\",\r\n			\"My weight loss is incorrect! Why?\"\r\n		),\r\n		\"answers\" => array(\r\n			\"This depends on what the scoring method is.<br /><br />If the scoring method is based on a totals-type category, where the winner has the largest (or smallest) sum of one category (such as minutes or distance exercise), then the totals are simply calculated on all entries you placed between (or on) the start date and the end date of the competition.<br /><br />If the competition is based on weight (weight lost or percentage weight lost), the site uses the earliest weight entry for you on or after the start date of the competition. This number is subracted by the weight entry nearest, but not after the competition end date to calculate your weight lost for the competition.<br /><br />The site does not use any weight entries before the start date of the competition as your start weight because it will not assume that your weight was consistent between that time and the start of the competition.<br /><br />We recommend weighing yourself on the starting date of the competition (or as soon as possible after it begins) and making that entry in your weight loss journal.\",\r\n			\"There are many possible reasons for this, but the most common is covered above in \\\"How is the scoring calculated?\\\".<br /><br />It is also possible that you have entered incorrect data, or incorrectly calculated what you think your loss should be; please be careful to make sure your weight loss is indeed incorrectly calculated in a competition before contacting us for help.<br /><br />Another reason your weight loss might not seem correct is that the competition calculation has been cached and has not been updated since you saved entries in your weight loss journal. Please note the \\\"as of MM/DD/YYYY HH:MM A\\\" time at the top of your leader board. Some competitions are only updated manually when the competition creator or a site administrator requests a calculation update. If your competition is considerably out of date, try contacting the creator of the competition, or <a href=\\\"?pg=contact\\\">contact us</a> and let us know.\"\r\n		)\r\n	),\r\n	\"1\" => array(\r\n		\"title\" => \"Account Questions\",\r\n		\"anchor\" => \"cat1\",\r\n		\"questions\" => array(\r\n			\"How do I change my password?\",\r\n			\"I entered the wrong birthdate how do I change my entry?\",\r\n			\"My weight loss goals have changed, is there a way to set a new goal?\",\r\n			\"What is a Weight Loss Journal?\"\r\n\r\n		),\r\n		\"answers\" => array(\r\n			\"You can manage many aspects of you account by clicking on the Account Settings button towards the top of the My Home page.\",\r\n			\"Having the correct age is important - and is configured in some of the calculators and other site tools to help you understand health issues facing your age group.  Unfortunately there isn\'t a way to change your birthdate at this time, but a customer service representative would be happy to change it for you.  Simply click on the Contact Us link at the bottom of the page and let them know of the change you need.\",\r\n			\"You can make changes to your goals by clicking on the Update My Profile button near the top of the My Home page.  check back often for enhanced goal management features!\",\r\n			\"A weight loss Journal is a place to record your weight loss efforts in exercise and nutrition.  It has been proven that those who keep a record of what they eat are more successful in losing weight.  WeightLossWars provides you an interactive and informative FREE weight loss journal.\"\r\n		\r\n		)\r\n	),\r\n	\"2\" => array(\r\n		\"title\" => \"Incentive Survey Questions\",\r\n		\"anchor\" => \"cat2\",\r\n		\"questions\" => array(\r\n			\"I can no longer take the wellness surveys, what happened?\",\r\n			\"I entered some wrong information, is there any way I can change my answers?\",\r\n			\"How are the points awarded?\",\r\n			\"How many points do I need to receive different prizes and bonuses?\"\r\n\r\n		),\r\n		\"answers\" => array(\r\n			\"Each survey has a time limit that must expire before you take the survey again.  Currently the Life Style survey can be taken once a month, while the Physical Activity and Nutrition surveys can be taken weekly.  The date that is displayed next to each survey will let you know when you can take them again.\",\r\n			\"Data that you have entered cannot be changed.  As you select your answers be careful to select the answer that most appropriately represents you.\",\r\n			\"Points are distributed based on frequency of participation and the answers that you give.  Participation points are awarded for filling out the survey, and then, based on your answers, you receive points that reward healthier life styles.\",\r\n			\"Receiving prizes depends upon your company.  Ask your benefits manager or wellness director for the details on redeeming your points for prizes.\"\r\n		)\r\n	),\r\n	\"3\" => array(\r\n		\"title\" => \"Health and Wellness Questions\",\r\n		\"anchor\" => \"cat3\",\r\n		\"questions\" => array(\r\n			\"What does BMI stand for and what is a healthy BMI for me? \",\r\n			\"How accurate is the BMI measurement? \",\r\n			\"What is a healthy blood pressure? \",\r\n			\"How can I lower blood pressure besides medication?\",\r\n			\"Where should my cholesterol levels be?\",\r\n			\"How much exercise do I need to do to lose weight?\",\r\n			\"What is the best type of exercise to lose body fat?\",\r\n			\"How can I know what my body fat percentage is?\",\r\n			\"What is heart disease and how does exercise and nutrition affect my risks?\",\r\n			\"What is the Target Heart Rate zone? \",\r\n			\"Do I really need to lift weights?\",\r\n			\"What if I just don\'t have time to exercise?\",\r\n			\"If I am overweight or obese, what diseases am I at risk for?\"\r\n		),\r\n		\"answers\" => array(\r\n			\"BMI stands for Body Mass Index and is a ratio of weight to height, used to estimate the relationship of body composition to risk factors of certain diseases. Use our calculator to determine what your BMI is and refer to the chart below to see what category you are in.<br />18.5 or less is Under Weight <br />18.5 to 24.9 is Normal <br />25.0 to 29.9 is Overweight <br />30.0 to 34.9 is Level 1 Obese <br />35.0 to 39.9 is Level 2 Obese <br />40 or greater is Extreme Obese\",\r\n			\"For the vast majority of average individuals, the BMI is a useful and accurate measurement. The drawback lies in the fact that short, muscular individuals may be falsely labeled as obese, and tall lean individuals as underweight.\",\r\n			\"According to national guidelines, normal blood pressure is below 120/80 mmHg. Blood pressure above 140/90 mmHg is diagnosed as hypertension, or high blood pressure. Someone with hypertension is at higher risk of having strokes, heart attacks and kidney failure.\",\r\n			\"Hypertension can be treated through increased exercise and a better diet. Many recent studies have shown that regular aerobic exercise (workouts like brisk walking that use large muscles for an extended period) over several months may modestly lower blood pressure. According to a recent National Institutes of Health conference, aerobic exercise reduces resting (nonexercise) blood pressure in people who have hypertension by an average of 11 points off the top number and 9 points off the bottom number. That could be enough to lower high blood pressure to normal. Reducing sodium(salt) in your diet can also help to lower blood pressure.\",\r\n			\"Your TOTAL blood cholesterol will fall into one of these categories:<br /><b>Desirable</b> is Less than 200 mg/dL <br /><b>Borderline high risk</b> is 200 to 239 mg/dL <br /><b>High risk</b> is 240 mg/dL and over<br />There are two types of cholesterol in your body: LDL is bad cholesterol and contributes to artery clogging. You want Low LDL levels (below 100 is optimal). HDL is good cholesterol and helps to clear arterial blockage. You want High HDL levels. (Less than 40 is too low) To lower your LDL and raise your HDL levels you can: <br />Quit Smoking <br />Lose weight (or maintain a healthy weight) <br />Be physically active for at least 30 to 60 minutes a day on most or all days of the week.\",\r\n			\"This depends on how many calories you are consuming. To lose weight you need to burn more calories than you take in. It takes 3500 calories burned to lose 1 pound. That’s going into a deficit of 1,000 calories a day if you want to lose 2 lbs a week. This can be done by eating 500 calories less than you normally do and burning 500 calories per day more through exercise. That is equivalent to about a 45 minute jog.<br />Exercising 30 to 60 minutes 5 days a week is a good guideline to follow and will not only aid in weight loss but will also reduce your risk for several diseases including heart disease, diabetes and colon cancer.\",\r\n			\"When your body is engaged in aerobic exercise, it utilizes fat as its fuel. So if your goal is to lose body fat, your main modes of exercise should be walking, jogging, biking or swimming in your target heart rate zone.\",\r\n			\"There are several different methods used to determine body fat percentage. Hydrostatic or underwater weighing is probably the most accurate and widely used. There are other methods and devices including the DEXA machine, the Bod Pod, Tanita scales, hand held devices and Skin Calipers. The key is to use the same method consistently so that you can see the change in your body fat percentage. \",\r\n			\"Heart disease occurs because of inadequate blood flow to the heart muscle. This occurs when the arteries that supply the heart muscle (the coronary arteries) become partially or completely blocked. Obese people are at increased risk of heart disease due to their higher rates of hypercholesterolemia, diabetes and hypertension. Several studies have proven the beneficial effects of exercise on heart diseases. Not only will it reduce body fat, but it will also help to lower blood cholesterol, blood pressure and regulate glucose metabolism. Eating a diet high low in saturated fat and cholesterol and high in dietary fiber will lower your risk for heart disease.\",\r\n			\"The Target Heart Rate zone refers to the range that you want your heart rate to be in while you are doing aerobic exercise. This is the best zone to be in to burn body fat. Calculate your target heart rate zone using our calculator.\",\r\n			\"There are many benefits to strength training including:<br />Higher metabolism<br />Stronger bones<br />Increased muscle strength and endurance<br />Increased balance, flexibility and stability<br />Decreased risk of coronary heart disease<br />Injury prevention<br />Feel and look better<br />Strength training will help you with weight loss because the more muscle you have the more calories you burn at rest.\",\r\n			\"We all have busy schedules and the trick with exercising is plan, plan, plan. Schedule it in before your busy week begins. Make it a priority. Set aside time one day a week to plan when, where and for how long you will exercise. It may require getting up half hour earlier, or taking a little longer lunch break. If there is absolutely no time in your schedule for a formal exercise session you can do little tricks like parking farther away at the store, not taking the elevator, etc. Every little bit helps.\",\r\n			\"Obesity places you at risk for several diseases including heart disease, diabetes, some forms of cancer, sleep apnea, abdominal hernias, varicose veins, gout, gall bladder disease, respiratory problems, and liver malfunction. Losing just 10% of your body weight will significantly lower your risk for these diseases.\"\r\n		)\r\n	)\r\n);\r\n\r\n// If you want to make the [0] section active, delete this block!\r\nif (!$SPADE[\'acm\']->isDomainAdmin()) {\r\n	$FAQ[0] = $FAQ[1];\r\n	$FAQ[1] = $FAQ[2];\r\n	$FAQ[2] = $FAQ[3];\r\n	unset($FAQ[3]);\r\n}\r\n//*// Delete through this line\r\n\r\n?>\r\n<h1 class=\"underline\">Frequently Asked Questions</h1>\r\n<br />\r\n<a name=\"toc\" />\r\n<h2 class=\"withBG\">Table of Contents</h2>\r\n<ul>\r\n<?php\r\n	for ($x = 0; $x < count($FAQ); $x++) { ?>\r\n	<li><a href=\"#<?php echo $FAQ[$x][\"anchor\"] ?>\"><?php echo  strtoupper($FAQ[$x][\"title\"]) ?></a><br /><br /></li>\r\n	<ul>\r\n	<?php\r\n		for ($y = 0; $y < count($FAQ[$x][\"questions\"]); $y++) { ?>\r\n		<li><a href=\"#question_<?php echo $x?>_<?php echo $y?>\"><?php echo  $FAQ[$x][\"questions\"][$y] ?></a></li>\r\n		<?php } ?>\r\n	</ul>\r\n	<div class=\"underline\">&nbsp;</div>\r\n	<br />\r\n<?php }	?>\r\n</ul>\r\n\r\n<br />\r\n\r\n<?php\r\n	for ($x = 0; $x < count($FAQ); $x++) { ?>\r\n\r\n<a name=\"<?php echo  $FAQ[$x][\"anchor\"] ?>\" />\r\n<h2 class=\"withBG\"><?php echo  strtoupper($FAQ[$x][\"title\"]) ?></h2>\r\n\r\n<?php \r\n	for ($y = 0; $y < count($FAQ[$x][\"questions\"]); $y++) { ?>\r\n\r\n<a name=\"question_<?php echo $x?>_<?php echo $y?>\" />\r\n<b>Q.</b> &nbsp;<?php echo  $FAQ[$x][\"questions\"][$y] ?>\r\n<div style=\"margin:10px;margin-top:2px;\">\r\n	<b>A.</b> &nbsp;<?php echo $FAQ[$x][\"answers\"][$y] ?><br />\r\n	<div align=\"right\"><a href=\"#toc\" class=\"button\">Return to top</a><br /></div>\r\n</div>\r\n	<?php } ?>\r\n<?php } ?>\r\n\r\n<br />\r\n<br />\r\nStill have questions? <a href=\"?pg=contact\">Contact Us</a><br />\r\n'),(2983,99,3.62,'smarty','0','Fixed problem with display of update time in team listings (was showing today\'s date if should have been never)',1106558700,2,'67.166.75.78','{assign var=\"hideWidgets\" value=0}\r\n{assign var=\"hideUserBox\" value=\"false\"}\r\n{assign var=\"showCompanyNews\" value=\"true\"}\r\n{assign var=\"pgLayout\" value=\"file:./layouts/comp_layout2.tpl\"}\r\n\r\n{include_php file=\"shared_handle:competition.load\"}\r\n{if $competition.userId eq $user->id or $acm->isDomainAdmin()}\r\n	{assign var=\"isManager\" value=\"true\"}\r\n	<!-- ismanager -->\r\n	{include_php file=\"shared_handle:competition.management\"}\r\n{/if}\r\n\r\n{include_php file=\"shared_handle:competition.verifyInitialPot\"}\r\n<div id=\"jackpot\">{if $competition.potAmount gt 0}${$competition.potAmount|number_format:2}{/if}</div>\r\n<h1 class=\"underline\">{$competition.title|default:\"Competition Title\"}</h1>\r\n\r\n{* ******************************** COMPETITION END *********************************** *}\r\n{if $competition.endDate lt $smarty.now}   {* COMPETITION IS OVER *}\r\n	{if $competition.results.winners|@count eq 1}\r\n		{* There was one winner, either by scoringMethod or tieBreakerMethod *}\r\n\r\n		{math assign=\"daysOfCompetition\" equation=\"(x - y) / z\" x=$competition.endDate y=$competition.startDate z=\"86400\"}\r\n		{math assign=\"marginOfVictory\" equation=\"x - y\" x=$competition.results.winningStat y=$competition.results.secondPlaceStat}\r\n\r\n		{foreach from=$competition.results.winners item=\"winnerName\"}    {*key=\"winnerName\"*}\r\n			{assign var=\"winnerData\" value=$competitions.users.$winnerName}\r\n			\r\n			{if $competition.style eq \"Group-vs-Group\"}\r\n				{assign var=\"description\" value=\"Winning Team\"}\r\n				{assign var=\"avg\" value=\"average\"}\r\n			{else}\r\n				{assign var=\"description\" value=\"Winner\"}\r\n			{/if}\r\n\r\n			<h2><br /><b>{$winnerName}</b> is the {$description}{if $competition.potAmount}, taking home <b>$<i>{$competition.potAmount|number_format:2}</i></b>{/if}!</h2>\r\n			<br />\r\n			{strip}\r\n			{if not $competition.results.isTie}   {* Not a Tie *}\r\n				After a difficult <b>{$daysOfCompetition|number_format:0}</b> days of \r\n				fierce competition, <b>{$winnerName}</b> is the \r\n				{$description}!	Based on \r\n				<b>{$competition.results.winningMethod}</b>, <b>{$winnerName}</b> \r\n				won with <b>{$competition.results.winningStat|number_format:2} \r\n				{if $competition.results.winningMethod eq \"Weight Lost\"}{$avg} pounds lost\r\n				{elseif $competition.results.winningMethod eq \"Percentage Weight Lost\"}{$avg} % body weight lost\r\n				{elseif $competition.results.winningMethod eq \"Minutes Exercise\"}{$avg} minutes exercised\r\n				{elseif $competition.results.winningMethod eq \"Distance Exercised\"}{$avg} miles exercised\r\n				{elseif $competition.results.winningMethod eq \"Weight Gained\"}{$avg} pounds gained\r\n				{/if}</b>.\r\n			{else}                                {* A Tie! *}\r\n				{assign var=\"weightLost\" value=\"Weight Lost\"}\r\n				{assign var=\"percentLost\" value=\"Percentage Weight Lost\"}\r\n\r\n				After a difficult <b>{$daysOfCompetition|number_format:0}</b> \r\n				days of fierce competition, there was a tie in the judging \r\n				method, <b>{$competition.scoringMethod}</b>. To break this \r\n				tie, the selected tie breaking method, \r\n				<b>{$competition.tieBreakerMethod}</b>, was used to determine \r\n				<b>{$winnerName}</b> as the {$description}. <b>{$winnerName}</b> \r\n				won with <b>{$competition.results.winningStat|number_format:2}\r\n				{if $competition.results.winningMethod eq \"Weight Lost\"}{$avg} pounds lost\r\n				{elseif $competition.results.winningMethod eq \"Percentage Weight Lost\"}{$avg} % body weight lost\r\n				{elseif $competition.results.winningMethod eq \"Minutes Exercise\"}{$avg} minutes exercised\r\n				{elseif $competition.results.winningMethod eq \"Distance Exercised\"}{$avg} miles exercised\r\n				{elseif $competition.results.winningMethod eq \"Weight Gained\"}{$avg} pounds gained\r\n				{/if}</b>.\r\n				<!--\r\n				<b>{$winnerData.$weightLost|number_format:0} pounds</b>, which \r\n				was <b>{$winnerData.$percentLost|number_format:4}%</b> body weight.\r\n				-->\r\n			{/if}\r\n			{/strip}\r\n			<br />\r\n			<br />\r\n			<b>{$winnerName}</b> won with a <b>{$marginOfVictory|number_format:3}</b> margin over <b>{$competition.results.secondPlaceUser}</b>.\r\n			\r\n			<h2><br />Congratulations to you all!</h2>\r\n			<br />\r\n			<div class=\"underline\"></div>\r\n		{/foreach}\r\n\r\n	{elseif $competition.results.winners|@count gt 1}\r\n		{* There were multiple winners, even after tieBreakerMethod (should RARELY happen) *}\r\n	\r\n		<h2>There was a tie in this competition. The winners, by <b>{$competition.results.winningMethod}</b> having lost <b>{$competition.results.winningStat}</b>, are:<br /></h2>\r\n		<ul>\r\n		{foreach from=$competition.results.winners item=\"winnerData\" key=\"winnerName\"}\r\n			<li>{$winnerName}</li>\r\n		{/foreach}\r\n		</ul>\r\n		\r\n	{else}\r\n		{* For some reason, there were no winners *}\r\n\r\n		<h2><br />\r\n		Winner information is currently unavailable.<br />\r\n		Please check back soon.\r\n		<br /><br /></h2>\r\n	{/if}\r\n	This competition has ended and is no longer active.<br />\r\n{/if}\r\n{* ************************************************************************************ *}\r\n\r\n<div id=\"prizeDesc\">{$competition.potDescription}<br />\r\n{if $competition.potAmount}<small style=\"color:#FFF;\">(${$competition.individualPotAmount} from {$competition.potMethod})</small>{/if}</div>\r\n\r\n{if $competition.startDate lt $smarty.now}\r\n	Time remaining: <b>{$competition.timeLeft}</b><br />\r\n{else}\r\n	This competition has not yet started!<br />\r\n{/if}\r\n\r\nStart{if $competition.startDate lt $smarty.now}ed{else}s{/if}: <b>{$competition.startDate|date_format2:\"n/j/Y\"}</b> &nbsp; \r\nEnd{if $competition.endDate lt $smarty.now}ed{else}s{/if}: <b>{$competition.endDate|date_format2:\"n/j/Y\"}</b><br />\r\n{if $competition.calculationMode neq \"Real-Time\"}Competition stats/scoring updated as of {$competition.dateOfObject|date_format2:\"n/j/Y g:i A\"}{if $isManager} (<a href=\"?pg=competition&cid={$smarty.request.cid}&nocache=1\">Update Now!</a>){/if}<br />{/if}\r\n<div style=\"font-size:5px;clear:left;\">&nbsp;</div>\r\n{assign var=\"scoringMethod\" value=$competition.scoringMethod}\r\n{assign var=\"tieBreakerMethod\" value=$competition.tieBreakerMethod}\r\n{assign var=\"weeklyWinnersMethod1\" value=$competition.weeklyWinnersMethod1}\r\n{assign var=\"weeklyWinnersMethod2\" value=$competition.weeklyWinnersMethod2}\r\n\r\n{* ******************** WEEKLY WINNERS ********************* *}\r\n{if $competition.weeklyWinners}\r\n	{if $weeklyWinnersMethod1}             {* DON\'T FORGET TO REMOVE THE ACM CHECK WHEN READY!!! *}\r\n		<h2 class=\"withBG\">\r\n			<div class=\"topRight hideShow\">\r\n			<a href=\"javascript:toggle(\'weeklyWinners\', \'\', \'showHide\');\"><img id=\"weeklyWinners_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n			Last Week\'s Winners<i>!</i> <small style=\"color:#000; font-size:11px;\">(<i><b>{$competition.weeklyWinners.startDate|date_format2:\"D n/j\"}</b> through <b>{$competition.weeklyWinners.endDate|date_format2:\"D n/j\"}</b></i>)</small></h2> \r\n		<div id=\"weeklyWinners\">\r\n		<table width=\"100%\" cellpadding=\"3\" cellspacing=\"0\"><tr>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<div class=\"cellHeadLarge\" style=\"width:auto;float:none;\">{$weeklyWinnersMethod1}</div>\r\n		<img src=\"{$skinFolder}images/winner_1.gif\" style=\"float:left;\" />\r\n		{strip}\r\n		{foreach name=\"method1\" from=$competition.weeklyWinners.$weeklyWinnersMethod1 item=\"username\"}\r\n			{assign var=\"userValue\" value=$competition.weeklyWinners.users.$username.$weeklyWinnersMethod1}\r\n			{if $smarty.foreach.method1.iteration gt 3 OR $userValue lte 0}{if $smarty.foreach.method1.iteration eq 1}Don\'t forget to update your progress so there will be winners next week{/if}<i>!</i>{php}break;{/php}\r\n			{elseif $smarty.foreach.method1.iteration eq 1}\r\n				<b>{$username|default:\"[ ?? ]\"|ucfirst}</b> led the way last week by \r\n				{if $weeklyWinnersMethod1 eq \'Weight Lost\'}losing <b>{$userValue}</b> pounds{elseif $weeklyWinnersMethod1 eq \'Percentage Weight Lost\'}losing <b>{$userValue}% of thier body weight{elseif $weeklyWinnersMethod1 eq \'Minutes Exercise\'}exercising <b>{$userValue}</b> minutes{elseif $weeklyWinnersMethod1 eq \'Distance Exercised\'}exercising <b>{$userValue}</b> miles{elseif $weeklyWinnersMethod1 eq \'Weight Gained\'}gaining <b>{$userValue}</b> pounds{else}<b>default</b>{/if}\r\n			{else}\r\n				{if $smarty.foreach.method1.iteration eq 2}, followed by <b>{$username|default:\"[ ?? ]\"|ucfirst}</b> with \r\n				{else}, and then <b>{$username|default:\"[ ?? ]\"|ucfirst}</b> with \r\n				{/if}\r\n				{if $weeklyWinnersMethod1 eq \'Weight Lost\'}<b>{$userValue}</b> pounds{elseif $weeklyWinnersMethod1 eq \'Percentage Weight Lost\'}<b>{$userValue}%{elseif $weeklyWinnersMethod1 eq \'Minutes Exercise\'}<b>{$userValue}</b> minutes{elseif $weeklyWinnersMethod1 eq \'Distance Exercised\'}<b>{$userValue}</b> miles{elseif $weeklyWinnersMethod1 eq \'Weight Gained\'}<b>{$userValue}</b> pounds{/if}\r\n			{/if}\r\n		{/foreach}\r\n		{/strip}\r\n		</td>\r\n	{/if}\r\n	{if $weeklyWinnersMethod2} \r\n		<td valign=\"top\" width=\"50%\">\r\n		<div class=\"cellHeadLarge\" style=\"width:auto;float:none;\">{$weeklyWinnersMethod2}</div>\r\n		<img src=\"{$skinFolder}images/winner_2.gif\" style=\"float:left;\" />\r\n		{* display var=$competition.weeklyWinners.users *}\r\n		{strip}\r\n		{foreach name=\"method2\" from=$competition.weeklyWinners.$weeklyWinnersMethod2 item=\"username\"}\r\n			{assign var=\"userValue\" value=$competition.weeklyWinners.users.$username.$weeklyWinnersMethod2}\r\n			\r\n			{if $smarty.foreach.method2.iteration gt 3 OR $userValue lte 0}{if $smarty.foreach.method2.iteration eq 1}Don\'t forget to update your progress so there will be winners next week{/if}<i>!</i>{php}break;{/php}\r\n			{elseif $smarty.foreach.method2.iteration eq 1}\r\n				<b>{$username|default:\"[ ?? ]\"|ucfirst}</b> won by \r\n				{if $weeklyWinnersMethod2 eq \'Weight Lost\'}losing <b>{$userValue}</b> pounds{elseif $weeklyWinnersMethod2 eq \'Percentage Weight Lost\'}losing <b>{$userValue}% of thier body weight{elseif $weeklyWinnersMethod2 eq \'Minutes Exercise\'}exercising <b>{$userValue}</b> minutes{elseif $weeklyWinnersMethod2 eq \'Distance Exercised\'}exercising <b>{$userValue}</b> miles{elseif $weeklyWinnersMethod2 eq \'Weight Gained\'}gaining <b>{$userValue}</b> pounds{/if}\r\n			{else}\r\n				{if $smarty.foreach.method2.iteration eq 2}, followed by <b>{$username|default:\"[ ?? ]\"|ucfirst}</b> with \r\n				{else}, and then <b>{$username|default:\"[ ?? ]\"|ucfirst}</b> with \r\n				{/if}\r\n				{if $weeklyWinnersMethod2 eq \'Weight Lost\'}<b>{$userValue}</b> pounds{elseif $weeklyWinnersMethod2 eq \'Percentage Weight Lost\'}<b>{$userValue}%{elseif $weeklyWinnersMethod2 eq \'Minutes Exercise\'}<b>{$userValue}</b> minutes{elseif $weeklyWinnersMethod2 eq \'Distance Exercised\'}<b>{$userValue}</b> miles{elseif $weeklyWinnersMethod2 eq \'Weight Gained\'}<b>{$userValue}</b> pounds{/if}\r\n			{/if}\r\n		{/foreach}\r\n		{/strip}\r\n		</td>\r\n	{/if}\r\n	{if $weeklyWinnersMethod1}\r\n	</tr></table></div>{/if}\r\n{/if}\r\n{* ********************************************************* *}\r\n\r\n{if $acm->isDomainAdmin() and $smarty.request.debug}\r\n	{display var=$competition}\r\n{/if} \r\n\r\n{* ******************************** COMPARISON GRAPHS ***************************************** *}\r\n{if $competition.availableGraphs|@count}\r\n{include_php file=\"shared_handle:competition.graphs\"}\r\n<h2 class=\"withBG\"><a name=\"graph\"></a>\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'graphs\', \'\', \'showHide\');\"><img id=\"graphs_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	Comparison Graphs &nbsp; <small><i>No graph? <a href=\"http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" target=\"_blank\">click here</a> to download the free Flash Player plug-in.</i></small></h2>\r\n<div id=\"graphs\" style=\"display:block;\">\r\n	<table border=\"0\" cellpadding=\"0\" width=\"100%\">\r\n		{assign var=\"graphURL\" value=\"?pg=flashgraph-frame&format=wide\"}\r\n	{*\r\n	{if $competition.scoringMethod eq \"Distance Exercised\"}\r\n		{assign var=\"graphURL\" value=\"?pg=flashgraph-frame&compId=`$competition.id`&type=distanceExercised&fillPrevious=0&precision=1&totalChange=0&format=wide\"}\r\n	{elseif $competition.scoringMethod eq \"Minutes Exercise\"}\r\n		{assign var=\"graphURL\" value=\"?pg=flashgraph-frame&compId=`$competition.id`&type=minutesExercise&fillPrevious=0&precision=1&totalChange=0&format=wide\"}\r\n	{else}  { * weight lost, percent lost, weight gained, etc... * }\r\n		{assign var=\"graphURL\" value=\"?pg=flashgraph-frame&compId=`$competition.id`&type=weight&fillPrevious=1&precision=1&totalChange=1&format=wide\"}\r\n	{/if}\r\n	*}\r\n	<tr>\r\n		<td><div style=\"border:#999 1px solid;background-color:#FFF;padding:5px;\"><iframe name=\"graphwindow\" src=\"{$graphURL}\" frameborder=\"0\" width=\"625\" height=\"220\" scrollbars=\"no\"></iframe></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td valign=\"top\" align=\"center\" width=\"100%\">\r\n		<small>\r\n		{foreach name=\"graphTypes\" from=$competition.availableGraphs key=\"graphType\" item=\"graphParams\"}\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&{$graphParams}\" target=\"graphwindow\">{$graphType}</a>{if $smarty.foreach.graphTypes.iteration neq $competition.availableGraphs|@count} | {/if}\r\n		{/foreach}\r\n		</small></td>\r\n	</tr>\r\n	{* <tr>\r\n		<td colspan=\"2\">\r\n			<h3 class=\"withBG\">Compare With Stars!</h3>\r\n			<div>To graphically and numerically compare to different \"stars\", click a \r\n				category and select one or more stars (hold down the CTRL or SHIFT \r\n				key to select/deselect multiple) then click the \"Compare Now!\" \r\n				button below. When you do, the graph above will be updated to include\r\n				the selected \"stars\" and you will see a comparison window appear below\r\n				to show how you compare.</div>\r\n\r\n			<!-- This DIV is initially Empty. Will contain IFRAME of comparison view. -->\r\n			<div id=\"compareFrameDiv\" style=\"width:375px; display:none;\"><iframe name=\"compareFrame\" src=\"?pg=compare-frame\" frameborder=\"0\" width=\"375\" height=\"180\" scrollbars=\"no\"></iframe></div>\r\n\r\n			<table xwidth=\"99%\" cellspacing=\"1\" cellpadding=\"1\">\r\n			<tr>\r\n			<td xwidth=\"45%\" align=\"center\">\r\n				<div class=\"chunk\" style=\"width:150px;\">\r\n					<a href=\"javascript://\" onclick=\"toggle(\'players\');\" class=\"button\">Players</a>\r\n					<div id=\"players\" style=\"display:block;\">\r\n						<select size=\"6\" id=\"comparePlayers\" name=\"compare[players]\" style=\"width:100%\">\r\n						{if $competition.style eq \'Group-vs-Group\'}\r\n							{foreach from=$competition.teams item=\"teams\" key=\"teamName\"}\r\n								{foreach from=$teams.users item=\"users\" key=\"userName\"}\r\n									{if $users.hideInitialWeight neq \"Yes\" OR $users.id eq $user->id}<option value=\"{$users.id}\">{$userName}</option>{/if}\r\n								{/foreach}\r\n							{/foreach}\r\n						{else}\r\n							{foreach from=$competition.users item=\"users\" key=\"username\" name=\"dateUpdated\"}\r\n								{if $users.hideInitialWeight neq \"Yes\" OR $users.id eq $user->id}<option value=\"{$users.id}\">{$username}</option>{/if}\r\n							{/foreach}\r\n						{/if}\r\n						</select>\r\n					</div>\r\n				</div>\r\n			</td>\r\n			<td xwidth=\"10%\" style=\"border-left:1px solid #CCC; border-right:1px solid #CCC;\" valign=\"middle\" align=\"center\"><b>Versus</b></td>\r\n			<td xwidth=\"45%\" align=\"center\">\r\n				<div class=\"chunk\" style=\"width:150px;\">\r\n					<a href=\"javascript://\" onclick=\"toggle(\'animals\');\" class=\"button\">Animals</a>\r\n					<div id=\"animals\" style=\"display:none;\">\r\n						<select size=\"6\" id=\"compareAnimals\" multiple=\"multiple\" name=\"compare[animals]\" style=\"width:100%;\">\r\n						{foreach from=$stars.animals item=\"row\"}\r\n							<option value=\"{$row.id}\">{$row.name}</option>\r\n						{/foreach}\r\n						</select>\r\n					</div>\r\n				</div>\r\n				<div class=\"chunk\" style=\"width:150px;\">\r\n					<a href=\"javascript://\" onclick=\"toggle(\'athletes\');\" class=\"button\">Athletes</a>\r\n					<div id=\"athletes\" style=\"display:none;\">\r\n						<select size=\"6\" id=\"compareAthletes\" multiple=\"multiple\" name=\"compare[athletes]\" style=\"width:100%;\">\r\n						{foreach from=$stars.athletes item=\"row\"}\r\n							<option value=\"{$row.id}\">{$row.name}</option>\r\n						{/foreach}\r\n						</select>\r\n					</div>\r\n				</div>\r\n				<div class=\"chunk\" style=\"width:150px;\">\r\n					<a href=\"javascript://\" onclick=\"toggle(\'movies\');\" class=\"button\">Movie Stars</a>\r\n					<div id=\"movies\" style=\"display:none;\">\r\n						<select size=\"6\" id=\"compareMovies\" multiple=\"multiple\" name=\"compare[movies]\" style=\"width:100%;\">\r\n						{foreach from=$stars.movies item=\"row\"}\r\n							<option value=\"{$row.id}\">{$row.name}</option>\r\n						{/foreach}\r\n						</select>\r\n					</div>\r\n				</div>\r\n				<div class=\"chunk\" style=\"width:150px;\">\r\n					<a href=\"javascript://\" onclick=\"toggle(\'politics\');\" class=\"button\">Politicians</a>\r\n					<div id=\"politics\" style=\"display:none;\">\r\n						<select size=\"6\" id=\"comparePolitics\" multiple=\"multiple\" name=\"compare[politics]\" style=\"width:100%;\">\r\n						{foreach from=$stars.politics item=\"row\"}\r\n							<option value=\"{$row.id}\">{$row.name}</option>\r\n						{/foreach}\r\n						</select>\r\n					</div>\r\n				</div>\r\n			</td>\r\n			</tr>\r\n			<tr>\r\n			<td colspan=\"3\" align=\"center\">\r\n				<br /><a href=\"#graph\" class=\"button\" onclick=\"goCompareGraph();\"> &nbsp; &gt; Compare Now! &lt; &nbsp; </a><br />\r\n			</td>\r\n			</table>\r\n		</td>\r\n	</tr> *}\r\n	</table>\r\n<br />\r\n</div>\r\n{/if}\r\n\r\n{*   comparisons currently disabled\r\n{include_php file=\"shared_handle:getStarStats\"}\r\n\r\n<script language=\"javascript\">{literal}\r\n\r\nfunction goCompareGraph() {\r\n	var elementIds = Array(\'compareAnimals\', \'compareAthletes\', \'compareMovies\', \'comparePolitics\');\r\n	var obj = \'\';\r\n	var ids = \'\';\r\n\r\n	for (var a = 0; a < elementIds.length; a++) {\r\n		obj = document.getElementById(elementIds[a]);\r\n\r\n		for (var x = 0; x < obj.options.length; x++) {\r\n			if (obj.options[x].selected)\r\n				ids += obj.options[x].value + \',\';\r\n		}\r\n	}\r\n\r\n	if (ids) {\r\n		ids = ids.replace(/\\,$/, \'\');\r\n		var url = \'?pg=flashgraph-frame&compId={/literal}{$competition.id}{literal}&type=weight&fillPrevious=1&precision=0&stars=\' + ids;\r\n		graphwindow.location.replace(url);\r\n\r\n		// Now update the content of the compare frame.\r\n		obj = document.getElementById(\'compareFrameDiv\');\r\n		obj.style.display = \'block\';\r\n		\r\n		obj = document.getElementById(\'comparePlayers\');\r\n		var userIds = \'\';\r\n\r\n		for (var x = 0; x < obj.options.length; x++)\r\n			if (obj.options[x].selected)\r\n				userIds += obj.options[x].value;\r\n\r\n		compareFrame.location.replace(\'?pg=compare-frame&stars=\' + ids + \'&userId=\' + userIds);\r\n	} else {\r\n		alert (\'Click on one of the categories to the left and select as many \"stars\" as you would like.\\n\\nTo select multiple \"stars\", hold down the SHIFT or CTRL key while clicking on their names.\\n\\nWhen finished, click this link again to see the comparison.\');\r\n	}\r\n}\r\n\r\n{/literal}</script>\r\n*}  {* End commented out comparison stuff *}\r\n\r\n{* ******************************** GROUP TEAMS/PLAYERS SUMMARY W/MOVING ***************************************** *}\r\n{if $competition.style eq \'Group-vs-Group\'}\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'teams\', \'\', \'showHide\');\"><img id=\"teams_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	The Teams &nbsp; <small><i>Assignments and statistics</i></small></h2>\r\n<div id=\"teams\" style=\"display:block;\">\r\n<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\"><tr><td>\r\n	{if $isManager}\r\n		<form name=\"changeTeam\" action=\"index.php\" method=\"POST\" style=\"margin:0px;\">\r\n			<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n			<input type=\"hidden\" name=\"cid\" value=\"{$competition.id}\">\r\n			<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n	{/if}\r\n		{assign var=\"minEx\" value=\"Minutes Exercise\"}\r\n		{assign var=\"distEx\" value=\"Distance Exercised\"}\r\n		{assign var=\"pctLst\" value=\"Percentage Weight Lost\"}\r\n		{assign var=\"wtLst\" value=\"Percentage Weight Lost\"}\r\n		{foreach from=$competition.teams name=\"teamsLoop\" item=\"teams\" key=\"teamName\"}\r\n			<div id=\"playersList{$smarty.foreach.teamsLoop.iteration}\" style=\"float:left;width:310px;overflow:hidden;word-wrap:nowrap; margin:0px 5px 5px 0px;\">\r\n			<h4>{if $teams.name eq \"Waiting to Join\"}Not assigned to a team{else}{$teams.name|default:\"&nbsp;\"}{/if}</h4>\r\n		{if $scoringMethod|regex_match:\"/exercise/i\"}\r\n			<span class=\"cellHeadLarge\">Name</span>\r\n			<span class=\"cellHeadSmall\">Min.</span>\r\n			<span class=\"cellHeadSmall\">Dist.</span>\r\n			<span class=\"cellHeadSmall\">Update</span><br />\r\n			{foreach from=$teams.users item=\"users\" key=\"userName\"}\r\n				<span class=\"cellLarge\" style=\"text-align:left;\"><small>{if $isManager}<input type=\"checkbox\" name=\"changeTeam[players][{$userName}]\" style=\"width:14px;height:14px;margin:0px 2px;\" />{/if}{$userName}</small></span>\r\n				<span class=\"cellSmall\"><small>{$users.$minEx|default:\"-\"|replace:\".00\":\"\"}</small></span>\r\n				<span class=\"cellSmall\"><small>{$users.$distEx|default:\"-\"|replace:\".00\":\"\"}</small></span>\r\n				<span class=\"cellSmall\"><small>{if $users.dateOfEntry}{$users.dateOfEntry|date_format2:\"n/j/y\"}{else}Never{/if}</small></span>\r\n			{foreachelse}\r\n				{* No players assigned to this team. *}\r\n			{/foreach}\r\n		{else}\r\n			<span class=\"cellHeadLarge\">Name</span>\r\n			<span class=\"cellHeadTiny\">%</span>\r\n			<span class=\"cellHeadSmall\">Update</span><br />\r\n			{foreach from=$teams.users item=\"users\" key=\"userName\"}\r\n				<span class=\"cellLarge\" style=\"clear:left;text-align:left;\"><small>{if $isManager}<input type=\"checkbox\" name=\"changeTeam[players][{$userName}]\" />{/if}{$userName}</small></span>\r\n				<span class=\"cellTiny\"><small>{if $users.hideInitialWeight neq \"Yes\"}{$users.$pctLst|number_format:\"2\"|replace:\".00\":\"\"}{else}-{/if}</small></span>\r\n				<span class=\"cellSmall\"><small>{if $users.dateOfEntry}{$users.dateOfEntry|date_format2:\"n/j/y\"}{else}Never{/if}</small></span><br />\r\n			{foreachelse}\r\n				{* No players assigned to this team. *}\r\n			{/foreach}\r\n		{/if}\r\n			</div>\r\n		{/foreach}\r\n	{if $isManager}\r\n		<br />\r\n		<select name=\"changeTeam[team]\">\r\n			<option value=\"\">Move selected players to...</option>\r\n			{foreach from=$competition.teams item=\"newTeams\" key=\"newTeamName\"}\r\n				{*if $newTeams.name ne $teams.name and $newTeams.name ne \"Waiting to Join\"*}\r\n				{if $newTeams.name ne \"Waiting to Join\"}\r\n					<option value=\"{$newTeams.name}\">{$newTeams.name}</option>\r\n				{/if}\r\n			{/foreach}\r\n		</select><br />\r\n		<input type=\"submit\" class=\"button\" value=\"Submit Changes\">\r\n		</form>\r\n	{/if}\r\n</td></tr></table>\r\n</div>\r\n{/if}\r\n\r\n{* ********************** LEADERS ******************************* *}\r\n{* <div class=\"chunk300\">\r\n<h2 class=\"withBG\">Leaders</h2>\r\n<div id=\"leadersList\" class=\"contentColumn\">\r\n	<span class=\"cellHeadLarge\">{if $competition.style eq \'Group-vs-Group\'}# of members{else}Competitor{/if}</span\r\n	><span class=\"cellHeadSmall\">{if $scoringMethod eq \"Percentage Weight Lost\"}% Lost{elseif $scoringMethod eq \"Weight Lost\"}lbsLost{elseif $scoringMethod eq \"Weight Gained\"}lbsGain{elseif $scoringMethod eq \"Minutes Exercise\"}Min.{elseif $scoringMethod eq \"Distance Exercised\"}Dist.{/if}</span\r\n	><br />\r\n{if $competition.style eq \'Group-vs-Group\'}\r\n	{foreach from=$competition.teams item=\"compUser\" key=\"username\"}\r\n	<span class=\"cell\"><small>{$compUser.userCount}</small></span><br />\r\n	{/foreach}\r\n{else}\r\n	{foreach from=$competition.users item=\"compUser\" key=\"username\" name=\"leaders\"}\r\n	{*$smarty.foreach.leaders.iteration* }<span class=\"cellLarge\"><small>{$username}</small></span>\r\n	<span class=\"cellSmall\"><small>{if $scoringMethod eq \"Percentage Weight Lost\"}{$compUser.$scoringMethod|number_format:\"2\"} %{else}{$compUser.$scoringMethod}{/if}</small></span><br />\r\n	{/foreach}\r\n{/if}\r\n</div> *}'),(1752,115,0.16,'smarty','1','Moved the add contacts functionality into a handler.',1087872970,2,'144.35.138.39','{assign var=\"hideWidgets\" value=\"true\"}\r\n\r\n{if $smarty.request.tm_style_table}\r\n	{session_write var=\"tm_style_table\" value=$smarty.request.tm_style_table}\r\n{/if}\r\n{if $smarty.request.tm_template}\r\n	{session_write var=\"tm_template\" value=$smarty.request.tm_template}\r\n{/if}\r\n\r\n{assign var=\"template\" value=$smarty.session.safe.tm_template|default:\"slate\"}\r\n\r\n{include_php file=\"shared_handle:addContacts\"}\r\n\r\n{tablemanager\r\n	Assign=\"tm\"\r\n	Group=\"user_lists\"\r\n	Profile=\"my_inbox\"\r\n	DeleteLogFile=\"tm-delete.log\"\r\n	TemplatePath=\"TM/templates/\"\r\n	StyleTablePath=\"systems/jobswap/img/st/\"\r\n	StyleTable=$smarty.session.safe.tm_style_table|default:\"gray\"\r\n	AddTemplate=$template|cat:\"_edit.tpl\"\r\n	MainTemplate=$template|cat:\"_main.tpl\"\r\n	ListTemplate=\"pm_slate_list.tpl\"\r\n	EditTemplate=$template|cat:\"_edit.tpl\"\r\n	ViewTemplate=$template|cat:\"_view.tpl\"\r\n	Action=\"list\"\r\n	LoginRequired=\"true\"\r\n	HeadingColor=\"7089A4\"\r\n	HighlightColor=\"F6F9D5\"\r\n	ResultsPerPage=\"20\"\r\n	Color1=\"F7F7F7\"\r\n	Color2=\"E7E7E7\"\r\n	DataStyle=\"hideWrap\"\r\n	MaxStringLength=\"50\"\r\n	DateFormat=\"l, F d, Y g:i a \"\r\n	}\r\n'),(2993,171,0.20,'smarty','0','added content',1108076039,16,'128.187.0.165','<h1 class=\"withBG\">Products</h1>\r\n\r\n<h2> Wellness Competitions</h2>\r\n\r\n<p>Using eHealthCompete company wellness directors can create, monitor and host company sponsored health competitions.  These competitions bring the much needed element of motivation and fun into the health picture.</p>\r\n<p>Stop using paper and pencil or Excel as the means to track the wellness competitions you currently run.  Give your employees a real tool to view their progress and see their results.  Using eHealthCompete will automate your current tasks, and motivate your employees.</p>\r\n<p>Many different competitions styles can be created to fit your needs, including % of body weight lost, Exercise minutes, Exercise distance or total weight lost.</p>\r\n<p>Team or individual competitions can be customized to help include every employee in your company.</p>\r\n<p>Competition features include: a real time leader board, informative progress graphs, goal management, discussion board, health calculators, news, weight loss and exercise tips, recipes, and more.</p>\r\n<p>Group stats are displayed to show the overall progress of the company, and provide your management with measurable results.</p>\r\n\r\n<h2>Health Risk Assessments</h2>\r\n<p>Health Risk Assessments help employers identify High Risk employees who can account for at least 25% to 30% of medical costs per year.</p>\r\n<p>Health Care providers have used health risk assessments (HRA) for over 20 years to educate patients on potential health risks that are related to lifestyle and family history.</p>\r\n<p>Our online HRA asks a series of questions that will help determine each individual’s health risk. The questions fall into the following categories:  Behaviors that have an effect on health, Family medical history and current health status, such as cholesterol levels, blood pressure readings and weight. </p>\r\n<p>Once the HRA has been completed the answers are used to calculate individual risk using studies from well-recognized organizations such as the Harvard Nurses Health Study. </p>\r\n<p>Benefits to HRA’s include: possibility to discover health risk factors that an individual might not have known about; Alerting individuals to aspects of their health that may need more attention;  Potential to avoid more serious health complications; Allowing management to determine what types of programs need to be implemented to help improve employee health. </p>\r\n<p>By completing health risk assessments companies are taking a very positive step forward in improving employee health and reducing health care costs. </p> \r\n\r\n\r\n<h2>Incentive Programs</h2>\r\n<p>Each Employee will receive their own personal wellness center, where they can track their efforts in Exercise, Nutrition and General Lifestyle.</p>\r\n<p>As employees participate they receive points that can be redeemed for incentives that you provide.  By rewarding your employees for their healthy choices you will demonstrate your commitment to their overall well being.  This can help reduce turnover in your company.</p>\r\n<p>The incentive program comes with the ability to survey your employee population based on whatever criteria you want.  Our survey engine will distribute, collect and display the results of your survey - eliminating the paper based methods you have used in the past.</p>\r\n\r\n<h2>Now What?</h2>\r\n<a href=\"?pg=contact\">Contact us</a> for more information on how your company can benefit from eHealthCompete!'),(2994,171,0.21,'smarty','0','added content',1108076250,16,'128.187.0.165','<h1 class=\"withBG\">Products</h1>\r\n\r\n<h2> Wellness Competitions</h2>\r\n\r\n<p>Using eHealthCompete company wellness directors can create, monitor and host company sponsored health competitions.  These competitions bring the much needed element of motivation and fun into the health picture.</p>\r\n<p>Stop using paper and pencil or Excel as the means to track the wellness competitions you currently run.  Give your employees a real tool to view their progress and see their results.  Using eHealthCompete will automate your current tasks, and motivate your employees.</p>\r\n<p>Many different competitions styles can be created to fit your needs, including % of body weight lost, Exercise minutes, Exercise distance or total weight lost.</p>\r\n<p>Team or individual competitions can be customized to help include every employee in your company.</p>\r\n<p>Competition features include: a real time leader board, informative progress graphs, goal management, discussion board, health calculators, news, weight loss and exercise tips, recipes, and more.</p>\r\n<p>Group stats are displayed to show the overall progress of the company, and provide your management with measurable results.</p>\r\n\r\n<h2>Health Risk Assessments</h2>\r\n<p>Health Risk Assessments help employers identify High Risk employees who can account for at least 25% to 30% of medical costs per year.</p>\r\n<p>Health Care providers have used health risk assessments (HRA) for over 20 years to educate patients on potential health risks that are related to lifestyle and family history.</p>\r\n<p>Our online HRA asks a series of questions that will help determine each individual’s health risk. The questions fall into the following categories:  Behaviors that have an effect on health, Family medical history and current health status, such as cholesterol levels, blood pressure readings and weight. </p>\r\n<p>Once the HRA has been completed the answers are used to calculate individual risk using studies from well-recognized organizations such as the Harvard Nurses Health Study. </p>\r\n<p>Benefits to HRA’s include: possibility to discover health risk factors that an individual might not have known about; Alerting individuals to aspects of their health that may need more attention;  Potential to avoid more serious health complications; Allowing management to determine what types of programs need to be implemented to help improve employee health. </p>\r\n<p>By completing health risk assessments companies are taking a very positive step forward in improving employee health and reducing health care costs. </p> \r\n\r\n\r\n<h2>Incentive Programs</h2>\r\n<p>Each Employee will receive their own personal wellness center, where they can track their efforts in Exercise, Nutrition and General Lifestyle.</p>\r\n<p>As employees participate they receive points that can be redeemed for incentives that you provide.  By rewarding your employees for their healthy choices you will demonstrate your commitment to their overall well being.  This can help reduce turnover in your company.</p>\r\n\r\n<h2>Survey Creation</h2>\r\n<p>Looking for ways to receive real time data from your employees?  eHealthCompete gives you the ability to survey your employee population based on whatever criteria you want.  Our survey engine will distribute, collect and display the results of your survey - eliminating the paper based methods you have used in the past.</p>\r\n\r\n<h2>Now What?</h2>\r\n<a href=\"?pg=contact\">Contact us</a> for more information on how your company can benefit from eHealthCompete!'),(3552,224,0.26,'smarty','0','Page created.',1112908224,16,'128.187.0.165','{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{include_php file=\"shared_handle:company/forumsList\"}\r\n{include_php file=\"shared_handle:company/consumerSurveyList\"}\r\n\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>Consumer Tools</h1>\r\n\r\n<table width=\"100%\"><tr><td valign=\"top\">\r\n	<img class=\"iconPrize\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" />\r\n</td><td valign=\"top\" width=\"100%\">\r\n	Welcome to \"Consumer Skills.\"  From this page you can receive points for being an economic health care consumer.  Click on the survey below or post a message in one of the consumer skills discussion boards to receive points.  Check back every chance you get so you can learn more about Consumer Directed health skills and receive points for your Consumer Skills!	\r\n</td></tr>\r\n</table>\r\n\r\n<blockquote>\r\n<table width=\"100%\"><tr>\r\n<td valign=\"top\" width=\"100%\">\r\n	<h3>Available Surveys:</h3>\r\n	<table>\r\n	{foreach from=$surveys item=item name=\"loopSurveys\"}<tr><td nowrap>\r\n	<tr><td valign=\"top\" nowrap=\"nowrap\">\r\n		{if $item.dateAvailable gt 0}\r\n			<img class=\"ico{$item.id}\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" /></td>\r\n		   <td valign=\"top\"><b><u>{$item.surveyName}</u>:</b> {if $item.frequency eq \"Once\"}Taken{elseif (($item.dateAvailable - $smarty.now) < 43000)}<small>Available At:</small> {$item.dateAvailable|date_format2:\"g:i A\"}{else}<small>Available On:</small> {$item.dateAvailable|date_format2:\"m/d/y\"}{/if}<br />\r\n			{$item.feedbackTitle|default:\"No feedback available.\"}<br />\r\n			<a href=\"?pg=my_feedback&surveyId={$item.id}&amp;feedbackId={$item.feedbackId}\">Click here to learn more<b><i>!</i></b></a><br />\r\n			<br /></td>\r\n		   <td valign=\"middle\" align=\"right\"><em>{$item.pointsEarned}</em></td></tr>\r\n		{else}\r\n			<a href=\"javascript://\" onclick=\"openSurvey({$item.id});\"><img class=\"ico{$item.id}\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" /></a></td>\r\n		   <td valign=\"top\" nowrap=\"nowrap\"><b><u>{$item.surveyName}</u>:</b> <a href=\"javascript://\" onclick=\"openSurvey({$item.id});\">Available Now</a><br />\r\n			{$item.feedbackTitle|default:\"No feedback available.\"}<br />\r\n			<a href=\"?pg=my_feedback&surveyId={$item.id}&amp;feedbackId={$item.feedbackId}\">Click here to learn more<b><i>!</i></b></a><br />\r\n			<br /></td>\r\n		   <td valign=\"middle\" align=\"right\"><em>{$item.pointsEarned}</em></td></tr>\r\n		{/if}\r\n	{foreachelse}\r\n	<tr><td valign=\"top\" colspan=\"3\">\r\n		None found.</td></tr>\r\n	{/foreach}\r\n	</table>\r\n</td>\r\n<td valign=\"top\" nowrap=\"nowrap\">\r\n	<h3>Company Forums:</h3>\r\n	<ul>\r\n	{foreach from=$companyForums item=\"cForum\"}\r\n	<li><a href=\"?pg=company_forum&fId={$cForum.id}\">{$cForum.name}</a></li>\r\n	{/foreach}\r\n	</ul>\r\n</td>\r\n</tr>\r\n</table>\r\n</blockquote>\r\n'),(3538,225,0.18,'smarty','1','Page created.',1112847936,2,'67.166.75.78','{include file=\"layouts/forceLoggedIn.tpl\"}\r\n\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n{include_php file=\"shared_handle:company/forum\"}\r\n\r\n{if $forumDetails}\r\n	<h1>Company Forum: <i>{$forumDetails.name}</i></h1>\r\n	\r\n	{tablemanager\r\n		Assign=\"tm\"\r\n		Group=\"display_tools\"\r\n		Profile=\"companyForum\"\r\n		DeleteLogFile=\"tm-delete.log\"\r\n		TemplatePath=\"TM/templates/\"\r\n		StyleTablePath=\"systems/wlw/img/st/\"\r\n		AddTemplate=\"forum_edit.tpl\"\r\n		MainTemplate=\"forum_main.tpl\"\r\n		ListTemplate=\"forum_list.tpl\"\r\n		EditTemplate=\"forum_edit.tpl\"\r\n		Action=\"list\"\r\n		LoginRequired=\"true\"\r\n		HeadingColor=\"99CCFF\"\r\n		HighlightColor=\"F6F9D5\"\r\n		HeadingStyle=\"withBG2\"\r\n		ResultsPerPage=\"20\"\r\n		Color1=\"F7F7F7\"\r\n		Color2=\"E7E7E7\"\r\n		DataStyle=\"hideWrap\"\r\n		MaxStringLength=\"50\"\r\n		DateFormat=\"l, F d, Y g:i a \"\r\n		}\r\n{else}\r\n	Forum could not be loaded.\r\n{/if}'),(3540,227,0.10,'smarty','0','Page created.',1112849127,2,'67.166.75.78',''),(3541,227,0.11,'smarty','1','Page created.',1112849229,2,'67.166.75.78','{redirect href=\"?pg=management/tools&sub=manage_forums\"}'),(3542,224,0.19,'smarty','0','Page created.',1112894416,3,'24.10.217.227','{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{include_php file=\"shared_handle:company/forumsList\"}\r\n\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>Consumer Tools</h1>\r\n\r\n<table width=\"100%\"><tr><td valign=\"top\">\r\n	<img class=\"iconPrize\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" />\r\n</td><td valign=\"top\" width=\"100%\">\r\n	This is the consumer tools page, still under construction. Chad edit this to say what you would like.	\r\n</td></tr>\r\n</table>\r\n\r\n<table width=\"100%\"><tr>\r\n<td valign=\"top\">\r\n	<h3>Available Surveys:</h3>\r\n	\r\n</td>\r\n<td valign=\"top\" nowrap=\"nowrap\">\r\n	<h3>Company Forums:</h3>\r\n	<ul>\r\n	{foreach from=$companyForums item=\"cForum\"}\r\n	<li><a href=\"?pg=company_forum&fId={$cForum.id}\">{$cForum.name}</a></li>\r\n	{/foreach}\r\n	</ul>\r\n</td>\r\n'),(3543,224,0.20,'smarty','0','Page created.',1112894481,3,'24.10.217.227','{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{include_php file=\"shared_handle:company/forumsList\"}\r\n\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>Consumer Tools</h1>\r\n\r\n<table width=\"100%\"><tr><td valign=\"top\">\r\n	<img class=\"iconPrize\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" />\r\n</td><td valign=\"top\" width=\"100%\">\r\n	This is the consumer tools page, still under construction. Chad edit this to say what you would like.	\r\n</td></tr>\r\n</table>\r\n\r\n<table width=\"100%\"><tr>\r\n<td valign=\"top\">\r\n	<h3>Available Surveys:</h3>\r\n	\r\n</td>\r\n<td valign=\"top\" nowrap=\"nowrap\">\r\n<blockquote>\r\n	<h3>Company Forums:</h3>\r\n	<ul>\r\n	{foreach from=$companyForums item=\"cForum\"}\r\n	<li><a href=\"?pg=company_forum&fId={$cForum.id}\">{$cForum.name}</a></li>\r\n	{/foreach}\r\n	</ul>\r\n</blockquote>\r\n</td>\r\n'),(3544,224,0.21,'smarty','0','Page created.',1112894503,3,'24.10.217.227','{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{include_php file=\"shared_handle:company/forumsList\"}\r\n\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>Consumer Tools</h1>\r\n\r\n<table width=\"100%\"><tr><td valign=\"top\">\r\n	<img class=\"iconPrize\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" />\r\n</td><td valign=\"top\" width=\"100%\">\r\n	This is the consumer tools page, still under construction. Chad edit this to say what you would like.	\r\n</td></tr>\r\n</table>\r\n\r\n<table width=\"100%\"><tr>\r\n<td valign=\"top\" width=\"100%\">\r\n	<h3>Available Surveys:</h3>\r\n	\r\n</td>\r\n<td valign=\"top\" nowrap=\"nowrap\">\r\n<blockquote>\r\n	<h3>Company Forums:</h3>\r\n	<ul>\r\n	{foreach from=$companyForums item=\"cForum\"}\r\n	<li><a href=\"?pg=company_forum&fId={$cForum.id}\">{$cForum.name}</a></li>\r\n	{/foreach}\r\n	</ul>\r\n</blockquote>\r\n</td>\r\n'),(1818,150,0.13,'smarty','0','Testing...',1088028074,2,'67.166.74.140','{include_php file=\"shared_handle:loadInvitation\"}\r\n\r\n<h1 class=\"underline\">Accept an Invitation</h1>\r\n\r\n<div><br />\r\nWelcome \"{$invitation.name}\". {$competition.ownerName} ({$competition.ownerUsername}), \r\nwho described you as \"{$invitation.relation}\" has invited you join a Weight Loss War&trade;\r\ntitled \"{$competition.title}\", which will end on {$competition.endDate|date_format2:\"l n/j/Y\"}. \r\nAre you up to the challenge?<br />\r\n<br />\r\n{$competition.ownerName} selected {$competition.scoringMethod} as the final judging method and \r\n{if $competition.potMethod eq \"Individual Charity\"}\r\n	{if $competition.individualPotAmount}\r\n		${$competition.individualPotAmount|number_format:2}\r\n	{else}\r\n		no money\r\n	{/if}\r\n	to be put up by each competitor.\r\n{elseif $competition.potMethod neq \"Other-None\"}\r\n	a jackpot of ${$competition.individualPotAmount|number_format:2} provided by {$competition.potMethod}.\r\n{else}\r\n	has specified a special jackpot.\r\n{/if}\r\n{if $competition.potDescription}\r\n	The jackpot was further described as \"{$competition.potDescription}\".\r\n{/if}\r\n\r\n\r\n\r\n'),(1819,150,0.14,'smarty','0','Testing...',1088028326,2,'67.166.74.140','{include_php file=\"shared_handle:loadInvitation\"}\r\n\r\n<h1 class=\"underline\">Accept an Invitation</h1>\r\n\r\n{toc_next assign=\"next\"}\r\n\r\n<div><br />\r\nWelcome \"{$invitation.name}\". {$competition.ownerName} ({$competition.ownerUsername}), \r\nwho described you as \"{$invitation.relation}\" has invited you to join a Weight Loss War&trade;\r\ntitled \"{$competition.title}\", which will end on {$competition.endDate|date_format2:\"l n/j/Y\"}. \r\nAre you up to the challenge?<br />\r\n<br />\r\n{$competition.ownerName} selected {$competition.scoringMethod} as the final judging method and \r\n{if $competition.potMethod eq \"Individual Charity\"}\r\n	{if $competition.individualPotAmount}\r\n		${$competition.individualPotAmount|number_format:2}\r\n	{else}\r\n		no money\r\n	{/if}\r\n	to be put up by each competitor.\r\n{elseif $competition.potMethod neq \"Other-None\"}\r\n	{if $competition.individualPotAmount}\r\n		a jackpot of ${$competition.individualPotAmount|number_format:2} provided by {$competition.potMethod}.\r\n	{else}\r\n		an unspecified jackpot.\r\n	{/if}\r\n{else}\r\n	an unspecified jackpot.\r\n{/if}\r\n{if $competition.potDescription}\r\n	The jackpot was further described as \"{$competition.potDescription}\".\r\n{/if}\r\n\r\n<div align=\"right>\r\n<br />\r\n</div>\r\n\r\n'),(1820,150,0.15,'smarty','0','Testing...',1088028408,2,'67.166.74.140','{include_php file=\"shared_handle:loadInvitation\"}\r\n\r\n<h1 class=\"underline\">Accept an Invitation</h1>\r\n\r\n{toc_next assign=\"next\"}\r\n\r\n<div><br />\r\nWelcome \"{$invitation.name}\". {$competition.ownerName} ({$competition.ownerUsername}), \r\nwho described you as \"{$invitation.relation}\" has invited you to join a Weight Loss War&trade;\r\ntitled \"{$competition.title}\", which will end on {$competition.endDate|date_format2:\"l n/j/Y\"}. \r\nAre you up to the challenge?<br />\r\n<br />\r\n{$competition.ownerName} selected {$competition.scoringMethod} as the final judging method and \r\n{if $competition.potMethod eq \"Individual Charity\"}\r\n	{if $competition.individualPotAmount}\r\n		${$competition.individualPotAmount|number_format:2}\r\n	{else}\r\n		no money\r\n	{/if}\r\n	to be put up by each competitor.\r\n{elseif $competition.potMethod neq \"Other-None\"}\r\n	{if $competition.individualPotAmount}\r\n		a jackpot of ${$competition.individualPotAmount|number_format:2} provided by {$competition.potMethod}.\r\n	{else}\r\n		an unspecified jackpot.\r\n	{/if}\r\n{else}\r\n	an unspecified jackpot.\r\n{/if}\r\n{if $competition.potDescription}\r\n	The jackpot was further described as \"{$competition.potDescription}\".\r\n{/if}\r\n\r\n<div class=\"hBox\" align=\"right\" style=\"margin:0px;\">\r\n	<a href=\"?pg={$next}&cid={$competition.id}&icode={$smarty.request.icode}\"><img src=\"{$skinFolder}images/btn_next.gif\" border=\"0\" /></a></div>'),(3176,1,2.93,'smarty','0','Temporary fix to send ABC corp to new my_home',1109228315,2,'67.166.75.78','{if $user->isLoggedIn()}\r\n	{store_messages}\r\n	{* TEMPORARY FIX *}\r\n	{if $smarty.session.company.companyVanity eq \"abc\"}\r\n		{redirect href=\"?pg=my_home\"}\r\n	{else}	\r\n		{* redirect href=\"?pg=myhome\" *}\r\n	{/if}\r\n{elseif $smarty.session.company.companyName}\r\n	{store_messages}\r\n	{redirect href=\"?pg=login\"}\r\n{/if}\r\n{if not $errors|@count}\r\n	{assign var=\"pgLayout\" value=\"file:./layouts/home.tpl\"}\r\n{/if}'),(4370,262,0.16,'smarty','0','Page created.',1127281041,2,'24.2.76.126','{include_php file=\"handle:integration/authenticate\"}\r\n\r\n<h1>Welcome to Apple Compete!</h1>\r\n\r\n<img src=\"{$skinFolder}images/icon_products.jpg\" align=\"right\" alt=\"\" class=\"img1\" hspace=\"20\" vspace=\"20\"/><br />\r\n\r\n<p>Apple Compete allows you to participate in Company Sponsored Health Competitions.\r\nAs you record and track your goals, you can see how you are doing against others in your company.  \r\nYour identity will remain completely private.\r\nTake charge of your progress and enjoy the motivating spirit of competition by signing up with <b>Apple Compete</b> today!</p>\r\n\r\n<h2> Competitions</h2>\r\n\r\n<p>Once you are signed up on Apple Compete you can participate in enjoyable competitions\r\nfor prizes.  You will be able to see a real time leaderboard and know exactly how \r\nyou stand against your co-workers.  To keep your identity hidden from your co-workers\r\nyou will choose a username, or \"Alias\" during the sign up process.  Join today and begin enjoying\r\nthe fun and motivation that competitions can bring.</p>\r\n\r\n'),(4767,251,0.45,'smarty','0','',1139093162,889,'63.228.198.11','{if $smarty.request.submit_send neq \"\" && $smarty.request.fromEmail neq \"\"}{include_php file=\"shared_handle:adminMultiMailTemplate\"}{/if}\r\n{assign var=\"hideWidgets\" value=\"true\"}\r\n{assign var=\"wideFormat\" value=\"true\"}\r\n\r\n{select_query assign=\"aGroups\" return=\"array\"}\r\n	name, description from _groups\r\n{/select_query}\r\n\r\n{select_query assign=\"aCompanies\" return=\"array\"}\r\n	id, companyName AS name FROM companies\r\n{/select_query}\r\n \r\n<h1 class=\"underline\">Broadcast an Email</h1>\r\n<br />\r\n\r\n<form name=\"emailForm\" method=\"post\" action=\"index.php\">\r\n<input type=\"hidden\" name=\"pg\" value=\"sendTemplatedEmail\"> \r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<div>{assign var=\"userName\" value=\"`$user->firstName` `$user->lastName`\"}\r\n<b>From Name:&nbsp;</b><input type=\"text\" name=\"fromName\" value=\"{$smarty.request.fromName|stripslashes|default:$userName}\" /> &nbsp; \r\n<b>From Email:&nbsp;</b><input type=\"text\" name=\"fromEmail\" value=\"{$smarty.request.fromEmail|default:$user->email}\" /><br />\r\n<b>Subject Line:&nbsp;</b><input type=\"text\" name=\"mailSubject\" value=\"{$smarty.request.mailSubject|stripslashes}\" style=\"width:380px;\" /><br /><br />\r\n\r\n<b><input type=\"checkbox\" name=\"toNewsletterSubscribers\" value=\"1\" /> Send to All Newsletter Subscribers?</b>\r\n<br/><br />\r\n\r\n<b>Select each Company:</b> <small>(hold <b>CTRL</b> key)</small><br />\r\n<select name=\"toCompanies[]\" multiple>{foreach from=$aCompanies item=\"row\"}\r\n	<option value=\"{$row.id}\">{$row.name} - {$row.description}</option>{/foreach}\r\n</select><br />\r\n<small><em>* Will not send message to addresses in the OPT-OUT database table.</em></small><br /><br />\r\n\r\n<b>Select the Email Groups:</b> <small>(hold <b>CTRL</b> key)</small><br />\r\n<select name=\"toGroups[]\" multiple>{foreach from=$aGroups item=\"row\"}\r\n	<option value=\"{$row.name}\">{$row.name} - {$row.description}</option>{/foreach}\r\n</select><br />\r\n<small><em>* Will not send message to addresses in the OPT-OUT database table.</em></small><br /><br />\r\n\r\n<b>Enter Additional Email Addresses: <small>(comma delimited)</small></b>\r\n<textarea style=\"width:500px;display:block;\" name=\"toAddresses\"></textarea>\r\n<small><em>* These addresses are not checked against the OPT-OUT database table.</em></small><br /><br />\r\n\r\n<b>Title:</b> <small>(to be shown in offline email clients)</small><br />\r\n<input style=\"width:300px;\" type=\"text\" name=\"offlinetitle\" value=\"{$smarty.request.offlinetitle|stripslashes|default:\'eHealthComplete Newsletter\'}\" /><br />\r\n\r\n<br />\r\n<input type=\"checkbox\" name=\"hidestorelink\" /> <b>Hide Store Link?</b><br />\r\n<input type=\"checkbox\" name=\"hidebannerad\" /> <b>Hide Banner Ad?</b> <small>(not necessary if no ad image is entered)</small><br />\r\n<input type=\"checkbox\" name=\"hidesponsorads\" /> <b>Hide Sponsor Images</b> <small>(not necessary if no sponsor images are entered)</small><br />\r\n<br />\r\n<b>Main Banner Image:</b><br/>\r\n* Note: this will not change the image until a caching error is resolved.<br/>\r\n<script>{literal}\r\nfunction setMainBannerImage(str) {\r\ndocument.getElementById(\'mainbannerimage\').src=\"/systems/wlw/layouts/newsletter/\" + str;\r\n}\r\n{/literal}</script>\r\n<img id=\"mainbannerimage\" src=\"/systems/wlw/layouts/newsletter/{$smarty.request.mainbannerimage|stripslashes|default:\"banner_shoes.jpg\"}\" style=\"border:2px solid #000000; margin:5px 0px;\"><br/>\r\n{php}\r\nglobal $SPADE;\r\n$bannerimages = array(\r\narray(\"name\" => \"banner_apples.jpg\", \"title\" => \"Apples\"),\r\narray(\"name\" => \"banner_autumn.jpg\", \"title\" => \"Autumn Trees\"),\r\narray(\"name\" => \"banner_basketball.jpg\", \"title\" => \"Basketball\"),\r\narray(\"name\" => \"banner_beach.jpg\", \"title\" => \"Beach\"),\r\narray(\"name\" => \"banner_fruit.jpg\", \"title\" => \"Fruit Splashing\"),\r\narray(\"name\" => \"banner_grass.jpg\", \"title\" => \"Grass & Sky\"),\r\narray(\"name\" => \"banner_jogging.jpg\", \"title\" => \"Jogging People\"),\r\narray(\"name\" => \"banner_jumping.jpg\", \"title\" => \"Jumping Girl\"),\r\narray(\"name\" => \"banner_kiwi.jpg\", \"title\" => \"Kiwis\"),\r\narray(\"name\" => \"banner_palmtrees.jpg\", \"title\" => \"Palm Trees & Ocean\"),\r\narray(\"name\" => \"banner_pond.jpg\", \"title\" => \"Pond\"),\r\narray(\"name\" => \"banner_pumpkins1.jpg\", \"title\" => \"Pumpkins #1\"),\r\narray(\"name\" => \"banner_pumpkins2.jpg\", \"title\" => \"Pumpkins #2\"),\r\narray(\"name\" => \"banner_rose.jpg\", \"title\" => \"Rose\"),\r\narray(\"name\" => \"banner_runner.jpg\", \"title\" => \"Runner\"),\r\narray(\"name\" => \"banner_scale.jpg\", \"title\" => \"Weight Scale\"),\r\narray(\"name\" => \"banner_shoes.jpg\", \"title\" => \"Running Shoes\"),\r\narray(\"name\" => \"banner_snowman.jpg\", \"title\" => \"Snowman\"),\r\narray(\"name\" => \"banner_springtime.jpg\", \"title\" => \"Girl Smiling\"),\r\narray(\"name\" => \"banner_thanksgiving1.jpg\", \"title\" => \"Thanksgiving #1\"),\r\narray(\"name\" => \"banner_thanksgiving2.jpg\", \"title\" => \"Thanksgiving #2\"),\r\narray(\"name\" => \"banner_tulips.jpg\", \"title\" => \"Tulips\"),\r\narray(\"name\" => \"banner_vegetables.jpg\", \"title\" => \"Vegetables\"),\r\narray(\"name\" => \"banner_weights.jpg\", \"title\" => \"Weights\"),\r\narray(\"name\" => \"banner_wheat.jpg\", \"title\" => \"Wheat\"),\r\narray(\"name\" => \"banner_winter.jpg\", \"title\" => \"Winter\")\r\n);\r\n$SPADE[\'template\']->assign(\"bannerimages\", $bannerimages);\r\n{/php}\r\n<table border=\"0\">\r\n<tr>\r\n{foreach name=banners item=b from=$bannerimages}\r\n<td><input type=\"radio\" name=\"mainbannerimage\" value=\"{$b.name}\" {if $smarty.request.mainbannerimage == $b.name}checked{/if} onclick=\"setMainBannerImage(this.value);\"/> {$b.title}</td>\r\n{if $smarty.foreach.banners.iteration % 3 == 0 && !$smarty.foreach.banners.last}</tr><tr>{/if}\r\n{/foreach}\r\n</tr>\r\n</table>\r\n<br/>\r\n<table border=\"0\">\r\n<tr><td colspan=\"4\"><b>Banner Ad:</b></td></tr>\r\n<tr>\r\n<td><small>Image URL:</small></td><td><input type=\"text\" name=\"bannerimage\" value=\"{$smarty.request.bannerimage|stripslashes}\" /></td>\r\n<td><small>Link URL:</small></td><td><input type=\"text\" name=\"bannerurl\" value=\"{$smarty.request.bannerurl|stripslashes}\" /></td>\r\n</tr>\r\n<tr><td colspan=\"4\"><b>Sponsor Ads:</b></td></tr>\r\n<tr>\r\n<td><small>Image URL:</small></td><td><input type=\"text\" name=\"sponsor1image\" value=\"{$smarty.request.sponsor1image|stripslashes}\" /></td>\r\n<td><small>Link URL:</small></td><td><input type=\"text\" name=\"sponsor1url\" value=\"{$smarty.request.sponsor1url|stripslashes}\" /></td>\r\n</tr>\r\n<tr>\r\n<td><small>Image URL:</small></td><td><input type=\"text\" name=\"sponsor2image\" value=\"{$smarty.request.sponsor2image|stripslashes}\" /></td>\r\n<td><small>Link URL:</small></td><td><input type=\"text\" name=\"sponsor2url\" value=\"{$smarty.request.sponsor2url|stripslashes}\" /></td>\r\n</tr>\r\n<tr>\r\n<td><small>Image URL:</small></td><td><input type=\"text\" name=\"sponsor3image\" value=\"{$smarty.request.sponsor3image|stripslashes}\" /></td>\r\n<td><small>Link URL:</small></td><td><input type=\"text\" name=\"sponsor3url\" value=\"{$smarty.request.sponsor3url|stripslashes}\" /></td>\r\n</tr>\r\n<tr>\r\n<td><small>Image URL:</small></td><td><input type=\"text\" name=\"sponsor4image\" value=\"{$smarty.request.sponsor4image|stripslashes}\" /></td>\r\n<td><small>Link URL:</small></td><td><input type=\"text\" name=\"sponsor4url\" value=\"{$smarty.request.sponsor4url|stripslashes}\" /></td>\r\n</tr>\r\n<tr>\r\n<td><small>Image URL:</small></td><td><input type=\"text\" name=\"sponsor5image\" value=\"{$smarty.request.sponsor5image|stripslashes}\" /></td>\r\n<td><small>Link URL:</small></td><td><input type=\"text\" name=\"sponsor5url\" value=\"{$smarty.request.sponsor5url|stripslashes}\" /></td>\r\n</tr>\r\n<tr>\r\n<td><small>Image URL:</small></td><td><input type=\"text\" name=\"sponsor6image\" value=\"{$smarty.request.sponsor6image|stripslashes}\" /></td>\r\n<td><small>Link URL:</small></td><td><input type=\"text\" name=\"sponsor6url\" value=\"{$smarty.request.sponsor6url|stripslashes}\" /></td>\r\n</tr>\r\n<tr>\r\n<td><small>Image URL:</small></td><td><input type=\"text\" name=\"sponsor7image\" value=\"{$smarty.request.sponsor7image|stripslashes}\" /></td>\r\n<td><small>Link URL:</small></td><td><input type=\"text\" name=\"sponsor7url\" value=\"{$smarty.request.sponsor7url|stripslashes}\" /></td>\r\n</tr>\r\n<tr>\r\n<td><small>Image URL:</small></td><td><input type=\"text\" name=\"sponsor8image\" value=\"{$smarty.request.sponsor8image|stripslashes}\" /></td>\r\n<td><small>Link URL:</small></td><td><input type=\"text\" name=\"sponsor8url\" value=\"{$smarty.request.sponsor8url|stripslashes}\" /></td>\r\n</tr>\r\n<tr>\r\n<td><small>Image URL:</small></td><td><input type=\"text\" name=\"sponsor9image\" value=\"{$smarty.request.sponsor9image|stripslashes}\" /></td>\r\n<td><small>Link URL:</small></td><td><input type=\"text\" name=\"sponsor9url\" value=\"{$smarty.request.sponsor9url|stripslashes}\" /></td>\r\n</tr>\r\n<tr>\r\n<td><small>Image URL:</small></td><td><input type=\"text\" name=\"sponsor10image\" value=\"{$smarty.request.sponsor10image|stripslashes}\" /></td>\r\n<td><small>Link URL:</small></td><td><input type=\"text\" name=\"sponsor10url\" value=\"{$smarty.request.sponsor10url|stripslashes}\" /></td>\r\n</tr>\r\n\r\n</table>\r\n<small><em>* image urls MUST be absolute (e.g. \"http://...\").</em></small><br />\r\n\r\n<br />\r\n<b>Custom Logo URL:</b><br />\r\n<input style=\"width:300px;\" type=\"text\" name=\"logo\" value=\"{$smarty.request.logo|stripslashes}\" /><br />\r\n<small><em>* image urls MUST be absolute (e.g. \"http://...\"). Default is eHealthCompete logo.</em></small><br />\r\n<br/>\r\n<b>Feature Image URL:</b><br />\r\n<input style=\"width:300px;\" type=\"text\" name=\"featureimage\" value=\"{$smarty.request.featureimage|stripslashes}\" /><br />\r\n<small><em>* image urls MUST be absolute (e.g. \"http://...\").</em></small><br />\r\n<b>Feature Title:</b><br />\r\n<input style=\"width:300px;\" type=\"text\" name=\"featuretitle\" value=\"{$smarty.request.featuretitle|stripslashes}\" /><br />\r\n<b>Feature Content:</b><br />\r\n<textarea style=\"width:500px;height:200px;\" name=\"featurebody\">{$smarty.request.featurebody|stripslashes}</textarea><br />\r\n\r\n\r\n<br />\r\n<b>Recipe of the Week Title:</b><br />\r\n<input style=\"width:300px;\" type=\"text\" name=\"recipetitle\" value=\"{$smarty.request.recipetitle|stripslashes}\" /><br />\r\n<b>Recipe of the Week Content:</b><br />\r\n<textarea style=\"width:500px;height:140px;\" name=\"recipebody\">{$smarty.request.recipebody|stripslashes}</textarea><br />\r\n\r\n<br />\r\n<b>Tip of the Week:</b><br />\r\n<textarea style=\"width:500px;height:100px;\" name=\"tipbody\">{$smarty.request.tipbody|stripslashes}</textarea><br />\r\n\r\n<br />\r\n<b>Hero Highlight:</b><br />\r\n<textarea style=\"width:500px;height:100px;\" name=\"herobody\">{$smarty.request.herobody|stripslashes}</textarea><br />\r\n\r\n<br />\r\n<b>Quote:</b><br />\r\n<textarea style=\"width:500px;height:100px;\" name=\"quotebody\">{$smarty.request.quotebody|stripslashes}</textarea><br />\r\n\r\n<br />\r\n\r\n<div style=\"text-align:right;\">\r\n<input type=\"button\" value=\"Preview HTML\" onclick=\"previewHTML()\">\r\n<input type=\"submit\" name=\"submit_send\" onclick=\"prepareToSend();\" value=\"Send Now\" />\r\n</div>\r\n</div>\r\n\r\n</form>\r\n\r\n<script language=\"javascript\">{literal}\r\nfunction prepareToSend() {\r\n	dF = document.emailForm;\r\n	dF.pg.value = \"sendTemplatedEmail\";	\r\n	dF.target = \'_self\';\r\n\r\n}\r\nfunction previewHTML() {\r\n	dF = document.emailForm;\r\n	dF.pg.value = \"newsletterpreview\";	\r\n\r\n	webPreview = parent.window.open(\"index.php?pg=newsletterpreview\", \"webPreview\", \"fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,directories=no,location=no,width=800,height=600,left=10,top=10\");\r\n	dF.target = \'webPreview\';\r\n	dF.submit();\r\n	webPreview.focus();\r\n}\r\n{/literal}</script>'),(4775,279,0.14,'smarty','1','Page created.',1139336874,1124,'38.118.190.94','{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n\r\n\r\n<hl>Healthy Weight</hl>\r\n<b><p>Understanding the Energy Equation</p></b>\r\n<p>Whether you want to lose weight or maintain a healthy weight, it’s important to understand the connection between the energy your body takes in (through the foods you eat and the beverages you drink) and the energy your body uses (through the activities you do). To lose weight, you need to use more calories than you take in. To maintain a healthy weight, you need to balance the calories you use with those you take in. No matter which results you want, eating a healthy diet and being physically active can help you reach your goal. </p>\r\n\r\n<p>Want to find out if you are at a healthy weight? Use our Body Mass Index (BMI) calculator.</p>\r\n<p><b>Getting the Most Nutrition out of Your Calories</b></p>\r\n<p>There is a right number of calories for you to eat each day. This number depends on your age, activity level, and whether you are trying to gain, maintain, or lose weight. You could use up the entire amount on a few high-calorie foods, but chances are, you won’t get the full range of vitamins and nutrients your body needs to be healthy.</p>\r\n\r\n<p>Choose the most nutritionally rich foods you can from each food group each day – those packed with vitamins, minerals, fiber, and other nutrients, but lower in calories. Pick foods like fruits, vegetables, whole grains, and fat-free or low-fat milk and milk products more often.</p>\r\n\r\n<p>For more information about food choices and appropriate calories, visit the Dietary Guidelines for Americans 2005 and MyPyramid.gov.</p>\r\n\r\n\r\n<p><b>Finding Your Balance between Food and Physical Activity</b></p>\r\n<p>Becoming a healthier you isn’t just about eating healthy – it’s also about physical activity. Regular physical activity is important for your overall health and fitness. It also helps you control body weight by balancing the calories you take in as food with the calories you expend each day. </p>\r\n<p>Be physically active, at a moderate intensity for at least 30 minutes most days of the week. </p>\r\n<p>Increasing the intensity or the amount of time that you are physically active can have even greater health benefits and may be needed to control body weight. About 60 minutes a day may be needed to prevent weight gain. </p>\r\n<p>Children and teenagers should be physically active 60 minutes every day, or most every day.</p> \r\n'),(4776,278,0.13,'smarty','1','Page created.',1139336936,1124,'38.118.190.94','{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n\r\n\r\n<hl><b>Overweight and Obesity</b></hl>\r\n\r\n<p>During the past 20 years, obesity among adults has risen significantly in the United States. The latest data from the National Center for Health Statistics show that 30 percent of U.S. adults 20 years of age and older—over 60 million people—are obese. \r\nThis increase is not limited to adults. The percentage of young people who are overweight has more than tripled since 1980. Among children and teens aged 6–19 years, 16 percent (over 9 million young people) are considered overweight.</p>\r\n<p>These increasing rates raise concern because of their implications for Americans’ health. Being overweight or obese increases the risk of many diseases and health conditions, including the following:</p>\r\n<p>Hypertension</p> \r\n<p>Dyslipidemia (for example, high total cholesterol or high levels of triglycerides)</p> \r\n<p>Type 2 diabetes </p>\r\n<p>Coronary heart disease </p>\r\n<p>Stroke </p>\r\n<p>Gallbladder disease </p>\r\n<p>Osteoarthritis </p>\r\n<p>Sleep apnea and respiratory problems </p>\r\n<p>Some cancers (endometrial, breast, and colon) </p>\r\n<p>Although one of the national health objectives for the year 2010 is to reduce the prevalence of obesity among adults to less than 15%, current data indicate that the situation is worsening rather than improving. This site provides a variety of information designed to help people understand this serious health issue and the efforts being made to address it.</p>\r\n<img src=\"http://www.cdc.gov/nccdphp/dnpa/obesity/images/obesity_graphic.jpg\" border=\"0\"></img>'),(4777,280,0.10,'smarty','0','Page created.',1139337230,1124,'38.118.190.94',''),(4785,282,0.10,'smarty','0','Page created.',1139338354,1124,'38.118.190.94',''),(4786,282,0.11,'smarty','0','Page created.',1139338432,1124,'38.118.190.94','<hl><b>Why Uncle Sam Won\'t Tell You What Not to Eat</b></hl>\r\n<p>By Michele Simon. Originally published in the San Francisco Chronicle, January 19, 2005</p>\r\n<p>In January, the federal government released its Dietary Guidelines for Americans 2005. Updated once every five years based on the latest science, the 70-page document purports to tell us which foods are best to eat to stay healthy.</p>\r\n<p>While touted as the strongest nutrition recommendations yet, what went unsaid speaks volumes about why Americans continue to be left in the dark when it comes to eating right. Most media reports focused on the guidelines\' emphasis on weight loss, especially the recommendation to exercise daily. But why is a document that\'s supposed to be about food talking about exercise? Yes, exercise is important to good health, but so are a number of other lifestyle factors, such as sufficient sleep and not smoking, yet those aren\'t mentioned.</p>\r\n<p>Emphasizing weight loss conveniently puts the onus for dietary change on the individual and avoids talk of reining in the food industry\'s multibillion-dollar marketing budget for unhealthy foods. \"It\'s just common sense,\" explained outgoing Health and Human Services Secretary Tommy Thompson. \"Eat less, exercise more,\" he cheerfully instructed Americans.</p>\r\n<p>Stressing weight loss also avoids the much harder job of telling Americans the truth about specifically what not to eat. The government\'s recommendations only tell part of the story; the politically expedient part.</p>\r\n<p>Under the heading of \"Food Groups to Encourage,\" are fruits, vegetables and whole grains, foods that most Americans desperately need to increase. Trouble is, many of those same Americans don\'t even know what a whole grain is or where to find one. You can\'t go to the supermarket and ask for the whole- grain aisle. (Sadly, though, you can ask for the potato-chip aisle or the cookie aisle or the soda aisle.)</p>\r\n<p>Americans have become accustomed to eating highly processed foods that come in a package -- the antithesis of whole foods that come from nature. The very definition of food has been transformed by industry, yet the dietary guidelines don\'t reflect that. If they did, it would be a major threat to a $500 billion-a-year processed foods industry whose voice is heard loud and clear in Washington.</p>\r\n<p>Responding to that threat, companies such as General Mills are already jumping on the \"healthy food\" bandwagon, announcing that their products will be reformulated to include whole grains. But \"processed whole foods\" is an oxymoron. Real whole grains come from nature, such as brown rice instead of Uncle Ben\'s white rice or plain oatmeal instead of Cheerios with added sugar and salt. Don\'t let the food industry fool you into thinking it can manufacture healthy foods. That\'s nature\'s job.</p>\r\n<p>Another processed-food secret the federal government won\'t tell you is how to avoid trans fats. In a teleconference last week, Dr. Carlos Camargo of Harvard Medical School and a member of the dietary guidelines committee said he was \"disappointed\" that the experts\' unanimous recommendation to limit trans fats to 1 percent of calories was completely omitted from the final document. Instead, we are told to simply \"limit intake\" of trans fat.</p>\r\n<p>Why the change? \"Food Politics\" author and New York University professor Marion Nestle explained in an interview with me: \"Trans fat was left vague because otherwise they would have to say where trans fats are – in processed foods.\" In wording that Nestle calls \"incomprehensible,\" the consumer-friendly guidelines brochure recommends that you \"look for foods low in saturated fats and trans fats\" -- the two most common artery-clogging fats in the supermarket.</p>\r\n<p>Why would the government tell you to \"look for\" foods that you really should avoid altogether? Because Uncle Sam cannot say: Don\'t eat too many of the major sources of saturated fats: meats, cheese, milk and eggs. Nor could they tell us to avoid the main sources of trans fats: baked goods such as chips, cakes and cookies. That would ruffle too many industry feathers. Keeping the wording as vague as possible is good for big business.</p>\r\n<p>Some nutritionists were understandably pleased with the government\'s sugar recommendation this time around. That the sugar industry has been complaining so loudly is certainly a good sign. Yet, part of the advice is simply to choose beverages with \"little added sugars\" -- still pretty fuzzy language.</p>\r\n<p>Americans need is to be told outright: Stop drinking so much Coke. People don\'t think in terms of ingredients. Most consumers don\'t even buy ingredients anymore because they don\'t cook. We think in terms of packaged-food brand names and fast-food menu items. Imagine dietary guidelines that said: Stop eating Big Macs, Doritos and Oreos. Those are recommendations most Americans could understand, but not ones we are likely to hear. Until people are told the entire truth, instead of meaningless messages such as \"eat less,\" the nation\'s health will continue to suffer.</p>\r\n'),(4782,280,0.11,'smarty','0','Page created.',1139338109,1124,'38.118.190.94','\r\n\r\n<hl><b>BARRIERS TO PHYSICAL ACTIVITY</b></hl>\r\n<p><b>Environmental Barriers</b></p>\r\n<p>Social environments such as school, work, family and friends can significantly influence an individual\'s level of physical activity. However, characteristics of our communities such as the accessibility and location of parks, trails, sidewalks, and recreational centers as well as street design, density of housing, and availability of public transit may play and even greater role in promoting or discouraging an individual or family\'s level of physical activity. There are also significant environmental barriers from water and air pollution to crime and dangerous automobile traffic.</p>\r\n<p>To address this, the Centers for Disease Control and Prevention has initiated the ACES: Active Community Environments Initiative project to promote and support the awareness and development of places where people of all ages and abilities can easily enjoy walking, bicycling, and other forms of recreation. </p>\r\n<p>There are many opportunities within our environment that support physical activities from parks, trails, and sidewalks to recreation and fitness centers. Even malls provide opportunities for fitness walking. Understanding environmental opportunities and barriers that we face in our pursuit for a healthy lifestyle may provide some of the knowledge necessary to promote healthy living. This information may also provide ideas for advocacy and civic participation.</p> \r\n<p>For more information on the Active Community Environments Initiative and how you can support a positive environment for physical activity in your community, please visit ACES: Active Community Environments Initiative. </p>\r\n\r\n<p><b>Personal Barriers</b></p>\r\n<p>Aside from the many technological advances and conveniences that have made our lives easier and less active, many personal variables, including physiological, behavioral, and psychological factors, may affect our plans to become more physically active. In fact, the 10 most common reasons adults cite for not adopting more physically active lifestyles are (Sallis and Hovell, 1990; Sallis et al., 1992)</p>\r\n<p> <li>Do not have enough time to exercise</li> </p>\r\n<p> <li>Find it inconvenient to exercise</li> </p>\r\n<p> <li>Lack self-motivation </li></p>\r\n<p> <li>Do not find exercise enjoyable</li> </p>\r\n<p> <li>Find exercise boring</li> </p>\r\n<p> <li>Lack confidence in their ability to be physically active (low self-efficacy) </li></p>\r\n<p> <li>Fear being injured or have been injured recently </li></p>\r\n<p> <li>Lack self-management skills, such as the ability to set personal goals, monitor progress, or reward progress toward such goals </li></p>\r\n<p> <li>Lack encouragement, support, or companionship from family and friends, and </li></p>\r\n<p> <li>Do not have parks, sidewalks, bicycle trails, or safe and pleasant walking paths convenient to their homes or offices. </li> </p>\r\n\r\n'),(4783,280,0.12,'smarty','0','Page created.',1139338147,1124,'38.118.190.94','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n\r\n<hl><b>BARRIERS TO PHYSICAL ACTIVITY  NEW 2/6/06 </b></hl>\r\n<p><b>Environmental Barriers</b></p>\r\n<p>Social environments such as school, work, family and friends can significantly influence an individual\'s level of physical activity. However, characteristics of our communities such as the accessibility and location of parks, trails, sidewalks, and recreational centers as well as street design, density of housing, and availability of public transit may play and even greater role in promoting or discouraging an individual or family\'s level of physical activity. There are also significant environmental barriers from water and air pollution to crime and dangerous automobile traffic.</p>\r\n<p>To address this, the Centers for Disease Control and Prevention has initiated the ACES: Active Community Environments Initiative project to promote and support the awareness and development of places where people of all ages and abilities can easily enjoy walking, bicycling, and other forms of recreation. </p>\r\n<p>There are many opportunities within our environment that support physical activities from parks, trails, and sidewalks to recreation and fitness centers. Even malls provide opportunities for fitness walking. Understanding environmental opportunities and barriers that we face in our pursuit for a healthy lifestyle may provide some of the knowledge necessary to promote healthy living. This information may also provide ideas for advocacy and civic participation.</p> \r\n<p>For more information on the Active Community Environments Initiative and how you can support a positive environment for physical activity in your community, please visit ACES: Active Community Environments Initiative. </p>\r\n\r\n<p><b>Personal Barriers</b></p>\r\n<p>Aside from the many technological advances and conveniences that have made our lives easier and less active, many personal variables, including physiological, behavioral, and psychological factors, may affect our plans to become more physically active. In fact, the 10 most common reasons adults cite for not adopting more physically active lifestyles are (Sallis and Hovell, 1990; Sallis et al., 1992)</p>\r\n<p> <li>Do not have enough time to exercise</li> </p>\r\n<p> <li>Find it inconvenient to exercise</li> </p>\r\n<p> <li>Lack self-motivation </li></p>\r\n<p> <li>Do not find exercise enjoyable</li> </p>\r\n<p> <li>Find exercise boring</li> </p>\r\n<p> <li>Lack confidence in their ability to be physically active (low self-efficacy) </li></p>\r\n<p> <li>Fear being injured or have been injured recently </li></p>\r\n<p> <li>Lack self-management skills, such as the ability to set personal goals, monitor progress, or reward progress toward such goals </li></p>\r\n<p> <li>Lack encouragement, support, or companionship from family and friends, and </li></p>\r\n<p> <li>Do not have parks, sidewalks, bicycle trails, or safe and pleasant walking paths convenient to their homes or offices. </li> </p>\r\n\r\n'),(4784,280,0.13,'smarty','0','Page created.',1139338275,1124,'38.118.190.94','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n\r\n<hl><b>NEW 2/6!! Barriers to Physical Activity</b></hl>\r\n<p><b>Environmental Barriers</b></p>\r\n<p>Social environments such as school, work, family and friends can significantly influence an individual\'s level of physical activity. However, characteristics of our communities such as the accessibility and location of parks, trails, sidewalks, and recreational centers as well as street design, density of housing, and availability of public transit may play and even greater role in promoting or discouraging an individual or family\'s level of physical activity. There are also significant environmental barriers from water and air pollution to crime and dangerous automobile traffic.</p>\r\n<p>To address this, the Centers for Disease Control and Prevention has initiated the ACES: Active Community Environments Initiative project to promote and support the awareness and development of places where people of all ages and abilities can easily enjoy walking, bicycling, and other forms of recreation. </p>\r\n<p>There are many opportunities within our environment that support physical activities from parks, trails, and sidewalks to recreation and fitness centers. Even malls provide opportunities for fitness walking. Understanding environmental opportunities and barriers that we face in our pursuit for a healthy lifestyle may provide some of the knowledge necessary to promote healthy living. This information may also provide ideas for advocacy and civic participation.</p> \r\n<p>For more information on the Active Community Environments Initiative and how you can support a positive environment for physical activity in your community, please visit ACES: Active Community Environments Initiative. </p>\r\n\r\n<p><b>Personal Barriers</b></p>\r\n<p>Aside from the many technological advances and conveniences that have made our lives easier and less active, many personal variables, including physiological, behavioral, and psychological factors, may affect our plans to become more physically active. In fact, the 10 most common reasons adults cite for not adopting more physically active lifestyles are (Sallis and Hovell, 1990; Sallis et al., 1992)</p>\r\n<p> <li>Do not have enough time to exercise</li> </p>\r\n<p> <li>Find it inconvenient to exercise</li> </p>\r\n<p> <li>Lack self-motivation </li></p>\r\n<p> <li>Do not find exercise enjoyable</li> </p>\r\n<p> <li>Find exercise boring</li> </p>\r\n<p> <li>Lack confidence in their ability to be physically active (low self-efficacy) </li></p>\r\n<p> <li>Fear being injured or have been injured recently </li></p>\r\n<p> <li>Lack self-management skills, such as the ability to set personal goals, monitor progress, or reward progress toward such goals </li></p>\r\n<p> <li>Lack encouragement, support, or companionship from family and friends, and </li></p>\r\n<p> <li>Do not have parks, sidewalks, bicycle trails, or safe and pleasant walking paths convenient to their homes or offices. </li> </p>\r\n\r\n'),(3202,197,0.26,'smarty','0','Page created.',1109653110,2,'67.166.75.78','{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n{include_php file=\"shared_handle:acceptRejectRequests\"} \r\n{include_php file=\"shared_handle:myHome\"}\r\n{include_php file=\"shared_handle:availableCompetitions\"}\r\n<h1>{$page.title}</h1>\r\n\r\n<table width=\"100%\"><tr><td valign=\"top\">\r\n	<img class=\"iconRacers\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" />\r\n</td><td valign=\"top\" width=\"100%\">\r\n	<h2 class=\"withBG\">\r\n		<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'inComps\', \'\', \'showHide\');\"><img id=\"inComps_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n		Competitions I Am In</h2>\r\n	\r\n	<div id=\"inComps\" style=\"display:block;\">	\r\n		<div id=\"inCompsContents\">\r\n		<table cellspacing=\"0\" cellpadding=\"1\" align=\"center\">\r\n		<tr>\r\n			<td class=\"underline2\"><span>&nbsp;<b>Title</b></span></td>\r\n			<td class=\"underline2\"><span>&nbsp;<b>Style</b></span></td>\r\n			<td class=\"underline2\" nowrap><span>&nbsp;<b>Time Remaining</b></span></td>\r\n			<td class=\"underline2\" nowrap><span>&nbsp;<b>Ends</b></span></td>\r\n			<td class=\"underline2\" nowrap><span>&nbsp;<b>Prize</b></span></td>\r\n		</tr>\r\n		{* Set up the warning period... 7 days from now (604800 = 7 days in seconds) *}\r\n		{math assign=\"endsSoon\" equation=\"x + y\" x=$smarty.now|default:604800 y=\"604800\"}\r\n		{foreach from=$competitions item=\"comp\"}\r\n		<tr>\r\n			<td nowrap=\"nowrap\"><span><small>&nbsp;<a href=\"?pg=competition&cid={$comp.id}\">{$comp.title|truncate:35:\"...\"}</a> &nbsp;</small></span></td>\r\n			<td nowrap=\"nowrap\"><span><small>&nbsp;{if $comp.style eq \"Group-vs-Group\"}Team{else}Individual{/if}</small> &nbsp;</span></td>\r\n			<td nowrap><span><small{if $comp.endDate lt $smarty.now} style=\"font-weight:bold;\"{elseif $comp.endDate lt $endsSoon} style=\"color:#C00;font-weight:bold;\"{/if}>&nbsp;{$comp.timeLeft|default:\"--\"}</small> &nbsp;</span></td>\r\n			<td nowrap=\"nowrap\"><span><small{if $comp.endDate lt $smarty.now} style=\"font-weight:bold;\"{elseif $comp.endDate lt $endsSoon} style=\"color:#C00;font-weight:bold;\"{/if}>&nbsp;{$comp.endDate|date_format2:\"D n/j/y\"}</small> &nbsp;</span></td>\r\n			<td nowrap=\"nowrap\" align=\"right\"><span><small>&nbsp;{if not $comp.potAmount and $comp.potDescription}(Special){else}{math assign=\"fontSizeFactor\" equation=\"x / y\" x=$comp.potAmount|default:10 y=\"100\"}{math assign=\"fontSize\" equation=\"x + y\" x=\"11\" y=$fontSizeFactor|number_format:\"0\"}<span style=\"font-size:{$fontSize}px;\">${$comp.potAmount|number_format:\"0\"}</span>{/if}</small> &nbsp;</span></td>\r\n		</tr>\r\n		{foreachelse}\r\n		<tr>\r\n			<td colspan=\"6\"><span><small>You have not joined any competitions.</small></span></td>\r\n		</tr>\r\n		{/foreach}\r\n		</table>\r\n		</div>\r\n</td></tr>\r\n</table>\r\n\r\n<blockquote>\r\n<table width=\"100%\">\r\n<tr><td valign=\"top\" width=\"50%\">\r\n	<img src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" class=\"icoMedal\" />\r\n	<a href=\"#\">Available Competitions</a></td>\r\n    <td valign=\"top\" width=\"50%\">\r\n	{*\r\n	<img src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" class=\"icoClick\" />\r\n	<a href=\"#\">Competitions I have started</a>\r\n	*}</td>\r\n</tr>\r\n</table>\r\n</blockquote>\r\n\r\n</div>'),(3203,189,0.26,'smarty','0','Page created.',1109653152,2,'67.166.75.78','<h1>{$page.title}</h1>\r\n<h2>{$smarty.session.company.companyName}</h2>\r\n\r\n<hr />\r\n\r\n{include_php file=\"shared_handle:availableCompetitions\"}\r\n\r\n<form name=\"joinCompetitions\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n\r\n{style_table folder=\"img/st/floatbox\"}\r\n  <table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" width=\"100%\">\r\n	<tr>\r\n		<td bgcolor=\"#CCCCCC\">&nbsp;</td>\r\n		<td bgcolor=\"#CCCCCC\"><b>ID #</b></td>\r\n		<td bgcolor=\"#CCCCCC\"><b>Title</b></td>\r\n		<td bgcolor=\"#CCCCCC\"><b>Start Date</b></td>\r\n		<td bgcolor=\"#CCCCCC\"><b>End Date</b></td>\r\n		<td bgcolor=\"#CCCCCC\"><b>Style</b></td>\r\n		<td bgcolor=\"#CCCCCC\"><b>Scoring Method</b></td>\r\n	</tr>\r\n	{foreach from=$availableCompetitions item=\"comp\"}\r\n	<tr>\r\n		{if not $user->inGroupName($comp.code)}\r\n		{assign var=\"isJoinable\" value=\"true\"}\r\n		<td><input type=\"checkbox\" name=\"joinComp[]\" value=\"{$comp.id}\" /></td>\r\n		<td>{$comp.id}</td>\r\n		<td>{$comp.title}</td>\r\n		<td>{$comp.startDate|date_format2:\"D n/j/y\"}</td>\r\n		<td>{$comp.endDate|date_format2:\"D n/j/y\"}</td>\r\n		<td>{$comp.style}</td>\r\n		<td>{$comp.scoringMethod}</td>\r\n		{else}\r\n		{assign var=\"isInComps\" value=\"true\"}\r\n		<td bgcolor=\"#FFCCCC\">&times;</td>\r\n		<td bgcolor=\"#FFCCCC\"><i>{$comp.id}</i></td>\r\n		<td bgcolor=\"#FFCCCC\"><i>{$comp.title}</i></td>\r\n		<td bgcolor=\"#FFCCCC\"><i>{$comp.startDate|date_format2:\"D n/j/y\"}</i></td>\r\n		<td bgcolor=\"#FFCCCC\"><i>{$comp.endDate|date_format2:\"D n/j/y\"}</i></td>\r\n		<td bgcolor=\"#FFCCCC\"><i>{$comp.style}</i></td>\r\n		<td bgcolor=\"#FFCCCC\"><i>{$comp.scoringMethod}</i></td>\r\n		{/if}\r\n	</tr>\r\n	{foreachelse}\r\n	<tr>\r\n		<td colspan=\"7\" align=\"center\">Sorry. There are currently no active competitions available.</td>\r\n	</tr>	\r\n	{/foreach}\r\n  </table>\r\n{/style_table}\r\n\r\n<br />\r\n<div align=\"center\">{if $isJoinable}<input type=\"submit\" name=\"submitBtn\" value=\"Join Selected Competitions\" />{else}<b>No Competitions To Join</b>{/if}</div>\r\n{if $isInComps}\r\n<br />\r\n<div style=\"background-color:#FCC; margin-left:20px; width:250px;\">&times; - You are already a member</div>\r\n{/if}\r\n\r\n</form>'),(3177,175,0.51,'smarty','0','Changed back to normal, but target pg is now myhome',1109228326,2,'67.166.75.78','{if $user->isLoggedIn()}\r\n	{store_messages}\r\n	{* TEMPORARY FIX *}\r\n	{if $smarty.session.company.companyVanity eq \"abc\"}\r\n		{redirect href=\"index.php?pg=my_home\"}\r\n	{else}\r\n		{redirect href=\"index.php?pg=myhome\"}\r\n	{/if}\r\n{else}\r\n{assign var=\"hideLogin\" value=\"true\"}\r\n<table align=\"center\" width=\"305\" cellpadding=\"0\" cellspacing=\"0\">\r\n<tr><td align=\"center\">\r\n	<h2>{$smarty.session.company.companyName}</h2>\r\n</td></tr>\r\n<tr><td>\r\n	<div align=\"center\" class=\"chunk300\">\r\n		<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n		<input type=\"hidden\" name=\"pg\" value=\"myhome\" />\r\n		<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:$signup.return|default:\"home\"}\" />\r\n		<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n		<input type=\"hidden\" name=\"forgotPassword\" value=\"\" />\r\n	\r\n		<h2 class=\"withBG\">Log In:</h2>\r\n			Username: <input id=\"usernameBox2\" type=\"text\" name=\"username\" value=\"{$smarty.request.username}\" class=\"textInput\" size=\"12\" /><br />\r\n			Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n			<div class=\"underline\">&nbsp;</div>\r\n			<a href=\"javascript:document.forms[\'loginForm2\'].submit();\">Submit</a> | <a href=\"javascript:doForgotPassword(\'usernameBox2\', \'loginForm2\');\">Forgot Password?</a>\r\n			<input type=\"submit\" name=\"loginSubmit\" value=\"Submit\" style=\"position:absolute; top:-300px; left:-300px;\" />\r\n		</form>\r\n		<script language=\"javascript\">\r\n			document.forms.loginForm2.username.focus();\r\n		</script>\r\n	</div>\r\n</td></tr>\r\n<tr><td align=\"right\">\r\n	<br />\r\n	<small>Not registered yet?</small> <a href=\"?pg=signup/begin\">Sign Up Now!</a> &nbsp;\r\n</td></tr>\r\n</table>\r\n{/if}'),(1914,102,0.36,'smarty','0','moved explanitory content into chunk divs',1088341140,3,'24.10.220.247','{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n\r\n<h1 class=\"underline\">Sign Up - Step 2 - Your Goals</h1>\r\n<p>This step includes recording you initial weight and goals. Each field will be used to calculate other factors including your Body Mass Index. To hide your body weight from others select \'Yes.\' By selecting \'Yes\' others will only see your change in weight (i.e. -5 lbs).</p>\r\n\r\n{include_php file=\"shared_handle:signup.details\"}\r\n\r\n<div>\r\n\r\n{toc_next assign=\"next\"}\r\n{toc_prev assign=\"prev\"}\r\n<form name=\"signup\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$next.pageName}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr><td>\r\n\r\n<div class=\"chunk300\" style=\"width:310px;\">\r\n<h2 class=\"withBG\">Personal Profile</h2>\r\nDate of Birth:\r\n{get_month name=\"signup[dob][month]\"}\r\n{get_day   name=\"signup[dob][day]\"}\r\n{math assign=\"end_year\" equation=\"x - 18\" x=$smarty.now|date_format2:\"Y\"}  {* Minimum age is 18 years for now *}\r\n{get_year  name=\"signup[dob][year]\" end=$end_year}<br />\r\n\r\nCurrent Weight:\r\n<input type=\"text\" name=\"signup[initialWeight]\" size=\"4\" maxlength=\"3\" class=\"textInput\" style=\"width:25px;\" /><br />\r\n\r\nHide Initial Weight?:\r\n<input type=\"radio\" name=\"signup[hideInitialWeight]\" value=\"Yes\" /> Yes &nbsp; <input type=\"radio\" name=\"signup[hideInitialWeight]\" value=\"No\"{if not $signup[hideInitialWeight]} checked{/if} /> No<br />\r\n\r\nGoal Weight:\r\n<input type=\"text\" name=\"signup[goalWeight]\" size=\"4\" maxlength=\"3\" class=\"textInput\" style=\"width:25px;\" /><br />\r\n\r\nHeight:\r\n<input type=\"text\" name=\"signup[height][feet]\" class=\"textInput\" maxlength=\"1\" style=\"width:18px;\" /> feet, \r\n<input type=\"text\" name=\"signup[height][inches]\" class=\"textInput\" maxlength=\"2\" style=\"width:20px;\" /> inches<br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Goal</h2>\r\n        Your Personal Goal will show up on your about page. This can be changed often as you progress.\r\n	<textarea name=\"signup[personalGoal]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Motto</h2>\r\n        Your Personal Motto will show up on your about page. This can be changed often as you progress.\r\n	<textarea name=\"signup[personalSaying]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Your Signature</h2>\r\n        Your signature will go at the bottom of the messages you post on the discussion board. You can change this signature often. Be creative with your signature!\r\n	<textarea name=\"signup[signature]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<br />\r\n	{if $prev.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\">&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\">{/if}\r\n</div>\r\n\r\n{stored_object_fill_form object=$signup name=\"signup\"}\r\n\r\n</form>\r\n</div>'),(1915,102,0.37,'smarty','0','Removed some redundant verbage for text spacing issues',1088341226,3,'24.10.220.247','{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n\r\n<h1 class=\"underline\">Sign Up - Step 2 - Your Goals</h1>\r\n<p>This step includes recording you initial weight and goals. Each field will be used to calculate other factors including your Body Mass Index. To hide your body weight from others select \'Yes.\' By selecting \'Yes\' others will only see your change in weight (i.e. -5 lbs).</p>\r\n\r\n{include_php file=\"shared_handle:signup.details\"}\r\n\r\n<div>\r\n\r\n{toc_next assign=\"next\"}\r\n{toc_prev assign=\"prev\"}\r\n<form name=\"signup\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$next.pageName}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr><td>\r\n\r\n<div class=\"chunk300\" style=\"width:310px;\">\r\n<h2 class=\"withBG\">Personal Profile</h2>\r\nDate of Birth:\r\n{get_month name=\"signup[dob][month]\"}\r\n{get_day   name=\"signup[dob][day]\"}\r\n{math assign=\"end_year\" equation=\"x - 18\" x=$smarty.now|date_format2:\"Y\"}  {* Minimum age is 18 years for now *}\r\n{get_year  name=\"signup[dob][year]\" end=$end_year}<br />\r\n\r\nCurrent Weight:\r\n<input type=\"text\" name=\"signup[initialWeight]\" size=\"4\" maxlength=\"3\" class=\"textInput\" style=\"width:25px;\" /><br />\r\n\r\nHide Initial Weight?:\r\n<input type=\"radio\" name=\"signup[hideInitialWeight]\" value=\"Yes\" /> Yes &nbsp; <input type=\"radio\" name=\"signup[hideInitialWeight]\" value=\"No\"{if not $signup[hideInitialWeight]} checked{/if} /> No<br />\r\n\r\nGoal Weight:\r\n<input type=\"text\" name=\"signup[goalWeight]\" size=\"4\" maxlength=\"3\" class=\"textInput\" style=\"width:25px;\" /><br />\r\n\r\nHeight:\r\n<input type=\"text\" name=\"signup[height][feet]\" class=\"textInput\" maxlength=\"1\" style=\"width:18px;\" /> feet, \r\n<input type=\"text\" name=\"signup[height][inches]\" class=\"textInput\" maxlength=\"2\" style=\"width:20px;\" /> inches<br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Goal</h2>\r\n        This will show up on your about page. This can be changed often as you progress.\r\n	<textarea name=\"signup[personalGoal]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Motto</h2>\r\n        This will show up on your about page. This can be changed often as you progress.\r\n	<textarea name=\"signup[personalSaying]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Your Signature</h2>\r\n        This will go at the bottom of the messages you post on the discussion board. You can change this signature often. Be creative with your signature!\r\n	<textarea name=\"signup[signature]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<br />\r\n	{if $prev.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\">&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\">{/if}\r\n</div>\r\n\r\n{stored_object_fill_form object=$signup name=\"signup\"}\r\n\r\n</form>\r\n</div>'),(2096,1,2.64,'smarty','0','with a full width hBox',1089778955,16,'64.85.253.211','{if $user->isLoggedIn()}\r\n 	{content_guide name=\"loggedInWelcome\" title=\"Welcome, If User Is Logged In\" cols=\"100\" rows=\"15\"}<h2>Welcome <em>{$user->firstName}</em>,</h2>\r\n<br />\r\nClick on <b>\'My Home\'</b> to monitor and record your weight loss progress from your personal home page.\r\n<br /><br />\r\n\r\n<b>Are you ready to Compete?</b> Now that you\'re a member you can put your weight loss efforts to the test by creating a competition below.\r\nSelect an Arena below to start a weight loss competition and discover just how much fun losing weight can be.\r\n<br />	\r\n<div class=\"pixel underline\">&nbsp;</div>\r\n<br />	{/content_guide}\r\n\r\n{else} \r\n\r\n	{content_guide name=\"loggedOutWelcome\" title=\"Welcome, If User is NOT Logged In\" cols=\"100\" rows=\"15\"}<h1>Are you ready for the challenge?</h1>\r\n<div class=\"pixel underline\">&nbsp;</div>\r\n\r\nToo many hours in front of a computer screen got you out of shape?<br />\r\nHere’s your chance to lose those extra pounds, make a few bucks, and have fun doing it. WeightLossWars allows you to create weight loss competitions among your friends and provides creative tools you need to monitor your progress and the progress of your competitors. Select an Arena below to get started.<br />\r\n<div align=\"right\"><a href=\"?pg=howitworks\" class=\"button\">Find out more.</a></div>\r\n<br />\r\n\r\n<h2 class=\"withBG\">START a competition below!</h2>\r\nSelect an Arena below to create a <u>Weight Loss War!</u> and discover just how much fun losing weight can be.<br />\r\n<br />	{/content_guide}\r\n{/if}\r\n\r\n<form name=\"compTypeForm\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"newcomp/start\">\r\n<input type=\"hidden\" name=\"noExpire\" value=\"true\">\r\n<input type=\"hidden\" name=\"newcomp[type]\" id=\"newcompType\" value=\"\">\r\n\r\n<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"><tr><td>\r\n\r\n		<div id=\"chunk_1\" class=\"chunk\">\r\n			<h2 class=\"withBG\">Corporate</h2>\r\n			<a href=\"javascript://\" onclick=\"document.getElementById(\'newcompType\').value=\'corporate\';compTypeForm.submit();return false;\">\r\n			<img src=\"{$skinFolder}images/icon_money_sm.gif\" width=\"100\" height=\"100\" class=\"icon\" style=\"border:0px;\" /><br />\r\n			<img src=\"{$skinFolder}images/btn_clickHere.gif\" border=\"0\" alt=\"Click here\"/></a><br />\r\n			Discover how WeightLossWars can help your business cut costs, and boost productivity!</div>\r\n		\r\n		<div id=\"chunk_2\" class=\"chunk\">\r\n			<h2 class=\"withBG\">Family/Friends</h2>\r\n			<a href=\"javascript://\" onclick=\"document.getElementById(\'newcompType\').value=\'friends\';compTypeForm.submit();return false;\">\r\n			<img src=\"{$skinFolder}images/icon_family_sm.gif\" width=\"100\" height=\"100\" class=\"icon\" style=\"border:0px;\"  /><br />\r\n			<img src=\"{$skinFolder}images/btn_clickHere.gif\" border=\"0\" alt=\"Click here\"/></a><br />\r\n			\'Call out\' your friends and see who has what it takes to win the Weight War!</div>\r\n			\r\n		<div id=\"chunk_3\" class=\"chunk\">\r\n			<h2 class=\"withBG\">Partner/Spouse</h2>\r\n			<a href=\"javascript://\" onclick=\"document.getElementById(\'newcompType\').value=\'partner\';compTypeForm.submit();return false;\">\r\n			<img src=\"{$skinFolder}images/icon_weights_sm.gif\" width=\"100\" height=\"100\" class=\"icon\" style=\"border:0px;\"  /><br />\r\n			<img src=\"{$skinFolder}images/btn_clickHere.gif\" border=\"0\" alt=\"Click here\"/></a><br />\r\n			 Face off in a grueling head to head competition against your spouse or close friend.</div>\r\n			\r\n		{* <div id=\"chunk_4\" class=\"chunk\">\r\n			<h2 class=\"withBG\">Group/Club</h2>\r\n			<a href=\"javascript://\" onclick=\"document.getElementById(\'newcompType\').value=\'group\';compTypeForm.submit();return false;\">\r\n			<img src=\"{$skinFolder}images/icon_alert_sm.gif\" width=\"100\" height=\"100\" class=\"icon\" style=\"border:0px;\"  /><br />\r\n			<img src=\"{$skinFolder}images/btn_clickHere.gif\" border=\"0\" alt=\"Click here\"/></a><br />\r\n			 Team up with your homies to battle another group in an all-out weight loss rumble</div>\r\n		*}\r\n\r\n		<div id=\"homeNavigator\" class=\"hBox\" style=\"width:643px;float:left;margin:5px 6px;text-align:right;margin-right:0px;\">\r\n			<a href=\"?pg=howitworks\" class=\"link\">How It All Works</a> | \r\n			{if $user->isLoggedIn()}<a href=\"?pg=myhome\" class=\"link\">Go to My Home</a>{else}<a href=\"?pg=signup/begin\" class=\"link\">Sign Up Now</a>{/if}</div>\r\n\r\n</td></tr></table>\r\n\r\n</form>'),(2097,132,0.45,'smarty','0','removed the \"go\" button',1089828002,16,'199.206.254.70','{include_php file=\"shared_handle:joinCompetition\"}\r\n\r\n<h1 class=\"underline\">Join a Competition</h1>\r\n<br />\r\nFill out the following form to be submitted to the competition organizer, please use a valid email address in order to receive confirmation instructions.<br />\r\n\r\n{assign var=\"joinCID\" value=$smarty.post.cid|default:$smarty.get.cid}\r\n\r\n<form name=\"joinCompetitionForm\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"competition/join\" />\r\n<input type=\"hidden\" name=\"join_attempt\" value=\"true\" />\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"no_expire_keep_alive\" value=\"cid\" />\r\n\r\n<table><tr><td align=\"right\" nowrap>\r\n{if $competition}\r\n<div class=\"chunk300\" style=\"text-align:left;\">\r\n<h2 class=\"withBG\">Selected Competition</h2>\r\n<b>ID</b>: {$competition.id}<br />\r\n<b>Title</b>: {$competition.title}<br />\r\n<b>Type</b>: {$competition.type|niceText}, {$competition.style}<br />\r\n<b>Owner</b>: {$competition.firstName} {$competition.lastName} ({$competition.username})<br />\r\n<b>Term</b>: {$competition.startDate|date_format2:\"M j, Y\"} to {$competition.endDate|date_format2:\"M j, Y\"}<br /><br />\r\n	<div class=\"underline\" style=\"margin-bottom:4px;\">&nbsp;</div>\r\n		<input type=\"checkbox\" name=\"confirmOK\" value=\"true\" /> <b>This is the correct competition</b>\r\n		&nbsp; &nbsp;\r\n	</div>\r\n</div>\r\n{/if}\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Join Form</h2>\r\n<label for=\"compID\">Competition ID#</label>\r\n<input id=\"compID\" class=\"textInput\" name=\"cid\" value=\"{$joinCID}\"> &nbsp;<br />\r\n<label for=\"name\">Your Name</label>\r\n<input id=\"name\" class=\"textInput\" name=\"applicantName\" value=\"{if $user->isLoggedIn() and not $smarty.request.applicantName}{$user->firstName} {$user->lastName}{else}{$smarty.request.applicantName}{/if}\"> &nbsp;<br />\r\n<label for=\"email\">Email</label>\r\n<input id=\"email\" class=\"textInput\" name=\"applicantEmail\" value=\"{$smarty.request.applicantEmail|default:$user->email}\"> &nbsp;<br />\r\n<label for=\"comment\">Comment</label>\r\n<input id=\"comment\" class=\"textInput\" name=\"comment\" value=\"{$smarty.request.comment}\" maxlength=\"255\"> &nbsp;\r\n<div class=\"underline\" style=\"margin-bottom:4px;\">&nbsp;</div>\r\n<a href=\"javascript:document.joinCompetitionForm.submit();\" class=\"button\">Submit</a>\r\n</div>\r\n</td></tr></table>\r\n\r\n</form>\r\n\r\n'),