(4799,285,0.17,'php','0','Copied the page over from dev site... now testing.',1139551538,2,'24.2.76.126','<?php\r\n\r\n// USE THE PRODUCTION SYSTEM NOW!\r\n\r\n\r\n$SPADE[\'template\']->assign(\'pgLayout\', \'none\');\r\n\r\ndefine(\'EHC_SESSION_KEY\', \'Mr.Blodgett and Mr.Gwynn\');\r\n\r\n\r\n$fp = fopen (\'webservices.log.php\', \'a\');\r\nfwrite($fp, date(\'Ymd-His\') . \':::Request from:\' . $_SERVER[\'REMOTE_ADDR\'] . \':::\' . $HTTP_RAW_POST_DATA.\"\\n\");\r\nfclose($fp);\r\n\r\n\r\nfunction authenticateCompany( $username, $password, $companyId ) {\r\n	global $SPADE;\r\n\r\n	$ipAddress = $_SERVER[\'REMOTE_ADDR\'];		// This should be the IP of the connecting host\r\n\r\n	$Q = \"SELECT ci.*, c.userId, c.companyName, c.companyVanity\r\n		FROM company_integrations ci\r\n		INNER JOIN companies c ON (ci.companyId = c.id)\r\n		WHERE ci.companyId = \" . (int)$companyId . \"\r\n		AND ci.username = \'\" . $username . \"\'\r\n		AND ci.password = \'\" . md5($password) . \"\'\r\n		AND ci.ipAddress = \'\" . $ipAddress . \"\'\r\n		AND ci.isActive = \'yes\'\";\r\n\r\n	return $SPADE[\'db\']->query($Q, DB_ROW);\r\n}\r\n\r\n\r\nclass EhcIntegrationService { \r\n	//private $quotes = array(\"ibm\" => 98.42);   \r\n	\r\n	function createSession($objSession) { \r\n		global $SPADE;\r\n\r\n		$objResponse = new stdClass();\r\n\r\n		$username = $objSession->username;\r\n		$password = $objSession->password;\r\n		$companyId = $objSession->company_id;\r\n		$foreignId = $objSession->foreign_id;\r\n		$emailAddress = $objSession->email_address;  // email address of end user\r\n\r\n		$company = authenticateCompany($username, $password, $companyId);\r\n\r\n		if (TRUE || !$emailAddress || !$company) {\r\n\r\n			$objResponse->user_id = \'0\';\r\n			$objResponse->session_id = \'ERROR\';\r\n			//$objResponse->detail = \'Unauthorized, unregistered, bad login, or no email address specified.\';\r\n			$objResponse->detail = \'This response came from the NEW server. Please clear WSDL cache.\';\r\n			$objResponse->company_vanity = \'unknown\';\r\n\r\n			return $objResponse;\r\n		}\r\n\r\n		$ipAddress = $objSession->ip_address;  // IP address of the end-user\r\n		$firstName = $objSession->first_name;\r\n		$lastName = $objSession->last_name;\r\n		$address = $objSession->address;\r\n		$city = $objSession->city;\r\n		$state = $objSession->state;\r\n		$phone = $objSession->phone;\r\n\r\n		/*// Optional section to delete entries that are expired\r\n		$Q = \"DELETE FROM user_sessions WHERE expirationDate < \" . time();\r\n		$SPADE[\'db\']->query($Q);\r\n		//*/\r\n\r\n		/*// Optional section to delete existing entries for this email address\r\n		$Q = \"DELETE FROM user_sessions WHERE emailAddress = \'\" . $emailAddress . \"\'\";\r\n		$SPADE[\'db\']->query($Q);\r\n		//*/\r\n\r\n		$Q = \"SELECT *\r\n			FROM _users\r\n			WHERE foreignId = \'\" . $foreignId . \"\'\";\r\n			//WHERE email = \'\" . $emailAddress . \"\'\";   // Old method\r\n\r\n		$userCheck = $SPADE[\'db\']->query($Q);\r\n\r\n		if (!is_array($userCheck)) {\r\n			$objResponse->user_id = 0;\r\n			$objResponse->detail = \'New user. Ready to be created.\';\r\n			$objResponse->company_vanity = serialize($company); //$company[\'companyVanity\'];\r\n			\r\n			$temp = array(\'email\' => $emailAddress,\r\n					\'firstName\' => $firstName,\r\n					\'lastName\' => $lastName,\r\n					\'address\' => $address,\r\n					\'city\' => $city,\r\n					\'state\' => $state,\r\n					\'phone\' => $phone\r\n				);\r\n\r\n			// serialize user details to be stored in notes for session	\r\n			$sessionNotes = serialize($temp);\r\n\r\n		} elseif ( count($userCheck) > 1) {\r\n			$objResponse->user_id = 0;\r\n			$objResponse->session_id = \'ERROR\';\r\n			$objResponse->detail = \'Duplicate e-mail address. Contact us for help.\';\r\n			$objResponse->company_vanity = \'unknown\';\r\n\r\n			return $objResponse;\r\n\r\n		} elseif ( count($userCheck) == 1) {\r\n			// good things...\r\n			$userCheck = $userCheck[0];\r\n\r\n			$objResponse->user_id = $userCheck[\'id\'];\r\n			$objResponse->detail = \'Existing user, ready to authenticate.\';\r\n			$objResponse->company_vanity = $company[\'companyVanity\'];\r\n\r\n			$sessionNotes = $objResponse->detail;\r\n			\r\n		} else {\r\n			return \'FATAL ERROR\';\r\n		}\r\n\r\n		$objResponse->session_id = ($objResponse->session_id)\r\n						? $objResponse->session_id\r\n						: md5($username . $password . $emailAddress . microtime() . EHC_SESSION_KEY);\r\n\r\n		$Q = \"INSERT INTO user_sessions (userId, companyId, foreignId, emailAddress, ipAddress, referer, sessionId, expirationDate, notes)\r\n			VALUES (\" . (int)$objResponse->user_id . \",\r\n				\" . (int)$companyId . \",\r\n				\'\" . $foreignId . \"\',\r\n				\'\" . $emailAddress . \"\',\r\n				\'\" . $ipAddress . \"\',\r\n				\'\" . $company[\'domain\'] . \"\',\r\n				\'\" . $objResponse->session_id . \"\',\r\n				\" . (time() + 3600) . \",\r\n				\'\" . $sessionNotes . \"\')\";\r\n\r\n		if (!$SPADE[\'db\']->query($Q)) {\r\n			$objResponse->session_id = \'XXXXXX\';\r\n			$objResponse->detail = \'Unable to create session.\';\r\n		}\r\n\r\n		return $objResponse; \r\n	}\r\n\r\n	function sendEstatEntries($objEstatEntries) {\r\n		global $SPADE;\r\n\r\n		$username = $objEstatEntries->username;\r\n		$password = $objEstatEntries->password;\r\n		$companyId = $objEstatEntries->company_id;\r\n\r\n		$objResponse = new stdClass();\r\n		$objResponse->estat_entry = array();\r\n\r\n		if (!is_array($objEstatEntries->estat_entry)) {\r\n			$objResponse->estat_entry[] = array(\r\n					\'id\' => 0,\r\n					\'confirmation\' => \'estat entry not an array.\'\r\n			);\r\n\r\n			return $objResponse;\r\n		}\r\n			\r\n		if (!count($objEstatEntries->estat_entry)) {\r\n			$objResponse->estat_entry[] = array(\r\n					\'id\' => 0,\r\n					\'confirmation\' => \'estat entries count failed.\'\r\n			);\r\n\r\n			return $objResponse;\r\n		}\r\n\r\n		if (!($company = authenticateCompany($username, $password, $companyId))) {\r\n			$objResponse->estat_entry[] = array(\r\n					\'id\' => 0,\r\n					\'confirmation\' => \'unable to authenticate company.\'\r\n			);\r\n\r\n			return $objResponse;\r\n		}\r\n		\r\n		if (!is_array($objEstatEntries->estat_entry)\r\n			|| !count($objEstatEntries->estat_entry) \r\n			|| !($company = authenticateCompany($username, $password, $companyId))) {\r\n\r\n			$objResponse->estat_entry[] = array(\r\n					\'id\' => 0,\r\n					\'confirmation\' => \'Unauthorized, unregistered, bad login, or no estat entries specified.\'\r\n			);\r\n\r\n			return $objResponse;\r\n		}\r\n\r\n		\r\n		$users = array();\r\n\r\n		foreach ($objEstatEntries->estat_entry as $entry) {\r\n			// get user info for this user, if we don\'t already have it loaded\r\n\r\n			if (!$users[$entry->foreign_id][\'id\']) {\r\n				//$Q = \"SELECT * FROM _users WHERE email = \'\" . $entry->email_address . \"\'\";\r\n				$Q = \"SELECT * FROM _users WHERE foreignId = \'\" . $entry->foreign_id . \"\'\";\r\n				\r\n				$users[$entry->foreign_id] = $SPADE[\'db\']->query($Q, DB_ROW);\r\n\r\n				if (!$users[$entry->foreign_id]) {\r\n					// couldn\'t find user by foreign ID\r\n					$objResponse->estat_entry[] = array(\r\n						\'id\' => 0,\r\n						\'confirmation\' => \'Could not find user with foreign ID \"\' . $entry->foreign_id . \'\".\'\r\n					);\r\n\r\n					continue;\r\n				}\r\n			}\r\n\r\n			/*//\r\n			$objResponse = new stdClass();\r\n			$objResponse->estat_entry[] = array(\'id\' => 0,\'confirmation\' => \'Query:\' . $Q);\r\n			return $objResponse;\r\n			//*/\r\n\r\n			$Q = \"REPLACE INTO estat_entries (userId, estatId, value, dateOfEntry, createdByUserId, dateCreated)\r\n				VALUES (\r\n					\" . (int)$users[$entry->foreign_id][\'id\'] . \",	\r\n					\" . (int)$entry->estat_id . \",\r\n					\'\" . $entry->value . \"\',\r\n					\'\" . strtotime($entry->date_of_entry) . \"\',\r\n					\" . (int)$company[\'userId\'] . \",\r\n					\" . time() . \"\r\n				)\";\r\n\r\n			if ($newId = $SPADE[\'db\']->query($Q)) {\r\n				$objResponse->estat_entry[] = array(\r\n					\'id\' => $newId,\r\n					\'confirmation\' => \'eStat entry recorded successfully.\'\r\n				);\r\n			} else {\r\n				$objResponse->estat_entry[] = array(\r\n					\'id\' => 0,\r\n					\'confirmation\' => \'An error occurred while attempting to record this estat entry.\'\r\n				);\r\n			}\r\n		}\r\n\r\n		return $objResponse;\r\n	}\r\n}\r\n\r\nclass EhcIntegrationServiceRpcEnc extends EhcIntegrationService {\r\n	function createSession($username, $password, $company_id, $foreign_id, $email_address, $ip_address, $first_name, $last_name, $address, $city, $state, $phone) {\r\n		$objSession = new stdClass();\r\n\r\n		$objSession->username = $username;\r\n		$objSession->password = $password;\r\n		$objSession->company_id = $company_id;\r\n		$objSession->foreign_id = $foreign_id;\r\n		$objSession->email_address = $email_address;\r\n		$objSession->ip_address = $ip_address;\r\n		$objSession->first_name = $first_name;\r\n		$objSession->last_name = $last_name;\r\n		$objSession->address = $address;\r\n		$objSession->city = $city;\r\n		$objSession->state = $state;\r\n		$objSession->phone = $phone;\r\n\r\n		$objResponse = parent::createSession($objSession);\r\n		$strResponse = $objResponse->user_id . \'::\' . $objResponse->session_id . \'::\' . $objResponse->detail . \'::\' . $objResponse->company_vanity;\r\n\r\n		return $strResponse;\r\n	}\r\n\r\n	function sendEstatEntries($username, $password, $company_id, $estat_entries) {\r\n		$objEstatEntries = new stdClass();\r\n\r\n		$objEstatEntries->username = $username;\r\n		$objEstatEntries->password = $password;\r\n		$objEstatEntries->company_id = $company_id;\r\n\r\n		$arrRawEntries = split(\'%%\', $estat_entries);\r\n\r\n		foreach ($arrRawEntries as $strRawEntry) {\r\n			$arrEntryElements = split(\'::\', $strRawEntry);\r\n\r\n			$objEntry = new stdClass();\r\n			$objEntry->foreign_id = $arrEntryElements[0];\r\n			$objEntry->estat_id = $arrEntryElements[1];\r\n			$objEntry->date_of_entry = $arrEntryElements[2];\r\n			$objEntry->value = $arrEntryElements[3];\r\n\r\n			$objEstatEntries->estat_entry[] = $objEntry; \r\n		}\r\n\r\n		$objResponse = parent::sendEstatEntries($objEstatEntries);\r\n\r\n		$strResponse = \'\';\r\n\r\n		foreach ($objResponse->estat_entry as $arrEstatEntry) {\r\n			$strResponse .= $arrEstatEntry[\'id\'] . \'::\' . $arrEstatEntry[\'confirmation\'] . \'%%\';\r\n		}\r\n\r\n		$strResponse = substr($strResponse, 0, -2);\r\n\r\n		return $strResponse;\r\n	}\r\n}\r\n\r\nif ($_REQUEST[\'style\'] == \'rpcenc\') {\r\n	$server = new SoapServer(\"webservices/eis-rpcenc.wsdl\"); \r\n	$server->setClass(\"EhcIntegrationServiceRpcEnc\");\r\n	$server->handle(); \r\n} else {\r\n	$server = new SoapServer(\"webservices/eis-doclit.wsdl\"); \r\n	$server->setClass(\"EhcIntegrationService\");\r\n	$server->handle(); \r\n}\r\n\r\n?>'),(4800,285,0.18,'php','0','Copied the page over from dev site... now testing.',1139552252,2,'24.2.76.126','<?php\r\n\r\n$SPADE[\'template\']->assign(\'pgLayout\', \'none\');\r\n\r\ndefine(\'EHC_SESSION_KEY\', \'Mr.Blodgett and Mr.Gwynn\');\r\n\r\n\r\n$fp = fopen (\'webservices.log.php\', \'a\');\r\nfwrite($fp, date(\'Ymd-His\') . \':::Request from:\' . $_SERVER[\'REMOTE_ADDR\'] . \':::\' . $HTTP_RAW_POST_DATA.\"\\n\");\r\nfclose($fp);\r\n\r\n\r\nfunction authenticateCompany( $username, $password, $companyId ) {\r\n	global $SPADE;\r\n\r\n	$ipAddress = $_SERVER[\'REMOTE_ADDR\'];		// This should be the IP of the connecting host\r\n\r\n	$Q = \"SELECT ci.*, c.userId, c.companyName, c.companyVanity\r\n		FROM company_integrations ci\r\n		INNER JOIN companies c ON (ci.companyId = c.id)\r\n		WHERE ci.companyId = \" . (int)$companyId . \"\r\n		AND ci.username = \'\" . $username . \"\'\r\n		AND ci.password = \'\" . md5($password) . \"\'\r\n		AND ci.ipAddress = \'\" . $ipAddress . \"\'\r\n		AND ci.isActive = \'yes\'\";\r\n\r\n	return $SPADE[\'db\']->query($Q, DB_ROW);\r\n}\r\n\r\n\r\nclass EhcIntegrationService { \r\n	//private $quotes = array(\"ibm\" => 98.42);   \r\n	\r\n	function createSession($objSession) { \r\n		global $SPADE;\r\n\r\n		$objResponse = new stdClass();\r\n\r\n		$username = $objSession->username;\r\n		$password = $objSession->password;\r\n		$companyId = $objSession->company_id;\r\n		$foreignId = $objSession->foreign_id;\r\n		$emailAddress = $objSession->email_address;  // email address of end user\r\n\r\n		$company = authenticateCompany($username, $password, $companyId);\r\n\r\n		if (!$emailAddress || !$company) {\r\n\r\n			$objResponse->user_id = \'0\';\r\n			$objResponse->session_id = \'ERROR\';\r\n			$objResponse->detail = \'Unauthorized, unregistered, bad login, or no email address specified.\';\r\n			$objResponse->company_vanity = \'unknown\';\r\n\r\n			return $objResponse;\r\n		}\r\n\r\n		$ipAddress = $objSession->ip_address;  // IP address of the end-user\r\n		$firstName = $objSession->first_name;\r\n		$lastName = $objSession->last_name;\r\n		$address = $objSession->address;\r\n		$city = $objSession->city;\r\n		$state = $objSession->state;\r\n		$phone = $objSession->phone;\r\n\r\n		/*// Optional section to delete entries that are expired\r\n		$Q = \"DELETE FROM user_sessions WHERE expirationDate < \" . time();\r\n		$SPADE[\'db\']->query($Q);\r\n		//*/\r\n\r\n		/*// Optional section to delete existing entries for this email address\r\n		$Q = \"DELETE FROM user_sessions WHERE emailAddress = \'\" . $emailAddress . \"\'\";\r\n		$SPADE[\'db\']->query($Q);\r\n		//*/\r\n\r\n		$Q = \"SELECT *\r\n			FROM _users\r\n			WHERE foreignId = \'\" . $foreignId . \"\'\";\r\n			//WHERE email = \'\" . $emailAddress . \"\'\";   // Old method\r\n\r\n		$userCheck = $SPADE[\'db\']->query($Q);\r\n\r\n		if (!is_array($userCheck)) {\r\n			$objResponse->user_id = 0;\r\n			$objResponse->detail = \'New user. Ready to be created.\';\r\n			$objResponse->company_vanity = serialize($company); //$company[\'companyVanity\'];\r\n			\r\n			$temp = array(\'email\' => $emailAddress,\r\n					\'firstName\' => $firstName,\r\n					\'lastName\' => $lastName,\r\n					\'address\' => $address,\r\n					\'city\' => $city,\r\n					\'state\' => $state,\r\n					\'phone\' => $phone\r\n				);\r\n\r\n			// serialize user details to be stored in notes for session	\r\n			$sessionNotes = serialize($temp);\r\n\r\n		} elseif ( count($userCheck) > 1) {\r\n			$objResponse->user_id = 0;\r\n			$objResponse->session_id = \'ERROR\';\r\n			$objResponse->detail = \'Duplicate e-mail address. Contact us for help.\';\r\n			$objResponse->company_vanity = \'unknown\';\r\n\r\n			return $objResponse;\r\n\r\n		} elseif ( count($userCheck) == 1) {\r\n			// good things...\r\n			$userCheck = $userCheck[0];\r\n\r\n			$objResponse->user_id = $userCheck[\'id\'];\r\n			$objResponse->detail = \'Existing user, ready to authenticate.\';\r\n			$objResponse->company_vanity = $company[\'companyVanity\'];\r\n\r\n			$sessionNotes = $objResponse->detail;\r\n			\r\n		} else {\r\n			return \'FATAL ERROR\';\r\n		}\r\n\r\n		$objResponse->session_id = ($objResponse->session_id)\r\n						? $objResponse->session_id\r\n						: md5($username . $password . $emailAddress . microtime() . EHC_SESSION_KEY);\r\n\r\n		$Q = \"INSERT INTO user_sessions (userId, companyId, foreignId, emailAddress, ipAddress, referer, sessionId, expirationDate, notes)\r\n			VALUES (\" . (int)$objResponse->user_id . \",\r\n				\" . (int)$companyId . \",\r\n				\'\" . $foreignId . \"\',\r\n				\'\" . $emailAddress . \"\',\r\n				\'\" . $ipAddress . \"\',\r\n				\'\" . $company[\'domain\'] . \"\',\r\n				\'\" . $objResponse->session_id . \"\',\r\n				\" . (time() + 3600) . \",\r\n				\'\" . $sessionNotes . \"\')\";\r\n\r\n		if (!$SPADE[\'db\']->query($Q)) {\r\n			$objResponse->session_id = \'XXXXXX\';\r\n			$objResponse->detail = \'Unable to create session.\';\r\n		}\r\n\r\n		return $objResponse; \r\n	}\r\n\r\n	function sendEstatEntries($objEstatEntries) {\r\n		global $SPADE;\r\n\r\n		$username = $objEstatEntries->username;\r\n		$password = $objEstatEntries->password;\r\n		$companyId = $objEstatEntries->company_id;\r\n\r\n		$objResponse = new stdClass();\r\n		$objResponse->estat_entry = array();\r\n\r\n		if (!is_array($objEstatEntries->estat_entry)) {\r\n			$objResponse->estat_entry[] = array(\r\n					\'id\' => 0,\r\n					\'confirmation\' => \'estat entry not an array.\'\r\n			);\r\n\r\n			return $objResponse;\r\n		}\r\n			\r\n		if (!count($objEstatEntries->estat_entry)) {\r\n			$objResponse->estat_entry[] = array(\r\n					\'id\' => 0,\r\n					\'confirmation\' => \'estat entries count failed.\'\r\n			);\r\n\r\n			return $objResponse;\r\n		}\r\n\r\n		if (!($company = authenticateCompany($username, $password, $companyId))) {\r\n			$objResponse->estat_entry[] = array(\r\n					\'id\' => 0,\r\n					\'confirmation\' => \'unable to authenticate company.\'\r\n			);\r\n\r\n			return $objResponse;\r\n		}\r\n		\r\n		if (!is_array($objEstatEntries->estat_entry)\r\n			|| !count($objEstatEntries->estat_entry) \r\n			|| !($company = authenticateCompany($username, $password, $companyId))) {\r\n\r\n			$objResponse->estat_entry[] = array(\r\n					\'id\' => 0,\r\n					\'confirmation\' => \'Unauthorized, unregistered, bad login, or no estat entries specified.\'\r\n			);\r\n\r\n			return $objResponse;\r\n		}\r\n\r\n		\r\n		$users = array();\r\n\r\n		foreach ($objEstatEntries->estat_entry as $entry) {\r\n			// get user info for this user, if we don\'t already have it loaded\r\n\r\n			if (!$users[$entry->foreign_id][\'id\']) {\r\n				//$Q = \"SELECT * FROM _users WHERE email = \'\" . $entry->email_address . \"\'\";\r\n				$Q = \"SELECT * FROM _users WHERE foreignId = \'\" . $entry->foreign_id . \"\'\";\r\n				\r\n				$users[$entry->foreign_id] = $SPADE[\'db\']->query($Q, DB_ROW);\r\n\r\n				if (!$users[$entry->foreign_id]) {\r\n					// couldn\'t find user by foreign ID\r\n					$objResponse->estat_entry[] = array(\r\n						\'id\' => 0,\r\n						\'confirmation\' => \'Could not find user with foreign ID \"\' . $entry->foreign_id . \'\".\'\r\n					);\r\n\r\n					continue;\r\n				}\r\n			}\r\n\r\n			/*//\r\n			$objResponse = new stdClass();\r\n			$objResponse->estat_entry[] = array(\'id\' => 0,\'confirmation\' => \'Query:\' . $Q);\r\n			return $objResponse;\r\n			//*/\r\n\r\n			$Q = \"REPLACE INTO estat_entries (userId, estatId, value, dateOfEntry, createdByUserId, dateCreated)\r\n				VALUES (\r\n					\" . (int)$users[$entry->foreign_id][\'id\'] . \",	\r\n					\" . (int)$entry->estat_id . \",\r\n					\'\" . $entry->value . \"\',\r\n					\'\" . strtotime($entry->date_of_entry) . \"\',\r\n					\" . (int)$company[\'userId\'] . \",\r\n					\" . time() . \"\r\n				)\";\r\n\r\n			if ($newId = $SPADE[\'db\']->query($Q)) {\r\n				$objResponse->estat_entry[] = array(\r\n					\'id\' => $newId,\r\n					\'confirmation\' => \'eStat entry recorded successfully.\'\r\n				);\r\n			} else {\r\n				$objResponse->estat_entry[] = array(\r\n					\'id\' => 0,\r\n					\'confirmation\' => \'An error occurred while attempting to record this estat entry.\'\r\n				);\r\n			}\r\n		}\r\n\r\n		return $objResponse;\r\n	}\r\n}\r\n\r\nclass EhcIntegrationServiceRpcEnc extends EhcIntegrationService {\r\n	function createSession($username, $password, $company_id, $foreign_id, $email_address, $ip_address, $first_name, $last_name, $address, $city, $state, $phone) {\r\n		$objSession = new stdClass();\r\n\r\n		$objSession->username = $username;\r\n		$objSession->password = $password;\r\n		$objSession->company_id = $company_id;\r\n		$objSession->foreign_id = $foreign_id;\r\n		$objSession->email_address = $email_address;\r\n		$objSession->ip_address = $ip_address;\r\n		$objSession->first_name = $first_name;\r\n		$objSession->last_name = $last_name;\r\n		$objSession->address = $address;\r\n		$objSession->city = $city;\r\n		$objSession->state = $state;\r\n		$objSession->phone = $phone;\r\n\r\n		$objResponse = parent::createSession($objSession);\r\n		$strResponse = $objResponse->user_id . \'::\' . $objResponse->session_id . \'::\' . $objResponse->detail . \'::\' . $objResponse->company_vanity;\r\n\r\n		return $strResponse;\r\n	}\r\n\r\n	function sendEstatEntries($username, $password, $company_id, $estat_entries) {\r\n		$objEstatEntries = new stdClass();\r\n\r\n		$objEstatEntries->username = $username;\r\n		$objEstatEntries->password = $password;\r\n		$objEstatEntries->company_id = $company_id;\r\n\r\n		$arrRawEntries = split(\'%%\', $estat_entries);\r\n\r\n		foreach ($arrRawEntries as $strRawEntry) {\r\n			$arrEntryElements = split(\'::\', $strRawEntry);\r\n\r\n			$objEntry = new stdClass();\r\n			$objEntry->foreign_id = $arrEntryElements[0];\r\n			$objEntry->estat_id = $arrEntryElements[1];\r\n			$objEntry->date_of_entry = $arrEntryElements[2];\r\n			$objEntry->value = $arrEntryElements[3];\r\n\r\n			$objEstatEntries->estat_entry[] = $objEntry; \r\n		}\r\n\r\n		$objResponse = parent::sendEstatEntries($objEstatEntries);\r\n\r\n		$strResponse = \'\';\r\n\r\n		foreach ($objResponse->estat_entry as $arrEstatEntry) {\r\n			$strResponse .= $arrEstatEntry[\'id\'] . \'::\' . $arrEstatEntry[\'confirmation\'] . \'%%\';\r\n		}\r\n\r\n		$strResponse = substr($strResponse, 0, -2);\r\n\r\n		return $strResponse;\r\n	}\r\n}\r\n\r\nif ($_REQUEST[\'style\'] == \'rpcenc\') {\r\n	$server = new SoapServer(\"webservices/eis-rpcenc.wsdl\"); \r\n	$server->setClass(\"EhcIntegrationServiceRpcEnc\");\r\n	$server->handle(); \r\n} else {\r\n	$server = new SoapServer(\"webservices/eis-doclit.wsdl\"); \r\n	$server->setClass(\"EhcIntegrationService\");\r\n	$server->handle(); \r\n}\r\n\r\n?>'),(4801,285,0.19,'php','0','Copied the page over from dev site... now testing.',1139552487,2,'24.2.76.126','<?php\r\n\r\n$SPADE[\'template\']->assign(\'pgLayout\', \'none\');\r\n\r\ndefine(\'EHC_SESSION_KEY\', \'Mr.Blodgett and Mr.Gwynn\');\r\n\r\n\r\n$fp = fopen (\'webservices.log.php\', \'a\');\r\nfwrite($fp, date(\'Ymd-His\') . \':::Request from:\' . $_SERVER[\'REMOTE_ADDR\'] . \':::\' . $HTTP_RAW_POST_DATA.\"\\n\");\r\nfclose($fp);\r\n\r\n\r\nfunction authenticateCompany( $username, $password, $companyId ) {\r\n	global $SPADE;\r\n\r\n	$ipAddress = $_SERVER[\'REMOTE_ADDR\'];		// This should be the IP of the connecting host\r\n\r\n	$Q = \"SELECT ci.*, c.userId, c.companyName, c.companyVanity\r\n		FROM company_integrations ci\r\n		INNER JOIN companies c ON (ci.companyId = c.id)\r\n		WHERE ci.companyId = \" . (int)$companyId . \"\r\n		AND ci.username = \'\" . $username . \"\'\r\n		AND ci.password = \'\" . md5($password) . \"\'\r\n		AND ci.ipAddress = \'\" . $ipAddress . \"\'\r\n		AND ci.isActive = \'yes\'\";\r\n\r\n	return $SPADE[\'db\']->query($Q, DB_ROW);\r\n}\r\n\r\n\r\nclass EhcIntegrationService { \r\n	//private $quotes = array(\"ibm\" => 98.42);   \r\n	\r\n	function createSession($objSession) { \r\n		global $SPADE;\r\n\r\n		$objResponse = new stdClass();\r\n\r\n		$username = $objSession->username;\r\n		$password = $objSession->password;\r\n		$companyId = $objSession->company_id;\r\n		$foreignId = $objSession->foreign_id;\r\n		$emailAddress = $objSession->email_address;  // email address of end user\r\n\r\n		$company = authenticateCompany($username, $password, $companyId);\r\n\r\n		if (!$emailAddress || !$company) {\r\n\r\n			$objResponse->user_id = \'0\';\r\n			$objResponse->session_id = \'ERROR\';\r\n			$objResponse->detail = \'Unauthorized, unregistered, bad login, or no email address specified.\';\r\n			$objResponse->company_vanity = \'unknown\';\r\n\r\n			return $objResponse;\r\n		}\r\n\r\n		$ipAddress = $objSession->ip_address;  // IP address of the end-user\r\n		$firstName = $objSession->first_name;\r\n		$lastName = $objSession->last_name;\r\n		$address = $objSession->address;\r\n		$city = $objSession->city;\r\n		$state = $objSession->state;\r\n		$phone = $objSession->phone;\r\n\r\n		/*// Optional section to delete entries that are expired\r\n		$Q = \"DELETE FROM user_sessions WHERE expirationDate < \" . time();\r\n		$SPADE[\'db\']->query($Q);\r\n		//*/\r\n\r\n		/*// Optional section to delete existing entries for this email address\r\n		$Q = \"DELETE FROM user_sessions WHERE emailAddress = \'\" . $emailAddress . \"\'\";\r\n		$SPADE[\'db\']->query($Q);\r\n		//*/\r\n\r\n		$Q = \"SELECT *\r\n			FROM _users\r\n			WHERE foreignId = \'\" . $foreignId . \"\'\";\r\n			//WHERE email = \'\" . $emailAddress . \"\'\";   // Old method\r\n\r\n		$userCheck = $SPADE[\'db\']->query($Q);\r\n\r\n		if (!is_array($userCheck)) {\r\n			$objResponse->user_id = 0;\r\n			$objResponse->detail = \'New user. Ready to be created.\';\r\n			$objResponse->company_vanity = $company[\'companyVanity\'];\r\n			\r\n			$temp = array(\'email\' => $emailAddress,\r\n					\'firstName\' => $firstName,\r\n					\'lastName\' => $lastName,\r\n					\'address\' => $address,\r\n					\'city\' => $city,\r\n					\'state\' => $state,\r\n					\'phone\' => $phone\r\n				);\r\n\r\n			// serialize user details to be stored in notes for session	\r\n			$sessionNotes = serialize($temp);\r\n\r\n		} elseif ( count($userCheck) > 1) {\r\n			$objResponse->user_id = 0;\r\n			$objResponse->session_id = \'ERROR\';\r\n			$objResponse->detail = \'Duplicate e-mail address. Contact us for help.\';\r\n			$objResponse->company_vanity = \'unknown\';\r\n\r\n			return $objResponse;\r\n\r\n		} elseif ( count($userCheck) == 1) {\r\n			// good things...\r\n			$userCheck = $userCheck[0];\r\n\r\n			$objResponse->user_id = $userCheck[\'id\'];\r\n			$objResponse->detail = \'Existing user, ready to authenticate.\';\r\n			$objResponse->company_vanity = $company[\'companyVanity\'];\r\n\r\n			$sessionNotes = $objResponse->detail;\r\n			\r\n		} else {\r\n			return \'FATAL ERROR\';\r\n		}\r\n\r\n		$objResponse->session_id = ($objResponse->session_id)\r\n						? $objResponse->session_id\r\n						: md5($username . $password . $emailAddress . microtime() . EHC_SESSION_KEY);\r\n\r\n		$Q = \"INSERT INTO user_sessions (userId, companyId, foreignId, emailAddress, ipAddress, referer, sessionId, expirationDate, notes)\r\n			VALUES (\" . (int)$objResponse->user_id . \",\r\n				\" . (int)$companyId . \",\r\n				\'\" . $foreignId . \"\',\r\n				\'\" . $emailAddress . \"\',\r\n				\'\" . $ipAddress . \"\',\r\n				\'\" . $company[\'domain\'] . \"\',\r\n				\'\" . $objResponse->session_id . \"\',\r\n				\" . (time() + 3600) . \",\r\n				\'\" . $sessionNotes . \"\')\";\r\n\r\n		if (!$SPADE[\'db\']->query($Q)) {\r\n			$objResponse->session_id = \'XXXXXX\';\r\n			$objResponse->detail = \'Unable to create session.\';\r\n		}\r\n\r\n		return $objResponse; \r\n	}\r\n\r\n	function sendEstatEntries($objEstatEntries) {\r\n		global $SPADE;\r\n\r\n		$username = $objEstatEntries->username;\r\n		$password = $objEstatEntries->password;\r\n		$companyId = $objEstatEntries->company_id;\r\n\r\n		$objResponse = new stdClass();\r\n		$objResponse->estat_entry = array();\r\n\r\n		if (!is_array($objEstatEntries->estat_entry)) {\r\n			$objResponse->estat_entry[] = array(\r\n					\'id\' => 0,\r\n					\'confirmation\' => \'estat entry not an array.\'\r\n			);\r\n\r\n			return $objResponse;\r\n		}\r\n			\r\n		if (!count($objEstatEntries->estat_entry)) {\r\n			$objResponse->estat_entry[] = array(\r\n					\'id\' => 0,\r\n					\'confirmation\' => \'estat entries count failed.\'\r\n			);\r\n\r\n			return $objResponse;\r\n		}\r\n\r\n		if (!($company = authenticateCompany($username, $password, $companyId))) {\r\n			$objResponse->estat_entry[] = array(\r\n					\'id\' => 0,\r\n					\'confirmation\' => \'unable to authenticate company.\'\r\n			);\r\n\r\n			return $objResponse;\r\n		}\r\n		\r\n		if (!is_array($objEstatEntries->estat_entry)\r\n			|| !count($objEstatEntries->estat_entry) \r\n			|| !($company = authenticateCompany($username, $password, $companyId))) {\r\n\r\n			$objResponse->estat_entry[] = array(\r\n					\'id\' => 0,\r\n					\'confirmation\' => \'Unauthorized, unregistered, bad login, or no estat entries specified.\'\r\n			);\r\n\r\n			return $objResponse;\r\n		}\r\n\r\n		\r\n		$users = array();\r\n\r\n		foreach ($objEstatEntries->estat_entry as $entry) {\r\n			// get user info for this user, if we don\'t already have it loaded\r\n\r\n			if (!$users[$entry->foreign_id][\'id\']) {\r\n				//$Q = \"SELECT * FROM _users WHERE email = \'\" . $entry->email_address . \"\'\";\r\n				$Q = \"SELECT * FROM _users WHERE foreignId = \'\" . $entry->foreign_id . \"\'\";\r\n				\r\n				$users[$entry->foreign_id] = $SPADE[\'db\']->query($Q, DB_ROW);\r\n\r\n				if (!$users[$entry->foreign_id]) {\r\n					// couldn\'t find user by foreign ID\r\n					$objResponse->estat_entry[] = array(\r\n						\'id\' => 0,\r\n						\'confirmation\' => \'Could not find user with foreign ID \"\' . $entry->foreign_id . \'\".\'\r\n					);\r\n\r\n					continue;\r\n				}\r\n			}\r\n\r\n			/*//\r\n			$objResponse = new stdClass();\r\n			$objResponse->estat_entry[] = array(\'id\' => 0,\'confirmation\' => \'Query:\' . $Q);\r\n			return $objResponse;\r\n			//*/\r\n\r\n			$Q = \"REPLACE INTO estat_entries (userId, estatId, value, dateOfEntry, createdByUserId, dateCreated)\r\n				VALUES (\r\n					\" . (int)$users[$entry->foreign_id][\'id\'] . \",	\r\n					\" . (int)$entry->estat_id . \",\r\n					\'\" . $entry->value . \"\',\r\n					\'\" . strtotime($entry->date_of_entry) . \"\',\r\n					\" . (int)$company[\'userId\'] . \",\r\n					\" . time() . \"\r\n				)\";\r\n\r\n			if ($newId = $SPADE[\'db\']->query($Q)) {\r\n				$objResponse->estat_entry[] = array(\r\n					\'id\' => $newId,\r\n					\'confirmation\' => \'eStat entry recorded successfully.\'\r\n				);\r\n			} else {\r\n				$objResponse->estat_entry[] = array(\r\n					\'id\' => 0,\r\n					\'confirmation\' => \'An error occurred while attempting to record this estat entry.\'\r\n				);\r\n			}\r\n		}\r\n\r\n		return $objResponse;\r\n	}\r\n}\r\n\r\nclass EhcIntegrationServiceRpcEnc extends EhcIntegrationService {\r\n	function createSession($username, $password, $company_id, $foreign_id, $email_address, $ip_address, $first_name, $last_name, $address, $city, $state, $phone) {\r\n		$objSession = new stdClass();\r\n\r\n		$objSession->username = $username;\r\n		$objSession->password = $password;\r\n		$objSession->company_id = $company_id;\r\n		$objSession->foreign_id = $foreign_id;\r\n		$objSession->email_address = $email_address;\r\n		$objSession->ip_address = $ip_address;\r\n		$objSession->first_name = $first_name;\r\n		$objSession->last_name = $last_name;\r\n		$objSession->address = $address;\r\n		$objSession->city = $city;\r\n		$objSession->state = $state;\r\n		$objSession->phone = $phone;\r\n\r\n		$objResponse = parent::createSession($objSession);\r\n		$strResponse = $objResponse->user_id . \'::\' . $objResponse->session_id . \'::\' . $objResponse->detail . \'::\' . $objResponse->company_vanity;\r\n\r\n		return $strResponse;\r\n	}\r\n\r\n	function sendEstatEntries($username, $password, $company_id, $estat_entries) {\r\n		$objEstatEntries = new stdClass();\r\n\r\n		$objEstatEntries->username = $username;\r\n		$objEstatEntries->password = $password;\r\n		$objEstatEntries->company_id = $company_id;\r\n\r\n		$arrRawEntries = split(\'%%\', $estat_entries);\r\n\r\n		foreach ($arrRawEntries as $strRawEntry) {\r\n			$arrEntryElements = split(\'::\', $strRawEntry);\r\n\r\n			$objEntry = new stdClass();\r\n			$objEntry->foreign_id = $arrEntryElements[0];\r\n			$objEntry->estat_id = $arrEntryElements[1];\r\n			$objEntry->date_of_entry = $arrEntryElements[2];\r\n			$objEntry->value = $arrEntryElements[3];\r\n\r\n			$objEstatEntries->estat_entry[] = $objEntry; \r\n		}\r\n\r\n		$objResponse = parent::sendEstatEntries($objEstatEntries);\r\n\r\n		$strResponse = \'\';\r\n\r\n		foreach ($objResponse->estat_entry as $arrEstatEntry) {\r\n			$strResponse .= $arrEstatEntry[\'id\'] . \'::\' . $arrEstatEntry[\'confirmation\'] . \'%%\';\r\n		}\r\n\r\n		$strResponse = substr($strResponse, 0, -2);\r\n\r\n		return $strResponse;\r\n	}\r\n}\r\n\r\nif ($_REQUEST[\'style\'] == \'rpcenc\') {\r\n	$server = new SoapServer(\"webservices/eis-rpcenc.wsdl\"); \r\n	$server->setClass(\"EhcIntegrationServiceRpcEnc\");\r\n	$server->handle(); \r\n} else {\r\n	$server = new SoapServer(\"webservices/eis-doclit.wsdl\"); \r\n	$server->setClass(\"EhcIntegrationService\");\r\n	$server->handle(); \r\n}\r\n\r\n?>'),(4802,285,0.20,'php','0','Copied the page over from dev site... now testing.',1139552586,2,'24.2.76.126','<?php\r\n\r\n$SPADE[\'template\']->assign(\'pgLayout\', \'none\');\r\n\r\ndefine(\'EHC_SESSION_KEY\', \'Mr.Blodgett and Mr.Gwynn\');\r\n\r\n\r\n$fp = fopen (\'webservices.log.php\', \'a\');\r\nfwrite($fp, date(\'Ymd-His\') . \':::Request from:\' . $_SERVER[\'REMOTE_ADDR\'] . \':::\' . $HTTP_RAW_POST_DATA.\"\\n\");\r\nfclose($fp);\r\n\r\n\r\nfunction authenticateCompany( $username, $password, $companyId ) {\r\n	global $SPADE;\r\n\r\n	$ipAddress = $_SERVER[\'REMOTE_ADDR\'];		// This should be the IP of the connecting host\r\n\r\n	$Q = \"SELECT ci.*, c.userId, c.companyName, c.companyVanity\r\n		FROM company_integrations ci\r\n		INNER JOIN companies c ON (ci.companyId = c.id)\r\n		WHERE ci.companyId = \" . (int)$companyId . \"\r\n		AND ci.username = \'\" . $username . \"\'\r\n		AND ci.password = \'\" . md5($password) . \"\'\r\n		AND ci.ipAddress = \'\" . $ipAddress . \"\'\r\n		AND ci.isActive = \'yes\'\";\r\n\r\n	return $SPADE[\'db\']->query($Q, DB_ROW);\r\n}\r\n\r\n\r\nclass EhcIntegrationService { \r\n	//private $quotes = array(\"ibm\" => 98.42);   \r\n	\r\n	function createSession($objSession) { \r\n		global $SPADE;\r\n\r\n		$objResponse = new stdClass();\r\n\r\n		$username = $objSession->username;\r\n		$password = $objSession->password;\r\n		$companyId = $objSession->company_id;\r\n		$foreignId = $objSession->foreign_id;\r\n		$emailAddress = $objSession->email_address;  // email address of end user\r\n\r\n		$company = authenticateCompany($username, $password, $companyId);\r\n\r\n		if (!$emailAddress || !$company) {\r\n\r\n			$objResponse->user_id = \'0\';\r\n			$objResponse->session_id = \'ERROR\';\r\n			$objResponse->detail = \'Unauthorized, unregistered, bad login, or no email address specified.\';\r\n			$objResponse->company_vanity = \'unknown\';\r\n\r\n			return $objResponse;\r\n		}\r\n\r\n		$ipAddress = $objSession->ip_address;  // IP address of the end-user\r\n		$firstName = $objSession->first_name;\r\n		$lastName = $objSession->last_name;\r\n		$address = $objSession->address;\r\n		$city = $objSession->city;\r\n		$state = $objSession->state;\r\n		$phone = $objSession->phone;\r\n\r\n		/*// Optional section to delete entries that are expired\r\n		$Q = \"DELETE FROM user_sessions WHERE expirationDate < \" . time();\r\n		$SPADE[\'db\']->query($Q);\r\n		//*/\r\n\r\n		/*// Optional section to delete existing entries for this email address\r\n		$Q = \"DELETE FROM user_sessions WHERE emailAddress = \'\" . $emailAddress . \"\'\";\r\n		$SPADE[\'db\']->query($Q);\r\n		//*/\r\n\r\n		$Q = \"SELECT *\r\n			FROM _users\r\n			WHERE foreignId = \'\" . $foreignId . \"\'\";\r\n			//WHERE email = \'\" . $emailAddress . \"\'\";   // Old method\r\n\r\n		$userCheck = $SPADE[\'db\']->query($Q);\r\n\r\n		if (!is_array($userCheck)) {\r\n			$objResponse->user_id = 0;\r\n			$objResponse->detail = \'New user. Ready to be created.\';\r\n			$objResponse->company_vanity = $company[\'companyVanity\'];\r\n			\r\n			$temp = array(\'email\' => $emailAddress,\r\n					\'firstName\' => $firstName,\r\n					\'lastName\' => $lastName,\r\n					\'address\' => $address,\r\n					\'city\' => $city,\r\n					\'state\' => $state,\r\n					\'phone\' => $phone\r\n				);\r\n\r\n			// serialize user details to be stored in notes for session	\r\n			$sessionNotes = serialize($temp);\r\n\r\n		} elseif ( count($userCheck) > 1) {\r\n			$objResponse->user_id = 0;\r\n			$objResponse->session_id = \'ERROR\';\r\n			$objResponse->detail = \'Duplicate e-mail address. Contact us for help.\';\r\n			$objResponse->company_vanity = \'unknown\';\r\n\r\n			return $objResponse;\r\n\r\n		} elseif ( count($userCheck) == 1) {\r\n			// good things...\r\n			$userCheck = $userCheck[0];\r\n\r\n			$objResponse->user_id = $userCheck[\'id\'];\r\n			$objResponse->detail = \'Existing user, ready to authenticate.\';\r\n			$objResponse->company_vanity = $company[\'companyVanity\'];\r\n\r\n			$sessionNotes = $objResponse->detail;\r\n			\r\n		} else {\r\n			return \'FATAL ERROR\';\r\n		}\r\n\r\n		$objResponse->session_id = ($objResponse->session_id)\r\n						? $objResponse->session_id\r\n						: md5($username . $password . $emailAddress . microtime() . EHC_SESSION_KEY);\r\n\r\n		$Q = \"INSERT INTO user_sessions (userId, companyId, foreignId, emailAddress, ipAddress, referer, sessionId, expirationDate, notes)\r\n			VALUES (\" . (int)$objResponse->user_id . \",\r\n				\" . (int)$companyId . \",\r\n				\'\" . $foreignId . \"\',\r\n				\'\" . $emailAddress . \"\',\r\n				\'\" . $ipAddress . \"\',\r\n				\'\" . $company[\'domain\'] . \"\',\r\n				\'\" . $objResponse->session_id . \"\',\r\n				\" . (time() + 3600) . \",\r\n				\'\" . $sessionNotes . \"\')\";\r\n\r\nmail(\'kevin@onai.net\', \'query...\', $Q);\r\n\r\n		if (!$SPADE[\'db\']->query($Q)) {\r\n			$objResponse->session_id = \'ERROR\';\r\n			$objResponse->detail = \'Unable to create session.\';\r\n		}\r\n\r\n		return $objResponse; \r\n	}\r\n\r\n	function sendEstatEntries($objEstatEntries) {\r\n		global $SPADE;\r\n\r\n		$username = $objEstatEntries->username;\r\n		$password = $objEstatEntries->password;\r\n		$companyId = $objEstatEntries->company_id;\r\n\r\n		$objResponse = new stdClass();\r\n		$objResponse->estat_entry = array();\r\n\r\n		if (!is_array($objEstatEntries->estat_entry)) {\r\n			$objResponse->estat_entry[] = array(\r\n					\'id\' => 0,\r\n					\'confirmation\' => \'estat entry not an array.\'\r\n			);\r\n\r\n			return $objResponse;\r\n		}\r\n			\r\n		if (!count($objEstatEntries->estat_entry)) {\r\n			$objResponse->estat_entry[] = array(\r\n					\'id\' => 0,\r\n					\'confirmation\' => \'estat entries count failed.\'\r\n			);\r\n\r\n			return $objResponse;\r\n		}\r\n\r\n		if (!($company = authenticateCompany($username, $password, $companyId))) {\r\n			$objResponse->estat_entry[] = array(\r\n					\'id\' => 0,\r\n					\'confirmation\' => \'unable to authenticate company.\'\r\n			);\r\n\r\n			return $objResponse;\r\n		}\r\n		\r\n		if (!is_array($objEstatEntries->estat_entry)\r\n			|| !count($objEstatEntries->estat_entry) \r\n			|| !($company = authenticateCompany($username, $password, $companyId))) {\r\n\r\n			$objResponse->estat_entry[] = array(\r\n					\'id\' => 0,\r\n					\'confirmation\' => \'Unauthorized, unregistered, bad login, or no estat entries specified.\'\r\n			);\r\n\r\n			return $objResponse;\r\n		}\r\n\r\n		\r\n		$users = array();\r\n\r\n		foreach ($objEstatEntries->estat_entry as $entry) {\r\n			// get user info for this user, if we don\'t already have it loaded\r\n\r\n			if (!$users[$entry->foreign_id][\'id\']) {\r\n				//$Q = \"SELECT * FROM _users WHERE email = \'\" . $entry->email_address . \"\'\";\r\n				$Q = \"SELECT * FROM _users WHERE foreignId = \'\" . $entry->foreign_id . \"\'\";\r\n				\r\n				$users[$entry->foreign_id] = $SPADE[\'db\']->query($Q, DB_ROW);\r\n\r\n				if (!$users[$entry->foreign_id]) {\r\n					// couldn\'t find user by foreign ID\r\n					$objResponse->estat_entry[] = array(\r\n						\'id\' => 0,\r\n						\'confirmation\' => \'Could not find user with foreign ID \"\' . $entry->foreign_id . \'\".\'\r\n					);\r\n\r\n					continue;\r\n				}\r\n			}\r\n\r\n			/*//\r\n			$objResponse = new stdClass();\r\n			$objResponse->estat_entry[] = array(\'id\' => 0,\'confirmation\' => \'Query:\' . $Q);\r\n			return $objResponse;\r\n			//*/\r\n\r\n			$Q = \"REPLACE INTO estat_entries (userId, estatId, value, dateOfEntry, createdByUserId, dateCreated)\r\n				VALUES (\r\n					\" . (int)$users[$entry->foreign_id][\'id\'] . \",	\r\n					\" . (int)$entry->estat_id . \",\r\n					\'\" . $entry->value . \"\',\r\n					\'\" . strtotime($entry->date_of_entry) . \"\',\r\n					\" . (int)$company[\'userId\'] . \",\r\n					\" . time() . \"\r\n				)\";\r\n\r\n			if ($newId = $SPADE[\'db\']->query($Q)) {\r\n				$objResponse->estat_entry[] = array(\r\n					\'id\' => $newId,\r\n					\'confirmation\' => \'eStat entry recorded successfully.\'\r\n				);\r\n			} else {\r\n				$objResponse->estat_entry[] = array(\r\n					\'id\' => 0,\r\n					\'confirmation\' => \'An error occurred while attempting to record this estat entry.\'\r\n				);\r\n			}\r\n		}\r\n\r\n		return $objResponse;\r\n	}\r\n}\r\n\r\nclass EhcIntegrationServiceRpcEnc extends EhcIntegrationService {\r\n	function createSession($username, $password, $company_id, $foreign_id, $email_address, $ip_address, $first_name, $last_name, $address, $city, $state, $phone) {\r\n		$objSession = new stdClass();\r\n\r\n		$objSession->username = $username;\r\n		$objSession->password = $password;\r\n		$objSession->company_id = $company_id;\r\n		$objSession->foreign_id = $foreign_id;\r\n		$objSession->email_address = $email_address;\r\n		$objSession->ip_address = $ip_address;\r\n		$objSession->first_name = $first_name;\r\n		$objSession->last_name = $last_name;\r\n		$objSession->address = $address;\r\n		$objSession->city = $city;\r\n		$objSession->state = $state;\r\n		$objSession->phone = $phone;\r\n\r\n		$objResponse = parent::createSession($objSession);\r\n		$strResponse = $objResponse->user_id . \'::\' . $objResponse->session_id . \'::\' . $objResponse->detail . \'::\' . $objResponse->company_vanity;\r\n\r\n		return $strResponse;\r\n	}\r\n\r\n	function sendEstatEntries($username, $password, $company_id, $estat_entries) {\r\n		$objEstatEntries = new stdClass();\r\n\r\n		$objEstatEntries->username = $username;\r\n		$objEstatEntries->password = $password;\r\n		$objEstatEntries->company_id = $company_id;\r\n\r\n		$arrRawEntries = split(\'%%\', $estat_entries);\r\n\r\n		foreach ($arrRawEntries as $strRawEntry) {\r\n			$arrEntryElements = split(\'::\', $strRawEntry);\r\n\r\n			$objEntry = new stdClass();\r\n			$objEntry->foreign_id = $arrEntryElements[0];\r\n			$objEntry->estat_id = $arrEntryElements[1];\r\n			$objEntry->date_of_entry = $arrEntryElements[2];\r\n			$objEntry->value = $arrEntryElements[3];\r\n\r\n			$objEstatEntries->estat_entry[] = $objEntry; \r\n		}\r\n\r\n		$objResponse = parent::sendEstatEntries($objEstatEntries);\r\n\r\n		$strResponse = \'\';\r\n\r\n		foreach ($objResponse->estat_entry as $arrEstatEntry) {\r\n			$strResponse .= $arrEstatEntry[\'id\'] . \'::\' . $arrEstatEntry[\'confirmation\'] . \'%%\';\r\n		}\r\n\r\n		$strResponse = substr($strResponse, 0, -2);\r\n\r\n		return $strResponse;\r\n	}\r\n}\r\n\r\nif ($_REQUEST[\'style\'] == \'rpcenc\') {\r\n	$server = new SoapServer(\"webservices/eis-rpcenc.wsdl\"); \r\n	$server->setClass(\"EhcIntegrationServiceRpcEnc\");\r\n	$server->handle(); \r\n} else {\r\n	$server = new SoapServer(\"webservices/eis-doclit.wsdl\"); \r\n	$server->setClass(\"EhcIntegrationService\");\r\n	$server->handle(); \r\n}\r\n\r\n?>'),(4803,285,0.21,'php','0','Copied the page over from dev site... now testing.',1139552832,2,'24.2.76.126','<?php\r\n\r\n$SPADE[\'template\']->assign(\'pgLayout\', \'none\');\r\n\r\ndefine(\'EHC_SESSION_KEY\', \'Mr.Blodgett and Mr.Gwynn\');\r\n\r\n\r\n$fp = fopen (\'webservices.log.php\', \'a\');\r\nfwrite($fp, date(\'Ymd-His\') . \':::Request from:\' . $_SERVER[\'REMOTE_ADDR\'] . \':::\' . $HTTP_RAW_POST_DATA.\"\\n\");\r\nfclose($fp);\r\n\r\n\r\nfunction authenticateCompany( $username, $password, $companyId ) {\r\n	global $SPADE;\r\n\r\n	$ipAddress = $_SERVER[\'REMOTE_ADDR\'];		// This should be the IP of the connecting host\r\n\r\n	$Q = \"SELECT ci.*, c.userId, c.companyName, c.companyVanity\r\n		FROM company_integrations ci\r\n		INNER JOIN companies c ON (ci.companyId = c.id)\r\n		WHERE ci.companyId = \" . (int)$companyId . \"\r\n		AND ci.username = \'\" . $username . \"\'\r\n		AND ci.password = \'\" . md5($password) . \"\'\r\n		AND ci.ipAddress = \'\" . $ipAddress . \"\'\r\n		AND ci.isActive = \'yes\'\";\r\n\r\n	return $SPADE[\'db\']->query($Q, DB_ROW);\r\n}\r\n\r\n\r\nclass EhcIntegrationService { \r\n	//private $quotes = array(\"ibm\" => 98.42);   \r\n	\r\n	function createSession($objSession) { \r\n		global $SPADE;\r\n\r\n		$objResponse = new stdClass();\r\n\r\n		$username = $objSession->username;\r\n		$password = $objSession->password;\r\n		$companyId = $objSession->company_id;\r\n		$foreignId = $objSession->foreign_id;\r\n		$emailAddress = $objSession->email_address;  // email address of end user\r\n\r\n		$company = authenticateCompany($username, $password, $companyId);\r\n\r\n		if (!$emailAddress || !$company) {\r\n\r\n			$objResponse->user_id = \'0\';\r\n			$objResponse->session_id = \'ERROR\';\r\n			$objResponse->detail = \'Unauthorized, unregistered, bad login, or no email address specified.\';\r\n			$objResponse->company_vanity = \'unknown\';\r\n\r\n			return $objResponse;\r\n		}\r\n\r\n		$ipAddress = $objSession->ip_address;  // IP address of the end-user\r\n		$firstName = $objSession->first_name;\r\n		$lastName = $objSession->last_name;\r\n		$address = $objSession->address;\r\n		$city = $objSession->city;\r\n		$state = $objSession->state;\r\n		$phone = $objSession->phone;\r\n\r\n		/*// Optional section to delete entries that are expired\r\n		$Q = \"DELETE FROM user_sessions WHERE expirationDate < \" . time();\r\n		$SPADE[\'db\']->query($Q);\r\n		//*/\r\n\r\n		/*// Optional section to delete existing entries for this email address\r\n		$Q = \"DELETE FROM user_sessions WHERE emailAddress = \'\" . $emailAddress . \"\'\";\r\n		$SPADE[\'db\']->query($Q);\r\n		//*/\r\n\r\n		$Q = \"SELECT *\r\n			FROM _users\r\n			WHERE foreignId = \'\" . $foreignId . \"\'\";\r\n			//WHERE email = \'\" . $emailAddress . \"\'\";   // Old method\r\n\r\n		$userCheck = $SPADE[\'db\']->query($Q);\r\n\r\n		if (!is_array($userCheck)) {\r\n			$objResponse->user_id = 0;\r\n			$objResponse->detail = \'New user. Ready to be created.\';\r\n			$objResponse->company_vanity = $company[\'companyVanity\'];\r\n			\r\n			$temp = array(\'email\' => $emailAddress,\r\n					\'firstName\' => $firstName,\r\n					\'lastName\' => $lastName,\r\n					\'address\' => $address,\r\n					\'city\' => $city,\r\n					\'state\' => $state,\r\n					\'phone\' => $phone\r\n				);\r\n\r\n			// serialize user details to be stored in notes for session	\r\n			$sessionNotes = serialize($temp);\r\n\r\n		} elseif ( count($userCheck) > 1) {\r\n			$objResponse->user_id = 0;\r\n			$objResponse->session_id = \'ERROR\';\r\n			$objResponse->detail = \'Duplicate e-mail address. Contact us for help.\';\r\n			$objResponse->company_vanity = \'unknown\';\r\n\r\n			return $objResponse;\r\n\r\n		} elseif ( count($userCheck) == 1) {\r\n			// good things...\r\n			$userCheck = $userCheck[0];\r\n\r\n			$objResponse->user_id = $userCheck[\'id\'];\r\n			$objResponse->detail = \'Existing user, ready to authenticate.\';\r\n			$objResponse->company_vanity = $company[\'companyVanity\'];\r\n\r\n			$sessionNotes = $objResponse->detail;\r\n			\r\n		} else {\r\n			return \'FATAL ERROR\';\r\n		}\r\n\r\n		$objResponse->session_id = ($objResponse->session_id)\r\n						? $objResponse->session_id\r\n						: md5($username . $password . $emailAddress . microtime() . EHC_SESSION_KEY);\r\n\r\n		$Q = \"INSERT INTO user_sessions (userId, companyId, foreignId, emailAddress, ipAddress, referer, sessionId, expirationDate, notes)\r\n			VALUES (\" . (int)$objResponse->user_id . \",\r\n				\" . (int)$companyId . \",\r\n				\'\" . $foreignId . \"\',\r\n				\'\" . $emailAddress . \"\',\r\n				\'\" . $ipAddress . \"\',\r\n				\'\" . $company[\'domain\'] . \"\',\r\n				\'\" . $objResponse->session_id . \"\',\r\n				\" . (time() + 3600) . \",\r\n				\'\" . $sessionNotes . \"\')\";\r\n\r\n		if (!$SPADE[\'db\']->query($Q)) {\r\n			$objResponse->session_id = \'ERROR\';\r\n			$objResponse->detail = \'Unable to create session.\';\r\n		}\r\n\r\n		return $objResponse; \r\n	}\r\n\r\n	function sendEstatEntries($objEstatEntries) {\r\n		global $SPADE;\r\n\r\n		$username = $objEstatEntries->username;\r\n		$password = $objEstatEntries->password;\r\n		$companyId = $objEstatEntries->company_id;\r\n\r\n		$objResponse = new stdClass();\r\n		$objResponse->estat_entry = array();\r\n\r\n		if (!is_array($objEstatEntries->estat_entry)) {\r\n			$objResponse->estat_entry[] = array(\r\n					\'id\' => 0,\r\n					\'confirmation\' => \'estat entry not an array.\'\r\n			);\r\n\r\n			return $objResponse;\r\n		}\r\n			\r\n		if (!count($objEstatEntries->estat_entry)) {\r\n			$objResponse->estat_entry[] = array(\r\n					\'id\' => 0,\r\n					\'confirmation\' => \'estat entries count failed.\'\r\n			);\r\n\r\n			return $objResponse;\r\n		}\r\n\r\n		if (!($company = authenticateCompany($username, $password, $companyId))) {\r\n			$objResponse->estat_entry[] = array(\r\n					\'id\' => 0,\r\n					\'confirmation\' => \'unable to authenticate company.\'\r\n			);\r\n\r\n			return $objResponse;\r\n		}\r\n		\r\n		if (!is_array($objEstatEntries->estat_entry)\r\n			|| !count($objEstatEntries->estat_entry) \r\n			|| !($company = authenticateCompany($username, $password, $companyId))) {\r\n\r\n			$objResponse->estat_entry[] = array(\r\n					\'id\' => 0,\r\n					\'confirmation\' => \'Unauthorized, unregistered, bad login, or no estat entries specified.\'\r\n			);\r\n\r\n			return $objResponse;\r\n		}\r\n\r\n		\r\n		$users = array();\r\n\r\n		foreach ($objEstatEntries->estat_entry as $entry) {\r\n			// get user info for this user, if we don\'t already have it loaded\r\n\r\n			if (!$users[$entry->foreign_id][\'id\']) {\r\n				//$Q = \"SELECT * FROM _users WHERE email = \'\" . $entry->email_address . \"\'\";\r\n				$Q = \"SELECT * FROM _users WHERE foreignId = \'\" . $entry->foreign_id . \"\'\";\r\n				\r\n				$users[$entry->foreign_id] = $SPADE[\'db\']->query($Q, DB_ROW);\r\n\r\n				if (!$users[$entry->foreign_id]) {\r\n					// couldn\'t find user by foreign ID\r\n					$objResponse->estat_entry[] = array(\r\n						\'id\' => 0,\r\n						\'confirmation\' => \'Could not find user with foreign ID \"\' . $entry->foreign_id . \'\".\'\r\n					);\r\n\r\n					continue;\r\n				}\r\n			}\r\n\r\n			/*//\r\n			$objResponse = new stdClass();\r\n			$objResponse->estat_entry[] = array(\'id\' => 0,\'confirmation\' => \'Query:\' . $Q);\r\n			return $objResponse;\r\n			//*/\r\n\r\n			$Q = \"REPLACE INTO estat_entries (userId, estatId, value, dateOfEntry, createdByUserId, dateCreated)\r\n				VALUES (\r\n					\" . (int)$users[$entry->foreign_id][\'id\'] . \",	\r\n					\" . (int)$entry->estat_id . \",\r\n					\'\" . $entry->value . \"\',\r\n					\'\" . strtotime($entry->date_of_entry) . \"\',\r\n					\" . (int)$company[\'userId\'] . \",\r\n					\" . time() . \"\r\n				)\";\r\n\r\n			if ($newId = $SPADE[\'db\']->query($Q)) {\r\n				$objResponse->estat_entry[] = array(\r\n					\'id\' => $newId,\r\n					\'confirmation\' => \'eStat entry recorded successfully.\'\r\n				);\r\n			} else {\r\n				$objResponse->estat_entry[] = array(\r\n					\'id\' => 0,\r\n					\'confirmation\' => \'An error occurred while attempting to record this estat entry.\'\r\n				);\r\n			}\r\n		}\r\n\r\n		return $objResponse;\r\n	}\r\n}\r\n\r\nclass EhcIntegrationServiceRpcEnc extends EhcIntegrationService {\r\n	function createSession($username, $password, $company_id, $foreign_id, $email_address, $ip_address, $first_name, $last_name, $address, $city, $state, $phone) {\r\n		$objSession = new stdClass();\r\n\r\n		$objSession->username = $username;\r\n		$objSession->password = $password;\r\n		$objSession->company_id = $company_id;\r\n		$objSession->foreign_id = $foreign_id;\r\n		$objSession->email_address = $email_address;\r\n		$objSession->ip_address = $ip_address;\r\n		$objSession->first_name = $first_name;\r\n		$objSession->last_name = $last_name;\r\n		$objSession->address = $address;\r\n		$objSession->city = $city;\r\n		$objSession->state = $state;\r\n		$objSession->phone = $phone;\r\n\r\n		$objResponse = parent::createSession($objSession);\r\n		$strResponse = $objResponse->user_id . \'::\' . $objResponse->session_id . \'::\' . $objResponse->detail . \'::\' . $objResponse->company_vanity;\r\n\r\n		return $strResponse;\r\n	}\r\n\r\n	function sendEstatEntries($username, $password, $company_id, $estat_entries) {\r\n		$objEstatEntries = new stdClass();\r\n\r\n		$objEstatEntries->username = $username;\r\n		$objEstatEntries->password = $password;\r\n		$objEstatEntries->company_id = $company_id;\r\n\r\n		$arrRawEntries = split(\'%%\', $estat_entries);\r\n\r\n		foreach ($arrRawEntries as $strRawEntry) {\r\n			$arrEntryElements = split(\'::\', $strRawEntry);\r\n\r\n			$objEntry = new stdClass();\r\n			$objEntry->foreign_id = $arrEntryElements[0];\r\n			$objEntry->estat_id = $arrEntryElements[1];\r\n			$objEntry->date_of_entry = $arrEntryElements[2];\r\n			$objEntry->value = $arrEntryElements[3];\r\n\r\n			$objEstatEntries->estat_entry[] = $objEntry; \r\n		}\r\n\r\n		$objResponse = parent::sendEstatEntries($objEstatEntries);\r\n\r\n		$strResponse = \'\';\r\n\r\n		foreach ($objResponse->estat_entry as $arrEstatEntry) {\r\n			$strResponse .= $arrEstatEntry[\'id\'] . \'::\' . $arrEstatEntry[\'confirmation\'] . \'%%\';\r\n		}\r\n\r\n		$strResponse = substr($strResponse, 0, -2);\r\n\r\n		return $strResponse;\r\n	}\r\n}\r\n\r\nif ($_REQUEST[\'style\'] == \'rpcenc\') {\r\n	$server = new SoapServer(\"webservices/eis-rpcenc.wsdl\"); \r\n	$server->setClass(\"EhcIntegrationServiceRpcEnc\");\r\n	$server->handle(); \r\n} else {\r\n	$server = new SoapServer(\"webservices/eis-doclit.wsdl\"); \r\n	$server->setClass(\"EhcIntegrationService\");\r\n	$server->handle(); \r\n}\r\n\r\n?>'),(4930,196,1.68,'smarty','0','Fixing healthy for life link stuff',1141110690,2,'24.2.76.126','{if $smarty.session.company.preferences.hide_incentives eq \"yes\"}{include file=\"file:layouts/hiddenPageRedirector.tpl\"}{/if}\r\n{include file=\"layouts/forceLoggedIn.tpl\"}\r\n\r\n{* HANDLERS *}\r\n{include_php file=\"shared_handle:company/participationPoints_v2\"}\r\n{include_php file=\"shared_handle:company/surveyList\"}\r\n{include_php file=\"shared_handle:company/incentivePointAdjustments\"}\r\n\r\n\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{if $smarty.session.company.preferences.title_my_incentives}{$smarty.session.company.preferences.title_my_incentives}</h1>{else}\r\n<h1>{$page.title}</h1>{/if}\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	{$incentiveText|default:\"<em>Yearly Incentive</em><br /><br />Not Yet Determined.\"}	\r\n</td></tr>\r\n</table>\r\n<br />\r\n{assign var=\"surveyPointsEarned\" value=$surveyPointsEarned|default:\"0\"}\r\n{assign var=\"totalIncentivePointAdjustments\" value=$totalIncentivePointAdjustments|default:\"0\"}\r\n<h2 class=\"boxed\"><i>Total Points Earned</i>: <em>{$totalParticipationPoints|math:\"x+$surveyPointsEarned+$totalIncentivePointAdjustments\"}</em></h2>\r\n\r\n<blockquote>\r\n<table width=\"700\">\r\n<tr><td valign=\"top\">\r\n	\r\n	<table>\r\n	<tr><td colspan=\"2\">\r\n		<h3>Available {if $smarty.session.company.preferences.change_word_survey}{$smarty.session.company.preferences.change_word_survey}{else} Surveys:</h3></td>{/if}\r\n	    <td valign=\"middle\"></td></tr>\r\n	{foreach from=$surveys item=item name=\"loopSurveys\"}\r\n	{assign var=\"hideCheck\" value=\"hide_survey_`$item.id`\"}\r\n	{if $smarty.session.company.preferences[$hideCheck] neq \"yes\"}\r\n		<tr><td valign=\"top\" nowrap=\"nowrap\">\r\n		{if $item.dateAvailable gt 0}\r\n			<img class=\"sIco ico{$item.icon}\" 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=\"sIco ico{$item.icon}\" 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	{/if}\r\n	{foreachelse}\r\n	<tr><td valign=\"top\" colspan=\"3\">>\r\n		None found.</td></tr>\r\n	{/foreach}\r\n\r\n	<tr><td>&nbsp;</td>\r\n	    <td align=\"right\"><em>{if $smarty.session.company.preferences.change_word_survey}{$smarty.session.company.preferences.change_word_survey}&nbsppoints earned{else}Survey points earned:{/if}</em></td>\r\n	    <td align=\"center\"><span class=\"boxed\">{$surveyPointsEarned|default:0}</span></td></tr>\r\n\r\n	{if $smarty.session.company.preferences.healthyForLifeLink}\r\n	<tr><td colspan=\"2\">\r\n		<ul><li><a href=\"?pg=healthyForLife\" style=\"color:#003366;\">{$smarty.session.company.preferences.healthyForLifeLink}</a></li></ul></td>\r\n	    <td valign=\"middle\"></td></tr>\r\n	{/if}\r\n\r\n	{if $smarty.session.company.preferences.hide_survey_hra neq \"yes\"}\r\n		{select_query return=\"row\" assign=\"aHRA\"}\r\n			dateTaken, pointsEarned FROM surveys_taken\r\n			WHERE userId = {$user->id}\r\n			AND surveyId = 8\r\n			ORDER BY dateTaken DESC\r\n			LIMIT 1\r\n		{/select_query}\r\n		<tr><td><img class=\"icoStethescope\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" /></td>\r\n		    <td><b><u>HRA Score</u>:</b>\r\n		    {if ($aHRA.dateTaken eq \"\") OR ($aHRA.dateTaken < $smarty.now|math:\"x - 31536000\")}<br /><a href=\"javascript://\" onclick=\"openSurvey(8);\">Available Now</a>{/if}</td>\r\n		    <td align=\"center\"><em>{$aHRA.pointsEarned}</em></td></tr>\r\n	{/if}\r\n\r\n	{if $vanity eq \"onai\" or $vanity eq \"mycompany\" or $vanity eq \"zions\" or $vanity eq \"zions2\"}\r\n	<tr><td><img class=\"icoWeights\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" /></td>\r\n		    <td><b><u>Consumer Tools</u>:</b><br /><em>NEW<i>!</i></em></td>\r\n		    <td align=\"center\"><a href=\"?pg=consumer_tools\">Click Here</a></td></tr>\r\n	{/if}\r\n\r\n	{if 0 neq $totalIncentivePointAdjustments}\r\n	<br style=\"clear:left;\" />\r\n	<tr><td colspan=\"3\"><h3>Adjustments/Redemptions:</h3></td></tr>\r\n        {foreach from=$incentivePointAdjustments item=\"adjustment\" name=\"loopAdjustments\"}<tr><td nowrap>\r\n	<tr><td colspan=\"2\"><small><i>{$adjustment.dateAssigned|date_format2:\"m/d/Y\"}</i> - {$adjustment.comment}</small></td>\r\n	    <td valign=\"middle\" align=\"right\"><em>{$adjustment.points}</em></td></tr>\r\n        {foreachelse}\r\n		<tr><td colspan=\"3\">None.</td></tr>\r\n        {/foreach}\r\n	<tr><td colspan=\"2\" align=\"right\"><em>Total:</em></td>\r\n		<td align=\"center\" nowrap=\"nowrap\"><span class=\"boxed\"><nobr>{$totalIncentivePointAdjustments|default:0}</nobr></span></td></tr>\r\n	{/if}\r\n\r\n	</table>\r\n\r\n</td><td valign=\"top\">\r\n	<h3>Feedback:</h3>\r\n	<table>\r\n	<tr><td>\r\n	<img class=\"icoNurse\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" />\r\n	</td><td>\r\n	<ul>\r\n		<li><a href=\"javascript:viewSurveys();\">Review My History</a></li>\r\n		{if $smarty.session.company.preferences.hide_survey_hra neq \"yes\"}\r\n		<li><a href=\"?pg=HRAScoreInfo\">HRA Score Info</a></li>\r\n		{/if}\r\n	<ul>\r\n	</td></tr>\r\n	</table>\r\n	<br />\r\n\r\n	{if $aScales|@count gt 0} {* PARTICIPATION POINTS -- IF APPLICABLE *}\r\n	<table align=\"right\">\r\n	<tr><td colspan=\"3\"><h3>Participation Points:</h3></td></tr>\r\n        {foreach from=$aScales item=\"scale\" name=\"loopScales\"}<tr><td nowrap>\r\n	<tr><td>{$scale.name|niceText}</td>\r\n	    <td><small>({$scale.dateStart|date_format2:\"m/d/y\"} - {$scale.dateEnd|date_format2:\"m/d/y\"})</small></td>\r\n	    <td valign=\"middle\" align=\"right\"><em>{$aScores[$scale.id]|number_format:\"1\"}</em></td></tr>\r\n        {foreachelse}\r\n		<tr><td colspan=\"3\">None.</td></tr>\r\n        {/foreach}\r\n	<tr><td colspan=\"2\" align=\"right\"><em>Participation points earned:</em></td>\r\n		<td align=\"right\"><span class=\"boxed\">{$totalParticipationPoints|default:0}</span></td></tr>\r\n	</table>\r\n	{/if}\r\n\r\n	</td></tr>\r\n</table>\r\n</blockquote>'),(4825,196,1.53,'smarty','0','Finally added table for adjustments',1139606205,16,'216.194.127.150','{if $smarty.session.company.preferences.hide_incentives eq \"yes\"}{include file=\"file:layouts/hiddenPageRedirector.tpl\"}{/if}\r\n{include file=\"layouts/forceLoggedIn.tpl\"}\r\n\r\n{* HANDLERS *}\r\n{include_php file=\"shared_handle:company/participationPoints_v2\"}\r\n{include_php file=\"shared_handle:company/surveyList\"}\r\n{include_php file=\"shared_handle:company/incentivePointAdjustments\"}\r\n{***{include_php file=\"shared_handle:company/wellnessConnectionList\"}***}\r\n\r\n\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{if $smarty.session.company.preferences.title_my_incentives}{$smarty.session.company.preferences.title_my_incentives}</h1>{else}\r\n<h1>{$page.title}</h1>{/if}\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	{$incentiveText|default:\"<em>Yearly Incentive</em><br /><br />Not Yet Determined.\"}	\r\n</td></tr>\r\n</table>\r\n<br />\r\n{assign var=\"surveyPointsEarned\" value=$surveyPointsEarned|default:\"0\"}\r\n{assign var=\"totalIncentivePointAdjustments\" value=$totalIncentivePointAdjustments|default:\"0\"}\r\n<h2 class=\"boxed\"><i>Total Points Earned</i>: <em>{$totalParticipationPoints|math:\"x+$surveyPointsEarned+$totalIncentivePointAdjustments\"}</em></h2>\r\n\r\n<blockquote>\r\n<table width=\"700\">\r\n<tr><td valign=\"top\">\r\n	\r\n	<table>\r\n	<tr><td colspan=\"2\">\r\n		<h3>{if $smarty.session.company.preferences.change_word_survey}{$smarty.session.company.preferences.change_word_survey}{else}Available Surveys:</h3></td>{/if}\r\n	    <td valign=\"middle\"></td></tr>\r\n	{foreach from=$surveys item=item name=\"loopSurveys\"}\r\n	{assign var=\"hideCheck\" value=\"hide_survey_`$item.id`\"}\r\n	{if $smarty.session.company.preferences[$hideCheck] neq \"yes\"}\r\n		<tr><td valign=\"top\" nowrap=\"nowrap\">\r\n		{if $item.dateAvailable gt 0}\r\n			<img class=\"sIco ico{$item.icon}\" 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=\"sIco ico{$item.icon}\" 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	{/if}\r\n	{foreachelse}\r\n	<tr><td valign=\"top\" colspan=\"3\">>\r\n		None found.</td></tr>\r\n	{/foreach}\r\n\r\n	<tr><td>&nbsp;</td>\r\n	    <td align=\"right\"><em>Survey points earned:</em></td>\r\n	    <td align=\"center\"><span class=\"boxed\">{$surveyPointsEarned|default:0}</span></td></tr>\r\n\r\n	<tr><td colspan=\"2\">\r\n		<h3>{if $smarty.session.company.preferences.wellnessConnection}{$smarty.session.company.preferences.wellnessConnection}<br /><a href=\"?wellnessConnection\">Click Here</a>{else}</h3></td>\r\n		{/if}\r\n	    <td valign=\"middle\"></td></tr>\r\n\r\n{**** Wellness Connection Special Surveys \r\n\r\n<tr>\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	</tr>\r\n\r\n\r\n\r\n\r\nEnd Wellness Connection Speacial Surveys *******}\r\n\r\n	{if $smarty.session.company.preferences.hide_survey_hra neq \"yes\"}\r\n		{select_query return=\"row\" assign=\"aHRA\"}\r\n			dateTaken, pointsEarned FROM surveys_taken\r\n			WHERE userId = {$user->id}\r\n			AND surveyId = 8\r\n			ORDER BY dateTaken DESC\r\n			LIMIT 1\r\n		{/select_query}\r\n		<tr><td><img class=\"icoStethescope\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" /></td>\r\n		    <td><b><u>HRA Score</u>:</b>\r\n		    {if ($aHRA.dateTaken eq \"\") OR ($aHRA.dateTaken < $smarty.now|math:\"x - 31536000\")}<br /><a href=\"javascript://\" onclick=\"openSurvey(8);\">Available Now</a>{/if}</td>\r\n		    <td align=\"center\"><em>{$aHRA.pointsEarned}</em></td></tr>\r\n	{/if}\r\n\r\n	{if $vanity eq \"onai\" or $vanity eq \"mycompany\" or $vanity eq \"zions\" or $vanity eq \"zions2\"}\r\n	<tr><td><img class=\"icoWeights\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" /></td>\r\n		    <td><b><u>Consumer Tools</u>:</b><br /><em>NEW<i>!</i></em></td>\r\n		    <td align=\"center\"><a href=\"?pg=consumer_tools\">Click Here</a></td></tr>\r\n	{/if}\r\n\r\n	{if 0 neq $totalIncentivePointAdjustments}\r\n	<br style=\"clear:left;\" />\r\n	<tr><td colspan=\"3\"><h3>Adjustments/Redemptions:</h3></td></tr>\r\n        {foreach from=$incentivePointAdjustments item=\"adjustment\" name=\"loopAdjustments\"}<tr><td nowrap>\r\n	<tr><td colspan=\"2\"><small><i>{$adjustment.dateAssigned|date_format2:\"m/d/Y\"}</i> - {$adjustment.comment}</small></td>\r\n	    <td valign=\"middle\" align=\"right\"><em>{$adjustment.points}</em></td></tr>\r\n        {foreachelse}\r\n		<tr><td colspan=\"3\">None.</td></tr>\r\n        {/foreach}\r\n	<tr><td colspan=\"2\" align=\"right\"><em>Total:</em></td>\r\n		<td align=\"center\" nowrap=\"nowrap\"><span class=\"boxed\"><nobr>{$totalIncentivePointAdjustments|default:0}</nobr></span></td></tr>\r\n	{/if}\r\n\r\n	</table>\r\n\r\n</td><td valign=\"top\">\r\n	<h3>Feedback:</h3>\r\n	<table>\r\n	<tr><td>\r\n	<img class=\"icoNurse\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" />\r\n	</td><td>\r\n	<ul>\r\n		<li><a href=\"javascript:viewSurveys();\">Review My Survey Taking History</a></li>\r\n		{if $smarty.session.company.preferences.hide_survey_hra neq \"yes\"}\r\n		<li><a href=\"?pg=HRAScoreInfo\">HRA Score Info</a></li>\r\n		{/if}\r\n	<ul>\r\n	</td></tr>\r\n	</table>\r\n	<br />\r\n\r\n	{if $aScales|@count gt 0} {* PARTICIPATION POINTS -- IF APPLICABLE *}\r\n	<table align=\"right\">\r\n	<tr><td colspan=\"3\"><h3>Participation Points:</h3></td></tr>\r\n        {foreach from=$aScales item=\"scale\" name=\"loopScales\"}<tr><td nowrap>\r\n	<tr><td>{$scale.name|niceText}</td>\r\n	    <td><small>({$scale.dateStart|date_format2:\"m/d/y\"} - {$scale.dateEnd|date_format2:\"m/d/y\"})</small></td>\r\n	    <td valign=\"middle\" align=\"right\"><em>{$aScores[$scale.id]|number_format:\"1\"}</em></td></tr>\r\n        {foreachelse}\r\n		<tr><td colspan=\"3\">None.</td></tr>\r\n        {/foreach}\r\n	<tr><td colspan=\"2\" align=\"right\"><em>Participation points earned:</em></td>\r\n		<td align=\"right\"><span class=\"boxed\">{$totalParticipationPoints|default:0}</span></td></tr>\r\n	</table>\r\n	{/if}\r\n\r\n	</td></tr>\r\n</table>\r\n</blockquote>'),(4832,196,1.57,'smarty','0','Finally added table for adjustments',1139607283,16,'216.194.127.150','{if $smarty.session.company.preferences.hide_incentives eq \"yes\"}{include file=\"file:layouts/hiddenPageRedirector.tpl\"}{/if}\r\n{include file=\"layouts/forceLoggedIn.tpl\"}\r\n\r\n{* HANDLERS *}\r\n{include_php file=\"shared_handle:company/participationPoints_v2\"}\r\n{include_php file=\"shared_handle:company/surveyList\"}\r\n{include_php file=\"shared_handle:company/incentivePointAdjustments\"}\r\n\r\n\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{if $smarty.session.company.preferences.title_my_incentives}{$smarty.session.company.preferences.title_my_incentives}</h1>{else}\r\n<h1>{$page.title}</h1>{/if}\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	{$incentiveText|default:\"<em>Yearly Incentive</em><br /><br />Not Yet Determined.\"}	\r\n</td></tr>\r\n</table>\r\n<br />\r\n{assign var=\"surveyPointsEarned\" value=$surveyPointsEarned|default:\"0\"}\r\n{assign var=\"totalIncentivePointAdjustments\" value=$totalIncentivePointAdjustments|default:\"0\"}\r\n<h2 class=\"boxed\"><i>Total Points Earned</i>: <em>{$totalParticipationPoints|math:\"x+$surveyPointsEarned+$totalIncentivePointAdjustments\"}</em></h2>\r\n\r\n<blockquote>\r\n<table width=\"700\">\r\n<tr><td valign=\"top\">\r\n	\r\n	<table>\r\n	<tr><td colspan=\"2\">\r\n		<h3>{if $smarty.session.company.preferences.change_word_survey}{$smarty.session.company.preferences.change_word_survey}{else}Available Surveys:</h3></td>{/if}\r\n	    <td valign=\"middle\"></td></tr>\r\n	{foreach from=$surveys item=item name=\"loopSurveys\"}\r\n	{assign var=\"hideCheck\" value=\"hide_survey_`$item.id`\"}\r\n	{if $smarty.session.company.preferences[$hideCheck] neq \"yes\"}\r\n		<tr><td valign=\"top\" nowrap=\"nowrap\">\r\n		{if $item.dateAvailable gt 0}\r\n			<img class=\"sIco ico{$item.icon}\" 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=\"sIco ico{$item.icon}\" 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	{/if}\r\n	{foreachelse}\r\n	<tr><td valign=\"top\" colspan=\"3\">>\r\n		None found.</td></tr>\r\n	{/foreach}\r\n\r\n	<tr><td>&nbsp;</td>\r\n	    <td align=\"right\"><em>Survey points earned:</em></td>\r\n	    <td align=\"center\"><span class=\"boxed\">{$surveyPointsEarned|default:0}</span></td></tr>\r\n\r\n	<tr><td colspan=\"2\">\r\n		<h3>{if $smarty.session.company.preferences.wellnessConnection}{$smarty.session.company.preferences.wellnessConnection}<br /><a href=\"?pg=wellnessConnection\">Click Here</a>{else}</h3></td>\r\n		{/if}\r\n	    <td valign=\"middle\"></td></tr>\r\n\r\n\r\n	{if $smarty.session.company.preferences.hide_survey_hra neq \"yes\"}\r\n		{select_query return=\"row\" assign=\"aHRA\"}\r\n			dateTaken, pointsEarned FROM surveys_taken\r\n			WHERE userId = {$user->id}\r\n			AND surveyId = 8\r\n			ORDER BY dateTaken DESC\r\n			LIMIT 1\r\n		{/select_query}\r\n		<tr><td><img class=\"icoStethescope\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" /></td>\r\n		    <td><b><u>HRA Score</u>:</b>\r\n		    {if ($aHRA.dateTaken eq \"\") OR ($aHRA.dateTaken < $smarty.now|math:\"x - 31536000\")}<br /><a href=\"javascript://\" onclick=\"openSurvey(8);\">Available Now</a>{/if}</td>\r\n		    <td align=\"center\"><em>{$aHRA.pointsEarned}</em></td></tr>\r\n	{/if}\r\n\r\n	{if $vanity eq \"onai\" or $vanity eq \"mycompany\" or $vanity eq \"zions\" or $vanity eq \"zions2\"}\r\n	<tr><td><img class=\"icoWeights\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" /></td>\r\n		    <td><b><u>Consumer Tools</u>:</b><br /><em>NEW<i>!</i></em></td>\r\n		    <td align=\"center\"><a href=\"?pg=consumer_tools\">Click Here</a></td></tr>\r\n	{/if}\r\n\r\n	{if 0 neq $totalIncentivePointAdjustments}\r\n	<br style=\"clear:left;\" />\r\n	<tr><td colspan=\"3\"><h3>Adjustments/Redemptions:</h3></td></tr>\r\n        {foreach from=$incentivePointAdjustments item=\"adjustment\" name=\"loopAdjustments\"}<tr><td nowrap>\r\n	<tr><td colspan=\"2\"><small><i>{$adjustment.dateAssigned|date_format2:\"m/d/Y\"}</i> - {$adjustment.comment}</small></td>\r\n	    <td valign=\"middle\" align=\"right\"><em>{$adjustment.points}</em></td></tr>\r\n        {foreachelse}\r\n		<tr><td colspan=\"3\">None.</td></tr>\r\n        {/foreach}\r\n	<tr><td colspan=\"2\" align=\"right\"><em>Total:</em></td>\r\n		<td align=\"center\" nowrap=\"nowrap\"><span class=\"boxed\"><nobr>{$totalIncentivePointAdjustments|default:0}</nobr></span></td></tr>\r\n	{/if}\r\n\r\n	</table>\r\n\r\n</td><td valign=\"top\">\r\n	<h3>Feedback:</h3>\r\n	<table>\r\n	<tr><td>\r\n	<img class=\"icoNurse\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" />\r\n	</td><td>\r\n	<ul>\r\n		<li><a href=\"javascript:viewSurveys();\">Review My Survey Taking History</a></li>\r\n		{if $smarty.session.company.preferences.hide_survey_hra neq \"yes\"}\r\n		<li><a href=\"?pg=HRAScoreInfo\">HRA Score Info</a></li>\r\n		{/if}\r\n	<ul>\r\n	</td></tr>\r\n	</table>\r\n	<br />\r\n\r\n	{if $aScales|@count gt 0} {* PARTICIPATION POINTS -- IF APPLICABLE *}\r\n	<table align=\"right\">\r\n	<tr><td colspan=\"3\"><h3>Participation Points:</h3></td></tr>\r\n        {foreach from=$aScales item=\"scale\" name=\"loopScales\"}<tr><td nowrap>\r\n	<tr><td>{$scale.name|niceText}</td>\r\n	    <td><small>({$scale.dateStart|date_format2:\"m/d/y\"} - {$scale.dateEnd|date_format2:\"m/d/y\"})</small></td>\r\n	    <td valign=\"middle\" align=\"right\"><em>{$aScores[$scale.id]|number_format:\"1\"}</em></td></tr>\r\n        {foreachelse}\r\n		<tr><td colspan=\"3\">None.</td></tr>\r\n        {/foreach}\r\n	<tr><td colspan=\"2\" align=\"right\"><em>Participation points earned:</em></td>\r\n		<td align=\"right\"><span class=\"boxed\">{$totalParticipationPoints|default:0}</span></td></tr>\r\n	</table>\r\n	{/if}\r\n\r\n	</td></tr>\r\n</table>\r\n</blockquote>'),(4837,287,0.10,'smarty','0','Page created.',1139939368,1124,'216.194.127.150',''),(4838,287,0.11,'smarty','0','Page created.',1139939517,1124,'216.194.127.150','<hl>To the gym... in a hurry! </hl>\r\n<p>Like many women, I found \"diet\" and \"exercise\" to be nagging and dreaded words that brought no motivation to change. I would stay on track for a week, maybe two, then find myself right back where I started. </p>\r\n<p>I just couldn\'t find the time or energy to devote to exercising, and fast food french fries were just too tasty. When I didn\'t see results immediately, I would get discouraged and lose any motivation that I had managed to summon up. </p>\r\n<p>But this time I knew I had to do something differently. I soon abandoned my old idea of \"diet\" and \"exercise\" as I began to learn about the importance of physical activity for my overall health and well being. </p>\r\n<p>Armed with a different perspective and a definite goal, I decided to make some changes. I want to share some things I have learned along this road to better health. </p>\r\n<b>Change your perspective</b> \r\n<p>First, block out all those images of skinny people in tight outfits running for an hour, five days a week. Forget the claims of a fabulous stomach in seven days. The goal is to be more physically active, not become a fitness maniac. Physical activity is so much more than \"exercise\" or \"fitness\"; it can be anything to make you move more than you do now. </p>\r\n<p>The best part is that new research shows that physical activity doesn\'t have to be strenuous to achieve health benefits. Forget the days of \"no pain, no gain.\" Just 30 minutes of moderate activity accumulated over the entire day can benefit your health, making you look and feel better. Now, this is do-able! </p>\r\n<p>Physical activity is everywhere. It\'s at home, at work, in your neighborhood. You can choose to set aside time in your day to be more physically active - take a walk, go to a health club, or participate in a recreation or sport activity. Or you can just make physical activity a part of your day - work in the yard, vacuum, take the long way, walk the dog. </p>\r\n<p>I chose to join a health club. I lift weights for strength, stretch for flexibility, and swim and use an upper arm ergometer (bicycle for your arms) for aerobic exercise. A purposeful increase in physical activity made a huge difference for me. I soon found that I didn\'t get as tired during the day. My daily activities were easier, because I had more strength and endurance. My clothes fit better. Overall, I just felt better. </p>\r\n<b>Getting started </b >\r\n<p>This is an opportunity to make choices for your own health. The first step is to decide that your health is important enough to make changes. No matter how long you\'ve been sitting on that couch, it\'s never too late to be more active. </p>\r\n<p>Once you\'ve made the choice, the key is deciding where to begin and staying motivated. Here are some hints for getting started and sticking with it. </p>\r\n<li>Remember that any increase in physical activity is better than doing nothing. </li>\r\n<li>Find something you like to do to that increases your level of physical activity. The more fun you have, the more likely you\'ll want to do it.</li> \r\n<li>Set realistic and achievable short-term goals. Avoid large, vague goals such as getting in shape. </li>\r\n<li>Don\'t attempt too much too fast. Increase your physical activity in small increments over time. You can start with as little as five minutes a day. If it is part of your daily routine, you are more likely to stick with it. </li>\r\n<li>Talk to your doctor and make sure you know your body and are aware of any health or safety issues that might affect the way you choose to be physically active. </li>\r\n<li>Involve your spouse, a friend, kids, or pets to make it more enjoyable.</li> \r\n<li>If your old habits return, don\'t worry; tomorrow can be a fresh start.</li> \r\n<li>Find some way to create accountability. Have a friend or family member ask how you are doing with your goals or chart your progress. </li>\r\n<li>If you find yourself getting bored, find a different activity. The possibilities are endless. </li>\r\n<li>Reward yourself! </li>\r\n<p>My wedding day has passed and I reached my first goal, but this is just the beginning. If I am going to stay healthy and independent and continue to do the things I love, I know I have to remain active. I\'ve found the benefits far outweigh the effort. You can do this! Don\'t wait any longer! Isn\'t your health worth it? </p>\r\n<p>By Lauren Howard, Consultant, NC Office on Disability and Health</p>\r\n\r\n'),(4839,287,0.12,'smarty','0','Page created.',1139939562,1124,'216.194.127.150','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<hl>To the gym... in a hurry! </hl>\r\n<p>Like many women, I found \"diet\" and \"exercise\" to be nagging and dreaded words that brought no motivation to change. I would stay on track for a week, maybe two, then find myself right back where I started. </p>\r\n<p>I just couldn\'t find the time or energy to devote to exercising, and fast food french fries were just too tasty. When I didn\'t see results immediately, I would get discouraged and lose any motivation that I had managed to summon up. </p>\r\n<p>But this time I knew I had to do something differently. I soon abandoned my old idea of \"diet\" and \"exercise\" as I began to learn about the importance of physical activity for my overall health and well being. </p>\r\n<p>Armed with a different perspective and a definite goal, I decided to make some changes. I want to share some things I have learned along this road to better health. </p>\r\n<b>Change your perspective</b> \r\n<p>First, block out all those images of skinny people in tight outfits running for an hour, five days a week. Forget the claims of a fabulous stomach in seven days. The goal is to be more physically active, not become a fitness maniac. Physical activity is so much more than \"exercise\" or \"fitness\"; it can be anything to make you move more than you do now. </p>\r\n<p>The best part is that new research shows that physical activity doesn\'t have to be strenuous to achieve health benefits. Forget the days of \"no pain, no gain.\" Just 30 minutes of moderate activity accumulated over the entire day can benefit your health, making you look and feel better. Now, this is do-able! </p>\r\n<p>Physical activity is everywhere. It\'s at home, at work, in your neighborhood. You can choose to set aside time in your day to be more physically active - take a walk, go to a health club, or participate in a recreation or sport activity. Or you can just make physical activity a part of your day - work in the yard, vacuum, take the long way, walk the dog. </p>\r\n<p>I chose to join a health club. I lift weights for strength, stretch for flexibility, and swim and use an upper arm ergometer (bicycle for your arms) for aerobic exercise. A purposeful increase in physical activity made a huge difference for me. I soon found that I didn\'t get as tired during the day. My daily activities were easier, because I had more strength and endurance. My clothes fit better. Overall, I just felt better. </p>\r\n<b>Getting started </b >\r\n<p>This is an opportunity to make choices for your own health. The first step is to decide that your health is important enough to make changes. No matter how long you\'ve been sitting on that couch, it\'s never too late to be more active. </p>\r\n<p>Once you\'ve made the choice, the key is deciding where to begin and staying motivated. Here are some hints for getting started and sticking with it. </p>\r\n<li>Remember that any increase in physical activity is better than doing nothing. </li>\r\n<li>Find something you like to do to that increases your level of physical activity. The more fun you have, the more likely you\'ll want to do it.</li> \r\n<li>Set realistic and achievable short-term goals. Avoid large, vague goals such as getting in shape. </li>\r\n<li>Don\'t attempt too much too fast. Increase your physical activity in small increments over time. You can start with as little as five minutes a day. If it is part of your daily routine, you are more likely to stick with it. </li>\r\n<li>Talk to your doctor and make sure you know your body and are aware of any health or safety issues that might affect the way you choose to be physically active. </li>\r\n<li>Involve your spouse, a friend, kids, or pets to make it more enjoyable.</li> \r\n<li>If your old habits return, don\'t worry; tomorrow can be a fresh start.</li> \r\n<li>Find some way to create accountability. Have a friend or family member ask how you are doing with your goals or chart your progress. </li>\r\n<li>If you find yourself getting bored, find a different activity. The possibilities are endless. </li>\r\n<li>Reward yourself! </li>\r\n<p>My wedding day has passed and I reached my first goal, but this is just the beginning. If I am going to stay healthy and independent and continue to do the things I love, I know I have to remain active. I\'ve found the benefits far outweigh the effort. You can do this! Don\'t wait any longer! Isn\'t your health worth it? </p>\r\n<p>By Lauren Howard, Consultant, NC Office on Disability and Health</p>\r\n\r\n'),(4840,287,0.13,'smarty','0','Page created.',1139939626,1124,'216.194.127.150','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<hl><b>To the gym... in a hurry!</b> </hl>\r\n<p>Like many women, I found \"diet\" and \"exercise\" to be nagging and dreaded words that brought no motivation to change. I would stay on track for a week, maybe two, then find myself right back where I started. </p>\r\n<p>I just couldn\'t find the time or energy to devote to exercising, and fast food french fries were just too tasty. When I didn\'t see results immediately, I would get discouraged and lose any motivation that I had managed to summon up. </p>\r\n<p>But this time I knew I had to do something differently. I soon abandoned my old idea of \"diet\" and \"exercise\" as I began to learn about the importance of physical activity for my overall health and well being. </p>\r\n<p>Armed with a different perspective and a definite goal, I decided to make some changes. I want to share some things I have learned along this road to better health. </p>\r\n<b>Change your perspective</b> \r\n<p>First, block out all those images of skinny people in tight outfits running for an hour, five days a week. Forget the claims of a fabulous stomach in seven days. The goal is to be more physically active, not become a fitness maniac. Physical activity is so much more than \"exercise\" or \"fitness\"; it can be anything to make you move more than you do now. </p>\r\n<p>The best part is that new research shows that physical activity doesn\'t have to be strenuous to achieve health benefits. Forget the days of \"no pain, no gain.\" Just 30 minutes of moderate activity accumulated over the entire day can benefit your health, making you look and feel better. Now, this is do-able! </p>\r\n<p>Physical activity is everywhere. It\'s at home, at work, in your neighborhood. You can choose to set aside time in your day to be more physically active - take a walk, go to a health club, or participate in a recreation or sport activity. Or you can just make physical activity a part of your day - work in the yard, vacuum, take the long way, walk the dog. </p>\r\n<p>I chose to join a health club. I lift weights for strength, stretch for flexibility, and swim and use an upper arm ergometer (bicycle for your arms) for aerobic exercise. A purposeful increase in physical activity made a huge difference for me. I soon found that I didn\'t get as tired during the day. My daily activities were easier, because I had more strength and endurance. My clothes fit better. Overall, I just felt better. </p>\r\n<b>Getting started </b >\r\n<p>This is an opportunity to make choices for your own health. The first step is to decide that your health is important enough to make changes. No matter how long you\'ve been sitting on that couch, it\'s never too late to be more active. </p>\r\n<p>Once you\'ve made the choice, the key is deciding where to begin and staying motivated. Here are some hints for getting started and sticking with it. </p>\r\n<li>Remember that any increase in physical activity is better than doing nothing. </li>\r\n<li>Find something you like to do to that increases your level of physical activity. The more fun you have, the more likely you\'ll want to do it.</li> \r\n<li>Set realistic and achievable short-term goals. Avoid large, vague goals such as getting in shape. </li>\r\n<li>Don\'t attempt too much too fast. Increase your physical activity in small increments over time. You can start with as little as five minutes a day. If it is part of your daily routine, you are more likely to stick with it. </li>\r\n<li>Talk to your doctor and make sure you know your body and are aware of any health or safety issues that might affect the way you choose to be physically active. </li>\r\n<li>Involve your spouse, a friend, kids, or pets to make it more enjoyable.</li> \r\n<li>If your old habits return, don\'t worry; tomorrow can be a fresh start.</li> \r\n<li>Find some way to create accountability. Have a friend or family member ask how you are doing with your goals or chart your progress. </li>\r\n<li>If you find yourself getting bored, find a different activity. The possibilities are endless. </li>\r\n<li>Reward yourself! </li>\r\n<p>My wedding day has passed and I reached my first goal, but this is just the beginning. If I am going to stay healthy and independent and continue to do the things I love, I know I have to remain active. I\'ve found the benefits far outweigh the effort. You can do this! Don\'t wait any longer! Isn\'t your health worth it? </p>\r\n<p>By Lauren Howard, Consultant, NC Office on Disability and Health</p>\r\n\r\n'),(4841,287,0.14,'smarty','1','Page created.',1139939666,1124,'216.194.127.150','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<hl><b>To The Gym... In A Hurry!</b> </hl>\r\n<p>Like many women, I found \"diet\" and \"exercise\" to be nagging and dreaded words that brought no motivation to change. I would stay on track for a week, maybe two, then find myself right back where I started. </p>\r\n<p>I just couldn\'t find the time or energy to devote to exercising, and fast food french fries were just too tasty. When I didn\'t see results immediately, I would get discouraged and lose any motivation that I had managed to summon up. </p>\r\n<p>But this time I knew I had to do something differently. I soon abandoned my old idea of \"diet\" and \"exercise\" as I began to learn about the importance of physical activity for my overall health and well being. </p>\r\n<p>Armed with a different perspective and a definite goal, I decided to make some changes. I want to share some things I have learned along this road to better health. </p>\r\n<b>Change your perspective</b> \r\n<p>First, block out all those images of skinny people in tight outfits running for an hour, five days a week. Forget the claims of a fabulous stomach in seven days. The goal is to be more physically active, not become a fitness maniac. Physical activity is so much more than \"exercise\" or \"fitness\"; it can be anything to make you move more than you do now. </p>\r\n<p>The best part is that new research shows that physical activity doesn\'t have to be strenuous to achieve health benefits. Forget the days of \"no pain, no gain.\" Just 30 minutes of moderate activity accumulated over the entire day can benefit your health, making you look and feel better. Now, this is do-able! </p>\r\n<p>Physical activity is everywhere. It\'s at home, at work, in your neighborhood. You can choose to set aside time in your day to be more physically active - take a walk, go to a health club, or participate in a recreation or sport activity. Or you can just make physical activity a part of your day - work in the yard, vacuum, take the long way, walk the dog. </p>\r\n<p>I chose to join a health club. I lift weights for strength, stretch for flexibility, and swim and use an upper arm ergometer (bicycle for your arms) for aerobic exercise. A purposeful increase in physical activity made a huge difference for me. I soon found that I didn\'t get as tired during the day. My daily activities were easier, because I had more strength and endurance. My clothes fit better. Overall, I just felt better. </p>\r\n<b>Getting started </b >\r\n<p>This is an opportunity to make choices for your own health. The first step is to decide that your health is important enough to make changes. No matter how long you\'ve been sitting on that couch, it\'s never too late to be more active. </p>\r\n<p>Once you\'ve made the choice, the key is deciding where to begin and staying motivated. Here are some hints for getting started and sticking with it. </p>\r\n<li>Remember that any increase in physical activity is better than doing nothing. </li>\r\n<li>Find something you like to do to that increases your level of physical activity. The more fun you have, the more likely you\'ll want to do it.</li> \r\n<li>Set realistic and achievable short-term goals. Avoid large, vague goals such as getting in shape. </li>\r\n<li>Don\'t attempt too much too fast. Increase your physical activity in small increments over time. You can start with as little as five minutes a day. If it is part of your daily routine, you are more likely to stick with it. </li>\r\n<li>Talk to your doctor and make sure you know your body and are aware of any health or safety issues that might affect the way you choose to be physically active. </li>\r\n<li>Involve your spouse, a friend, kids, or pets to make it more enjoyable.</li> \r\n<li>If your old habits return, don\'t worry; tomorrow can be a fresh start.</li> \r\n<li>Find some way to create accountability. Have a friend or family member ask how you are doing with your goals or chart your progress. </li>\r\n<li>If you find yourself getting bored, find a different activity. The possibilities are endless. </li>\r\n<li>Reward yourself! </li>\r\n<p>My wedding day has passed and I reached my first goal, but this is just the beginning. If I am going to stay healthy and independent and continue to do the things I love, I know I have to remain active. I\'ve found the benefits far outweigh the effort. You can do this! Don\'t wait any longer! Isn\'t your health worth it? </p>\r\n<p>By Lauren Howard, Consultant, NC Office on Disability and Health</p>\r\n\r\n'),(4842,288,0.10,'smarty','0','Page created.',1139939759,1124,'216.194.127.150',''),(4843,288,0.11,'smarty','0','Page created.',1139940324,1124,'216.194.127.150','\r\n<hl><b>How to Use Fruits and Vegetables to Help Manage Your Weight</b></p>\r\n<p>Fruits and vegetables are part of a well-balanced and healthy eating plan. There are many different ways to lose or maintain a healthy weight. Using more fruits and vegetables along with whole grains and lean meats, nuts, and beans is a safe and healthy one. Helping control your weight is not the only benefit of eating more fruits and  vegetables. Diets rich in fruits and vegetables may reduce the risk of some types of cancer and other chronic diseases. Fruits and vegetables also provide essential vitamins and minerals, fiber, and other substances that are important for good health. </p>\r\n<p>To lose weight, you must eat fewer calories than your body uses. This doesn’t necessarily mean that you have to eat less food. You can create lower-calorie versions of some of your favorite dishes by substituting low-calorie fruits and vegetables in place of higher-calorie ingredients. The water and fiber in fruits and vegetables will add volume to your dishes, so you can eat the same amount of food with fewer calories. Most fruits and vegetables are naturally low in fat and calories and are filling.</p>  \r\n<p>Here are some simple ways to cut calories and eat fruits and vegetables throughout your day:</p>\r\n<b>Breakfast: Start the Day Right</b>\r\n<p>Substitute some spinach, onions, or mushrooms for one of the eggs or half of the cheese in your morning omelet. The vegetables will add volume and flavor to the dish with fewer calories than the egg or cheese. Cut back on the amount of cereal in your bowl to make room for some cut-up bananas, peaches, or strawberries. You can still eat a full bowl, but with fewer calories. </p>\r\n<b>Lighten Up Your Lunch</b>\r\n<p>Substitute vegetables such as lettuce, tomatoes, cucumbers, or onions for 2 ounces of the cheese and 2 ounces of the meat in your sandwich, wrap, or burrito. The new version will fill you up with fewer calories than the original. Add a cup of chopped vegetables, such as broccoli, carrots, beans, or red peppers, in place of 2 ounces of the meat or 1 cup of noodles in your favorite broth-based soup. The vegetables will help fill you up, so you won’t miss those extra calories. </p>\r\n<b>Dinner</b>\r\n<p>Add in 1 cup of chopped vegetables such as broccoli, tomatoes, squash, onions, or peppers, while removing 1 cup of the rice or pasta in your favorite dish. The dish with the vegetables will be just as satisfying but have fewer calories than the same amount of the original version.</p> \r\n<p>Take a good look at your dinner plate. Vegetables, fruit, and whole grains should take up the largest portion of your plate. If they do not, replace some of the meat, cheese, white pasta, or rice with legumes, steamed broccoli, asparagus, greens, or another  favorite vegetable. This will reduce the total calories in your meal without reducing the amount of food you eat. BUT remember to use a normal- or small-size plate — not a platter. The total number of calories that you eat counts, even if a good proportion of them come from fruits and vegetables.</p> \r\n\r\n<b>Smart Snacks</b>\r\n<p>Most healthy eating plans allow for one or two small snacks a day. Choosing most fruits and vegetables will allow you to eat a snack with only 100 calories. The fruits and vegetables in the box above all have about 100 or fewer calories. Instead of a high-calorie snack from a vending machine, bring some cut-up vegetables or fruit from home. One snack-sized bag of corn chips (1 ounce) has the same number of calories as a small apple, 1 cup of whole strawberries, AND 1 cup of carrots with 1/4 cup of low-calorie dip. Substitute one or two of these options for the chips, and you will have a satisfying snack with fewer calories.</p>\r\n\r\n<b>Remember: Substitution is the key.</b>\r\n<p>It’s true that fruits and vegetables are lower in calories than many other foods, but they do contain some calories. If you start eating fruits and vegetables in addition to what you usually eat, you are adding calories and may gain weight. The key is substitution. Eat fruits and vegetables instead of some other higher-calorie food.</p>\r\n\r\n<p><b>More Tips for Making Fruits and Vegetables Part of Your  Weight Management Plan</b></p>\r\n<p>Eat fruits and vegetables the way nature provided—or with fat-free or low-fat cooking techniques. Try steaming your vegetables, using low-calorie or low-fat dressings, and using herbs and spices to add flavor. Some cooking techniques, such as breading and frying, or using high-fat dressings or sauces will greatly increase the calories and fat in the dish. And eat your fruit raw to enjoy its natural sweetness.</p>\r\n<p>Canned or frozen fruits and vegetables are good options when fresh produce is not available. However, be careful to choose those without added sugar, syrup, cream sauces, or other ingredients that will add calories. </p>\r\n<p>Choose whole fruit over fruit drinks and juices. Fruit juices have lost fiber from the fruit. It is better to eat the whole fruit because it contains the added fiber that helps you feel full. One 6-ounce serving of orange juice has 85 calories, compared to just 65 calories in a medium orange.</p>\r\n<p>Whole fruit gives you a bigger size snack than the same fruit dried—for the same number of calories. A small box of raisins (1/4 cup) is about 100 calories. For the same number of calories, you can eat 1 cup of grapes.</p>\r\n'),(4844,288,0.12,'smarty','0','Page created.',1139940331,1124,'216.194.127.150','<hl><b>How to Use Fruits and Vegetables to Help Manage Your Weight</b></hl>\r\n<p>Fruits and vegetables are part of a well-balanced and healthy eating plan. There are many different ways to lose or maintain a healthy weight. Using more fruits and vegetables along with whole grains and lean meats, nuts, and beans is a safe and healthy one. Helping control your weight is not the only benefit of eating more fruits and  vegetables. Diets rich in fruits and vegetables may reduce the risk of some types of cancer and other chronic diseases. Fruits and vegetables also provide essential vitamins and minerals, fiber, and other substances that are important for good health. </p>\r\n<p>To lose weight, you must eat fewer calories than your body uses. This doesn’t necessarily mean that you have to eat less food. You can create lower-calorie versions of some of your favorite dishes by substituting low-calorie fruits and vegetables in place of higher-calorie ingredients. The water and fiber in fruits and vegetables will add volume to your dishes, so you can eat the same amount of food with fewer calories. Most fruits and vegetables are naturally low in fat and calories and are filling.</p>  \r\n<p>Here are some simple ways to cut calories and eat fruits and vegetables throughout your day:</p>\r\n<b>Breakfast: Start the Day Right</b>\r\n<p>Substitute some spinach, onions, or mushrooms for one of the eggs or half of the cheese in your morning omelet. The vegetables will add volume and flavor to the dish with fewer calories than the egg or cheese. Cut back on the amount of cereal in your bowl to make room for some cut-up bananas, peaches, or strawberries. You can still eat a full bowl, but with fewer calories. </p>\r\n<b>Lighten Up Your Lunch</b>\r\n<p>Substitute vegetables such as lettuce, tomatoes, cucumbers, or onions for 2 ounces of the cheese and 2 ounces of the meat in your sandwich, wrap, or burrito. The new version will fill you up with fewer calories than the original. Add a cup of chopped vegetables, such as broccoli, carrots, beans, or red peppers, in place of 2 ounces of the meat or 1 cup of noodles in your favorite broth-based soup. The vegetables will help fill you up, so you won’t miss those extra calories. </p>\r\n<b>Dinner</b>\r\n<p>Add in 1 cup of chopped vegetables such as broccoli, tomatoes, squash, onions, or peppers, while removing 1 cup of the rice or pasta in your favorite dish. The dish with the vegetables will be just as satisfying but have fewer calories than the same amount of the original version.</p> \r\n<p>Take a good look at your dinner plate. Vegetables, fruit, and whole grains should take up the largest portion of your plate. If they do not, replace some of the meat, cheese, white pasta, or rice with legumes, steamed broccoli, asparagus, greens, or another  favorite vegetable. This will reduce the total calories in your meal without reducing the amount of food you eat. BUT remember to use a normal- or small-size plate — not a platter. The total number of calories that you eat counts, even if a good proportion of them come from fruits and vegetables.</p> \r\n\r\n<b>Smart Snacks</b>\r\n<p>Most healthy eating plans allow for one or two small snacks a day. Choosing most fruits and vegetables will allow you to eat a snack with only 100 calories. The fruits and vegetables in the box above all have about 100 or fewer calories. Instead of a high-calorie snack from a vending machine, bring some cut-up vegetables or fruit from home. One snack-sized bag of corn chips (1 ounce) has the same number of calories as a small apple, 1 cup of whole strawberries, AND 1 cup of carrots with 1/4 cup of low-calorie dip. Substitute one or two of these options for the chips, and you will have a satisfying snack with fewer calories.</p>\r\n\r\n<b>Remember: Substitution is the key.</b>\r\n<p>It’s true that fruits and vegetables are lower in calories than many other foods, but they do contain some calories. If you start eating fruits and vegetables in addition to what you usually eat, you are adding calories and may gain weight. The key is substitution. Eat fruits and vegetables instead of some other higher-calorie food.</p>\r\n\r\n<p><b>More Tips for Making Fruits and Vegetables Part of Your  Weight Management Plan</b></p>\r\n<p>Eat fruits and vegetables the way nature provided—or with fat-free or low-fat cooking techniques. Try steaming your vegetables, using low-calorie or low-fat dressings, and using herbs and spices to add flavor. Some cooking techniques, such as breading and frying, or using high-fat dressings or sauces will greatly increase the calories and fat in the dish. And eat your fruit raw to enjoy its natural sweetness.</p>\r\n<p>Canned or frozen fruits and vegetables are good options when fresh produce is not available. However, be careful to choose those without added sugar, syrup, cream sauces, or other ingredients that will add calories. </p>\r\n<p>Choose whole fruit over fruit drinks and juices. Fruit juices have lost fiber from the fruit. It is better to eat the whole fruit because it contains the added fiber that helps you feel full. One 6-ounce serving of orange juice has 85 calories, compared to just 65 calories in a medium orange.</p>\r\n<p>Whole fruit gives you a bigger size snack than the same fruit dried—for the same number of calories. A small box of raisins (1/4 cup) is about 100 calories. For the same number of calories, you can eat 1 cup of grapes.</p>\r\n'),(4845,288,0.13,'smarty','1','Page created.',1139940370,1124,'216.194.127.150','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<hl><b>How to Use Fruits and Vegetables to Help Manage Your Weight</b></hl>\r\n<p>Fruits and vegetables are part of a well-balanced and healthy eating plan. There are many different ways to lose or maintain a healthy weight. Using more fruits and vegetables along with whole grains and lean meats, nuts, and beans is a safe and healthy one. Helping control your weight is not the only benefit of eating more fruits and  vegetables. Diets rich in fruits and vegetables may reduce the risk of some types of cancer and other chronic diseases. Fruits and vegetables also provide essential vitamins and minerals, fiber, and other substances that are important for good health. </p>\r\n<p>To lose weight, you must eat fewer calories than your body uses. This doesn’t necessarily mean that you have to eat less food. You can create lower-calorie versions of some of your favorite dishes by substituting low-calorie fruits and vegetables in place of higher-calorie ingredients. The water and fiber in fruits and vegetables will add volume to your dishes, so you can eat the same amount of food with fewer calories. Most fruits and vegetables are naturally low in fat and calories and are filling.</p>  \r\n<p>Here are some simple ways to cut calories and eat fruits and vegetables throughout your day:</p>\r\n<b>Breakfast: Start the Day Right</b>\r\n<p>Substitute some spinach, onions, or mushrooms for one of the eggs or half of the cheese in your morning omelet. The vegetables will add volume and flavor to the dish with fewer calories than the egg or cheese. Cut back on the amount of cereal in your bowl to make room for some cut-up bananas, peaches, or strawberries. You can still eat a full bowl, but with fewer calories. </p>\r\n<b>Lighten Up Your Lunch</b>\r\n<p>Substitute vegetables such as lettuce, tomatoes, cucumbers, or onions for 2 ounces of the cheese and 2 ounces of the meat in your sandwich, wrap, or burrito. The new version will fill you up with fewer calories than the original. Add a cup of chopped vegetables, such as broccoli, carrots, beans, or red peppers, in place of 2 ounces of the meat or 1 cup of noodles in your favorite broth-based soup. The vegetables will help fill you up, so you won’t miss those extra calories. </p>\r\n<b>Dinner</b>\r\n<p>Add in 1 cup of chopped vegetables such as broccoli, tomatoes, squash, onions, or peppers, while removing 1 cup of the rice or pasta in your favorite dish. The dish with the vegetables will be just as satisfying but have fewer calories than the same amount of the original version.</p> \r\n<p>Take a good look at your dinner plate. Vegetables, fruit, and whole grains should take up the largest portion of your plate. If they do not, replace some of the meat, cheese, white pasta, or rice with legumes, steamed broccoli, asparagus, greens, or another  favorite vegetable. This will reduce the total calories in your meal without reducing the amount of food you eat. BUT remember to use a normal- or small-size plate — not a platter. The total number of calories that you eat counts, even if a good proportion of them come from fruits and vegetables.</p> \r\n\r\n<b>Smart Snacks</b>\r\n<p>Most healthy eating plans allow for one or two small snacks a day. Choosing most fruits and vegetables will allow you to eat a snack with only 100 calories. The fruits and vegetables in the box above all have about 100 or fewer calories. Instead of a high-calorie snack from a vending machine, bring some cut-up vegetables or fruit from home. One snack-sized bag of corn chips (1 ounce) has the same number of calories as a small apple, 1 cup of whole strawberries, AND 1 cup of carrots with 1/4 cup of low-calorie dip. Substitute one or two of these options for the chips, and you will have a satisfying snack with fewer calories.</p>\r\n\r\n<b>Remember: Substitution is the key.</b>\r\n<p>It’s true that fruits and vegetables are lower in calories than many other foods, but they do contain some calories. If you start eating fruits and vegetables in addition to what you usually eat, you are adding calories and may gain weight. The key is substitution. Eat fruits and vegetables instead of some other higher-calorie food.</p>\r\n\r\n<p><b>More Tips for Making Fruits and Vegetables Part of Your  Weight Management Plan</b></p>\r\n<p>Eat fruits and vegetables the way nature provided—or with fat-free or low-fat cooking techniques. Try steaming your vegetables, using low-calorie or low-fat dressings, and using herbs and spices to add flavor. Some cooking techniques, such as breading and frying, or using high-fat dressings or sauces will greatly increase the calories and fat in the dish. And eat your fruit raw to enjoy its natural sweetness.</p>\r\n<p>Canned or frozen fruits and vegetables are good options when fresh produce is not available. However, be careful to choose those without added sugar, syrup, cream sauces, or other ingredients that will add calories. </p>\r\n<p>Choose whole fruit over fruit drinks and juices. Fruit juices have lost fiber from the fruit. It is better to eat the whole fruit because it contains the added fiber that helps you feel full. One 6-ounce serving of orange juice has 85 calories, compared to just 65 calories in a medium orange.</p>\r\n<p>Whole fruit gives you a bigger size snack than the same fruit dried—for the same number of calories. A small box of raisins (1/4 cup) is about 100 calories. For the same number of calories, you can eat 1 cup of grapes.</p>\r\n'),(4972,272,0.68,'smarty','0','David JS Working...',1142172705,2271,'67.186.218.203','{include file=\"shared:layouts/comp_create_navbar.tpl\"}\r\n\r\n<form method=\"post\" action=\"index.php\">\r\n<table width=\"100%\" border=0>\r\n <tr>\r\n  <td nowrap><h2> A. Competing for...</h2></td>\r\n  <td nowrap><h2>B. The competition name is...</h2></td>\r\n  <td nowrap><h2>C. How\'s competing...</h2></td>\r\n </tr>\r\n <tr>\r\n  <td valign=\"top\" width=\"30%\">\r\n    <small>\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"p2p\" checked> <a href=\"javascript:setCompType(\'p2p\');\">Pound for pound <i>(Weight lost)</i></a><br />\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"pctWt\"> <a href=\"javascript:setCompType(\'pctWt\');\">Percent of body weight lost</a><br />\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"minEx\"> <a href=\"javascript:setCompType(\'minEx\');\">Total minutes excercised</a><br />\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"disEx\"> <a href=\"javascript:setCompType(\'disEx\');\">Total distance excercised</a><br />\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"veg\"> <a href=\"javascript:setCompType(\'veg\');\">Vegitable challenge</a><br />\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"gain\"> <a href=\"javascript:setCompType(\'gain\');\">Weight gained</a><br />\r\n    </small>\r\n  </td>\r\n  <td valign=\"top\">\r\n    <table border=0 cellspacing=0>\r\n    <tr>\r\n      <td><h3>Name:</h3></td>\r\n      <td><input type=\"text\" name=\"comp[title]\" /></td>\r\n    </tr>\r\n    <tr>\r\n      <td valign=\"top\"><small><b>Examples:</b></small></td>\r\n      <td><small>&quot;The chubby family reunion&quot;<br />&quot;Company shape-up marathon&quot;<br />&quot;Super Summer Slimdown&quot;</small></td>\r\n    </tr>\r\n    <tr>\r\n      <td colspan=\"2\">\r\n	<br/>\r\n        <div style=\"border:solid 1px black;width:98%;height:60px;\">\r\n	  test\r\n	</div>\r\n      </td>\r\n    </tr>\r\n    </table>\r\n  </td>\r\n  <td valign=\"top\">\r\n     <table border=0 cellpaddin=0 cellspacing=0>\r\n      <tr>\r\n	<td colspan=\"2\">\r\n	  <div id=\'enterFriendNameDiv\' style=\'display:block;\'>\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	     <tr>\r\n	       <td colspan=2><li>Invate your friends</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   My friend\'s Name:\r\n                 </small>\r\n	       </td>\r\n	       <td>\r\n	         <input type=\"text id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   My friend\'s Email:\r\n	         </small>\r\n	       </td>\r\n	       <td>\r\n		  <input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td colspan=\"2\" align=\"right\">\r\n	         <small>\r\n		   <span onclick=\"extraCompetitors(\'open\');\" style=\"cursor:pointer;\">\r\n                     Add more\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	  </div>\r\n	  <div id=\"myEnteredFriendsDiv\" style=\"display:none;\">\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\r\n	     <tr>\r\n	       <td><li>My Competitors:</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"left\" id=\"competitorListHolder\" style=\"padding-left:15px\">\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   <span onclick=\"editCompetitors();\" style=\"cursor:pointer;\">\r\n                     Edit my competitors\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	  </div>\r\n	</td>\r\n      </tr>\r\n      <tr><td colspan=\"2\"><li>Let them know with an email...</li></td></tr>\r\n      <tr>\r\n        <td valign=\"top\" colspan=2>\r\n	  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	      <tr>\r\n		 <td valign=\"top\">\r\n		    <small>\r\n			<table border=0 cellpadding=0 cellspacing=0 width=\"100%\">\r\n			  <tr><td id=\'kind\'><input type=\"radio\" value=\"kind\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'kind\');\"/> <a href=\"javascript:setInviteStyle(\'kind\');\">Kind</a></td></tr>\r\n			  <tr><td id=\'smack\'><input type=\"radio\" value=\"smack\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'smack\');\"/> <a href=\"javascript:setInviteStyle(\'smack\');\">Smack</a></td></tr>\r\n			  <tr><td id=\'challenge\'><input type=\"radio\" value=\"challenge\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'challenge\');\" /> <a href=\"javascript:setInviteStyle(\'challenge\');\">Challenge</a></td></tr>\r\n			  <tr><td id=\'custom\'><input type=\"radio\" value=\"custom\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'custom\');\"/> <a href=\"javascript:setInviteStyle(\'custom\');\">Make Your Own</a></td></tr>\r\n                        </table>\r\n		    </small>\r\n		 </td>\r\n		 <td valign=\"top\" id=\"invateHolder\">\r\n		    <div id=\"InvateW\" style=\"border-bottom:solid 1px #CCC;border-left:solid 1px #CCC;padding-right:5px;visibility:hidden;\">\r\n			<small>\r\n			   <input type=\"radio\" value=\"heavy\" name=\"comp[invite_subtype]\"  onclick=\"displayLetter()\" /> <a href=\"javascript:setInviteWeight(\'heavy\');\">Heavy</a><br />\r\n			   <input type=\"radio\" value=\"medium\" name=\"comp[invite_subtype]\" onclick=\"displayLetter()\" /> <a href=\"javascript:setInviteWeight(\'medium\');\">Medium</a><br />\r\n			   <input type=\"radio\" value=\"light\" name=\"comp[invite_subtype]\" onclick=\"displayLetter()\" /> <a href=\"javascript:setInviteWeight(\'light\');\">Light</a><br />\r\n			</small>\r\n		    </div>\r\n		</td>\r\n	     </tr>\r\n	  </table>\r\n        </td>\r\n     </tr>\r\n     </table>\r\n  </td>\r\n</tr>\r\n</table>\r\n<br />\r\n<table border=\"0\" cellpadding=\"0\" width=\"100%\">\r\n <tr>\r\n   <td align=\"right\">tab</td>\r\n </tr>\r\n <tr>\r\n   <td>\r\n      <div id=\"letterHolder\" name=\"letterHolder\" style=\"border:solid 1px black;height:400px;width:100%;overflow:auto;\">\r\n      </div>\r\n   </td>\r\n </tr>\r\n</table>\r\n{* <iframe src=\"?pg=compCreate/inviteFrame\" style=\"width:100%;height:410px;\" scrollbars=\"no\" frameborder=\"0\"></iframe> *}\r\n\r\n<div id=\"invite-div\"></div>\r\n<br />\r\n\r\n<div align=\"right\">\r\n  <a href=\"?pg=compCreate/step2\"><img src=\"{$skinFolder}images/btn_next.gif\" alt=\"Next\" border=\"0\" /></a>\r\n</div>\r\n\r\n<div id=\"myCompetitors\" style=\"width:300px;background-color:white;zIndex:100;position:absolute;display:none;top:-70px;left:300px;border:solid 1px #CCC;filter: alpha(opacity=85)\">\r\n  <center>\r\n   <table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" width=\"95%\">\r\n      <tr><td align=\"right\" valign=\"top\" style=\"height:5px\"><small><span style=\"cursor:pointer;\" onclick=\"extraCompetitors(\'close\');\">close window</span><small></td></tr>\r\n      <tr><td style=\"border-bottom:solid 1px #CCC;\"><h2>More Competitors...</td></tr>\r\n      <tr>\r\n         <td align=\"center\">\r\n	    <table id=\"competitorsTable\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"90%\">\r\n                <tr>\r\n		  <td></td>\r\n		  <td align=\"center\" valign=\"bottom\">Name</td>\r\n                  <td align=\"center\" valign=\"bottom\">Email</td>\r\n                </tr>\r\n	        <tr>\r\n		  <td>2.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>3.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>4.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>5.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>6.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>7.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>8.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>9.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>10.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>11.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n		<tr>\r\n		  <td colspan=\"3\" align=\"right\"><small><span style=\"cursor:pointer;\" onclick=\'addMoreCompetitors();\'>Add More Lines</span></small></td>\r\n		</tr>\r\n            </table>\r\n         </td>\r\n      </tr>\r\n      <tr>\r\n	<td align=\"right\" style=\"border-top:solid 1px #CCC;\"><img style=\"cursor:pointer;\" onclick=\"addingCompetitors();\" src=\"{$skinFolder}images/btn_next.gif\" alt=\"Add\" border=\"0\" /></td>\r\n      </tr>\r\n   </table>\r\n  </center>\r\n</div>\r\n\r\n</form>\r\n\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/js-get-data.js\"></script>\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/AJAX.js\"></script>\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/NewComp.js\"></script>\r\n\r\n<script language=\"JavaScript\">\r\n	\r\n        //jsGetData(\'?pg=jsGetData\',\'invite-div\', \'madlib.form\', \'&compType=friends&inviteType=smack\');\r\n\r\n	var examples = Array();\r\n	{foreach from=$examples key=\"key\" item=\"example\"}\r\n	examples[{$key}] = \'{eval var=$example.body|addslashes|replace:\"\\r\":\"\"|replace:\"\\n\":\"\\\\n\"}\';\r\n	{/foreach}\r\n	\r\n	{literal}\r\n\r\n\r\n	{/literal}\r\n</script>'),(4974,272,0.70,'smarty','0','David JS Working...',1142173166,2271,'67.186.218.203','{include file=\"shared:layouts/comp_create_navbar.tpl\"}\r\n\r\n<form method=\"post\" action=\"index.php\">\r\n<table width=\"100%\" border=0>\r\n <tr>\r\n  <td nowrap><h2> A. Competing for...</h2></td>\r\n  <td nowrap><h2>B. The competition name is...</h2></td>\r\n  <td nowrap><h2>C. How\'s competing...</h2></td>\r\n </tr>\r\n <tr>\r\n  <td valign=\"top\" width=\"30%\">\r\n    <small>\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"p2p\" checked> <a href=\"javascript:setCompType(\'p2p\');\">Pound for pound <i>(Weight lost)</i></a><br />\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"pctWt\"> <a href=\"javascript:setCompType(\'pctWt\');\">Percent of body weight lost</a><br />\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"minEx\"> <a href=\"javascript:setCompType(\'minEx\');\">Total minutes excercised</a><br />\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"disEx\"> <a href=\"javascript:setCompType(\'disEx\');\">Total distance excercised</a><br />\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"veg\"> <a href=\"javascript:setCompType(\'veg\');\">Vegitable challenge</a><br />\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"gain\"> <a href=\"javascript:setCompType(\'gain\');\">Weight gained</a><br />\r\n    </small>\r\n  </td>\r\n  <td valign=\"top\">\r\n    <table border=0 cellspacing=0>\r\n    <tr>\r\n      <td><h3>Name:</h3></td>\r\n      <td><input type=\"text\" name=\"comp[title]\" /></td>\r\n    </tr>\r\n    <tr>\r\n      <td valign=\"top\"><small><b>Examples:</b></small></td>\r\n      <td><small>&quot;The chubby family reunion&quot;<br />&quot;Company shape-up marathon&quot;<br />&quot;Super Summer Slimdown&quot;</small></td>\r\n    </tr>\r\n    <tr>\r\n      <td colspan=\"2\">\r\n	<br/>\r\n        <div style=\"border:solid 1px black;width:98%;height:60px;\">\r\n	  test\r\n	</div>\r\n      </td>\r\n    </tr>\r\n    </table>\r\n  </td>\r\n  <td valign=\"top\">\r\n     <table border=0 cellpaddin=0 cellspacing=0>\r\n      <tr>\r\n	<td colspan=\"2\">\r\n	  <div id=\'enterFriendNameDiv\' style=\'display:block;\'>\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	     <tr>\r\n	       <td colspan=2><li>Invate your friends</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   My friend\'s Name:\r\n                 </small>\r\n	       </td>\r\n	       <td>\r\n	         <input type=\"text id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   My friend\'s Email:\r\n	         </small>\r\n	       </td>\r\n	       <td>\r\n		  <input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td colspan=\"2\" align=\"right\">\r\n	         <small>\r\n		   <span onclick=\"extraCompetitors(\'open\');\" style=\"cursor:pointer;\">\r\n                     Add more\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	  </div>\r\n	  <div id=\"myEnteredFriendsDiv\" style=\"display:none;\">\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\r\n	     <tr>\r\n	       <td><li>My Competitors:</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"left\" id=\"competitorListHolder\" style=\"padding-left:15px\">\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   <span onclick=\"editCompetitors();\" style=\"cursor:pointer;\">\r\n                     Edit my competitors\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	  </div>\r\n	</td>\r\n      </tr>\r\n      <tr><td colspan=\"2\"><li>Let them know with an email...</li></td></tr>\r\n      <tr>\r\n        <td valign=\"top\" colspan=2>\r\n	  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	      <tr>\r\n		 <td valign=\"top\">\r\n		    <small>\r\n			<table border=0 cellpadding=0 cellspacing=0 width=\"100%\">\r\n			  <tr><td id=\'kind\'><input type=\"radio\" value=\"kind\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'kind\');\"/> <a href=\"javascript:setInviteStyle(\'kind\');\">Kind</a></td></tr>\r\n			  <tr><td id=\'smack\'><input type=\"radio\" value=\"smack\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'smack\');\"/> <a href=\"javascript:setInviteStyle(\'smack\');\">Smack</a></td></tr>\r\n			  <tr><td id=\'challenge\'><input type=\"radio\" value=\"challenge\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'challenge\');\" /> <a href=\"javascript:setInviteStyle(\'challenge\');\">Challenge</a></td></tr>\r\n			  <tr><td id=\'custom\'><input type=\"radio\" value=\"custom\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'custom\');\"/> <a href=\"javascript:setInviteStyle(\'custom\');\">Make Your Own</a></td></tr>\r\n                        </table>\r\n		    </small>\r\n		 </td>\r\n		 <td valign=\"top\" id=\"invateHolder\">\r\n		    <div id=\"InvateW\" style=\"border-bottom:solid 1px #CCC;border-left:solid 1px #CCC;padding-right:5px;visibility:hidden;\">\r\n			<small>\r\n			   <input type=\"radio\" value=\"heavy\" name=\"comp[invite_subtype]\"  onclick=\"displayLetter()\" /> <a href=\"javascript:setInviteWeight(\'heavy\');\">Heavy</a><br />\r\n			   <input type=\"radio\" value=\"medium\" name=\"comp[invite_subtype]\" onclick=\"displayLetter()\" /> <a href=\"javascript:setInviteWeight(\'medium\');\">Medium</a><br />\r\n			   <input type=\"radio\" value=\"light\" name=\"comp[invite_subtype]\" onclick=\"displayLetter()\" /> <a href=\"javascript:setInviteWeight(\'light\');\">Light</a><br />\r\n			</small>\r\n		    </div>\r\n		</td>\r\n	     </tr>\r\n	  </table>\r\n        </td>\r\n     </tr>\r\n     </table>\r\n  </td>\r\n</tr>\r\n</table>\r\n<br />\r\n<table border=\"0\" cellpadding=\"0\" width=\"100%\">\r\n <tr>\r\n   <td align=\"right\">tab</td>\r\n </tr>\r\n <tr>\r\n   <td>\r\n      <div id=\"letterHolder\" name=\"letterHolder\" style=\"border:solid 1px black;height:400px;width:100%;overflow:auto;\">\r\n      </div>\r\n   </td>\r\n </tr>\r\n</table>\r\n{* <iframe src=\"?pg=compCreate/inviteFrame\" style=\"width:100%;height:410px;\" scrollbars=\"no\" frameborder=\"0\"></iframe> *}\r\n\r\n<div id=\"invite-div\"></div>\r\n<br />\r\n\r\n<div align=\"right\">\r\n  <a href=\"?pg=compCreate/step2\"><img src=\"{$skinFolder}images/btn_next.gif\" alt=\"Next\" border=\"0\" /></a>\r\n</div>\r\n\r\n<div id=\"myCompetitors\" style=\"width:300px;background-color:white;zIndex:100;position:absolute;display:none;top:-70px;left:300px;border:solid 1px #CCC;filter: alpha(opacity=85)\">\r\n  <center>\r\n   <table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" width=\"95%\">\r\n      <tr><td align=\"right\" valign=\"top\" style=\"height:5px\"><small><span style=\"cursor:pointer;\" onclick=\"extraCompetitors(\'close\');\">close window</span><small></td></tr>\r\n      <tr><td style=\"border-bottom:solid 1px #CCC;\"><h2>More Competitors...</td></tr>\r\n      <tr>\r\n         <td align=\"center\">\r\n	    <table id=\"competitorsTable\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"90%\">\r\n                <tr>\r\n		  <td></td>\r\n		  <td align=\"center\" valign=\"bottom\">Name</td>\r\n                  <td align=\"center\" valign=\"bottom\">Email</td>\r\n                </tr>\r\n	        <tr>\r\n		  <td>2.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>3.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>4.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>5.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>6.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>7.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>8.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>9.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>10.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>11.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n		<tr>\r\n		  <td colspan=\"3\" align=\"right\"><small><span style=\"cursor:pointer;\" onclick=\'addMoreCompetitors();\'>Add More Lines</span></small></td>\r\n		</tr>\r\n            </table>\r\n         </td>\r\n      </tr>\r\n      <tr>\r\n	<td align=\"right\" style=\"border-top:solid 1px #CCC;\"><img style=\"cursor:pointer;\" onclick=\"addingCompetitors();\" src=\"{$skinFolder}images/btn_next.gif\" alt=\"Add\" border=\"0\" /></td>\r\n      </tr>\r\n   </table>\r\n  </center>\r\n</div>\r\n\r\n</form>\r\n\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/js-get-data.js\"></script>\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/AJAX.js\"></script>\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/NewComp.js\"></script>\r\n\r\n<script language=\"JavaScript\">\r\n	\r\n        //jsGetData(\'?pg=jsGetData\',\'invite-div\', \'madlib.form\', \'&compType=friends&inviteType=smack\');\r\n\r\n	var examples = Array();\r\n	{foreach from=$examples key=\"key\" item=\"example\"}\r\n	examples[{$key}] = \'{eval var=$example.body|addslashes|replace:\"\\r\":\"\"|replace:\"\\n\":\"\\\\n\"}\';\r\n	{/foreach}\r\n	\r\n	{literal}\r\n\r\n\r\n	{/literal}\r\n</script>'),(4976,272,0.72,'smarty','0','David Images/Backgrounds ...',1142182670,2271,'67.186.218.203','{include file=\"shared:layouts/comp_create_navbar.tpl\"}\r\n\r\n<form method=\"post\" action=\"index.php\">\r\n<table border=0 cellpadding=0 cellspacing=0 width=\"100%\">\r\n<tr>\r\n<td valign=\"top\">\r\n<!-----  A  ------>\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">A. Competing for...</td><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" value=\"p2p\" checked> <a href=\"javascript:setCompType(\'p2p\');\">Pound for pound <i>(Weight lost)</i></a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" value=\"pctWt\"> <a href=\"javascript:setCompType(\'pctWt\');\">Percent of body weight lost</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" value=\"minEx\"> <a href=\"javascript:setCompType(\'minEx\');\">Total minutes excercised</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" value=\"disEx\"> <a href=\"javascript:setCompType(\'disEx\');\">Total distance excercised</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" value=\"veg\"> <a href=\"javascript:setCompType(\'veg\');\">Vegitable challenge</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" value=\"gain\"> <a href=\"javascript:setCompType(\'gain\');\">Weight gained</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif\"></td></tr>\r\n</table>\r\n</td>\r\n<td valign=\"top\">\r\n<!-----  B  ------>\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">\r\n<!--- TABLE TITLE  --->\r\nB. The competition name is...\r\n</td>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td>\r\n</tr>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td>\r\n<td>\r\n<!--- TABLE CONTENT  --->\r\n    <table border=0 cellspacing=0>\r\n    <tr>\r\n      <td><h3>Name:</h3></td>\r\n      <td><input type=\"text\" name=\"comp[title]\" /></td>\r\n    </tr>\r\n    <tr>\r\n      <td valign=\"top\"><small><b>Examples:</b></small></td>\r\n      <td><small>&quot;The chubby family reunion&quot;<br />&quot;Company shape-up marathon&quot;<br />&quot;Super Summer Slimdown&quot;</small></td>\r\n    </tr>\r\n<!--    <tr>\r\n      <td colspan=\"2\">\r\n	<br/>\r\n        <div style=\"border:solid 1px black;width:98%;height:60px;\">\r\n	  test\r\n	</div>\r\n      </td>\r\n    </tr>-->\r\n    </table>\r\n<!--- END OF CONTENT --->\r\n</td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td>\r\n</tr>\r\n<tr>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif\"></td>\r\n</tr>\r\n</table>\r\n    <br/>\r\n    <div style=\"border:solid 1px black;width:98%;height:85px;\">\r\n      test\r\n    </div>\r\n</td>\r\n<td valign=\"top\">\r\n<!-----  C  ------>\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">\r\n<!--- TABLE TITLE  --->\r\nC. How\'s competing...\r\n</td>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td>\r\n</tr>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td>\r\n<td>\r\n<!--- TABLE CONTENT  --->\r\n    <table border=0 cellpaddin=0 cellspacing=0>\r\n      <tr>\r\n	<td colspan=\"2\">\r\n	  <div id=\'enterFriendNameDiv\' style=\'display:block;\'>\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	     <tr>\r\n	       <td colspan=2><li>Invate your friends</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   My friend\'s Name:\r\n                 </small>\r\n	       </td>\r\n	       <td>\r\n	         <input type=\"text id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   My friend\'s Email:\r\n	         </small>\r\n	       </td>\r\n	       <td>\r\n		  <input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td colspan=\"2\" align=\"right\">\r\n	         <small>\r\n		   <span onclick=\"extraCompetitors(\'open\');\" style=\"cursor:pointer;\">\r\n                     Add more\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	  </div>\r\n	  <div id=\"myEnteredFriendsDiv\" style=\"display:none;\">\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\r\n	     <tr>\r\n	       <td><li>My Competitors:</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"left\" id=\"competitorListHolder\" style=\"padding-left:15px\">\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   <span onclick=\"editCompetitors();\" style=\"cursor:pointer;\">\r\n                     Edit my competitors\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	  </div>\r\n	</td>\r\n      </tr>\r\n      <tr><td colspan=\"2\"><li>Let them know with an email...</li></td></tr>\r\n      <tr>\r\n        <td valign=\"top\" colspan=2>\r\n	  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	      <tr>\r\n		 <td valign=\"top\">\r\n		    <small>\r\n			<table border=0 cellpadding=0 cellspacing=0 width=\"100%\">\r\n			  <tr><td id=\'kind\'><input type=\"radio\" value=\"kind\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'kind\');\"/> <a href=\"javascript:setInviteStyle(\'kind\');\">Kind</a></td></tr>\r\n			  <tr><td id=\'smack\'><input type=\"radio\" value=\"smack\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'smack\');\"/> <a href=\"javascript:setInviteStyle(\'smack\');\">Smack</a></td></tr>\r\n			  <tr><td id=\'challenge\'><input type=\"radio\" value=\"challenge\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'challenge\');\" /> <a href=\"javascript:setInviteStyle(\'challenge\');\">Challenge</a></td></tr>\r\n			  <tr><td id=\'custom\'><input type=\"radio\" value=\"custom\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'custom\');\"/> <a href=\"javascript:setInviteStyle(\'custom\');\">Make Your Own</a></td></tr>\r\n                        </table>\r\n		    </small>\r\n		 </td>\r\n		 <td valign=\"top\" id=\"invateHolder\">\r\n		    <div id=\"InvateW\" style=\"border-bottom:solid 1px #CCC;border-left:solid 1px #CCC;padding-right:5px;visibility:hidden;\">\r\n			<small>\r\n			   <input type=\"radio\" value=\"heavy\" name=\"comp[invite_subtype]\"  onclick=\"displayLetter()\" /> <a href=\"javascript:setInviteWeight(\'heavy\');\">Heavy</a><br />\r\n			   <input type=\"radio\" value=\"medium\" name=\"comp[invite_subtype]\" onclick=\"displayLetter()\" /> <a href=\"javascript:setInviteWeight(\'medium\');\">Medium</a><br />\r\n			   <input type=\"radio\" value=\"light\" name=\"comp[invite_subtype]\" onclick=\"displayLetter()\" /> <a href=\"javascript:setInviteWeight(\'light\');\">Light</a><br />\r\n			</small>\r\n		    </div>\r\n		</td>\r\n	     </tr>\r\n	  </table>\r\n        </td>\r\n     </tr>\r\n     </table>\r\n\r\n<!--- END OF CONTENT --->\r\n</td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td>\r\n</tr>\r\n<tr>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif\"></td>\r\n</tr>\r\n</table>\r\n</td>\r\n<td>\r\n</td>\r\n</tr>\r\n</table>\r\n<br />\r\n<table border=\"0\" cellpadding=\"0\" width=\"100%\">\r\n<tr>\r\n<td width=\"10px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/top.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/note/topLeftCorner.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/note/top.gif);background-repeat:repeat-x;\"></td>\r\n<td width=\"15px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/top.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/note/topRightCorner.gif\"></td>\r\n</tr>\r\n <tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/note/table_body_left.gif);background-repeat:repeat-y;\"></td>\r\n   <td>\r\n      <div id=\"letterHolder\" name=\"letterHolder\" style=\"border:solid 1px black;height:400px;width:100%;overflow:auto;\">\r\n      </div>\r\n   </td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/note/table_body_right2.gif);background-repeat:repeat-y;\"></td>\r\n </tr>\r\n</table>\r\n{* <iframe src=\"?pg=compCreate/inviteFrame\" style=\"width:100%;height:410px;\" scrollbars=\"no\" frameborder=\"0\"></iframe> *}\r\n\r\n<div id=\"invite-div\"></div>\r\n<br />\r\n\r\n<div align=\"right\">\r\n  <a href=\"?pg=compCreate/step2\"><img src=\"{$skinFolder}images/btn_next.gif\" alt=\"Next\" border=\"0\" /></a>\r\n</div>\r\n\r\n<div id=\"myCompetitors\" style=\"width:300px;background-color:white;zIndex:100;position:absolute;display:none;top:-70px;left:300px;border:solid 1px #CCC;filter: alpha(opacity=85)\">\r\n  <center>\r\n   <table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" width=\"95%\">\r\n      <tr><td align=\"right\" valign=\"top\" style=\"height:5px\"><small><span style=\"cursor:pointer;\" onclick=\"extraCompetitors(\'close\');\">close window</span><small></td></tr>\r\n      <tr><td style=\"border-bottom:solid 1px #CCC;\"><h2>More Competitors...</td></tr>\r\n      <tr>\r\n         <td align=\"center\">\r\n	    <table id=\"competitorsTable\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"90%\">\r\n                <tr>\r\n		  <td></td>\r\n		  <td align=\"center\" valign=\"bottom\">Name</td>\r\n                  <td align=\"center\" valign=\"bottom\">Email</td>\r\n                </tr>\r\n	        <tr>\r\n		  <td>2.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>3.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>4.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>5.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>6.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>7.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>8.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>9.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>10.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>11.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n		<tr>\r\n		  <td colspan=\"3\" align=\"right\"><small><span style=\"cursor:pointer;\" onclick=\'addMoreCompetitors();\'>Add More Lines</span></small></td>\r\n		</tr>\r\n            </table>\r\n         </td>\r\n      </tr>\r\n      <tr>\r\n	<td align=\"right\" style=\"border-top:solid 1px #CCC;\"><img style=\"cursor:pointer;\" onclick=\"addingCompetitors();\" src=\"{$skinFolder}images/btn_next.gif\" alt=\"Add\" border=\"0\" /></td>\r\n      </tr>\r\n   </table>\r\n  </center>\r\n</div>\r\n\r\n</form>\r\n\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/js-get-data.js\"></script>\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/AJAX.js\"></script>\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/NewComp.js\"></script>\r\n\r\n<script language=\"JavaScript\">\r\n	\r\n        //jsGetData(\'?pg=jsGetData\',\'invite-div\', \'madlib.form\', \'&compType=friends&inviteType=smack\');\r\n\r\n	var examples = Array();\r\n	{foreach from=$examples key=\"key\" item=\"example\"}\r\n	examples[{$key}] = \'{eval var=$example.body|addslashes|replace:\"\\r\":\"\"|replace:\"\\n\":\"\\\\n\"}\';\r\n	{/foreach}\r\n	\r\n	{literal}\r\n\r\n\r\n	{/literal}\r\n</script>'),(4978,272,0.74,'smarty','0','David Images/Backgrounds ...',1142294773,2271,'216.194.127.150','{include file=\"shared:layouts/comp_create_navbar.tpl\"}\r\n\r\n<form method=\"post\" action=\"index.php\">\r\n<table border=0 cellpadding=0 cellspacing=0 width=\"100%\">\r\n<tr>\r\n<td valign=\"top\">\r\n<!-----  A  ------>\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">A. Competing for...</td><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" value=\"p2p\" checked> <a href=\"javascript:setCompType(\'p2p\');\">Pound for pound <i>(Weight lost)</i></a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" value=\"pctWt\"> <a href=\"javascript:setCompType(\'pctWt\');\">Percent of body weight lost</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" value=\"minEx\"> <a href=\"javascript:setCompType(\'minEx\');\">Total minutes excercised</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" value=\"disEx\"> <a href=\"javascript:setCompType(\'disEx\');\">Total distance excercised</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" value=\"veg\"> <a href=\"javascript:setCompType(\'veg\');\">Vegitable challenge</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" value=\"gain\"> <a href=\"javascript:setCompType(\'gain\');\">Weight gained</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif\"></td></tr>\r\n</table>\r\n</td>\r\n<td valign=\"top\">\r\n<!-----  B  ------>\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">\r\n<!--- TABLE TITLE  --->\r\nB. The competition name is...\r\n</td>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td>\r\n</tr>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td>\r\n<td>\r\n<!--- TABLE CONTENT  --->\r\n    <table border=0 cellspacing=0>\r\n    <tr>\r\n      <td><h3>Name:</h3></td>\r\n      <td><input type=\"text\" name=\"comp[title]\" /></td>\r\n    </tr>\r\n    <tr>\r\n      <td valign=\"top\"><small><b>Examples:</b></small></td>\r\n      <td><small>&quot;The chubby family reunion&quot;<br />&quot;Company shape-up marathon&quot;<br />&quot;Super Summer Slimdown&quot;</small></td>\r\n    </tr>\r\n<!--    <tr>\r\n      <td colspan=\"2\">\r\n	<br/>\r\n        <div style=\"border:solid 1px black;width:30%;height:60px;\">\r\n	  test\r\n	</div>\r\n      </td>\r\n    </tr>-->\r\n    </table>\r\n<!--- END OF CONTENT --->\r\n</td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td>\r\n</tr>\r\n<tr>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif\"></td>\r\n</tr>\r\n</table>\r\n    <br/>\r\n    <div style=\"border:solid 1px black;width:94%;height:85px;\">\r\n      test\r\n    </div>\r\n</td>\r\n<td valign=\"top\">\r\n<!-----  C  ------>\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">\r\n<!--- TABLE TITLE  --->\r\nC. Who\'s competing...\r\n</td>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td>\r\n</tr>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td>\r\n<td>\r\n<!--- TABLE CONTENT  --->\r\n    <table border=0 cellpaddin=0 cellspacing=0>\r\n      <tr>\r\n	<td colspan=\"2\">\r\n	  <div id=\'enterFriendNameDiv\' style=\'display:block;\'>\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	     <tr>\r\n	       <td colspan=2><li>Invate your friends</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   My friend\'s Name:\r\n                 </small>\r\n	       </td>\r\n	       <td>\r\n	         <input type=\"text id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   My friend\'s Email:\r\n	         </small>\r\n	       </td>\r\n	       <td>\r\n		  <input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td colspan=\"2\" align=\"right\">\r\n	         <small>\r\n		   <span onclick=\"extraCompetitors(\'open\');\" style=\"cursor:pointer;\">\r\n                     Add more\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	  </div>\r\n	  <div id=\"myEnteredFriendsDiv\" style=\"display:none;\">\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\r\n	     <tr>\r\n	       <td><li>My Competitors:</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"left\" id=\"competitorListHolder\" style=\"padding-left:15px\">\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   <span onclick=\"editCompetitors();\" style=\"cursor:pointer;\">\r\n                     Edit my competitors\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	  </div>\r\n	</td>\r\n      </tr>\r\n      <tr><td colspan=\"2\"><li>Let them know with an email...</li></td></tr>\r\n      <tr>\r\n        <td valign=\"top\" colspan=2>\r\n	  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	      <tr>\r\n		 <td valign=\"top\">\r\n		    <small>\r\n			<table border=0 cellpadding=0 cellspacing=0 width=\"100%\">\r\n			  <tr><td id=\'kind\'><input type=\"radio\" value=\"kind\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'kind\');\"/> <a href=\"javascript:setInviteStyle(\'kind\');\">Kind</a></td></tr>\r\n			  <tr><td id=\'smack\'><input type=\"radio\" value=\"smack\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'smack\');\"/> <a href=\"javascript:setInviteStyle(\'smack\');\">Smack</a></td></tr>\r\n			  <tr><td id=\'challenge\'><input type=\"radio\" value=\"challenge\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'challenge\');\" /> <a href=\"javascript:setInviteStyle(\'challenge\');\">Challenge</a></td></tr>\r\n			  <tr><td id=\'custom\'><input type=\"radio\" value=\"custom\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'custom\');\"/> <a href=\"javascript:setInviteStyle(\'custom\');\">Make Your Own</a></td></tr>\r\n                        </table>\r\n		    </small>\r\n		 </td>\r\n		 <td valign=\"top\" id=\"invateHolder\">\r\n		    <div id=\"InvateW\" style=\"border-bottom:solid 1px #CCC;border-left:solid 1px #CCC;padding-right:5px;visibility:hidden;\">\r\n			<small>\r\n			   <input type=\"radio\" value=\"heavy\" name=\"comp[invite_subtype]\"  onclick=\"displayLetter()\" /> <a href=\"javascript:setInviteWeight(\'heavy\');\">Heavy</a><br />\r\n			   <input type=\"radio\" value=\"medium\" name=\"comp[invite_subtype]\" onclick=\"displayLetter()\" /> <a href=\"javascript:setInviteWeight(\'medium\');\">Medium</a><br />\r\n			   <input type=\"radio\" value=\"light\" name=\"comp[invite_subtype]\" onclick=\"displayLetter()\" /> <a href=\"javascript:setInviteWeight(\'light\');\">Light</a><br />\r\n			</small>\r\n		    </div>\r\n		</td>\r\n	     </tr>\r\n	  </table>\r\n        </td>\r\n     </tr>\r\n     </table>\r\n\r\n<!--- END OF CONTENT --->\r\n</td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td>\r\n</tr>\r\n<tr>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif\"></td>\r\n</tr>\r\n</table>\r\n</td>\r\n<td>\r\n</td>\r\n</tr>\r\n</table>\r\n<br />\r\n<table border=\"0\" cellpadding=0 cellspacing=0 width=\"100%\">\r\n<tr>\r\n<td width=\"10px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/top.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/note/topLeftCorner.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/note/top.gif);background-repeat:repeat-x;\"></td>\r\n<td width=\"15px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/top.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/note/topRightCorner.gif\"></td>\r\n</tr>\r\n<tr>\r\n<td width=\"10px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/left.gif);background-repeat:repeat-y;\"></td>\r\n   <td>\r\n      <div id=\"letterHolder\" name=\"letterHolder\" style=\"border:solid 1px white;height:400px;width:100%;overflow:auto;\">\r\n      </div>\r\n   </td>\r\n<td width=\"10px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/right.gif);background-repeat:repeat-y;\"></td>\r\n</tr>\r\n<tr>\r\n<td width=\"10px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/bottom.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/note/bottomLeftCorner.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/note/bottom.gif);background-repeat:repeat-x;\"></td>\r\n<td width=\"15px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/bottom.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/note/bottomRightCorner.gif\"></td>\r\n</tr>\r\n</table>\r\n{* <iframe src=\"?pg=compCreate/inviteFrame\" style=\"width:100%;height:410px;\" scrollbars=\"no\" frameborder=\"0\"></iframe> *}\r\n\r\n<div id=\"invite-div\"></div>\r\n<br />\r\n\r\n<div align=\"right\">\r\n  <a href=\"?pg=compCreate/step2\"><img src=\"{$skinFolder}images/btn_next.gif\" alt=\"Next\" border=\"0\" /></a>\r\n</div>\r\n\r\n<div id=\"myCompetitors\" style=\"width:300px;background-color:white;zIndex:100;position:absolute;display:none;top:-70px;left:300px;border:solid 1px #CCC;filter: alpha(opacity=85)\">\r\n  <center>\r\n   <table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" width=\"95%\">\r\n      <tr><td align=\"right\" valign=\"top\" style=\"height:5px\"><small><span style=\"cursor:pointer;\" onclick=\"extraCompetitors(\'close\');\">close window</span><small></td></tr>\r\n      <tr><td style=\"border-bottom:solid 1px #CCC;\"><h2>More Competitors...</td></tr>\r\n      <tr>\r\n         <td align=\"center\">\r\n	    <table id=\"competitorsTable\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"90%\">\r\n                <tr>\r\n		  <td></td>\r\n		  <td align=\"center\" valign=\"bottom\">Name</td>\r\n                  <td align=\"center\" valign=\"bottom\">Email</td>\r\n                </tr>\r\n	        <tr>\r\n		  <td>2.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>3.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>4.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>5.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>6.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>7.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>8.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>9.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>10.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>11.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n		<tr>\r\n		  <td colspan=\"3\" align=\"right\"><small><span style=\"cursor:pointer;\" onclick=\'addMoreCompetitors();\'>Add More Lines</span></small></td>\r\n		</tr>\r\n            </table>\r\n         </td>\r\n      </tr>\r\n      <tr>\r\n	<td align=\"right\" style=\"border-top:solid 1px #CCC;\"><img style=\"cursor:pointer;\" onclick=\"addingCompetitors();\" src=\"{$skinFolder}images/btn_next.gif\" alt=\"Add\" border=\"0\" /></td>\r\n      </tr>\r\n   </table>\r\n  </center>\r\n</div>\r\n\r\n</form>\r\n\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/js-get-data.js\"></script>\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/AJAX.js\"></script>\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/NewComp.js\"></script>\r\n\r\n<script language=\"JavaScript\">\r\n	\r\n        //jsGetData(\'?pg=jsGetData\',\'invite-div\', \'madlib.form\', \'&compType=friends&inviteType=smack\');\r\n\r\n	var examples = Array();\r\n	{foreach from=$examples key=\"key\" item=\"example\"}\r\n	examples[{$key}] = \'{eval var=$example.body|addslashes|replace:\"\\r\":\"\"|replace:\"\\n\":\"\\\\n\"}\';\r\n	{/foreach}\r\n	\r\n	{literal}\r\n\r\n\r\n	{/literal}\r\n</script>'),(4980,272,0.76,'smarty','0','Changing comments to try to fix some issues in FF',1142373838,2,'63.226.108.67','{include file=\"shared:layouts/comp_create_navbar.tpl\"}\r\n\r\n<form method=\"post\" action=\"index.php\">\r\n<table border=0 cellpadding=0 cellspacing=0 width=\"100%\">\r\n<tr>\r\n<td valign=\"top\">\r\n<!-- ---  A  ---- -->\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">A. Competing for...</td><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" value=\"p2p\" checked> <a href=\"javascript:setCompType(\'p2p\');\">Pound for pound <i>(Weight lost)</i></a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" value=\"pctWt\"> <a href=\"javascript:setCompType(\'pctWt\');\">Percent of body weight lost</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" value=\"minEx\"> <a href=\"javascript:setCompType(\'minEx\');\">Total minutes exercised</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" value=\"disEx\"> <a href=\"javascript:setCompType(\'disEx\');\">Total distance exercised</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" value=\"veg\"> <a href=\"javascript:setCompType(\'veg\');\">Vegetable challenge</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" value=\"gain\"> <a href=\"javascript:setCompType(\'gain\');\">Weight gained</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif\"></td></tr>\r\n</table>\r\n</td>\r\n<td valign=\"top\">\r\n<!-- ---  B  ---- -->\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">\r\n<!-- - TABLE TITLE  - -->\r\nB. The competition name is...\r\n</td>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td>\r\n</tr>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td>\r\n<td>\r\n<!-- - TABLE CONTENT  - -->\r\n    <table border=0 cellspacing=0>\r\n    <tr>\r\n      <td><h3>Name:</h3></td>\r\n      <td><input type=\"text\" name=\"comp[title]\" /></td>\r\n    </tr>\r\n    <tr>\r\n      <td valign=\"top\"><small><b>Examples:</b></small></td>\r\n      <td><small>&quot;The chubby family reunion&quot;<br />&quot;Company shape-up marathon&quot;<br />&quot;Super Summer Slimdown&quot;</small></td>\r\n    </tr>\r\n<!--    <tr>\r\n      <td colspan=\"2\">\r\n	<br/>\r\n        <div style=\"border:solid 1px black;width:30%;height:60px;\">\r\n	  test\r\n	</div>\r\n      </td>\r\n    </tr>-->\r\n    </table>\r\n<!-- - END OF CONTENT - -->\r\n</td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td>\r\n</tr>\r\n<tr>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif\"></td>\r\n</tr>\r\n</table>\r\n    <br/>\r\n    <div style=\"border:solid 1px black;width:94%;height:85px;\">\r\n      test\r\n    </div>\r\n</td>\r\n<td valign=\"top\">\r\n<!-- ---  C  ---- -->\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">\r\n<!-- - TABLE TITLE  - -->\r\nC. Who\'s competing...\r\n</td>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td>\r\n</tr>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td>\r\n<td>\r\n<!-- - TABLE CONTENT  - -->\r\n    <table border=0 cellpaddin=0 cellspacing=0>\r\n      <tr>\r\n	<td colspan=\"2\">\r\n	  <div id=\'enterFriendNameDiv\' style=\'display:block;\'>\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	     <tr>\r\n	       <td colspan=2><li>Invate your friends</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   My friend\'s Name:\r\n                 </small>\r\n	       </td>\r\n	       <td>\r\n	         <input type=\"text id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   My friend\'s Email:\r\n	         </small>\r\n	       </td>\r\n	       <td>\r\n		  <input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td colspan=\"2\" align=\"right\">\r\n	         <small>\r\n		   <span onclick=\"extraCompetitors(\'open\');\" style=\"cursor:pointer;\">\r\n                     Add more\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	  </div>\r\n	  <div id=\"myEnteredFriendsDiv\" style=\"display:none;\">\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\r\n	     <tr>\r\n	       <td><li>My Competitors:</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"left\" id=\"competitorListHolder\" style=\"padding-left:15px\">\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   <span onclick=\"editCompetitors();\" style=\"cursor:pointer;\">\r\n                     Edit my competitors\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	  </div>\r\n	</td>\r\n      </tr>\r\n      <tr><td colspan=\"2\"><li>Let them know with an email...</li></td></tr>\r\n      <tr>\r\n        <td valign=\"top\" colspan=2>\r\n	  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	      <tr>\r\n		 <td valign=\"top\">\r\n		    <small>\r\n			<table border=0 cellpadding=0 cellspacing=0 width=\"100%\">\r\n			  <tr><td id=\'kind\'><input type=\"radio\" value=\"kind\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'kind\');\"/> <a href=\"javascript:setInviteStyle(\'kind\');\">Kind</a></td></tr>\r\n			  <tr><td id=\'smack\'><input type=\"radio\" value=\"smack\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'smack\');\"/> <a href=\"javascript:setInviteStyle(\'smack\');\">Smack</a></td></tr>\r\n			  <tr><td id=\'challenge\'><input type=\"radio\" value=\"challenge\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'challenge\');\" /> <a href=\"javascript:setInviteStyle(\'challenge\');\">Challenge</a></td></tr>\r\n			  <tr><td id=\'custom\'><input type=\"radio\" value=\"custom\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'custom\');\"/> <a href=\"javascript:setInviteStyle(\'custom\');\">Make Your Own</a></td></tr>\r\n                        </table>\r\n		    </small>\r\n		 </td>\r\n		 <td valign=\"top\" id=\"invateHolder\">\r\n		    <div id=\"InvateW\" style=\"border-bottom:solid 1px #CCC;border-left:solid 1px #CCC;padding-right:5px;visibility:hidden;\">\r\n			<small>\r\n			   <input type=\"radio\" value=\"heavy\" name=\"comp[invite_subtype]\"  onclick=\"displayLetter()\" /> <a href=\"javascript:setInviteWeight(\'heavy\');\">Heavy</a><br />\r\n			   <input type=\"radio\" value=\"medium\" name=\"comp[invite_subtype]\" onclick=\"displayLetter()\" /> <a href=\"javascript:setInviteWeight(\'medium\');\">Medium</a><br />\r\n			   <input type=\"radio\" value=\"light\" name=\"comp[invite_subtype]\" onclick=\"displayLetter()\" /> <a href=\"javascript:setInviteWeight(\'light\');\">Light</a><br />\r\n			</small>\r\n		    </div>\r\n		</td>\r\n	     </tr>\r\n	  </table>\r\n        </td>\r\n     </tr>\r\n     </table>\r\n\r\n<!-- - END OF CONTENT - -->\r\n</td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td>\r\n</tr>\r\n<tr>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif\"></td>\r\n</tr>\r\n</table>\r\n</td>\r\n<td>\r\n</td>\r\n</tr>\r\n</table>\r\n<br />\r\n<table border=\"0\" cellpadding=0 cellspacing=0 width=\"100%\">\r\n<tr>\r\n<td width=\"10px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/top.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/note/topLeftCorner.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/note/top.gif);background-repeat:repeat-x;\"></td>\r\n<td width=\"15px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/top.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/note/topRightCorner.gif\"></td>\r\n</tr>\r\n<tr>\r\n<td width=\"10px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/left.gif);background-repeat:repeat-y;\"></td>\r\n   <td>\r\n      <div id=\"letterHolder\" name=\"letterHolder\" style=\"border:solid 1px white;height:400px;width:100%;overflow:auto;\">\r\n      </div>\r\n   </td>\r\n<td width=\"10px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/right.gif);background-repeat:repeat-y;\"></td>\r\n</tr>\r\n<tr>\r\n<td width=\"10px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/bottom.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/note/bottomLeftCorner.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/note/bottom.gif);background-repeat:repeat-x;\"></td>\r\n<td width=\"15px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/bottom.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/note/bottomRightCorner.gif\"></td>\r\n</tr>\r\n</table>\r\n{* <iframe src=\"?pg=compCreate/inviteFrame\" style=\"width:100%;height:410px;\" scrollbars=\"no\" frameborder=\"0\"></iframe> *}\r\n\r\n<div id=\"invite-div\"></div>\r\n<br />\r\n\r\n<div align=\"right\">\r\n  <a href=\"?pg=compCreate/step2\"><img src=\"{$skinFolder}images/btn_next.gif\" alt=\"Next\" border=\"0\" /></a>\r\n</div>\r\n\r\n<div id=\"myCompetitors\" style=\"width:300px;background-color:white;zIndex:100;position:absolute;display:none;top:-70px;left:300px;border:solid 1px #CCC;filter: alpha(opacity=85)\">\r\n  <center>\r\n   <table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" width=\"95%\">\r\n      <tr><td align=\"right\" valign=\"top\" style=\"height:5px\"><small><span style=\"cursor:pointer;\" onclick=\"extraCompetitors(\'close\');\">close window</span><small></td></tr>\r\n      <tr><td style=\"border-bottom:solid 1px #CCC;\"><h2>More Competitors...</td></tr>\r\n      <tr>\r\n         <td align=\"center\">\r\n	    <table id=\"competitorsTable\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"90%\">\r\n                <tr>\r\n		  <td></td>\r\n		  <td align=\"center\" valign=\"bottom\">Name</td>\r\n                  <td align=\"center\" valign=\"bottom\">Email</td>\r\n                </tr>\r\n	        <tr>\r\n		  <td>2.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>3.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>4.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>5.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>6.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>7.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>8.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>9.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>10.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>11.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n		<tr>\r\n		  <td colspan=\"3\" align=\"right\"><small><span style=\"cursor:pointer;\" onclick=\'addMoreCompetitors();\'>Add More Lines</span></small></td>\r\n		</tr>\r\n            </table>\r\n         </td>\r\n      </tr>\r\n      <tr>\r\n	<td align=\"right\" style=\"border-top:solid 1px #CCC;\"><img style=\"cursor:pointer;\" onclick=\"addingCompetitors();\" src=\"{$skinFolder}images/btn_next.gif\" alt=\"Add\" border=\"0\" /></td>\r\n      </tr>\r\n   </table>\r\n  </center>\r\n</div>\r\n\r\n</form>\r\n\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/js-get-data.js\"></script>\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/AJAX.js\"></script>\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/NewComp.js\"></script>\r\n\r\n<script language=\"JavaScript\">\r\n	\r\n        //jsGetData(\'?pg=jsGetData\',\'invite-div\', \'madlib.form\', \'&compType=friends&inviteType=smack\');\r\n\r\n	var examples = Array();\r\n	{foreach from=$examples key=\"key\" item=\"example\"}\r\n	examples[{$key}] = \'{eval var=$example.body|addslashes|replace:\"\\r\":\"\"|replace:\"\\n\":\"\\\\n\"}\';\r\n	{/foreach}\r\n	\r\n	{literal}\r\n\r\n\r\n	{/literal}\r\n</script>'),(4982,273,0.22,'smarty','0','David Morales working',1142390474,2271,'216.194.127.150','{include file=\"shared:layouts/comp_create_navbar.tpl\"}\r\n\r\n<form method=\"post\" action=\"index.php\">\r\n\r\n<table width=\"100%\">\r\n<tr>\r\n  <td><h2>Prize Method:</h2></td>\r\n  <td><select name=\"comp[prize_method]\">\r\n        <option value=\"\">Cash Settlement</option>\r\n      </select>\r\n  </td>\r\n  <td rowspan=\"2\"><img src=\"blank.gif\" width=\"200\" height=\"100\" alt=\"\" border=\"1\" /></td>\r\n</tr>\r\n<tr>\r\n  <td><b>Type:</b></td>\r\n  <td><input type=\"text\" value=\"$50.00\" /></td>\r\n</tr>\r\n</table>\r\n<!--\r\n<a name=\"invitations\" />\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'enterEmails\', \'hideEnterEmails\', \'showHide\');\"><img id=\"enterEmails_img\" src=\"./img/blank.gif\" class=\"showHide_{if $newcomp.hideEnterEmails}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Invite Some Competitors:</h2>\r\n	<input type=\"hidden\" id=\"hideEnterEmails\" name=\"newcomp[hideEnterEmails]\" value=\"{$newcomp.hideEnterEmails|default:\"0\"}\">\r\n\r\n<div>Enter a name and email address for each person you would like to invite into this competition. If this is a company wide competition simply enter EMPLOYEES as the name and the appropriate email address to reach them. If you did not create a letter to send, then SKIP this section.<br /><br /></div>\r\n\r\n<div id=\"enterEmails\" style=\"display:{if $newcomp.hideEnterEmails eq \"1\"}none{else}block{/if};\">\r\n	<div class=\"pixel underline2\">&nbsp;</div>\r\n	<div id=\"inviteList\">\r\n	<table align=\"center\" style=\"margin:10px;\">\r\n	<tr>\r\n		<td><div>&nbsp;</div></td>\r\n		<td><h3 class=\"withBG\">Name</h2></td>\r\n		<td><h3 class=\"withBG\">E-Mail</h2></td>\r\n		<td><h3 class=\"withBG\">Your Relation</h2></td>\r\n	</tr> \r\n	{section name=\"contactLoop\" loop=$addCount}  {* $addCount is assigned by the handler... *}\r\n	<tr>\r\n		<td><div>#{$smarty.section.contactLoop.iteration}</div></td>\r\n		<td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][name][{$smarty.section.contactLoop.iteration}]\"></div></td>\r\n		<td><div><input type=\"text\" class=\"textInput\" style=\"width:200px;\" name=\"newcomp[invite][email][{$smarty.section.contactLoop.iteration}]\"></div></td>\r\n		<td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][relation][{$smarty.section.contactLoop.iteration}]\"></div></td>\r\n	</tr>\r\n	{/section}\r\n	</table>\r\n	</div>\r\n	\r\n	<div align=\"right\" style=\"margin-right:30px;\">\r\n		<a href=\"javascript://\" onclick=\"addEmailRows();return false;\">&gt; Click to add more now! &lt;</a>\r\n	</div>\r\n</div>\r\n<div class=\"pixel underline2\">&nbsp;</div>-->\r\n\r\n\r\n<script language=\"javascript\">\r\n	var addCount = {$addCount};\r\n	{literal}\r\n	function addEmailRows() {\r\n		addCount++;\r\n		var obj = document.getElementById(\'inviteList\');\r\n		var html = obj.innerHTML;\r\n		html = html.replace(/\\<\\/TABLE\\>/i, \'\');\r\n		html += \'<tr><td><div>#\'+addCount+\'</div></td><td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][name][\'+addCount+\']\"></div></td><td><div><input type=\"text\" class=\"textInput\" style=\"width:200px;\" name=\"newcomp[invite][email][\'+addCount+\']\"></div></td><td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][relation][\'+addCount+\']\"></div></td></tr></table>\';\r\n		obj.innerHTML = html;\r\n	}\r\n	{/literal}\r\n</script>\r\n\r\n{* stored_object_fill_form object=$newcomp name=\"newcomp\" *}\r\n\r\n<div align=\"right\">\r\n	<!-- input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\" -->\r\n	<a href=\"?pg=compCreate/step3\"><img src=\"{$skinFolder}images/btn_next.gif\" alt=\"\" border=\"0\" /></a>\r\n</div>\r\n\r\n</form>'),(4983,272,0.78,'smarty','0','Changing comments to try to fix some issues in FF',1142395066,2271,'216.194.127.150','{include file=\"shared:layouts/comp_create_navbar.tpl\"}\r\n\r\n<form method=\"post\" action=\"index.php\">\r\n<table border=0 cellpadding=0 cellspacing=0 width=\"100%\">\r\n<tr>\r\n<td valign=\"top\">\r\n<!-- ---  A  ---- -->\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">A. Competing for...</td><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"p2p\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'p2p\');\">Pound for pound <i>(Weight lost)</i></a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"pctWt\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'pctWt\');\">Percent of body weight lost</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"minEx\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'minEx\');\">Total minutes exercised</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"disEx\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'disEx\');\">Total distance exercised</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"veg\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'veg\');\">Vegetable challenge</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"gain\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'gain\');\">Weight gained</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif\"></td></tr>\r\n</table>\r\n</td>\r\n<td valign=\"top\">\r\n<!-- ---  B  ---- -->\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">\r\n<!-- - TABLE TITLE  - -->\r\nB. The competition name is...\r\n</td>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td>\r\n</tr>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td>\r\n<td>\r\n<!-- Div to Block content -->\r\n<div onclick=\"validateDiv(this);\" id=\"step1_block_B\" style=\"margin-top:-1px;margin-left:-10px;border:solid 1px gray;background-color:silver;zIndex:100;position:absolute;filter:alpha(opacity=25); width:108%;\">\r\n    <table border=0 cellspacing=0>\r\n    <tr>\r\n      <td><h3 style=\"color:#cccccc\">Name:</h3></td>\r\n      <td><td>\r\n    </tr>\r\n    <tr>\r\n      <td valign=\"top\"><small><b style=\"color:#cccccc\">Examples:</b></small></td>\r\n      <td><small style=\"color:#cccccc\">&quot;The chubby family reunion&quot;<br />&quot;Company shape-up marathon&quot;<br />&quot;Super Summer Slimdown&quot;</small></td>\r\n    </tr>\r\n    </table>\r\n</div>\r\n<!-- end of DIV -->\r\n<!-- - TABLE CONTENT  - -->\r\n    <table border=0 cellspacing=0>\r\n    <tr>\r\n      <td><h3>Name:</h3></td>\r\n      <td><input type=\"text\" name=\"comp[title]\" id=\"comp[title]\" onkeyup=\"unBlock(\'step1_block_C\');\"/></td>\r\n    </tr>\r\n    <tr>\r\n      <td valign=\"top\"><small><b>Examples:</b></small></td>\r\n      <td><small>&quot;The chubby family reunion&quot;<br />&quot;Company shape-up marathon&quot;<br />&quot;Super Summer Slimdown&quot;</small></td>\r\n    </tr>\r\n    </table>\r\n<!-- - END OF CONTENT - -->\r\n</td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td>\r\n</tr>\r\n<tr>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif\"></td>\r\n</tr>\r\n</table>\r\n    <br/>\r\n    <div style=\"border:solid 1px black;width:94%;height:85px;\">\r\n      test\r\n    </div>\r\n</td>\r\n<td valign=\"top\">\r\n<!-- ---  C  ---- -->\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">\r\n<!-- - TABLE TITLE  - -->\r\nC. Who\'s competing...\r\n</td>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td>\r\n</tr>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td>\r\n<td>\r\n<!-- Div to Block content -->\r\n<div onclick=\"validateDiv(this);\" id=\"step1_block_C\" style=\"margin-top:-1px;margin-left:-10px;border:solid 1px gray;background-color:silver;zIndex:100;position:absolute;filter:alpha(opacity=25); width:108%;\">\r\n    <table border=0 cellpaddin=0 cellspacing=0>\r\n      <tr>\r\n	<td colspan=\"2\">\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	     <tr>\r\n	       <td colspan=2><li style=\"color:#cccccc\">Invate your friends</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small style=\"color:#cccccc\">\r\n		   My friend\'s Name:\r\n                 </small>\r\n	       </td>\r\n	       <td>\r\n	         &nbsp;&nbsp;&nbsp;<input type=\"text id=\"tmp1\" name=\"temp1\" style=\"width:110px;\" disabled />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small style=\"color:#cccccc\">\r\n		   My friend\'s Email:\r\n	         </small>\r\n	       </td>\r\n	       <td>\r\n	          &nbsp;&nbsp;&nbsp;<input type=\"text id=\"tmp1\" name=\"temp1\" style=\"width:110px;\" disabled/>\r\n               </td>\r\n             </tr>\r\n             <tr>\r\n	       <td colspan=\"2\" align=\"right\">\r\n	         <small style=\"color:#cccccc\">\r\n		   <span>\r\n                     Add more\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	</td>\r\n      </tr>\r\n      <tr><td colspan=\"2\"><li style=\"color:#cccccc\">Let them know with an email...</li></td></tr>\r\n      <tr>\r\n        <td valign=\"top\" colspan=2>\r\n	  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	      <tr>\r\n		 <td valign=\"top\">\r\n		    <small style=\"color:#cccccc\">\r\n			<table border=0 cellpadding=0 cellspacing=0 width=\"100%\">\r\n			  <tr><td>&nbsp;&nbsp;&nbsp;<input type=\"radio\" value=\"kind\" name=\"tmp2\"/> <span style=\"color:#cccccc;\">Kind</span></td></tr>\r\n			  <tr><td>&nbsp;&nbsp;&nbsp;<input type=\"radio\" value=\"smack\" name=\"tmp2\"/> <span style=\"color:#cccccc;\">Smack</span></td></tr>\r\n			  <tr><td>&nbsp;&nbsp;&nbsp;<input type=\"radio\" value=\"challenge\" name=\"tmp2\"/> <span style=\"color:#cccccc;\">Challenge</span></td></tr>\r\n			  <tr><td>&nbsp;&nbsp;&nbsp;<input type=\"radio\" value=\"custom\" name=\"tmp2\"/> <span style=\"color:#cccccc;\">Make Your Own</span></td></tr>\r\n                        </table>\r\n		    </small>\r\n		 </td>\r\n		 <td valign=\"top\" id=\"invateHolder\">\r\n		    <div id=\"tmp3\" style=\"border-bottom:solid 1px #CCC;border-left:solid 1px #CCC;padding-right:5px;visibility:hidden;\">\r\n			<small style=\"color:#cccccc\">\r\n			   <a href=\"javascript:setInviteWeight(\'heavy\');\">Heavy</a><br />\r\n			   <a href=\"javascript:setInviteWeight(\'medium\');\">Medium</a><br />\r\n			   <a href=\"javascript:setInviteWeight(\'light\');\">Light</a><br />\r\n			</small>\r\n		    </div>\r\n		</td>\r\n	     </tr>\r\n	  </table>\r\n        </td>\r\n     </tr>\r\n     </table>\r\n</div>\r\n<!-- end of DIV -->\r\n<!-- - TABLE CONTENT  - -->\r\n    <table border=0 cellpaddin=0 cellspacing=0>\r\n      <tr>\r\n	<td colspan=\"2\">\r\n	  <div id=\'enterFriendNameDiv\' style=\'display:block;\'>\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	     <tr>\r\n	       <td colspan=2><li>Invate your friends</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   My friend\'s Name:\r\n                 </small>\r\n	       </td>\r\n	       <td>\r\n	         <input type=\"text id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   My friend\'s Email:\r\n	         </small>\r\n	       </td>\r\n	       <td>\r\n		  <input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td colspan=\"2\" align=\"right\">\r\n	         <small>\r\n		   <span onclick=\"extraCompetitors(\'open\');\" style=\"cursor:pointer;\">\r\n                     Add more\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	  </div>\r\n	  <div id=\"myEnteredFriendsDiv\" style=\"display:none;\">\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\r\n	     <tr>\r\n	       <td><li>My Competitors:</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"left\" id=\"competitorListHolder\" style=\"padding-left:15px\">\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   <span onclick=\"editCompetitors();\" style=\"cursor:pointer;\">\r\n                     Edit my competitors\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	  </div>\r\n	</td>\r\n      </tr>\r\n      <tr><td colspan=\"2\"><li>Let them know with an email...</li></td></tr>\r\n      <tr>\r\n        <td valign=\"top\" colspan=2>\r\n	  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	      <tr>\r\n		 <td valign=\"top\">\r\n		    <small>\r\n			<table border=0 cellpadding=0 cellspacing=0 width=\"100%\">\r\n			  <tr><td id=\'kind\'><input type=\"radio\" value=\"kind\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'kind\');\"/> <a href=\"javascript:setInviteStyle(\'kind\');\">Kind</a></td></tr>\r\n			  <tr><td id=\'smack\'><input type=\"radio\" value=\"smack\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'smack\');\"/> <a href=\"javascript:setInviteStyle(\'smack\');\">Smack</a></td></tr>\r\n			  <tr><td id=\'challenge\'><input type=\"radio\" value=\"challenge\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'challenge\');\" /> <a href=\"javascript:setInviteStyle(\'challenge\');\">Challenge</a></td></tr>\r\n			  <tr><td id=\'custom\'><input type=\"radio\" value=\"custom\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'custom\');\"/> <a href=\"javascript:setInviteStyle(\'custom\');\">Make Your Own</a></td></tr>\r\n                        </table>\r\n		    </small>\r\n		 </td>\r\n		 <td valign=\"top\" id=\"invateHolder\">\r\n		    <div id=\"InvateW\" style=\"border-bottom:solid 1px #CCC;border-left:solid 1px #CCC;padding-right:5px;visibility:hidden;\">\r\n			<small>\r\n			   <input type=\"radio\" value=\"heavy\" name=\"comp[invite_subtype]\"  onclick=\"displayLetter(\'{$vanity}\')\" /> <a href=\"javascript:setInviteWeight(\'heavy\');\">Heavy</a><br />\r\n			   <input type=\"radio\" value=\"medium\" name=\"comp[invite_subtype]\" onclick=\"displayLetter(\'{$vanity}\')\" /> <a href=\"javascript:setInviteWeight(\'medium\');\">Medium</a><br />\r\n			   <input type=\"radio\" value=\"light\" name=\"comp[invite_subtype]\" onclick=\"displayLetter(\'{$vanity}\')\" /> <a href=\"javascript:setInviteWeight(\'light\');\">Light</a><br />\r\n			</small>\r\n		    </div>\r\n		</td>\r\n	     </tr>\r\n	  </table>\r\n        </td>\r\n     </tr>\r\n     </table>\r\n\r\n<!-- - END OF CONTENT - -->\r\n</td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td>\r\n</tr>\r\n<tr>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif\"></td>\r\n</tr>\r\n</table>\r\n</td>\r\n<td>\r\n</td>\r\n</tr>\r\n</table>\r\n<br />\r\n<table border=\"0\" cellpadding=0 cellspacing=0 width=\"100%\">\r\n<tr>\r\n<td width=\"10px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/top.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/note/topLeftCorner.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/note/top.gif);background-repeat:repeat-x;\"></td>\r\n<td width=\"15px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/top.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/note/topRightCorner.gif\"></td>\r\n</tr>\r\n<tr>\r\n<td width=\"10px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/left.gif);background-repeat:repeat-y;\"></td>\r\n   <td>\r\n      <div id=\"letterHolder\" name=\"letterHolder\" style=\"border:solid 1px white;height:400px;width:100%;overflow:auto;\">\r\n      </div>\r\n   </td>\r\n<td width=\"10px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/right.gif);background-repeat:repeat-y;\"></td>\r\n</tr>\r\n<tr>\r\n<td width=\"10px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/bottom.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/note/bottomLeftCorner.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/note/bottom.gif);background-repeat:repeat-x;\"></td>\r\n<td width=\"15px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/bottom.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/note/bottomRightCorner.gif\"></td>\r\n</tr>\r\n</table>\r\n{* <iframe src=\"?pg=compCreate/inviteFrame\" style=\"width:100%;height:410px;\" scrollbars=\"no\" frameborder=\"0\"></iframe> *}\r\n\r\n<div id=\"invite-div\"></div>\r\n<br />\r\n\r\n<div align=\"right\">\r\n  <a href=\"?pg=compCreate/step2\"><img src=\"{$skinFolder}images/btn_next.gif\" alt=\"Next\" border=\"0\" /></a>\r\n</div>\r\n\r\n<div id=\"myCompetitors\" style=\"width:300px;background-color:white;zIndex:100;position:absolute;display:none;top:-70px;left:300px;border:solid 1px #CCC;filter: alpha(opacity=85)\">\r\n  <center>\r\n   <table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" width=\"95%\">\r\n      <tr><td align=\"right\" valign=\"top\" style=\"height:5px\"><small><span style=\"cursor:pointer;\" onclick=\"extraCompetitors(\'close\');\">close window</span><small></td></tr>\r\n      <tr><td style=\"border-bottom:solid 1px #CCC;\"><h2>More Competitors...</td></tr>\r\n      <tr>\r\n         <td align=\"center\">\r\n	    <table id=\"competitorsTable\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"90%\">\r\n                <tr>\r\n		  <td></td>\r\n		  <td align=\"center\" valign=\"bottom\">Name</td>\r\n                  <td align=\"center\" valign=\"bottom\">Email</td>\r\n                </tr>\r\n	        <tr>\r\n		  <td>2.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>3.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>4.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>5.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>6.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>7.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>8.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>9.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>10.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>11.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n		<tr>\r\n		  <td colspan=\"3\" align=\"right\"><small><span style=\"cursor:pointer;\" onclick=\'addMoreCompetitors();\'>Add More Lines</span></small></td>\r\n		</tr>\r\n            </table>\r\n         </td>\r\n      </tr>\r\n      <tr>\r\n	<td align=\"right\" style=\"border-top:solid 1px #CCC;\"><img style=\"cursor:pointer;\" onclick=\"addingCompetitors();\" src=\"{$skinFolder}images/btn_next.gif\" alt=\"Add\" border=\"0\" /></td>\r\n      </tr>\r\n   </table>\r\n  </center>\r\n</div>\r\n\r\n</form>\r\n\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/js-get-data.js\"></script>\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/AJAX.js\"></script>\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/NewComp.js\"></script>\r\n\r\n<script language=\"JavaScript\">\r\n	\r\n        //jsGetData(\'?pg=jsGetData\',\'invite-div\', \'madlib.form\', \'&compType=friends&inviteType=smack\');\r\n\r\n	var examples = Array();\r\n	{foreach from=$examples key=\"key\" item=\"example\"}\r\n	examples[{$key}] = \'{eval var=$example.body|addslashes|replace:\"\\r\":\"\"|replace:\"\\n\":\"\\\\n\"}\';\r\n	{/foreach}\r\n	\r\n	{literal}\r\n\r\n\r\n	{/literal}\r\n</script>'),(4858,273,0.20,'smarty','0','Page created.',1140243848,3,'71.199.8.243','{include file=\"shared:layouts/comp_create_navbar.tpl\"}\r\n\r\n<form method=\"post\" action=\"index.php\">\r\n\r\n<table width=\"100%\">\r\n<tr>\r\n  <td><h2>Prize Method:</h2></td>\r\n  <td><select name=\"comp[prize_method]\">\r\n        <option value=\"\">Cash Settlement</option>\r\n      </select></td>\r\n</tr>\r\n<tr>\r\n  <td><b>Type:</b></td>\r\n  <td><input type=\"text\" value=\"$50.00\" /></td>\r\n</tr>\r\n</table>\r\n\r\n<a name=\"invitations\" />\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'enterEmails\', \'hideEnterEmails\', \'showHide\');\"><img id=\"enterEmails_img\" src=\"./img/blank.gif\" class=\"showHide_{if $newcomp.hideEnterEmails}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Invite Some Competitors:</h2>\r\n	<input type=\"hidden\" id=\"hideEnterEmails\" name=\"newcomp[hideEnterEmails]\" value=\"{$newcomp.hideEnterEmails|default:\"0\"}\">\r\n\r\n<div>Enter a name and email address for each person you would like to invite into this competition. If this is a company wide competition simply enter EMPLOYEES as the name and the appropriate email address to reach them. If you did not create a letter to send, then SKIP this section.<br /><br /></div>\r\n\r\n<div id=\"enterEmails\" style=\"display:{if $newcomp.hideEnterEmails eq \"1\"}none{else}block{/if};\">\r\n	<div class=\"pixel underline2\">&nbsp;</div>\r\n	<div id=\"inviteList\">\r\n	<table align=\"center\" style=\"margin:10px;\">\r\n	<tr>\r\n		<td><div>&nbsp;</div></td>\r\n		<td><h3 class=\"withBG\">Name</h2></td>\r\n		<td><h3 class=\"withBG\">E-Mail</h2></td>\r\n		<td><h3 class=\"withBG\">Your Relation</h2></td>\r\n	</tr> \r\n	{section name=\"contactLoop\" loop=$addCount}  {* $addCount is assigned by the handler... *}\r\n	<tr>\r\n		<td><div>#{$smarty.section.contactLoop.iteration}</div></td>\r\n		<td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][name][{$smarty.section.contactLoop.iteration}]\"></div></td>\r\n		<td><div><input type=\"text\" class=\"textInput\" style=\"width:200px;\" name=\"newcomp[invite][email][{$smarty.section.contactLoop.iteration}]\"></div></td>\r\n		<td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][relation][{$smarty.section.contactLoop.iteration}]\"></div></td>\r\n	</tr>\r\n	{/section}\r\n	</table>\r\n	</div>\r\n	\r\n	<div align=\"right\" style=\"margin-right:30px;\">\r\n		<a href=\"javascript://\" onclick=\"addEmailRows();return false;\">&gt; Click to add more now! &lt;</a>\r\n	</div>\r\n</div>\r\n<div class=\"pixel underline2\">&nbsp;</div>\r\n\r\n\r\n<script language=\"javascript\">\r\n	var addCount = {$addCount};\r\n	{literal}\r\n	function addEmailRows() {\r\n		addCount++;\r\n		var obj = document.getElementById(\'inviteList\');\r\n		var html = obj.innerHTML;\r\n		html = html.replace(/\\<\\/TABLE\\>/i, \'\');\r\n		html += \'<tr><td><div>#\'+addCount+\'</div></td><td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][name][\'+addCount+\']\"></div></td><td><div><input type=\"text\" class=\"textInput\" style=\"width:200px;\" name=\"newcomp[invite][email][\'+addCount+\']\"></div></td><td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][relation][\'+addCount+\']\"></div></td></tr></table>\';\r\n		obj.innerHTML = html;\r\n	}\r\n	{/literal}\r\n</script>\r\n\r\n{* stored_object_fill_form object=$newcomp name=\"newcomp\" *}\r\n\r\n<div align=\"right\">\r\n	<!-- input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\" -->\r\n	<a href=\"?pg=compCreate/step3\"><img src=\"{$skinFolder}images/btn_next.gif\" alt=\"\" border=\"0\" /></a>\r\n</div>\r\n\r\n</form>'),(4859,273,0.21,'smarty','0','Page created.',1140243943,3,'71.199.8.243','{include file=\"shared:layouts/comp_create_navbar.tpl\"}\r\n\r\n<form method=\"post\" action=\"index.php\">\r\n\r\n<table width=\"100%\">\r\n<tr>\r\n  <td><h2>Prize Method:</h2><br /><b>Type:</b></td>\r\n  <td><select name=\"comp[prize_method]\">\r\n        <option value=\"\">Cash Settlement</option>\r\n      </select><br /><input type=\"text\" value=\"$50.00\" /></td>\r\n</tr>\r\n</table>\r\n\r\n<a name=\"invitations\" />\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'enterEmails\', \'hideEnterEmails\', \'showHide\');\"><img id=\"enterEmails_img\" src=\"./img/blank.gif\" class=\"showHide_{if $newcomp.hideEnterEmails}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Invite Some Competitors:</h2>\r\n	<input type=\"hidden\" id=\"hideEnterEmails\" name=\"newcomp[hideEnterEmails]\" value=\"{$newcomp.hideEnterEmails|default:\"0\"}\">\r\n\r\n<div>Enter a name and email address for each person you would like to invite into this competition. If this is a company wide competition simply enter EMPLOYEES as the name and the appropriate email address to reach them. If you did not create a letter to send, then SKIP this section.<br /><br /></div>\r\n\r\n<div id=\"enterEmails\" style=\"display:{if $newcomp.hideEnterEmails eq \"1\"}none{else}block{/if};\">\r\n	<div class=\"pixel underline2\">&nbsp;</div>\r\n	<div id=\"inviteList\">\r\n	<table align=\"center\" style=\"margin:10px;\">\r\n	<tr>\r\n		<td><div>&nbsp;</div></td>\r\n		<td><h3 class=\"withBG\">Name</h2></td>\r\n		<td><h3 class=\"withBG\">E-Mail</h2></td>\r\n		<td><h3 class=\"withBG\">Your Relation</h2></td>\r\n	</tr> \r\n	{section name=\"contactLoop\" loop=$addCount}  {* $addCount is assigned by the handler... *}\r\n	<tr>\r\n		<td><div>#{$smarty.section.contactLoop.iteration}</div></td>\r\n		<td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][name][{$smarty.section.contactLoop.iteration}]\"></div></td>\r\n		<td><div><input type=\"text\" class=\"textInput\" style=\"width:200px;\" name=\"newcomp[invite][email][{$smarty.section.contactLoop.iteration}]\"></div></td>\r\n		<td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][relation][{$smarty.section.contactLoop.iteration}]\"></div></td>\r\n	</tr>\r\n	{/section}\r\n	</table>\r\n	</div>\r\n	\r\n	<div align=\"right\" style=\"margin-right:30px;\">\r\n		<a href=\"javascript://\" onclick=\"addEmailRows();return false;\">&gt; Click to add more now! &lt;</a>\r\n	</div>\r\n</div>\r\n<div class=\"pixel underline2\">&nbsp;</div>\r\n\r\n\r\n<script language=\"javascript\">\r\n	var addCount = {$addCount};\r\n	{literal}\r\n	function addEmailRows() {\r\n		addCount++;\r\n		var obj = document.getElementById(\'inviteList\');\r\n		var html = obj.innerHTML;\r\n		html = html.replace(/\\<\\/TABLE\\>/i, \'\');\r\n		html += \'<tr><td><div>#\'+addCount+\'</div></td><td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][name][\'+addCount+\']\"></div></td><td><div><input type=\"text\" class=\"textInput\" style=\"width:200px;\" name=\"newcomp[invite][email][\'+addCount+\']\"></div></td><td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][relation][\'+addCount+\']\"></div></td></tr></table>\';\r\n		obj.innerHTML = html;\r\n	}\r\n	{/literal}\r\n</script>\r\n\r\n{* stored_object_fill_form object=$newcomp name=\"newcomp\" *}\r\n\r\n<div align=\"right\">\r\n	<!-- input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\" -->\r\n	<a href=\"?pg=compCreate/step3\"><img src=\"{$skinFolder}images/btn_next.gif\" alt=\"\" border=\"0\" /></a>\r\n</div>\r\n\r\n</form>'),(4860,290,0.10,'smarty','0','Page created.',1140247389,3,'71.199.8.243',''),(4861,290,0.11,'smarty','0','Page created.',1140247481,3,'71.199.8.243','{assign var=\"pgLayout\" value=\"file:./layouts/contentOnly.tpl\"}\r\n{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.createInvitation\"}\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<input type=\"hidden\" id=\"letterType\" name=\"newcomp[letterType]\" value=\"{if not $newcomp.letterType}customLetter{/if}\">\r\n\r\n<h1 class=\"underline\">Create a Competition: Step 2</h1>\r\n<br />\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'makeInvite\', \'hideMakeInvite\', \'showHide\');\"><img id=\"makeInvite_img\" src=\"./img/blank.gif\" class=\"showHide_{if $newcomp.hideMakeInvite eq 1}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Create Your Invitation Letter:</h2>\r\n	<input type=\"hidden\" id=\"hideMakeInvite\" name=\"newcomp[hideMakeInvite]\" value=\"{$newcomp.hideMakeInvite|default:\"0\"}\">\r\n<div>	\r\n	In this step you can create an email message informing your employees about this new competition.<br /><br />\r\n	You can select an Example letter or a fill-in-the-blanks letter to Edit.  If you don\'t like any of those letters then simply click on \r\n	<b>\'Create My Own\'</b> below and write your own invitation.  <p>When your email is sent, eHealthCompete will add a link \r\n	at the bottom of your letter that your employees can click to enter this competition. When you are finished with your letter click <b>\'Next\'</b>.</div>\r\n\r\n<div id=\"makeInvite\" style=\"display:{if $newcomp.hideMakeInvite eq 1}none{else}block{/if};\">	\r\n	{toc_next assign=\"next\"}\r\n	{toc_prev assign=\"prev\"}\r\n		\r\n	<br />\r\n	\r\n	<table>\r\n	<tr>\r\n		<td valign=\"top\"><div>\r\n			<h2 class=\"withBG\">Examples:</h2>\r\n			<div style=\"margin:0px 10px 0px 10px;\">\r\n				{foreach from=$examples key=\"key\" item=\"example\"}\r\n					<a href=\"javascript://\" onclick=\"setExample({$key});\">{$example.title}</a><br />\r\n				{foreachelse}\r\n					Sorry, there are no<br />examples for this combination<br />of competition type and<br />invitation letter type.\r\n				{/foreach}\r\n			</div>\r\n		</div></td>\r\n		<td>\r\n			<h2 class=\"withBG\">{$newcomp.invitationType|niceText} Letter</h2>\r\n			<table style=\"border:1px solid #AAAAAA;background-color:#CCCCCC;\" width=\"500\">\r\n			<tr>\r\n				<td><div>\r\n					{if $madlibs|@count}\r\n						<select id=\"madlibsElement\" name=\"newcomp[selectedMadlib]\" onchange=\"setMadlib(this.selectedIndex);\">\r\n							<option value=\"\">(Fill-in-the-Blanks)</option>\r\n						{foreach from=$madlibs item=\"madlib\"}\r\n							<option value=\"{$madlib.id}\">{$madlib.title}</option>\r\n						{/foreach}\r\n						</select>\r\n					{else}\r\n						No Madlibs Available!\r\n					{/if}\r\n					<a href=\"javascript://\" onclick=\"toggleType(\'customLetter\');\" class=\"button\">Create My Own</a>\r\n				</div></td>\r\n			</tr>\r\n			<tr>\r\n				<td align=\"left\">\r\n					<div id=\"madlib\" align=\"left\" style=\"padding:8px;border:1px solid #CCCCCC;background-color:#FFFFFF;display:{if $newcomp.letterType eq \"madlib\"}block{else}none{/if};\">\r\n						{foreach from=$madlibs key=\"key\" item=\"madlib\"}\r\n							<div id=\"madlib{$key}\" style=\"display:{if $newcomp.selectedMadlib eq $madlib.id}block{else}none{/if};\">{eval var=$madlib.body|replace:\"\\n\":\"<br />\"}</div>\r\n						{/foreach}\r\n						</div>\r\n	\r\n					<div id=\"customLetter\" style=\"display:{if $newcomp.letterType eq \"customLetter\" OR not $newcomp.letterType}block{else}none{/if};\">\r\n						<textarea id=\"customLetterElement\" name=\"newcomp[customLetter]\" rows=\"20\" cols=\"40\" style=\"width:480px;\" class=\"textarea\"></textarea></div>\r\n				</td>\r\n			</tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n<br />\r\n\r\n<div class=\"hBox\" style=\"text-align:right;margin:0px;\"\">\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\" onclick=\"pg.value=\'{$next.pageName}\';\">{/if}	\r\n</div>\r\n\r\n</form>\r\n\r\n{stored_object_fill_form object=$newcomp name=\"newcomp\"}\r\n\r\n<script language=\"JavaScript\">\r\n	\r\n	var examples = Array();\r\n	{foreach from=$examples key=\"key\" item=\"example\"}\r\n	examples[{$key}] = \'{eval var=$example.body|addslashes|replace:\"\\r\":\"\"|replace:\"\\n\":\"\\\\n\"}\';\r\n	{/foreach}\r\n	\r\n	{literal}\r\n	\r\n	function toggleType(type) {\r\n		if (type == \'customLetter\') {\r\n			document.getElementById(\'customLetter\').style.display = \'block\';\r\n			document.getElementById(\'madlib\').style.display = \'none\';\r\n			document.getElementById(\'letterType\').value = \'customLetter\';\r\n			var madlibsElm = document.getElementById(\'madlibsElement\');\r\n			if (madlibsElm) {\r\n				madlibsElm.selectedIndex = 0;\r\n			}\r\n		} else {\r\n			document.getElementById(\'customLetter\').style.display = \'none\';\r\n			document.getElementById(\'madlib\').style.display = \'block\';\r\n			document.getElementById(\'letterType\').value = \'madlib\';\r\n		}\r\n	}\r\n	\r\n	function setExample(key) {\r\n		toggleType(\'customLetter\');\r\n		var ta = document.getElementById(\'customLetterElement\');\r\n	\r\n		if (!ta.value || confirm(\'Are you sure you want to overwrite your custom letter with this example?\')) {\r\n			ta.value = examples[key];\r\n		}\r\n	}\r\n	\r\n	function setMadlib(key) {\r\n		var obj;\r\n		key--;\r\n		toggleType(\'madlib\');	\r\n		for (var x = 0; x < {/literal}{$madlibs|@count}{literal}; x++) {\r\n			obj = document.getElementById(\'madlib\'+x).style.display = (x != key) ? \'none\' : \'block\';\r\n		}\r\n	}\r\n	{/literal}\r\n</script>'),(4862,290,0.12,'smarty','0','Page created.',1140247570,3,'71.199.8.243','{assign var=\"pgLayout\" value=\"file:./layouts/contentOnly.tpl\"}\r\n{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{include_php file=\"shared_handle:newcomp.createInvitation\"}\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<input type=\"hidden\" id=\"letterType\" name=\"newcomp[letterType]\" value=\"{if not $newcomp.letterType}customLetter{/if}\">\r\n\r\n<div id=\"makeInvite\">	\r\n	<table>\r\n	<tr>\r\n		<td valign=\"top\"><div>\r\n			<h2 class=\"withBG\">Examples:</h2>\r\n			<div style=\"margin:0px 10px 0px 10px;\">\r\n				{foreach from=$examples key=\"key\" item=\"example\"}\r\n					<a href=\"javascript://\" onclick=\"setExample({$key});\">{$example.title}</a><br />\r\n				{foreachelse}\r\n					Sorry, there are no<br />examples for this combination<br />of competition type and<br />invitation letter type.\r\n				{/foreach}\r\n			</div>\r\n		</div></td>\r\n		<td>\r\n			<h2 class=\"withBG\">{$newcomp.invitationType|niceText} Letter</h2>\r\n			<table style=\"border:1px solid #AAAAAA;background-color:#CCCCCC;\" width=\"500\">\r\n			<tr>\r\n				<td><div>\r\n					{if $madlibs|@count}\r\n						<select id=\"madlibsElement\" name=\"newcomp[selectedMadlib]\" onchange=\"setMadlib(this.selectedIndex);\">\r\n							<option value=\"\">(Fill-in-the-Blanks)</option>\r\n						{foreach from=$madlibs item=\"madlib\"}\r\n							<option value=\"{$madlib.id}\">{$madlib.title}</option>\r\n						{/foreach}\r\n						</select>\r\n					{else}\r\n						No Madlibs Available!\r\n					{/if}\r\n					<a href=\"javascript://\" onclick=\"toggleType(\'customLetter\');\" class=\"button\">Create My Own</a>\r\n				</div></td>\r\n			</tr>\r\n			<tr>\r\n				<td align=\"left\">\r\n					<div id=\"madlib\" align=\"left\" style=\"padding:8px;border:1px solid #CCCCCC;background-color:#FFFFFF;display:{if $newcomp.letterType eq \"madlib\"}block{else}none{/if};\">\r\n						{foreach from=$madlibs key=\"key\" item=\"madlib\"}\r\n							<div id=\"madlib{$key}\" style=\"display:{if $newcomp.selectedMadlib eq $madlib.id}block{else}none{/if};\">{eval var=$madlib.body|replace:\"\\n\":\"<br />\"}</div>\r\n						{/foreach}\r\n						</div>\r\n	\r\n					<div id=\"customLetter\" style=\"display:{if $newcomp.letterType eq \"customLetter\" OR not $newcomp.letterType}block{else}none{/if};\">\r\n						<textarea id=\"customLetterElement\" name=\"newcomp[customLetter]\" rows=\"20\" cols=\"40\" style=\"width:480px;\" class=\"textarea\"></textarea></div>\r\n				</td>\r\n			</tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n</form>\r\n{stored_object_fill_form object=$newcomp name=\"newcomp\"}\r\n<script language=\"JavaScript\">\r\n	\r\n	var examples = Array();\r\n	{foreach from=$examples key=\"key\" item=\"example\"}\r\n	examples[{$key}] = \'{eval var=$example.body|addslashes|replace:\"\\r\":\"\"|replace:\"\\n\":\"\\\\n\"}\';\r\n	{/foreach}\r\n	\r\n	{literal}\r\n	\r\n	function toggleType(type) {\r\n		if (type == \'customLetter\') {\r\n			document.getElementById(\'customLetter\').style.display = \'block\';\r\n			document.getElementById(\'madlib\').style.display = \'none\';\r\n			document.getElementById(\'letterType\').value = \'customLetter\';\r\n			var madlibsElm = document.getElementById(\'madlibsElement\');\r\n			if (madlibsElm) {\r\n				madlibsElm.selectedIndex = 0;\r\n			}\r\n		} else {\r\n			document.getElementById(\'customLetter\').style.display = \'none\';\r\n			document.getElementById(\'madlib\').style.display = \'block\';\r\n			document.getElementById(\'letterType\').value = \'madlib\';\r\n		}\r\n	}\r\n	\r\n	function setExample(key) {\r\n		toggleType(\'customLetter\');\r\n		var ta = document.getElementById(\'customLetterElement\');\r\n	\r\n		if (!ta.value || confirm(\'Are you sure you want to overwrite your custom letter with this example?\')) {\r\n			ta.value = examples[key];\r\n		}\r\n	}\r\n	\r\n	function setMadlib(key) {\r\n		var obj;\r\n		key--;\r\n		toggleType(\'madlib\');	\r\n		for (var x = 0; x < {/literal}{$madlibs|@count}{literal}; x++) {\r\n			obj = document.getElementById(\'madlib\'+x).style.display = (x != key) ? \'none\' : \'block\';\r\n		}\r\n	}\r\n	{/literal}\r\n</script>'),(4984,273,0.23,'smarty','0','David Morales working',1142400087,2271,'216.194.127.150','{include file=\"shared:layouts/comp_create_navbar.tpl\"}\r\n\r\n<form method=\"post\" action=\"index.php\">\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n<tr>\r\n<td width=\"50%\">\r\n<!-- A CONTENT -->\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td><td colspan=2 style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">A. When are we starting...</td><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td nowrap><font size=-2>Choose a starting date:</font></td><td nowrap><font size=-2>Choose an end date:</font></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\" colspan=2></td><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif\"></td></tr>\r\n</table>\r\n<!-- END OF A CONTENT -->\r\n</td>\r\n<td>\r\n<!-- B CONTENT -->\r\n<table width=\"100%\" cellpadding=0 cellspacing=0>\r\n<tr>\r\n  <td><h2>Prize Method:</h2></td>\r\n  <td><select name=\"comp[prize_method]\">\r\n        <option value=\"\">Cash Settlement</option>\r\n      </select>\r\n  </td>\r\n  <td rowspan=\"2\"><img src=\"blank.gif\" width=\"200\" height=\"100\" alt=\"\" border=\"1\" /></td>\r\n</tr>\r\n<tr>\r\n  <td><b>Type:</b></td>\r\n  <td><input type=\"text\" value=\"$50.00\" /></td>\r\n</tr>\r\n</table>\r\n<!-- END OF B CONTENT -->\r\n</td>\r\n</tr>\r\n</table>\r\n\r\n\r\n<script language=\"javascript\">\r\n	{literal}\r\n\r\n	{/literal}\r\n</script>\r\n\r\n{* stored_object_fill_form object=$newcomp name=\"newcomp\" *}\r\n\r\n<div align=\"right\">\r\n	<!-- input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\" -->\r\n	<a href=\"?pg=compCreate/step3\"><img src=\"{$skinFolder}images/btn_next.gif\" alt=\"\" border=\"0\" /></a>\r\n</div>\r\n\r\n</form>'),(4985,300,0.10,'smarty','0','Page created.',1143003435,1124,'67.168.46.128',''),(4986,300,0.11,'smarty','0','Page created.',1143003625,1124,'67.168.46.128','<hl><b>Travelers Workout</b></hl>\r\n\r\n<p>On vacation and wishing you knew where the gym was? Or are you feeling guilty because of all the good food you’re trying in a new place. This article by 24 hour fitness is a great way to keep up on your workout and maintain your weight while you’re on vacation. You don’t have to keep the same intensity as your normal workouts but having the knowledge is empowerment.</p> \r\n\r\n<p>http://www.24hourfitness.com/html/fitness/articles/traveler/</p>\r\n'),(4987,300,0.12,'smarty','0','Page created.',1143003659,1124,'67.168.46.128','<hl><b>Travelers Workout</b></hl>\r\n\r\n<p>On vacation and wishing you knew where the gym was? Or are you feeling guilty because of all the good food you’re trying in a new place. This article by 24 hour fitness is a great way to keep up on your workout and maintain your weight while you’re on vacation. You don’t have to keep the same intensity as your normal workouts but having the knowledge is empowerment.</p> \r\n\r\n<p>http://www.24hourfitness.com/html/fitness/articles/traveler/</p>\r\n'),(4988,300,0.13,'smarty','1','Page created.',1143003690,1124,'67.168.46.128','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n\r\n<hl><b>Travelers Workout</b></hl>\r\n\r\n<p>On vacation and wishing you knew where the gym was? Or are you feeling guilty because of all the good food you’re trying in a new place. This article by 24 hour fitness is a great way to keep up on your workout and maintain your weight while you’re on vacation. You don’t have to keep the same intensity as your normal workouts but having the knowledge is empowerment.</p> \r\n\r\n<p>http://www.24hourfitness.com/html/fitness/articles/traveler/</p>\r\n'),(4864,290,0.13,'smarty','0','Page created.',1140248076,3,'71.199.8.243','{assign var=\"pgLayout\" value=\"file:./layouts/content.tpl\"}\r\n{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{include_php file=\"shared_handle:newcomp.createInvitation\"}\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<input type=\"hidden\" id=\"letterType\" name=\"newcomp[letterType]\" value=\"{if not $newcomp.letterType}customLetter{/if}\">\r\n\r\n<div id=\"makeInvite\">	\r\n	<table>\r\n	<tr>\r\n		<td valign=\"top\"><div>\r\n			<h2 class=\"withBG\">Examples:</h2>\r\n			<div style=\"margin:0px 10px 0px 10px;\">\r\n				{foreach from=$examples key=\"key\" item=\"example\"}\r\n					<a href=\"javascript://\" onclick=\"setExample({$key});\">{$example.title}</a><br />\r\n				{foreachelse}\r\n					Sorry, there are no<br />examples for this combination<br />of competition type and<br />invitation letter type.\r\n				{/foreach}\r\n			</div>\r\n		</div></td>\r\n		<td>\r\n			<h2 class=\"withBG\">{$newcomp.invitationType|niceText} Letter</h2>\r\n			<table style=\"border:1px solid #AAAAAA;background-color:#CCCCCC;\" width=\"500\">\r\n			<tr>\r\n				<td><div>\r\n					{if $madlibs|@count}\r\n						<select id=\"madlibsElement\" name=\"newcomp[selectedMadlib]\" onchange=\"setMadlib(this.selectedIndex);\">\r\n							<option value=\"\">(Fill-in-the-Blanks)</option>\r\n						{foreach from=$madlibs item=\"madlib\"}\r\n							<option value=\"{$madlib.id}\">{$madlib.title}</option>\r\n						{/foreach}\r\n						</select>\r\n					{else}\r\n						No Madlibs Available!\r\n					{/if}\r\n					<a href=\"javascript://\" onclick=\"toggleType(\'customLetter\');\" class=\"button\">Create My Own</a>\r\n				</div></td>\r\n			</tr>\r\n			<tr>\r\n				<td align=\"left\">\r\n					<div id=\"madlib\" align=\"left\" style=\"padding:8px;border:1px solid #CCCCCC;background-color:#FFFFFF;display:{if $newcomp.letterType eq \"madlib\"}block{else}none{/if};\">\r\n						{foreach from=$madlibs key=\"key\" item=\"madlib\"}\r\n							<div id=\"madlib{$key}\" style=\"display:{if $newcomp.selectedMadlib eq $madlib.id}block{else}none{/if};\">{eval var=$madlib.body|replace:\"\\n\":\"<br />\"}</div>\r\n						{/foreach}\r\n						</div>\r\n	\r\n					<div id=\"customLetter\" style=\"display:{if $newcomp.letterType eq \"customLetter\" OR not $newcomp.letterType}block{else}none{/if};\">\r\n						<textarea id=\"customLetterElement\" name=\"newcomp[customLetter]\" rows=\"20\" cols=\"40\" style=\"width:480px;\" class=\"textarea\"></textarea></div>\r\n				</td>\r\n			</tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n</form>\r\n{stored_object_fill_form object=$newcomp name=\"newcomp\"}\r\n<script language=\"JavaScript\">\r\n	\r\n	var examples = Array();\r\n	{foreach from=$examples key=\"key\" item=\"example\"}\r\n	examples[{$key}] = \'{eval var=$example.body|addslashes|replace:\"\\r\":\"\"|replace:\"\\n\":\"\\\\n\"}\';\r\n	{/foreach}\r\n	\r\n	{literal}\r\n	\r\n	function toggleType(type) {\r\n		if (type == \'customLetter\') {\r\n			document.getElementById(\'customLetter\').style.display = \'block\';\r\n			document.getElementById(\'madlib\').style.display = \'none\';\r\n			document.getElementById(\'letterType\').value = \'customLetter\';\r\n			var madlibsElm = document.getElementById(\'madlibsElement\');\r\n			if (madlibsElm) {\r\n				madlibsElm.selectedIndex = 0;\r\n			}\r\n		} else {\r\n			document.getElementById(\'customLetter\').style.display = \'none\';\r\n			document.getElementById(\'madlib\').style.display = \'block\';\r\n			document.getElementById(\'letterType\').value = \'madlib\';\r\n		}\r\n	}\r\n	\r\n	function setExample(key) {\r\n		toggleType(\'customLetter\');\r\n		var ta = document.getElementById(\'customLetterElement\');\r\n	\r\n		if (!ta.value || confirm(\'Are you sure you want to overwrite your custom letter with this example?\')) {\r\n			ta.value = examples[key];\r\n		}\r\n	}\r\n	\r\n	function setMadlib(key) {\r\n		var obj;\r\n		key--;\r\n		toggleType(\'madlib\');	\r\n		for (var x = 0; x < {/literal}{$madlibs|@count}{literal}; x++) {\r\n			obj = document.getElementById(\'madlib\'+x).style.display = (x != key) ? \'none\' : \'block\';\r\n		}\r\n	}\r\n	{/literal}\r\n</script>'),(4996,273,0.24,'smarty','0','David Morales working',1143069975,2271,'216.194.127.150','{include file=\"shared:layouts/comp_create_navbar.tpl\"}\r\n\r\n<form method=\"post\" action=\"index.php\">\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n<tr>\r\n<td width=\"50%\">\r\n<!-- A CONTENT -->\r\n<table border=1 cellpadding=0 cellspacing=0>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td><td colspan=2 style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">A. When are we starting...</td><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td nowrap><font size=-2>Choose a starting date:</font></td><td nowrap><font size=-2>Choose an end date:</font></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\" colspan=2></td><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif\"></td></tr>\r\n</table>\r\n<!-- END OF A CONTENT -->\r\n</td>\r\n<td>\r\n<!-- B CONTENT -->\r\n<table width=\"100%\" cellpadding=0 cellspacing=0>\r\n<tr>\r\n  <td><h2>Prize Method:</h2></td>\r\n  <td><select name=\"comp[prize_method]\">\r\n        <option value=\"\">Cash Settlement</option>\r\n      </select>\r\n  </td>\r\n  <td rowspan=\"2\"><img src=\"blank.gif\" width=\"200\" height=\"100\" alt=\"\" border=\"1\" /></td>\r\n</tr>\r\n<tr>\r\n  <td><b>Type:</b></td>\r\n  <td><input type=\"text\" value=\"$50.00\" /></td>\r\n</tr>\r\n</table>\r\n<!-- END OF B CONTENT -->\r\n</td>\r\n</tr>\r\n</table>\r\n\r\n\r\n<script language=\"javascript\">\r\n	{literal}\r\n\r\n	{/literal}\r\n</script>\r\n\r\n{* stored_object_fill_form object=$newcomp name=\"newcomp\" *}\r\n\r\n<div align=\"right\">\r\n	<!-- input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\" -->\r\n	<a href=\"?pg=compCreate/step3\"><img src=\"{$skinFolder}images/btn_next.gif\" alt=\"\" border=\"0\" /></a>\r\n</div>\r\n\r\n</form>'),(4997,273,0.25,'smarty','0','David Morales working',1143072922,2271,'216.194.127.150','{include file=\"shared:layouts/comp_create_navbar.tpl\"}\r\n\r\n<form name=\"compStartForm\" method=\"post\" style=\"margin:0px;\" action=\"index.php\">\r\n\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n<tr>\r\n<td width=\"50%\" style=\"padding-top:10px\">\r\n<!-- A CONTENT -->\r\n<table border=0 cellpadding=0 cellspacing=0 width=\"100%\">\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td><td colspan=2 style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">A. When are we starting...</td><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td nowrap><font size=-2>Choose a starting date:</font></td><td nowrap><font size=-2>Choose an end date:</font></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td>\r\n	<td nowrap>\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	</td>\r\n        <td nowrap style=\"border-left:solid 1px gray;\">\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        </td>\r\n	<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr ><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td>\r\n       <td nowrap>\r\n	     <font size=-1>Starting on: </font>\r\n             <input type=\"text\" style=\"border:solid 1px white;width:90px;\" disabled=\"disabled\" name=\"newcomp[startDateViewable]\" value=\"{if not $newcomp.startDate}Click a Date {else}{$newcomp.startDate|date_format2:\"M j, Y\"}{/if}\">\r\n	     <input type=\"hidden\" name=\"newcomp[startDate]\" value=\"\">\r\n       </td>\r\n       <td nowrap>\r\n             <font size=-1>Ending on: </font><input style=\"border:solid 1px white;width:90px;\" type=\"text\" disabled=\"disabled\" name=\"newcomp[endDateViewable]\" value=\"{if not $newcomp.endDate}Click a Date {else}{$newcomp.endDate|date_format2:\"M j, Y\"}{/if}\">\r\n   	     <input type=\"hidden\" name=\"newcomp[endDate]\" value=\"\">\r\n       </td>\r\n      <td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\" colspan=2></td><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif\"></td></tr>\r\n</table>\r\n<!-- END OF A CONTENT -->\r\n</td>\r\n<td>\r\n<!-- B CONTENT -->\r\n<table width=\"100%\" cellpadding=0 cellspacing=0>\r\n<tr>\r\n  <td><h2>Prize Method:</h2></td>\r\n  <td><select name=\"comp[prize_method]\">\r\n        <option value=\"\">Cash Settlement</option>\r\n      </select>\r\n  </td>\r\n  <td rowspan=\"2\"><img src=\"blank.gif\" width=\"200\" height=\"100\" alt=\"\" border=\"1\" /></td>\r\n\r\n</tr>\r\n<tr>\r\n  <td><b>Type:</b></td>\r\n  <td><input type=\"text\" value=\"$50.00\" /></td>\r\n</tr>\r\n</table>\r\n<!-- END OF B CONTENT -->\r\n</td>\r\n</tr>\r\n</table>\r\n\r\n\r\n<script language=\"javascript\">\r\n	{literal}\r\n\r\n	{/literal}\r\n</script>\r\n\r\n{* stored_object_fill_form object=$newcomp name=\"newcomp\" *}\r\n\r\n<div align=\"right\">\r\n	<!-- input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\" -->\r\n	<a href=\"?pg=compCreate/step3\"><img src=\"{$skinFolder}images/btn_next.gif\" alt=\"\" border=\"0\" /></a>\r\n</div>\r\n\r\n</form>'),(4866,290,0.14,'smarty','1','Page created.',1140248279,3,'71.199.8.243','{assign var=\"pgLayout\" value=\"file:./layouts/blank.tpl\"}\r\n{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{include_php file=\"shared_handle:newcomp.createInvitation\"}\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<input type=\"hidden\" id=\"letterType\" name=\"newcomp[letterType]\" value=\"{if not $newcomp.letterType}customLetter{/if}\">\r\n\r\n<div id=\"makeInvite\">	\r\n	<table>\r\n	<tr>\r\n		<td valign=\"top\"><div>\r\n			<h2 class=\"withBG\">Examples:</h2>\r\n			<div style=\"margin:0px 10px 0px 10px;\">\r\n				{foreach from=$examples key=\"key\" item=\"example\"}\r\n					<a href=\"javascript://\" onclick=\"setExample({$key});\">{$example.title}</a><br />\r\n				{foreachelse}\r\n					Sorry, there are no<br />examples for this combination<br />of competition type and<br />invitation letter type.\r\n				{/foreach}\r\n			</div>\r\n		</div></td>\r\n		<td>\r\n			<h2 class=\"withBG\">{$newcomp.invitationType|niceText} Letter</h2>\r\n			<table style=\"border:1px solid #AAAAAA;background-color:#CCCCCC;\" width=\"500\">\r\n			<tr>\r\n				<td><div>\r\n					{if $madlibs|@count}\r\n						<select id=\"madlibsElement\" name=\"newcomp[selectedMadlib]\" onchange=\"setMadlib(this.selectedIndex);\">\r\n							<option value=\"\">(Fill-in-the-Blanks)</option>\r\n						{foreach from=$madlibs item=\"madlib\"}\r\n							<option value=\"{$madlib.id}\">{$madlib.title}</option>\r\n						{/foreach}\r\n						</select>\r\n					{else}\r\n						No Madlibs Available!\r\n					{/if}\r\n					<a href=\"javascript://\" onclick=\"toggleType(\'customLetter\');\" class=\"button\">Create My Own</a>\r\n				</div></td>\r\n			</tr>\r\n			<tr>\r\n				<td align=\"left\">\r\n					<div id=\"madlib\" align=\"left\" style=\"padding:8px;border:1px solid #CCCCCC;background-color:#FFFFFF;display:{if $newcomp.letterType eq \"madlib\"}block{else}none{/if};\">\r\n						{foreach from=$madlibs key=\"key\" item=\"madlib\"}\r\n							<div id=\"madlib{$key}\" style=\"display:{if $newcomp.selectedMadlib eq $madlib.id}block{else}none{/if};\">{eval var=$madlib.body|replace:\"\\n\":\"<br />\"}</div>\r\n						{/foreach}\r\n						</div>\r\n	\r\n					<div id=\"customLetter\" style=\"display:{if $newcomp.letterType eq \"customLetter\" OR not $newcomp.letterType}block{else}none{/if};\">\r\n						<textarea id=\"customLetterElement\" name=\"newcomp[customLetter]\" rows=\"20\" cols=\"40\" style=\"width:480px;\" class=\"textarea\"></textarea></div>\r\n				</td>\r\n			</tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n</form>\r\n{stored_object_fill_form object=$newcomp name=\"newcomp\"}\r\n<script language=\"JavaScript\">\r\n	\r\n	var examples = Array();\r\n	{foreach from=$examples key=\"key\" item=\"example\"}\r\n	examples[{$key}] = \'{eval var=$example.body|addslashes|replace:\"\\r\":\"\"|replace:\"\\n\":\"\\\\n\"}\';\r\n	{/foreach}\r\n	\r\n	{literal}\r\n	\r\n	function toggleType(type) {\r\n		if (type == \'customLetter\') {\r\n			document.getElementById(\'customLetter\').style.display = \'block\';\r\n			document.getElementById(\'madlib\').style.display = \'none\';\r\n			document.getElementById(\'letterType\').value = \'customLetter\';\r\n			var madlibsElm = document.getElementById(\'madlibsElement\');\r\n			if (madlibsElm) {\r\n				madlibsElm.selectedIndex = 0;\r\n			}\r\n		} else {\r\n			document.getElementById(\'customLetter\').style.display = \'none\';\r\n			document.getElementById(\'madlib\').style.display = \'block\';\r\n			document.getElementById(\'letterType\').value = \'madlib\';\r\n		}\r\n	}\r\n	\r\n	function setExample(key) {\r\n		toggleType(\'customLetter\');\r\n		var ta = document.getElementById(\'customLetterElement\');\r\n	\r\n		if (!ta.value || confirm(\'Are you sure you want to overwrite your custom letter with this example?\')) {\r\n			ta.value = examples[key];\r\n		}\r\n	}\r\n	\r\n	function setMadlib(key) {\r\n		var obj;\r\n		key--;\r\n		toggleType(\'madlib\');	\r\n		for (var x = 0; x < {/literal}{$madlibs|@count}{literal}; x++) {\r\n			obj = document.getElementById(\'madlib\'+x).style.display = (x != key) ? \'none\' : \'block\';\r\n		}\r\n	}\r\n	{/literal}\r\n</script>'),(5008,272,0.81,'smarty','0','Changing comments to try to fix some issues in FF',1143503653,2271,'67.50.41.87','{include file=\"shared:layouts/comp_create_navbar.tpl\"}\r\n\r\n<form method=\"post\" action=\"index.php\">\r\n<table border=0 cellpadding=0 cellspacing=0 width=\"100%\">\r\n<tr>\r\n<td valign=\"top\">\r\n<br>\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">A. Competing for...</td><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"p2p\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'p2p\');\">Pound for pound <i>(Weight lost)</i></a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"pctWt\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'pctWt\');\">Percent of body weight lost</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"minEx\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'minEx\');\">Total minutes exercised</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"disEx\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'disEx\');\">Total distance exercised</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"veg\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'veg\');\">Vegetable challenge</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"gain\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'gain\');\">Weight gained</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"height:10px;background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif);background-repeat:no-repeat;background-position:top left;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif);background-repeat:no-repeat;background-position:top left;\"></td></tr>\r\n</table>\r\n</td>\r\n<td valign=\"top\">\r\n<br>\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">\r\n\r\nB. The competition name is...\r\n</td>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td>\r\n</tr>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td>\r\n<td>\r\n\r\n<div onclick=\"validateDiv(this);\" id=\"step1_block_B\" style=\"margin-top:-1px;margin-left:0px;border:solid 1px gray;background-color:silver;zIndex:100;position:absolute;filter:alpha(opacity=25);-moz-opacity:0.25;\">\r\n    <table border=0 cellspacing=0>\r\n    <tr>\r\n      <td><h3>Name:</h3></td>\r\n      <td><input type=\"text\" name=\"comp[tmp]\" id=\"comp[tmp]\" disabled=\"true\" onkeyup=\"unBlock(\'step1_block_C\');\"/></td>\r\n    </tr>\r\n    <tr>\r\n      <td valign=\"top\"><small><b>Examples:</b></small></td>\r\n      <td><small>&quot;The chubby family reunion&quot;<br />&quot;Company shape-up marathon&quot;<br />&quot;Super Summer Slimdown&quot;</small></td>\r\n    </tr>\r\n    </table>\r\n</div>\r\n\r\n\r\n    <table border=0 cellspacing=0>\r\n    <tr>\r\n      <td><h3>Name:</h3></td>\r\n      <td><input type=\"text\" name=\"comp[title]\" id=\"comp[title]\" onkeyup=\"unBlock(\'step1_block_C\');\"/></td>\r\n    </tr>\r\n    <tr>\r\n      <td valign=\"top\"><small><b>Examples:</b></small></td>\r\n      <td><small>&quot;The chubby family reunion&quot;<br />&quot;Company shape-up marathon&quot;<br />&quot;Super Summer Slimdown&quot;</small></td>\r\n    </tr>\r\n    </table>\r\n\r\n</td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td>\r\n</tr>\r\n<tr><td style=\"height:10px;background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif);background-repeat:no-repeat;background-position:top left;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif);background-repeat:no-repeat;background-position:top left;\"></td></tr>\r\n</table>\r\n    <br/>\r\n    <div style=\"border:solid 1px black;width:94%;height:85px;\">\r\n      test\r\n    </div>\r\n</td>\r\n<td valign=\"top\">\r\n<br>\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">\r\n\r\nC. Who\'s competing...\r\n</td>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td>\r\n</tr>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td>\r\n<td>\r\n\r\n<div onclick=\"validateDiv(this);\" id=\"step1_block_C\" style=\"margin-top:-1px;margin-left:-10px;border:solid 1px gray;background-color:silver;zIndex:100;position:absolute;filter:alpha(opacity=25);-moz-opacity:0.25;\">\r\n    <table border=0 cellpaddin=0 cellspacing=0>\r\n      <tr>\r\n	<td colspan=\"2\">\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	     <tr>\r\n	       <td colspan=2><li style=\"color:#cccccc\">Invate your friends</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small style=\"color:#cccccc\">\r\n		   My friend\'s Name:\r\n                 </small>\r\n	       </td>\r\n	       <td>\r\n	         &nbsp;&nbsp;&nbsp;<input type=\"text id=\"tmp1\" name=\"temp1\" style=\"width:110px;\" disabled />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small style=\"color:#cccccc\">\r\n		   My friend\'s Email:\r\n	         </small>\r\n	       </td>\r\n	       <td>\r\n	          &nbsp;&nbsp;&nbsp;<input type=\"text id=\"tmp1\" name=\"temp1\" style=\"width:110px;\" disabled/>\r\n               </td>\r\n             </tr>\r\n             <tr>\r\n	       <td colspan=\"2\" align=\"right\">\r\n	         <small style=\"color:#cccccc\">\r\n		   <span>\r\n                     Add more\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	</td>\r\n      </tr>\r\n      <tr><td colspan=\"2\"><li style=\"color:#cccccc\">Let them know with an email...</li></td></tr>\r\n      <tr>\r\n        <td valign=\"top\" colspan=2>\r\n	  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	      <tr>\r\n		 <td valign=\"top\">\r\n		    <small style=\"color:#cccccc\">\r\n			<table border=0 cellpadding=0 cellspacing=0 width=\"100%\">\r\n			  <tr><td>&nbsp;&nbsp;&nbsp;<input type=\"radio\" value=\"kind\" name=\"tmp2\"/> <span style=\"color:#cccccc;\">Kind</span></td></tr>\r\n			  <tr><td>&nbsp;&nbsp;&nbsp;<input type=\"radio\" value=\"smack\" name=\"tmp2\"/> <span style=\"color:#cccccc;\">Smack</span></td></tr>\r\n			  <tr><td>&nbsp;&nbsp;&nbsp;<input type=\"radio\" value=\"challenge\" name=\"tmp2\"/> <span style=\"color:#cccccc;\">Challenge</span></td></tr>\r\n			  <tr><td>&nbsp;&nbsp;&nbsp;<input type=\"radio\" value=\"custom\" name=\"tmp2\"/> <span style=\"color:#cccccc;\">Make Your Own</span></td></tr>\r\n                        </table>\r\n		    </small>\r\n		 </td>\r\n		 <td valign=\"top\" id=\"invateHolder\">\r\n		    <div id=\"tmp3\" style=\"border-bottom:solid 1px #CCC;border-left:solid 1px #CCC;padding-right:5px;visibility:hidden;\">\r\n			<small style=\"color:#cccccc\">\r\n			   <a href=\"javascript:setInviteWeight(\'heavy\');\">Heavy</a><br />\r\n			   <a href=\"javascript:setInviteWeight(\'medium\');\">Medium</a><br />\r\n			   <a href=\"javascript:setInviteWeight(\'light\');\">Light</a><br />\r\n			</small>\r\n		    </div>\r\n		</td>\r\n	     </tr>\r\n	  </table>\r\n        </td>\r\n     </tr>\r\n     </table>\r\n</div>\r\n\r\n    <table border=0 cellpaddin=0 cellspacing=0>\r\n      <tr>\r\n	<td colspan=\"2\">\r\n	  <div id=\'enterFriendNameDiv\' style=\'display:block;\'>\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	     <tr>\r\n	       <td colspan=2><li>Invate your friends</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   My friend\'s Name:\r\n                 </small>\r\n	       </td>\r\n	       <td>\r\n	         <input type=\"text id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   My friend\'s Email:\r\n	         </small>\r\n	       </td>\r\n	       <td>\r\n		  <input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td colspan=\"2\" align=\"right\">\r\n	         <small>\r\n		   <span onclick=\"extraCompetitors(\'open\');\" style=\"cursor:pointer;\">\r\n                     Add more\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	  </div>\r\n	  <div id=\"myEnteredFriendsDiv\" style=\"display:none;\">\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\r\n	     <tr>\r\n	       <td><li>My Competitors:</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"left\" id=\"competitorListHolder\" style=\"padding-left:15px\">\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   <span onclick=\"editCompetitors();\" style=\"cursor:pointer;\">\r\n                     Edit my competitors\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	  </div>\r\n	</td>\r\n      </tr>\r\n      <tr><td colspan=\"2\"><li>Let them know with an email...</li></td></tr>\r\n      <tr>\r\n        <td valign=\"top\" colspan=2>\r\n	  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	      <tr>\r\n		 <td valign=\"top\">\r\n		    <small>\r\n			<table border=0 cellpadding=0 cellspacing=0 width=\"100%\">\r\n			  <tr><td id=\'kind\'><input type=\"radio\" value=\"kind\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'kind\');\"/> <a href=\"javascript:setInviteStyle(\'kind\');\">Kind</a></td></tr>\r\n			  <tr><td id=\'smack\'><input type=\"radio\" value=\"smack\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'smack\');\"/> <a href=\"javascript:setInviteStyle(\'smack\');\">Smack</a></td></tr>\r\n			  <tr><td id=\'challenge\'><input type=\"radio\" value=\"challenge\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'challenge\');\" /> <a href=\"javascript:setInviteStyle(\'challenge\');\">Challenge</a></td></tr>\r\n			  <tr><td id=\'custom\'><input type=\"radio\" value=\"custom\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'custom\');\"/> <a href=\"javascript:setInviteStyle(\'custom\');\">Make Your Own</a></td></tr>\r\n                        </table>\r\n		    </small>\r\n		 </td>\r\n		 <td valign=\"top\" id=\"invateHolder\">\r\n		    <div id=\"InvateW\" style=\"border-bottom:solid 1px #CCC;border-left:solid 1px #CCC;padding-right:5px;visibility:hidden;\">\r\n			<small>\r\n			   <input type=\"radio\" value=\"heavy\" name=\"comp[invite_subtype]\"  onclick=\"displayLetter(\'{$vanity}\')\" /> <a href=\"javascript:setInviteWeight(\'heavy\');\">Heavy</a><br />\r\n			   <input type=\"radio\" value=\"medium\" name=\"comp[invite_subtype]\" onclick=\"displayLetter(\'{$vanity}\')\" /> <a href=\"javascript:setInviteWeight(\'medium\');\">Medium</a><br />\r\n			   <input type=\"radio\" value=\"light\" name=\"comp[invite_subtype]\" onclick=\"displayLetter(\'{$vanity}\')\" /> <a href=\"javascript:setInviteWeight(\'light\');\">Light</a><br />\r\n			</small>\r\n		    </div>\r\n		</td>\r\n	     </tr>\r\n	  </table>\r\n        </td>\r\n     </tr>\r\n     </table>\r\n\r\n\r\n</td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td>\r\n</tr>\r\n<tr><td style=\"height:10px;background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif);background-repeat:no-repeat;background-position:top left;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif);background-repeat:no-repeat;background-position:top left;\"></td></tr>\r\n</table>\r\n</td>\r\n<td>\r\n</td>\r\n</tr>\r\n</table>\r\n<br />\r\n<table border=\"0\" cellpadding=0 cellspacing=0 width=\"100%\">\r\n<tr>\r\n<td width=\"10px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/top.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/note/topLeftCorner.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/note/top.gif);background-repeat:repeat-x;\"></td>\r\n<td width=\"15px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/top.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/note/topRightCorner.gif\"></td>\r\n</tr>\r\n<tr>\r\n<td width=\"10px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/left.gif);background-repeat:repeat-y;\"></td>\r\n   <td>\r\n      <!-- <iframe src=\"\" id=\"letterHolder\" name=\"letterHolder\" style=\"width:100%;height:410px;\" scrollbars=\"no\" frameborder=\"0\"></iframe> -->\r\n      <div id=\"letterHolder\" name=\"letterHolder\" style=\"width:100%;height:410px;border:solid 1px white;\"></div>\r\n   </td>\r\n<td width=\"10px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/right.gif);background-repeat:repeat-y;\"></td>\r\n</tr>\r\n<tr><td style=\"height:10px;background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif);background-repeat:no-repeat;background-position:top left;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif);background-repeat:no-repeat;background-position:top left;\"></td></tr>\r\n</table>\r\n{* <iframe src=\"?pg=compCreate/inviteFrame\" style=\"width:100%;height:410px;\" scrollbars=\"no\" frameborder=\"0\"></iframe> *}\r\n\r\n<div id=\"invite-div\"></div>\r\n<br />\r\n\r\n<div align=\"right\">\r\n  <a href=\"?pg=compCreate/step2\"><img src=\"{$skinFolder}images/btn_next.gif\" alt=\"Next\" border=\"0\" /></a>\r\n</div>\r\n\r\n<div id=\"myCompetitors\" style=\"width:300px;background-color:white;zIndex:100;position:absolute;display:none;top:-70px;left:300px;border:solid 1px #CCC;filter: alpha(opacity=85)\">\r\n  <center>\r\n   <table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" width=\"95%\">\r\n      <tr><td align=\"right\" valign=\"top\" style=\"height:5px\"><small><span style=\"cursor:pointer;\" onclick=\"extraCompetitors(\'close\');\">close window</span><small></td></tr>\r\n      <tr><td style=\"border-bottom:solid 1px #CCC;\"><h2>More Competitors...</td></tr>\r\n      <tr>\r\n         <td align=\"center\">\r\n	    <table id=\"competitorsTable\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"90%\">\r\n                <tr>\r\n		  <td></td>\r\n		  <td align=\"center\" valign=\"bottom\">Name</td>\r\n                  <td align=\"center\" valign=\"bottom\">Email</td>\r\n                </tr>\r\n	        <tr>\r\n		  <td>2.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>3.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>4.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>5.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>6.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>7.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>8.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>9.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>10.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>11.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n		<tr>\r\n		  <td colspan=\"3\" align=\"right\"><small><span style=\"cursor:pointer;\" onclick=\'addMoreCompetitors();\'>Add More Lines</span></small></td>\r\n		</tr>\r\n            </table>\r\n         </td>\r\n      </tr>\r\n      <tr>\r\n	<td align=\"right\" style=\"border-top:solid 1px #CCC;\"><img style=\"cursor:pointer;\" onclick=\"addingCompetitors();\" src=\"{$skinFolder}images/btn_next.gif\" alt=\"Add\" border=\"0\" /></td>\r\n      </tr>\r\n   </table>\r\n  </center>\r\n</div>\r\n\r\n</form>\r\n\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/js-get-data.js\"></script>\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/AJAX.js\"></script>\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/NewComp.js\"></script>\r\n\r\n<script language=\"JavaScript\">\r\n	\r\n        //jsGetData(\'?pg=jsGetData\',\'invite-div\', \'madlib.form\', \'&compType=friends&inviteType=smack\');\r\n\r\n	var examples = Array();\r\n	{foreach from=$examples key=\"key\" item=\"example\"}\r\n	examples[{$key}] = \'{eval var=$example.body|addslashes|replace:\"\\r\":\"\"|replace:\"\\n\":\"\\\\n\"}\';\r\n	{/foreach}\r\n	\r\n	{literal}\r\n\r\n\r\n	{/literal}\r\n</script>'),(5027,272,0.83,'smarty','0','Changing comments to try to fix some issues in FF',1144166801,16,'216.194.127.150','{include file=\"shared:layouts/comp_create_navbar.tpl\"}\r\n\r\n<form method=\"post\" action=\"index.php\">\r\n<table border=0 cellpadding=0 cellspacing=0 width=\"100%\">\r\n<tr>\r\n<td valign=\"top\">\r\n<br>\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">A. Competing for...</td><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"p2p\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'p2p\');\">Pound for pound <i>(Weight lost)</i></a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"pctWt\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'pctWt\');\">Percent of body weight lost</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"minEx\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'minEx\');\">Total minutes exercised</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"disEx\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'disEx\');\">Total distance exercised</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"veg\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'veg\');\">Vegetable challenge</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"gain\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'gain\');\">Weight gained</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"height:10px;background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif);background-repeat:no-repeat;background-position:top left;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif);background-repeat:no-repeat;background-position:top left;\"></td></tr>\r\n</table>\r\n</td>\r\n<td valign=\"top\">\r\n<br>\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">\r\n\r\nB. The competition name is...\r\n</td>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td>\r\n</tr>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td>\r\n<td>\r\n\r\n<div onclick=\"validateDiv(this);\" id=\"step1_block_B\" style=\"margin-top:-1px;margin-left:0px;border:solid 1px gray;background-color:silver;zIndex:100;position:absolute;filter:alpha(opacity=25);-moz-opacity:0.25;\">\r\n    <table border=0 cellspacing=0>\r\n    <tr>\r\n      <td><h3>Name:</h3></td>\r\n      <td><input type=\"text\" name=\"comp[tmp]\" id=\"comp[tmp]\" disabled=\"true\" onkeyup=\"unBlock(\'step1_block_C\');\"/></td>\r\n    </tr>\r\n    <tr>\r\n      <td valign=\"top\"><small><b>Examples:</b></small></td>\r\n      <td><small>&quot;The chubby family reunion&quot;<br />&quot;Company shape-up marathon&quot;<br />&quot;Super Summer Slimdown&quot;</small></td>\r\n    </tr>\r\n    </table>\r\n</div>\r\n\r\n\r\n    <table border=0 cellspacing=0>\r\n    <tr>\r\n      <td><h3>Name:</h3></td>\r\n      <td><input type=\"text\" name=\"comp[title]\" id=\"comp[title]\" onkeyup=\"unBlock(\'step1_block_C\');\"/></td>\r\n    </tr>\r\n    <tr>\r\n      <td valign=\"top\"><small><b>Examples:</b></small></td>\r\n      <td><small>&quot;The chubby family reunion&quot;<br />&quot;Company shape-up marathon&quot;<br />&quot;Super Summer Slimdown&quot;</small></td>\r\n    </tr>\r\n    </table>\r\n\r\n</td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td>\r\n</tr>\r\n<tr><td style=\"height:10px;background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif);background-repeat:no-repeat;background-position:top left;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif);background-repeat:no-repeat;background-position:top left;\"></td></tr>\r\n</table>\r\n    <br/>\r\n    <div style=\"border:solid 1px black;width:94%;height:85px;\">\r\n      test\r\n    </div>\r\n</td>\r\n<td valign=\"top\">\r\n<br>\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">\r\n\r\nC. Who\'s competing...\r\n</td>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td>\r\n</tr>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td>\r\n<td>\r\n\r\n<div onclick=\"validateDiv(this);\" id=\"step1_block_C\" style=\"margin-top:-1px;margin-left:-10px;border:solid 1px gray;background-color:silver;zIndex:100;position:absolute;filter:alpha(opacity=25);-moz-opacity:0.25;\">\r\n    <table border=0 cellpaddin=0 cellspacing=0>\r\n      <tr>\r\n	<td colspan=\"2\">\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	     <tr>\r\n	       <td colspan=2><li style=\"color:#cccccc\">Invate your friends</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small style=\"color:#cccccc\">\r\n		   My friend\'s Name:\r\n                 </small>\r\n	       </td>\r\n	       <td>\r\n	         &nbsp;&nbsp;&nbsp;<input type=\"text id=\"tmp1\" name=\"temp1\" style=\"width:110px;\" disabled />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small style=\"color:#cccccc\">\r\n		   My friend\'s Email:\r\n	         </small>\r\n	       </td>\r\n	       <td>\r\n	          &nbsp;&nbsp;&nbsp;<input type=\"text id=\"tmp1\" name=\"temp1\" style=\"width:110px;\" disabled/>\r\n               </td>\r\n             </tr>\r\n             <tr>\r\n	       <td colspan=\"2\" align=\"right\">\r\n	         <small style=\"color:#cccccc\">\r\n		   <span>\r\n                     Add more\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	</td>\r\n      </tr>\r\n      <tr><td colspan=\"2\"><li style=\"color:#cccccc\">Let them know with an email...</li></td></tr>\r\n      <tr>\r\n        <td valign=\"top\" colspan=2>\r\n	  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	      <tr>\r\n		 <td valign=\"top\">\r\n		    <small style=\"color:#cccccc\">\r\n			<table border=0 cellpadding=0 cellspacing=0 width=\"100%\">\r\n			  <tr><td>&nbsp;&nbsp;&nbsp;<input type=\"radio\" value=\"kind\" name=\"tmp2\"/> <span style=\"color:#cccccc;\">Kind Message</span></td></tr>\r\n			  <tr><td>&nbsp;&nbsp;&nbsp;<input type=\"radio\" value=\"smack\" name=\"tmp2\"/> <span style=\"color:#cccccc;\">Trash Talking Message</span></td></tr>\r\n			  <tr><td>&nbsp;&nbsp;&nbsp;<input type=\"radio\" value=\"challenge\" name=\"tmp2\"/> <span style=\"color:#cccccc;\">Motivational Message</span></td></tr>\r\n			  <tr><td>&nbsp;&nbsp;&nbsp;<input type=\"radio\" value=\"custom\" name=\"tmp2\"/> <span style=\"color:#cccccc;\">Make Your Own Message</span></td></tr>\r\n                        </table>\r\n		    </small>\r\n		 </td>\r\n		 <td valign=\"top\" id=\"invateHolder\">\r\n		    <div id=\"tmp3\" style=\"border-bottom:solid 1px #CCC;border-left:solid 1px #CCC;padding-right:5px;visibility:hidden;\">\r\n			<small style=\"color:#cccccc\">\r\n			   <a href=\"javascript:setInviteWeight(\'heavy\');\">Heavy</a><br />\r\n			   <a href=\"javascript:setInviteWeight(\'medium\');\">Medium</a><br />\r\n			   <a href=\"javascript:setInviteWeight(\'light\');\">Light</a><br />\r\n			</small>\r\n		    </div>\r\n		</td>\r\n	     </tr>\r\n	  </table>\r\n        </td>\r\n     </tr>\r\n     </table>\r\n</div>\r\n\r\n    <table border=0 cellpaddin=0 cellspacing=0>\r\n      <tr>\r\n	<td colspan=\"2\">\r\n	  <div id=\'enterFriendNameDiv\' style=\'display:block;\'>\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	     <tr>\r\n	       <td colspan=2><li>Invate your friends</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   My friend\'s Name:\r\n                 </small>\r\n	       </td>\r\n	       <td>\r\n	         <input type=\"text id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   My friend\'s Email:\r\n	         </small>\r\n	       </td>\r\n	       <td>\r\n		  <input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td colspan=\"2\" align=\"right\">\r\n	         <small>\r\n		   <span onclick=\"extraCompetitors(\'open\');\" style=\"cursor:pointer;\">\r\n                     Add more\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	  </div>\r\n	  <div id=\"myEnteredFriendsDiv\" style=\"display:none;\">\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\r\n	     <tr>\r\n	       <td><li>My Competitors:</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"left\" id=\"competitorListHolder\" style=\"padding-left:15px\">\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   <span onclick=\"editCompetitors();\" style=\"cursor:pointer;\">\r\n                     Edit my competitors\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	  </div>\r\n	</td>\r\n      </tr>\r\n      <tr><td colspan=\"2\"><li>Let them know with an email...</li></td></tr>\r\n      <tr>\r\n        <td valign=\"top\" colspan=2>\r\n	  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	      <tr>\r\n		 <td valign=\"top\">\r\n		    <small>\r\n			<table border=0 cellpadding=0 cellspacing=0 width=\"100%\">\r\n			  <tr><td id=\'kind\'><input type=\"radio\" value=\"kind\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'kind\');\"/> <a href=\"javascript:setInviteStyle(\'kind\');\">Kind Message</a></td></tr>\r\n			  <tr><td id=\'smack\'><input type=\"radio\" value=\"smack\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'smack\');\"/> <a href=\"javascript:setInviteStyle(\'smack\');\">Trash Talking Message</a></td></tr>\r\n			  <tr><td id=\'challenge\'><input type=\"radio\" value=\"challenge\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'challenge\');\" /> <a href=\"javascript:setInviteStyle(\'challenge\');\">Challenge</a></td></tr>\r\n			  <tr><td id=\'custom\'><input type=\"radio\" value=\"custom\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'custom\');\"/> <a href=\"javascript:setInviteStyle(\'custom\');\">Make Your Own</a></td></tr>\r\n                        </table>\r\n		    </small>\r\n		 </td>\r\n		 <td valign=\"top\" id=\"invateHolder\">\r\n		    <div id=\"InvateW\" style=\"border-bottom:solid 1px #CCC;border-left:solid 1px #CCC;padding-right:5px;visibility:hidden;\">\r\n			<small>\r\n			   <input type=\"radio\" value=\"heavy\" name=\"comp[invite_subtype]\"  onclick=\"displayLetter(\'{$vanity}\')\" /> <a href=\"javascript:setInviteWeight(\'heavy\');\">Heavy</a><br />\r\n			   <input type=\"radio\" value=\"medium\" name=\"comp[invite_subtype]\" onclick=\"displayLetter(\'{$vanity}\')\" /> <a href=\"javascript:setInviteWeight(\'medium\');\">Medium</a><br />\r\n			   <input type=\"radio\" value=\"light\" name=\"comp[invite_subtype]\" onclick=\"displayLetter(\'{$vanity}\')\" /> <a href=\"javascript:setInviteWeight(\'light\');\">Light</a><br />\r\n			</small>\r\n		    </div>\r\n		</td>\r\n	     </tr>\r\n	  </table>\r\n        </td>\r\n     </tr>\r\n     </table>\r\n\r\n\r\n</td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td>\r\n</tr>\r\n<tr><td style=\"height:10px;background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif);background-repeat:no-repeat;background-position:top left;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif);background-repeat:no-repeat;background-position:top left;\"></td></tr>\r\n</table>\r\n</td>\r\n<td>\r\n</td>\r\n</tr>\r\n</table>\r\n<br />\r\n<table border=\"0\" cellpadding=0 cellspacing=0 width=\"100%\">\r\n<tr>\r\n<td width=\"10px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/top.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/note/topLeftCorner.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/note/top.gif);background-repeat:repeat-x;\"></td>\r\n<td width=\"15px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/top.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/note/topRightCorner.gif\"></td>\r\n</tr>\r\n<tr>\r\n<td width=\"10px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/left.gif);background-repeat:repeat-y;\"></td>\r\n   <td>\r\n      <!-- <iframe src=\"\" id=\"letterHolder\" name=\"letterHolder\" style=\"width:100%;height:410px;\" scrollbars=\"no\" frameborder=\"0\"></iframe> -->\r\n      <div id=\"letterHolder\" name=\"letterHolder\" style=\"width:100%;height:410px;border:solid 1px white;\"></div>\r\n   </td>\r\n<td width=\"10px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/right.gif);background-repeat:repeat-y;\"></td>\r\n</tr>\r\n<tr><td style=\"height:10px;background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif);background-repeat:no-repeat;background-position:top left;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif);background-repeat:no-repeat;background-position:top left;\"></td></tr>\r\n</table>\r\n{* <iframe src=\"?pg=compCreate/inviteFrame\" style=\"width:100%;height:410px;\" scrollbars=\"no\" frameborder=\"0\"></iframe> *}\r\n\r\n<div id=\"invite-div\"></div>\r\n<br />\r\n\r\n<div align=\"right\">\r\n  <a href=\"?pg=compCreate/step2\"><img src=\"{$skinFolder}images/btn_next.gif\" alt=\"Next\" border=\"0\" /></a>\r\n</div>\r\n\r\n<div id=\"myCompetitors\" style=\"width:300px;background-color:white;zIndex:100;position:absolute;display:none;top:-70px;left:300px;border:solid 1px #CCC;filter: alpha(opacity=85)\">\r\n  <center>\r\n   <table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" width=\"95%\">\r\n      <tr><td align=\"right\" valign=\"top\" style=\"height:5px\"><small><span style=\"cursor:pointer;\" onclick=\"extraCompetitors(\'close\');\">close window</span><small></td></tr>\r\n      <tr><td style=\"border-bottom:solid 1px #CCC;\"><h2>More Competitors...</td></tr>\r\n      <tr>\r\n         <td align=\"center\">\r\n	    <table id=\"competitorsTable\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"90%\">\r\n                <tr>\r\n		  <td></td>\r\n		  <td align=\"center\" valign=\"bottom\">Name</td>\r\n                  <td align=\"center\" valign=\"bottom\">Email</td>\r\n                </tr>\r\n	        <tr>\r\n		  <td>2.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>3.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>4.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>5.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>6.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>7.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>8.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>9.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>10.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>11.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n		<tr>\r\n		  <td colspan=\"3\" align=\"right\"><small><span style=\"cursor:pointer;\" onclick=\'addMoreCompetitors();\'>Add More Lines</span></small></td>\r\n		</tr>\r\n            </table>\r\n         </td>\r\n      </tr>\r\n      <tr>\r\n	<td align=\"right\" style=\"border-top:solid 1px #CCC;\"><img style=\"cursor:pointer;\" onclick=\"addingCompetitors();\" src=\"{$skinFolder}images/btn_next.gif\" alt=\"Add\" border=\"0\" /></td>\r\n      </tr>\r\n   </table>\r\n  </center>\r\n</div>\r\n\r\n</form>\r\n\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/js-get-data.js\"></script>\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/AJAX.js\"></script>\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/NewComp.js\"></script>\r\n\r\n<script language=\"JavaScript\">\r\n	\r\n        //jsGetData(\'?pg=jsGetData\',\'invite-div\', \'madlib.form\', \'&compType=friends&inviteType=smack\');\r\n\r\n	var examples = Array();\r\n	{foreach from=$examples key=\"key\" item=\"example\"}\r\n	examples[{$key}] = \'{eval var=$example.body|addslashes|replace:\"\\r\":\"\"|replace:\"\\n\":\"\\\\n\"}\';\r\n	{/foreach}\r\n	\r\n	{literal}\r\n\r\n\r\n	{/literal}\r\n</script>'),(4885,293,0.10,'smarty','0','Page created.',1140798918,1124,'216.194.127.150',''),(4886,293,0.11,'smarty','0','Page created.',1140799039,1124,'216.194.127.150','<HL><B>Vitamin Supplements: Are They for Everyone?</B></HL>\r\n\r\nDecember 8, 2005\r\n\r\n<P><B>By Robert H. Shmerling, M.D.\r\nBeth Israel Deaconess Medical Center</B></P>\r\n<P>Better take your vitamins — they\'re good for you!</P>\r\n<p>When I was a kid, I remember hearing these words from my mother and in TV commercials. It seemed like good advice, yet not all my friends were taking vitamins, and they seemed healthy. That got me wondering: Are they really good for you? Which ones are best and how much is enough? Could they be harmful? </p>\r\n<p>In recent years, recommendations to take various vitamins (and other supplements) are so commonplace that I often see patients who are taking six, eight or even more vitamins each day. </p>\r\n<p>The term \"vitamin\" comes from \"vita\" (meaning life) and \"amine\" (a type of compound that includes some vitamins). There are 13 well-accepted vitamins (see below). Vitamins are not the same as essential minerals, which are also vital to life. Vitamins are compounds or molecules, while minerals are made up of a single element. </p>\r\n<p><b>Who Needs Them?</b></p>\r\n<p>By definition, everyone needs vitamins. And yet, for many people — perhaps most people — taking a daily multivitamin is a harmless but, medically speaking, wasteful expense and effort. One notable study found that average, healthy people taking a multivitamin each day were no healthier and lived no longer than healthy people who took no vitamins. </p>\r\n<p>Because vitamins are needed only in small amounts, most people get more than enough from what they eat. For some, however, getting supplemental vitamins is truly vital, either because of people\'s choice of foods or because they are unable to absorb and digest one or more vitamins.</p> \r\n<p>Then again, taking too much of certain vitamins can actually be dangerous. The trick is sorting out who should take vitamin supplements to avoid illness and for whom it is unnecessary. </p>\r\n<p><b>Water Soluble vs. Fat Soluble Vitamins</b></p>\r\n<p>Most experts and textbooks divide vitamins into those that dissolve readily in water and those that dissolve in fat. This is helpful because the body handles water and fat quite differently. </p>\r\n<p>Water-soluble vitamins are readily absorbed from the intestine and used by the body; any extra tends to be removed quickly in the urine. Most must be replenished regularly from dietary sources. </p>\r\n<p>Fat-soluble vitamins offer more of a challenge. Certain people have medical conditions that cause problems with absorbing fat-soluble vitamins. Despite adequate dietary intake, they need extra. On the flip side, fat-soluble vitamins are stored in body tissues (such as the liver) and released very slowly over time. As a result, taking too much can be dangerous.</p> \r\n<p>The 13 major vitamins include the water-soluble vitamins (thiamin, riboflavin, niacin, B6, folic acid, B12, pantothenic acid, biotin and C) and the fat-soluble vitamins (A, D, E and K). </p>\r\n<p><b>Who Should Take What?</b></p>\r\n<p>When there is clear evidence of a vitamin deficiency, treatment decisions are generally easy. But when it comes to routine use of vitamin supplements, experts have come to different conclusions. And people often ignore expert recommendations anyway, taking vitamins that no medical provider has suggested and not bothering to take ones that may have been suggested as a preventive measure. </p>\r\n<p>There is sound scientific evidence to support the regular use of certain vitamins by: </p>\r\n<li>Pregnant women — A daily prenatal vitamin is part of routine obstetric care. Probably the most important component is folic acid (or folate), which can markedly reduce the risk of certain birth defects (including neural tube defects). In fact, women of child-bearing age who might become pregnant are encouraged to take folic acid even before pregnancy. </li>\r\n<li>Perimenopausal women — Vitamin D (along with calcium) is recommended to prevent osteoporosis and other bone disease. </li> \r\n<li>People with cardiovascular disease — Folic acid (yes, again!) is recommended, especially for those with elevated homocysteine levels. </li>\r\n<li>Vegetarians — A multivitamin is recommended because certain vitamins, such as B12, are available only from animal sources. Strict vegans are particularly at risk. Riboflavin (vitamin B2), vitamin D and vitamin A are also concerns for those avoiding meat or animal products. One daily multivitamin will provide enough supplementation for all of them. </li>\r\n<li>Smokers and heavy alcohol drinkers — Extra vitamin C and folic acid may reduce the risk of disease for people who smoke and drink too much. In addition, people who drink excess alcohol are more prone to thiamin (vitamin B1), pyridoxine (vitamin B6) and riboflavin deficiencies. A daily multivitamin provides inexpensive nutritional insurance. </li>\r\n<li>The elderly — Because poor nutrition is common in this group, especially those who are sick and frail, vitamin deficiency is also common. A multivitamin is often recommended to prevent complications from deficiencies in vitamin D and B vitamins. </li>\r\n<b><p>Vitamins for Specific Conditions</p></b>\r\n<p>Anyone with a specific vitamin deficiency should take measures to replenish it. Deficiencies may be detected when symptoms develop or when laboratory abnormalities are noticed in routine testing. Some of the more common vitamin deficiencies include: </p>\r\n<li>Vitamin B12 — Low B12 may cause megaloblastic or \"pernicious\" anemia, difficulty sensing the position of the feet or legs, and, eventually, dementia. In children, it can cause growth problems. In pregnant women, B12 deficiency is a cause of birth defects. </li>\r\n<li>Folate (or folic acid, another B vitamin) — Too little can cause anemia. Low levels are also associated with increased homocysteine, a risk factor for cardiovascular disease. </li>\r\n<li>Vitamin C — Deficiency is called scurvy, which affects many parts of the body, including bones, teeth and blood vessels. Symptoms include fatigue, weakness, rash, irritability and muscle aches. Severe and longstanding deficiency can lead to bleeding, poor wound healing and death. </li>\r\n<li>Vitamin D — In children, deficiency of vitamin D causes rickets, a condition marked by deformed bone growth. In adults, the condition is called osteomalacia (literally, bone softening), which causes bone pain and weakened bones that fracture more easily than normal. </li>\r\n<li>Vitamin B1 (thiamin) — In developed countries, deficiency most often is associated with alcoholism and poor nutrition. Symptoms include confusion, eye problems and imbalance. In developing nations, thiamin deficiency may cause heart failure and muscle weakness. </li>\r\n<p>If you have any of these symptoms, talk to your doctor about their cause, including the possibility of a vitamin deficiency. </p>\r\n<p><b>Too Much of a Good Thing?</b></p>\r\n<p>While intake of vitamins through diet or supplements is vital to life itself, there are limits. Consider the following potential consequences of long-term \"megadose\" vitamin therapy: </p>\r\n<li>Vitamin A — headaches, liver damage, blindness, bone fractures and death </li>\r\n<li>Vitamin D — kidney stones, kidney failure, weak muscles, bone pain, loss of appetite, vomiting and mental changes </li>\r\n<li>Vitamin B3 (niacin) — a flushing sensation, diarrhea, vomiting and liver damage </li>\r\n<li>Vitamin B6 — nerve damage </li>\r\n<li>Vitamin C — headaches, diarrhea and kidney stones </li>\r\n<p>Some vitamins may interact with medications you may be taking. An important example is vitamin K, which counteracts the blood thinner warfarin (Coumadin). If you are taking warfarin to prevent stroke, taking extra vitamin K could offset that benefit, increasing your risk of stroke. </p>\r\n<p>In the absence of a specific disease or condition that warrants it, there is risk without clear benefit related to taking high doses of vitamins. Even \"regular\" doses of some supplements may impair health: Studies have noted that the use of beta carotene (a precursor of vitamin A) is associated with a higher risk of cardiovascular disease and some cancers. </p>\r\n<p><b>Vitamins for All?</b></p>\r\n<p>Increasingly, experts are recommending that all adults take a multivitamin each day as \"insurance\" against vitamin deficiency. Even without significant deficiency, extra folic acid, B6 and B12 may lower homocysteine and reduce the risk of cardiovascular disease. Folate also may lower risk of breast and colon cancer and birth defects. Vitamin D may lessen the risk of osteoporosis and osteomalacia. </p>\r\n<p>For women who might become pregnant, experts recommend 400 micrograms per day of folic acid. Some recommend 800 micrograms a day for women who are specifically trying to become pregnant. </p>\r\n<p>It\'s likely that ongoing research will spell out which vitamin supplements are most important and who should take them. Until then, things are likely to remain pretty confusing. </p>\r\n<p>Consumers are deluged with recommendations to take lots of vitamins. Much of this promotion comes from people or companies trying to sell their products, or from studies that may be preliminary or even contradict other research. </p>\r\n<p>It\'s enough to make your head spin — and there\'s no good vitamin you can take for that! </p>\r\n<p>Do you really need to take your vitamins? Probably not, especially if you are healthy and already get at least five servings of fruits and vegetables each day. </p>\r\n<p>But if you are concerned that your diet might not meet your vitamin needs, change your diet and take a single daily multivitamin. It should be inexpensive and contain 100% of the recommended daily allowance of the 13 major vitamins. While this might not be absolutely necessary, the minimal cost and risk might just be worth the peace of mind. </p>\r\n<p>Robert H. Shmerling, M.D., is associate physician at Beth Israel Deaconess Medical Center and associate professor at Harvard Medical School. He has been a practicing rheumatologist for over 20 years at Beth Israel Deaconess Medical Center. He is an active teacher in the Internal Medicine Residency Program, serving as the Robinson Firm Chief. He is also a teacher in the Rheumatology Fellowship Program.</p>\r\n\r\n\r\n'),(4887,293,0.12,'smarty','0','Page created.',1140799097,1124,'216.194.127.150','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n\r\n<HL><B>Vitamin Supplements: Are They for Everyone?</B></HL>\r\n\r\nDecember 8, 2005\r\n\r\n<P><B>By Robert H. Shmerling, M.D.\r\nBeth Israel Deaconess Medical Center</B></P>\r\n<P>Better take your vitamins — they\'re good for you!</P>\r\n<p>When I was a kid, I remember hearing these words from my mother and in TV commercials. It seemed like good advice, yet not all my friends were taking vitamins, and they seemed healthy. That got me wondering: Are they really good for you? Which ones are best and how much is enough? Could they be harmful? </p>\r\n<p>In recent years, recommendations to take various vitamins (and other supplements) are so commonplace that I often see patients who are taking six, eight or even more vitamins each day. </p>\r\n<p>The term \"vitamin\" comes from \"vita\" (meaning life) and \"amine\" (a type of compound that includes some vitamins). There are 13 well-accepted vitamins (see below). Vitamins are not the same as essential minerals, which are also vital to life. Vitamins are compounds or molecules, while minerals are made up of a single element. </p>\r\n<p><b>Who Needs Them?</b></p>\r\n<p>By definition, everyone needs vitamins. And yet, for many people — perhaps most people — taking a daily multivitamin is a harmless but, medically speaking, wasteful expense and effort. One notable study found that average, healthy people taking a multivitamin each day were no healthier and lived no longer than healthy people who took no vitamins. </p>\r\n<p>Because vitamins are needed only in small amounts, most people get more than enough from what they eat. For some, however, getting supplemental vitamins is truly vital, either because of people\'s choice of foods or because they are unable to absorb and digest one or more vitamins.</p> \r\n<p>Then again, taking too much of certain vitamins can actually be dangerous. The trick is sorting out who should take vitamin supplements to avoid illness and for whom it is unnecessary. </p>\r\n<p><b>Water Soluble vs. Fat Soluble Vitamins</b></p>\r\n<p>Most experts and textbooks divide vitamins into those that dissolve readily in water and those that dissolve in fat. This is helpful because the body handles water and fat quite differently. </p>\r\n<p>Water-soluble vitamins are readily absorbed from the intestine and used by the body; any extra tends to be removed quickly in the urine. Most must be replenished regularly from dietary sources. </p>\r\n<p>Fat-soluble vitamins offer more of a challenge. Certain people have medical conditions that cause problems with absorbing fat-soluble vitamins. Despite adequate dietary intake, they need extra. On the flip side, fat-soluble vitamins are stored in body tissues (such as the liver) and released very slowly over time. As a result, taking too much can be dangerous.</p> \r\n<p>The 13 major vitamins include the water-soluble vitamins (thiamin, riboflavin, niacin, B6, folic acid, B12, pantothenic acid, biotin and C) and the fat-soluble vitamins (A, D, E and K). </p>\r\n<p><b>Who Should Take What?</b></p>\r\n<p>When there is clear evidence of a vitamin deficiency, treatment decisions are generally easy. But when it comes to routine use of vitamin supplements, experts have come to different conclusions. And people often ignore expert recommendations anyway, taking vitamins that no medical provider has suggested and not bothering to take ones that may have been suggested as a preventive measure. </p>\r\n<p>There is sound scientific evidence to support the regular use of certain vitamins by: </p>\r\n<li>Pregnant women — A daily prenatal vitamin is part of routine obstetric care. Probably the most important component is folic acid (or folate), which can markedly reduce the risk of certain birth defects (including neural tube defects). In fact, women of child-bearing age who might become pregnant are encouraged to take folic acid even before pregnancy. </li>\r\n<li>Perimenopausal women — Vitamin D (along with calcium) is recommended to prevent osteoporosis and other bone disease. </li> \r\n<li>People with cardiovascular disease — Folic acid (yes, again!) is recommended, especially for those with elevated homocysteine levels. </li>\r\n<li>Vegetarians — A multivitamin is recommended because certain vitamins, such as B12, are available only from animal sources. Strict vegans are particularly at risk. Riboflavin (vitamin B2), vitamin D and vitamin A are also concerns for those avoiding meat or animal products. One daily multivitamin will provide enough supplementation for all of them. </li>\r\n<li>Smokers and heavy alcohol drinkers — Extra vitamin C and folic acid may reduce the risk of disease for people who smoke and drink too much. In addition, people who drink excess alcohol are more prone to thiamin (vitamin B1), pyridoxine (vitamin B6) and riboflavin deficiencies. A daily multivitamin provides inexpensive nutritional insurance. </li>\r\n<li>The elderly — Because poor nutrition is common in this group, especially those who are sick and frail, vitamin deficiency is also common. A multivitamin is often recommended to prevent complications from deficiencies in vitamin D and B vitamins. </li>\r\n<b><p>Vitamins for Specific Conditions</p></b>\r\n<p>Anyone with a specific vitamin deficiency should take measures to replenish it. Deficiencies may be detected when symptoms develop or when laboratory abnormalities are noticed in routine testing. Some of the more common vitamin deficiencies include: </p>\r\n<li>Vitamin B12 — Low B12 may cause megaloblastic or \"pernicious\" anemia, difficulty sensing the position of the feet or legs, and, eventually, dementia. In children, it can cause growth problems. In pregnant women, B12 deficiency is a cause of birth defects. </li>\r\n<li>Folate (or folic acid, another B vitamin) — Too little can cause anemia. Low levels are also associated with increased homocysteine, a risk factor for cardiovascular disease. </li>\r\n<li>Vitamin C — Deficiency is called scurvy, which affects many parts of the body, including bones, teeth and blood vessels. Symptoms include fatigue, weakness, rash, irritability and muscle aches. Severe and longstanding deficiency can lead to bleeding, poor wound healing and death. </li>\r\n<li>Vitamin D — In children, deficiency of vitamin D causes rickets, a condition marked by deformed bone growth. In adults, the condition is called osteomalacia (literally, bone softening), which causes bone pain and weakened bones that fracture more easily than normal. </li>\r\n<li>Vitamin B1 (thiamin) — In developed countries, deficiency most often is associated with alcoholism and poor nutrition. Symptoms include confusion, eye problems and imbalance. In developing nations, thiamin deficiency may cause heart failure and muscle weakness. </li>\r\n<p>If you have any of these symptoms, talk to your doctor about their cause, including the possibility of a vitamin deficiency. </p>\r\n<p><b>Too Much of a Good Thing?</b></p>\r\n<p>While intake of vitamins through diet or supplements is vital to life itself, there are limits. Consider the following potential consequences of long-term \"megadose\" vitamin therapy: </p>\r\n<li>Vitamin A — headaches, liver damage, blindness, bone fractures and death </li>\r\n<li>Vitamin D — kidney stones, kidney failure, weak muscles, bone pain, loss of appetite, vomiting and mental changes </li>\r\n<li>Vitamin B3 (niacin) — a flushing sensation, diarrhea, vomiting and liver damage </li>\r\n<li>Vitamin B6 — nerve damage </li>\r\n<li>Vitamin C — headaches, diarrhea and kidney stones </li>\r\n<p>Some vitamins may interact with medications you may be taking. An important example is vitamin K, which counteracts the blood thinner warfarin (Coumadin). If you are taking warfarin to prevent stroke, taking extra vitamin K could offset that benefit, increasing your risk of stroke. </p>\r\n<p>In the absence of a specific disease or condition that warrants it, there is risk without clear benefit related to taking high doses of vitamins. Even \"regular\" doses of some supplements may impair health: Studies have noted that the use of beta carotene (a precursor of vitamin A) is associated with a higher risk of cardiovascular disease and some cancers. </p>\r\n<p><b>Vitamins for All?</b></p>\r\n<p>Increasingly, experts are recommending that all adults take a multivitamin each day as \"insurance\" against vitamin deficiency. Even without significant deficiency, extra folic acid, B6 and B12 may lower homocysteine and reduce the risk of cardiovascular disease. Folate also may lower risk of breast and colon cancer and birth defects. Vitamin D may lessen the risk of osteoporosis and osteomalacia. </p>\r\n<p>For women who might become pregnant, experts recommend 400 micrograms per day of folic acid. Some recommend 800 micrograms a day for women who are specifically trying to become pregnant. </p>\r\n<p>It\'s likely that ongoing research will spell out which vitamin supplements are most important and who should take them. Until then, things are likely to remain pretty confusing. </p>\r\n<p>Consumers are deluged with recommendations to take lots of vitamins. Much of this promotion comes from people or companies trying to sell their products, or from studies that may be preliminary or even contradict other research. </p>\r\n<p>It\'s enough to make your head spin — and there\'s no good vitamin you can take for that! </p>\r\n<p>Do you really need to take your vitamins? Probably not, especially if you are healthy and already get at least five servings of fruits and vegetables each day. </p>\r\n<p>But if you are concerned that your diet might not meet your vitamin needs, change your diet and take a single daily multivitamin. It should be inexpensive and contain 100% of the recommended daily allowance of the 13 major vitamins. While this might not be absolutely necessary, the minimal cost and risk might just be worth the peace of mind. </p>\r\n<p>Robert H. Shmerling, M.D., is associate physician at Beth Israel Deaconess Medical Center and associate professor at Harvard Medical School. He has been a practicing rheumatologist for over 20 years at Beth Israel Deaconess Medical Center. He is an active teacher in the Internal Medicine Residency Program, serving as the Robinson Firm Chief. He is also a teacher in the Rheumatology Fellowship Program.</p>\r\n\r\n\r\n'),(4888,293,0.13,'smarty','1','Page created.',1140799130,1124,'216.194.127.150','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n\r\n<HL><B>Vitamin Supplements: Are They for Everyone?</B></HL>\r\n\r\n<p>December 8, 2005</p>\r\n\r\n<P><B>By Robert H. Shmerling, M.D.\r\nBeth Israel Deaconess Medical Center</B></P>\r\n<P>Better take your vitamins — they\'re good for you!</P>\r\n<p>When I was a kid, I remember hearing these words from my mother and in TV commercials. It seemed like good advice, yet not all my friends were taking vitamins, and they seemed healthy. That got me wondering: Are they really good for you? Which ones are best and how much is enough? Could they be harmful? </p>\r\n<p>In recent years, recommendations to take various vitamins (and other supplements) are so commonplace that I often see patients who are taking six, eight or even more vitamins each day. </p>\r\n<p>The term \"vitamin\" comes from \"vita\" (meaning life) and \"amine\" (a type of compound that includes some vitamins). There are 13 well-accepted vitamins (see below). Vitamins are not the same as essential minerals, which are also vital to life. Vitamins are compounds or molecules, while minerals are made up of a single element. </p>\r\n<p><b>Who Needs Them?</b></p>\r\n<p>By definition, everyone needs vitamins. And yet, for many people — perhaps most people — taking a daily multivitamin is a harmless but, medically speaking, wasteful expense and effort. One notable study found that average, healthy people taking a multivitamin each day were no healthier and lived no longer than healthy people who took no vitamins. </p>\r\n<p>Because vitamins are needed only in small amounts, most people get more than enough from what they eat. For some, however, getting supplemental vitamins is truly vital, either because of people\'s choice of foods or because they are unable to absorb and digest one or more vitamins.</p> \r\n<p>Then again, taking too much of certain vitamins can actually be dangerous. The trick is sorting out who should take vitamin supplements to avoid illness and for whom it is unnecessary. </p>\r\n<p><b>Water Soluble vs. Fat Soluble Vitamins</b></p>\r\n<p>Most experts and textbooks divide vitamins into those that dissolve readily in water and those that dissolve in fat. This is helpful because the body handles water and fat quite differently. </p>\r\n<p>Water-soluble vitamins are readily absorbed from the intestine and used by the body; any extra tends to be removed quickly in the urine. Most must be replenished regularly from dietary sources. </p>\r\n<p>Fat-soluble vitamins offer more of a challenge. Certain people have medical conditions that cause problems with absorbing fat-soluble vitamins. Despite adequate dietary intake, they need extra. On the flip side, fat-soluble vitamins are stored in body tissues (such as the liver) and released very slowly over time. As a result, taking too much can be dangerous.</p> \r\n<p>The 13 major vitamins include the water-soluble vitamins (thiamin, riboflavin, niacin, B6, folic acid, B12, pantothenic acid, biotin and C) and the fat-soluble vitamins (A, D, E and K). </p>\r\n<p><b>Who Should Take What?</b></p>\r\n<p>When there is clear evidence of a vitamin deficiency, treatment decisions are generally easy. But when it comes to routine use of vitamin supplements, experts have come to different conclusions. And people often ignore expert recommendations anyway, taking vitamins that no medical provider has suggested and not bothering to take ones that may have been suggested as a preventive measure. </p>\r\n<p>There is sound scientific evidence to support the regular use of certain vitamins by: </p>\r\n<li>Pregnant women — A daily prenatal vitamin is part of routine obstetric care. Probably the most important component is folic acid (or folate), which can markedly reduce the risk of certain birth defects (including neural tube defects). In fact, women of child-bearing age who might become pregnant are encouraged to take folic acid even before pregnancy. </li>\r\n<li>Perimenopausal women — Vitamin D (along with calcium) is recommended to prevent osteoporosis and other bone disease. </li> \r\n<li>People with cardiovascular disease — Folic acid (yes, again!) is recommended, especially for those with elevated homocysteine levels. </li>\r\n<li>Vegetarians — A multivitamin is recommended because certain vitamins, such as B12, are available only from animal sources. Strict vegans are particularly at risk. Riboflavin (vitamin B2), vitamin D and vitamin A are also concerns for those avoiding meat or animal products. One daily multivitamin will provide enough supplementation for all of them. </li>\r\n<li>Smokers and heavy alcohol drinkers — Extra vitamin C and folic acid may reduce the risk of disease for people who smoke and drink too much. In addition, people who drink excess alcohol are more prone to thiamin (vitamin B1), pyridoxine (vitamin B6) and riboflavin deficiencies. A daily multivitamin provides inexpensive nutritional insurance. </li>\r\n<li>The elderly — Because poor nutrition is common in this group, especially those who are sick and frail, vitamin deficiency is also common. A multivitamin is often recommended to prevent complications from deficiencies in vitamin D and B vitamins. </li>\r\n<b><p>Vitamins for Specific Conditions</p></b>\r\n<p>Anyone with a specific vitamin deficiency should take measures to replenish it. Deficiencies may be detected when symptoms develop or when laboratory abnormalities are noticed in routine testing. Some of the more common vitamin deficiencies include: </p>\r\n<li>Vitamin B12 — Low B12 may cause megaloblastic or \"pernicious\" anemia, difficulty sensing the position of the feet or legs, and, eventually, dementia. In children, it can cause growth problems. In pregnant women, B12 deficiency is a cause of birth defects. </li>\r\n<li>Folate (or folic acid, another B vitamin) — Too little can cause anemia. Low levels are also associated with increased homocysteine, a risk factor for cardiovascular disease. </li>\r\n<li>Vitamin C — Deficiency is called scurvy, which affects many parts of the body, including bones, teeth and blood vessels. Symptoms include fatigue, weakness, rash, irritability and muscle aches. Severe and longstanding deficiency can lead to bleeding, poor wound healing and death. </li>\r\n<li>Vitamin D — In children, deficiency of vitamin D causes rickets, a condition marked by deformed bone growth. In adults, the condition is called osteomalacia (literally, bone softening), which causes bone pain and weakened bones that fracture more easily than normal. </li>\r\n<li>Vitamin B1 (thiamin) — In developed countries, deficiency most often is associated with alcoholism and poor nutrition. Symptoms include confusion, eye problems and imbalance. In developing nations, thiamin deficiency may cause heart failure and muscle weakness. </li>\r\n<p>If you have any of these symptoms, talk to your doctor about their cause, including the possibility of a vitamin deficiency. </p>\r\n<p><b>Too Much of a Good Thing?</b></p>\r\n<p>While intake of vitamins through diet or supplements is vital to life itself, there are limits. Consider the following potential consequences of long-term \"megadose\" vitamin therapy: </p>\r\n<li>Vitamin A — headaches, liver damage, blindness, bone fractures and death </li>\r\n<li>Vitamin D — kidney stones, kidney failure, weak muscles, bone pain, loss of appetite, vomiting and mental changes </li>\r\n<li>Vitamin B3 (niacin) — a flushing sensation, diarrhea, vomiting and liver damage </li>\r\n<li>Vitamin B6 — nerve damage </li>\r\n<li>Vitamin C — headaches, diarrhea and kidney stones </li>\r\n<p>Some vitamins may interact with medications you may be taking. An important example is vitamin K, which counteracts the blood thinner warfarin (Coumadin). If you are taking warfarin to prevent stroke, taking extra vitamin K could offset that benefit, increasing your risk of stroke. </p>\r\n<p>In the absence of a specific disease or condition that warrants it, there is risk without clear benefit related to taking high doses of vitamins. Even \"regular\" doses of some supplements may impair health: Studies have noted that the use of beta carotene (a precursor of vitamin A) is associated with a higher risk of cardiovascular disease and some cancers. </p>\r\n<p><b>Vitamins for All?</b></p>\r\n<p>Increasingly, experts are recommending that all adults take a multivitamin each day as \"insurance\" against vitamin deficiency. Even without significant deficiency, extra folic acid, B6 and B12 may lower homocysteine and reduce the risk of cardiovascular disease. Folate also may lower risk of breast and colon cancer and birth defects. Vitamin D may lessen the risk of osteoporosis and osteomalacia. </p>\r\n<p>For women who might become pregnant, experts recommend 400 micrograms per day of folic acid. Some recommend 800 micrograms a day for women who are specifically trying to become pregnant. </p>\r\n<p>It\'s likely that ongoing research will spell out which vitamin supplements are most important and who should take them. Until then, things are likely to remain pretty confusing. </p>\r\n<p>Consumers are deluged with recommendations to take lots of vitamins. Much of this promotion comes from people or companies trying to sell their products, or from studies that may be preliminary or even contradict other research. </p>\r\n<p>It\'s enough to make your head spin — and there\'s no good vitamin you can take for that! </p>\r\n<p>Do you really need to take your vitamins? Probably not, especially if you are healthy and already get at least five servings of fruits and vegetables each day. </p>\r\n<p>But if you are concerned that your diet might not meet your vitamin needs, change your diet and take a single daily multivitamin. It should be inexpensive and contain 100% of the recommended daily allowance of the 13 major vitamins. While this might not be absolutely necessary, the minimal cost and risk might just be worth the peace of mind. </p>\r\n<p>Robert H. Shmerling, M.D., is associate physician at Beth Israel Deaconess Medical Center and associate professor at Harvard Medical School. He has been a practicing rheumatologist for over 20 years at Beth Israel Deaconess Medical Center. He is an active teacher in the Internal Medicine Residency Program, serving as the Robinson Firm Chief. He is also a teacher in the Rheumatology Fellowship Program.</p>\r\n\r\n\r\n'),(4889,198,0.44,'smarty','0','added hiddenPageRedirector',1140818099,16,'216.194.127.150','{if $smarty.session.company.preferences.hide_fitness eq \"yes\"}{include file=\"file:layouts/hiddenPageRedirector.tpl\"}{/if}\r\n{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title}</h1>\r\n\r\n<table>\r\n<tr><td valign=\"top\">\r\n	<div align=\"right\" style=\"width:200px; float:right;\">\r\n	{if $smarty.session.company.preferences.hide_shop eq \"yes\"}\r\n		<br /><br /><br />\r\n	{else}\r\n		<a href=\"?pg=my_shop&sub=&tma=VIEW&eids=9\"><img id=\"pedometerDealImg\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" /><br style=\"clear:both;\" />\r\n		Buy a Pedometer</a>\r\n	{/if}\r\n	</div>\r\n\r\n	<img src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" class=\"iconJoggers\" /> \r\n	<p>Its time to get Active!  Below you will find links that can help you understand ways to get exercise and be safe. Remember, the most difficult hurdle to exercise is time - but you must make time. Check out the \"At the Office\" link for things you can do at work.</p>\r\n	<br />\r\n	<br />\r\n<blockquote>\r\n<table width=\"100%\" cellspacing=\"10\"><tr>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Fitness Tools:</h3>\r\n		<img src=\"{$skinFolder}images/pliers.gif\" class=\"floatLeft\" />\r\n		<table cellspacing=\"0\" cellpadding=\"0\"><tr><td>\r\n		<ul>\r\n{toc_display start_id=247 level_limit=1 hide_start=1}\r\n{literal}\r\n		<li>t<a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n			<small>{$toc_description}<br /><br /></small></a></li>\r\n{/literal}\r\n{/toc_display}\r\n		</ul></td></tr></table>\r\n		<br class=\"clearLeft\" />\r\n		<br />\r\n		<h3>Fitness Tip:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/tack.gif\" class=\"floatLeft\" />\r\n		<blockquote class=\"bgWhite\">{include_php file=\"shared_handle:fitness/echoRandomTip\"}</blockquote>\r\n		<ul>\r\n			<li><a href=\"?pg=tips&sub=exercise_tips\">View All Fitness Tips</a></li>\r\n		</ul>\r\n		</td>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Fitness Articles:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/newspaper.gif\" class=\"floatLeft\" />\r\n		<table><tr><td><ul>\r\n{toc_display start_id=198 level_limit=1 hide_start=1}\r\n{literal}\r\n		<li><a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n			<small>{$toc_description}<br /><br /></small></a></li>\r\n{/literal}\r\n{/toc_display}\r\n		</ul></td></tr></table>\r\n		</td>\r\n	</tr></table>\r\n	</blockquote>\r\n</td></tr>\r\n</table>'),(4890,198,0.45,'smarty','0','added hiddenPageRedirector',1140818237,16,'216.194.127.150','{if $smarty.session.company.preferences.hide_fitness eq \"yes\"}{include file=\"file:layouts/hiddenPageRedirector.tpl\"}{/if}\r\n{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title}</h1>\r\n\r\n<table>\r\n<tr><td valign=\"top\">\r\n	<div align=\"right\" style=\"width:200px; float:right;\">\r\n	{if $smarty.session.company.preferences.hide_shop eq \"yes\"}\r\n		<br /><br /><br />\r\n	{else}\r\n		<a href=\"?pg=my_shop&sub=&tma=VIEW&eids=9\"><img id=\"pedometerDealImg\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" /><br style=\"clear:both;\" />\r\n		Buy a Pedometer</a>\r\n	{/if}\r\n	</div>\r\n\r\n	<img src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" class=\"iconJoggers\" /> \r\n	<p>Its time to get Active!  Below you will find links that can help you understand ways to get exercise and be safe. Remember, the most difficult hurdle to exercise is time - but you must make time. Check out the \"At the Office\" link for things you can do at work.</p>\r\n	<br />\r\n	<br />\r\n<blockquote>\r\n<table width=\"100%\" cellspacing=\"10\"><tr>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Fitness Tools:</h3>\r\n		<img src=\"{$skinFolder}images/pliers.gif\" class=\"floatLeft\" />\r\n		<table cellspacing=\"0\" cellpadding=\"0\"><tr><td>\r\n		<ul>\r\n{toc_display start_id=247 level_limit=1 hide_start=1}\r\n{literal}\r\n		<li>>{if $smarty.session.company.preferences.personalTrainer}{$smarty.session.company.preferences.personalTrainer}<br /><a href=\"?pg=aexpTrainer\">personal health and fitness consultations</a>{else}\r\n		{/if}<a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n			<small>{$toc_description}<br /><br /></small></a></li>\r\n{/literal}\r\n{/toc_display}\r\n		</ul></td></tr></table>\r\n		<br class=\"clearLeft\" />\r\n		<br />\r\n		<h3>Fitness Tip:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/tack.gif\" class=\"floatLeft\" />\r\n		<blockquote class=\"bgWhite\">{include_php file=\"shared_handle:fitness/echoRandomTip\"}</blockquote>\r\n		<ul>\r\n			<li><a href=\"?pg=tips&sub=exercise_tips\">View All Fitness Tips</a></li>\r\n		</ul>\r\n		</td>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Fitness Articles:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/newspaper.gif\" class=\"floatLeft\" />\r\n		<table><tr><td><ul>\r\n{toc_display start_id=198 level_limit=1 hide_start=1}\r\n{literal}\r\n		<li><a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n			<small>{$toc_description}<br /><br /></small></a></li>\r\n{/literal}\r\n{/toc_display}\r\n		</ul></td></tr></table>\r\n		</td>\r\n	</tr></table>\r\n	</blockquote>\r\n</td></tr>\r\n</table>'),(4892,198,0.47,'smarty','0','added hiddenPageRedirector',1140818640,16,'216.194.127.150','{if $smarty.session.company.preferences.hide_fitness eq \"yes\"}{include file=\"file:layouts/hiddenPageRedirector.tpl\"}{/if}\r\n{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title}</h1>\r\n\r\n<table>\r\n<tr><td valign=\"top\">\r\n	<div align=\"right\" style=\"width:200px; float:right;\">\r\n	{if $smarty.session.company.preferences.hide_shop eq \"yes\"}\r\n		<br /><br /><br />\r\n	{else}\r\n		<a href=\"?pg=my_shop&sub=&tma=VIEW&eids=9\"><img id=\"pedometerDealImg\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" /><br style=\"clear:both;\" />\r\n		Buy a Pedometer</a>\r\n	{/if}\r\n	</div>\r\n\r\n	<img src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" class=\"iconJoggers\" /> \r\n	<p>Its time to get Active!  Below you will find links that can help you understand ways to get exercise and be safe. Remember, the most difficult hurdle to exercise is time - but you must make time. Check out the \"At the Office\" link for things you can do at work.</p>\r\n	<br />\r\n	<br />\r\n<blockquote>\r\n<table width=\"100%\" cellspacing=\"10\"><tr>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Fitness Tools:</h3>\r\n		<img src=\"{$skinFolder}images/pliers.gif\" class=\"floatLeft\" />\r\n		<table cellspacing=\"0\" cellpadding=\"0\"><tr><td>\r\n		<ul>\r\n{toc_display start_id=247 level_limit=1 hide_start=1}\r\n{literal}\r\n		<li>{if $smarty.session.company.preferences.personalTrainer}{$smarty.session.company.preferences.personalTrainer}<a href=\"?pg=aexpTrainer\"></a>{else}\r\n		<a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n			<small>{$toc_description}<br /><br /></small></a>{/if}</li>\r\n{/literal}\r\n{/toc_display}\r\n		</ul></td></tr></table>\r\n		<br class=\"clearLeft\" />\r\n		<br />\r\n		<h3>Fitness Tip:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/tack.gif\" class=\"floatLeft\" />\r\n		<blockquote class=\"bgWhite\">{include_php file=\"shared_handle:fitness/echoRandomTip\"}</blockquote>\r\n		<ul>\r\n			<li><a href=\"?pg=tips&sub=exercise_tips\">View All Fitness Tips</a></li>\r\n		</ul>\r\n		</td>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Fitness Articles:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/newspaper.gif\" class=\"floatLeft\" />\r\n		<table><tr><td><ul>\r\n{toc_display start_id=198 level_limit=1 hide_start=1}\r\n{literal}\r\n		<li><a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n			<small>{$toc_description}<br /><br /></small></a></li>\r\n{/literal}\r\n{/toc_display}\r\n		</ul></td></tr></table>\r\n		</td>\r\n	</tr></table>\r\n	</blockquote>\r\n</td></tr>\r\n</table>'),(4898,294,0.12,'smarty','0','Page created.',1140820165,16,'216.194.127.150','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title}</h1>\r\n\r\n\r\nRegular exercise is a vital part of a healthy lifestyle. Don’t know what to do or how to get started? We can help! Your onsite Wellness Coordinator will meet with you, free of charge, and provide any or all of the following services:\r\n\r\n<p>*Fitness testing, which includes: </p>\r\n<ul>\r\n	<li>Resting heart rate and target heart rate ranges</li>\r\n	<li>Blood pressure testing and tracking</li>\r\n	<li>Weight</li>\r\n	<li>Body fat percentage</li>\r\n	<li>Waist to hip ratio</li>\r\n	<li>Cardiovascular endurance</li>\r\n	<li>Muscular strength and endurance</li>\r\n	<li>Flexibility</li>\r\n<p>The Wellness Coordinator will then create a personalized exercise program based on your specific needs and goals. \r\n</p>\r\n<p>*Other services provided free of charge include:</p>\r\n<li>Stress management</li>\r\n<li>On-site group fitness classes</li>\r\n<li>Exercise video/DVD checkouts</li>\r\n<li>Monthly newsletters</li>\r\n<li>Presentations or information on any requested health or fitness topic</li>\r\n<li>Numerous employee incentive programs to keep you motivated!</li>\r\n\r\n<p>To start achieving your goals contact Christy Johnson, your employee Wellness Coordinator, at Christine.H.Johnson@aexp.com, or at extension 57348 to set up an appointment.\r\n</p>\r\n<br /><i>*Services provided by appointment only</i>\r\n'),(4899,294,0.13,'smarty','0','Page created.',1140820204,16,'216.194.127.150','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title}</h1>\r\n\r\n\r\nRegular exercise is a vital part of a healthy lifestyle. Don’t know what to do or how to get started? We can help! Your onsite Wellness Coordinator will meet with you, free of charge, and provide any or all of the following services:\r\n\r\n<p>*Fitness testing, which includes: </p>\r\n<ul>\r\n	<li>Resting heart rate and target heart rate ranges</li>\r\n	<li>Blood pressure testing and tracking</li>\r\n	<li>Weight</li>\r\n	<li>Body fat percentage</li>\r\n	<li>Waist to hip ratio</li>\r\n	<li>Cardiovascular endurance</li>\r\n	<li>Muscular strength and endurance</li>\r\n	<li>Flexibility</li>\r\n</ul>\r\n<p>The Wellness Coordinator will then create a personalized exercise program based on your specific needs and goals. \r\n</p>\r\n<p>*Other services provided free of charge include:</p>\r\n<ul><li>Stress management</li>\r\n<li>On-site group fitness classes</li>\r\n<li>Exercise video/DVD checkouts</li>\r\n<li>Monthly newsletters</li>\r\n<li>Presentations or information on any requested health or fitness topic</li>\r\n<li>Numerous employee incentive programs to keep you motivated!</li>\r\n</ul>\r\n<p>To start achieving your goals contact Christy Johnson, your employee Wellness Coordinator, at Christine.H.Johnson@aexp.com, or at extension 57348 to set up an appointment.\r\n</p>\r\n<br /><i>*Services provided by appointment only</i>\r\n'),(4900,294,0.14,'smarty','0','Page created.',1140820231,16,'216.194.127.150','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title}</h1>\r\n\r\n\r\nRegular exercise is a vital part of a healthy lifestyle. Don’t know what to do or how to get started? We can help! Your onsite Wellness Coordinator will meet with you, free of charge, and provide any or all of the following services:\r\n\r\n<p>*Fitness testing, which includes: </p>\r\n<ul>\r\n	<li>Resting heart rate and target heart rate ranges</li>\r\n	<li>Blood pressure testing and tracking</li>\r\n	<li>Weight</li>\r\n	<li>Body fat percentage</li>\r\n	<li>Waist to hip ratio</li>\r\n	<li>Cardiovascular endurance</li>\r\n	<li>Muscular strength and endurance</li>\r\n	<li>Flexibility</li>\r\n</ul>\r\n<p>The Wellness Coordinator will then create a personalized exercise program based on your specific needs and goals. \r\n</p>\r\n<p>*Other services provided free of charge include:</p>\r\n<ul><li>Stress management</li>\r\n<li>On-site group fitness classes</li>\r\n<li>Exercise video/DVD checkouts</li>\r\n<li>Monthly newsletters</li>\r\n<li>Presentations or information on any requested health or fitness topic</li>\r\n<li>Numerous employee incentive programs to keep you motivated!</li>\r\n</ul>\r\n<p>To start achieving your goals <b>contact Christy Johnson</b>, your employee Wellness Coordinator, at Christine.H.Johnson@aexp.com, or at extension 57348 to set up an appointment.\r\n</p>\r\n<br /><i>*Services provided by appointment only</i>\r\n'),(4901,294,0.15,'smarty','1','Page created.',1140820252,16,'216.194.127.150','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title}</h1>\r\n\r\n\r\nRegular exercise is a vital part of a healthy lifestyle. Don’t know what to do or how to get started? We can help! Your onsite Wellness Coordinator will meet with you, free of charge, and provide any or all of the following services:\r\n\r\n<p>*Fitness testing, which includes: </p>\r\n<ul>\r\n	<li>Resting heart rate and target heart rate ranges</li>\r\n	<li>Blood pressure testing and tracking</li>\r\n	<li>Weight</li>\r\n	<li>Body fat percentage</li>\r\n	<li>Waist to hip ratio</li>\r\n	<li>Cardiovascular endurance</li>\r\n	<li>Muscular strength and endurance</li>\r\n	<li>Flexibility</li>\r\n</ul>\r\n<p>The Wellness Coordinator will then create a personalized exercise program based on your specific needs and goals. \r\n</p>\r\n<p>*Other services provided free of charge include:</p>\r\n<ul><li>Stress management</li>\r\n<li>On-site group fitness classes</li>\r\n<li>Exercise video/DVD checkouts</li>\r\n<li>Monthly newsletters</li>\r\n<li>Presentations or information on any requested health or fitness topic</li>\r\n<li>Numerous employee incentive programs to keep you motivated!</li>\r\n</ul>\r\n<p>To start achieving your goals <b><u>contact Christy Johnson</u></b>, your employee Wellness Coordinator, at Christine.H.Johnson@aexp.com, or at extension 57348 to set up an appointment.\r\n</p>\r\n<br /><i>*Services provided by appointment only</i>\r\n'),(4902,295,0.10,'smarty','0','Page created.',1140820346,16,'216.194.127.150',''),(4903,295,0.11,'smarty','0','Page created.',1140820410,16,'216.194.127.150','\r\n\r\n\r\nTo start achieving your goals contact Ashley Argyle, your employee Wellness Coordinator, at Ashley.Argyle@williams.com, or at extension 6010 to set up an appointment.'),(4904,295,0.12,'smarty','1','Page created.',1140820805,16,'216.194.127.150','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title}</h1>\r\n\r\n\r\nRegular exercise is a vital part of a healthy lifestyle. Don’t know what to do or how to get started? We can help! Your onsite Wellness Coordinator will meet with you, free of charge, and provide any or all of the following services:\r\n\r\n<p>*Fitness testing, which includes: </p>\r\n<ul>\r\n	<li>Resting heart rate and target heart rate ranges</li>\r\n	<li>Blood pressure testing and tracking</li>\r\n	<li>Weight</li>\r\n	<li>Body fat percentage</li>\r\n	<li>Waist to hip ratio</li>\r\n	<li>Cardiovascular endurance</li>\r\n	<li>Muscular strength and endurance</li>\r\n	<li>Flexibility</li>\r\n</ul>\r\n<p>The Wellness Coordinator will then create a personalized exercise program based on your specific needs and goals. \r\n</p>\r\n<p>*Other services provided free of charge include:</p>\r\n<ul><li>Stress management</li>\r\n<li>On-site group fitness classes</li>\r\n<li>Exercise video/DVD checkouts</li>\r\n<li>Monthly newsletters</li>\r\n<li>Presentations or information on any requested health or fitness topic</li>\r\n<li>Numerous employee incentive programs to keep you motivated!</li>\r\n</ul>\r\n<p>\r\nTo start achieving your goals <b><u>contact Ashley Argyle</u></b>, your employee Wellness Coordinator, at Ashley.Argyle@williams.com, or at extension 6010 to set up an appointment.</p>\r\n<br /><i>*Services provided by appointment only</i>\r\n'),(4905,199,0.31,'smarty','0','Added a page_display for the sub pages.',1140820998,16,'216.194.127.150','{if $smarty.session.company.preferences.hide_nutrition eq \"yes\"}{include file=\"file:layouts/hiddenPageRedirector.tpl\"}{/if}\r\n{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title}</h1>\r\n\r\n<table>\r\n<tr><td valign=\"top\">\r\n	<div style=\"float:right; width:200px;\" align=\"right\">\r\n	{if $smarty.session.company.preferences.hide_shop eq \"yes\"}\r\n		<br /><br /><br />\r\n	{else}\r\n		<a href=\"?pg=my_shop&amp;sub=&amp;tma=VIEW&amp;eids=29\">\r\n		<img src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" class=\"smallCookbook\" /><br />\r\n		Buy a Cookbook</a>\r\n	{/if}\r\n	</div>\r\n	<img src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" class=\"iconEater\" /> \r\n	<p>How nutritious are your meals?  Nutrition is the fuel for your body and is a major factor to your over all health.  Many different chronic diseases are caused by poor eating habits and are very preventable.  Use the links below to learn more about nutrition.</p>\r\n	<br />\r\n	<br />\r\n	<br />\r\n	<br />\r\n<blockquote>\r\n<table width=\"100%\"><tr>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Nutrition Tools:</h3>\r\n		<img src=\"{$skinFolder}images/pliers.gif\" class=\"floatLeft\" />\r\n		<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n		<ul>\r\n{* \r\n{toc_display start_id=248 level_limit=1 hide_start=1}\r\n{literal}\r\n	<li><a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n		<small>{$toc_description}<br /><br /></small></a></li>\r\n{/literal}\r\n{/toc_display}\r\n*}\r\n			<li><a href=\"?pg=recipes\">Recipes<br /><small>Slim and tasty recipies to cut out those calories.<br /><br /></small></a></li>\r\n			<li><a href=\"?pg=dieticianinfo\">Nutrition Coach<br /><small>Set an appointment with an EHC Dietitian today.<br /><br /></small></a></li>\r\n			<li><a href=\"?pg=nutrition\">Nutrition Data<br /><small><br /><br /></small></a></li>\r\n\r\n		</ul></td></tr></table>\r\n		<br />\r\n		<h3>Nutrition Tip:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/tack.gif\" class=\"floatLeft\" />		\r\n		<blockquote class=\"bgWhite\">		\r\n		{include_php file=\"shared_handle:nutrition/echoRandomTip\"}</blockquote>\r\n		<ul>\r\n			<li><a href=\"?pg=tips&sub=dieting_tips\">View All Nutrition Tips</a></li>\r\n		</ul>\r\n		</td>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Nutrition Articles:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/newspaper.gif\" class=\"floatLeft\" />\r\n		<table cellspacing=\"0\" cellpadding=\"0\"><tr><td><ul>\r\n{toc_display start_id=199 level_limit=1 hide_start=1}\r\n{literal}\r\n	<li><a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n		<small>{$toc_description}<br /><br /></small></a></li>\r\n{/literal}\r\n{/toc_display}\r\n		</ul></td></tr></table>\r\n		</td>\r\n	</tr></table>\r\n	</blockquote>\r\n</td></tr>\r\n</table>'),(4906,199,0.32,'smarty','0','Added a page_display for the sub pages.',1140821035,16,'216.194.127.150','{if $smarty.session.company.preferences.hide_nutrition eq \"yes\"}{include file=\"file:layouts/hiddenPageRedirector.tpl\"}{/if}\r\n{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title}</h1>\r\n\r\n<table>\r\n<tr><td valign=\"top\">\r\n	<div style=\"float:right; width:200px;\" align=\"right\">\r\n	{if $smarty.session.company.preferences.hide_shop eq \"yes\"}\r\n		<br /><br /><br />\r\n	{else}\r\n		<a href=\"?pg=my_shop&amp;sub=&amp;tma=VIEW&amp;eids=29\">\r\n		<img src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" class=\"smallCookbook\" /><br />\r\n		Buy a Cookbook</a>\r\n	{/if}\r\n	</div>\r\n	<img src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" class=\"iconEater\" /> \r\n	<p>How nutritious are your meals?  Nutrition is the fuel for your body and is a major factor to your over all health.  Many different chronic diseases are caused by poor eating habits and are very preventable.  Use the links below to learn more about nutrition.</p>\r\n	<br />\r\n	<br />\r\n	<br />\r\n	<br />\r\n<blockquote>\r\n<table width=\"100%\"><tr>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Nutrition Tools:</h3>\r\n		<img src=\"{$skinFolder}images/pliers.gif\" class=\"floatLeft\" />\r\n		<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n		<ul>\r\n{* \r\n{toc_display start_id=248 level_limit=1 hide_start=1}\r\n{literal}\r\n	<li><a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n		<small>{$toc_description}<br /><br /></small></a></li>\r\n{/literal}\r\n{/toc_display}\r\n*}\r\n			<li><a href=\"?pg=recipes\">Recipes<br /><small>Slim and tasty recipies to cut out those calories.<br /><br /></small></a></li>\r\n			\r\n			<li><a href=\"?pg=dieticianinfo\">Nutrition Coach<br /><small>Set an appointment with an EHC Dietitian today.<br /><br /></small></a></li>\r\n			<li><a href=\"?pg=nutrition\">Nutrition Data<br /><small><br /><br /></small></a></li>\r\n\r\n		</ul></td></tr></table>\r\n		<br />\r\n		<h3>Nutrition Tip:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/tack.gif\" class=\"floatLeft\" />		\r\n		<blockquote class=\"bgWhite\">		\r\n		{include_php file=\"shared_handle:nutrition/echoRandomTip\"}</blockquote>\r\n		<ul>\r\n			<li><a href=\"?pg=tips&sub=dieting_tips\">View All Nutrition Tips</a></li>\r\n		</ul>\r\n		</td>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Nutrition Articles:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/newspaper.gif\" class=\"floatLeft\" />\r\n		<table cellspacing=\"0\" cellpadding=\"0\"><tr><td><ul>\r\n{toc_display start_id=199 level_limit=1 hide_start=1}\r\n{literal}\r\n	<li><a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n		<small>{$toc_description}<br /><br /></small></a></li>\r\n{/literal}\r\n{/toc_display}\r\n		</ul></td></tr></table>\r\n		</td>\r\n	</tr></table>\r\n	</blockquote>\r\n</td></tr>\r\n</table>'),(4907,199,0.33,'smarty','0','Added a page_display for the sub pages.',1140821184,16,'216.194.127.150','{if $smarty.session.company.preferences.hide_nutrition eq \"yes\"}{include file=\"file:layouts/hiddenPageRedirector.tpl\"}{/if}\r\n{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title}</h1>\r\n\r\n<table>\r\n<tr><td valign=\"top\">\r\n	<div style=\"float:right; width:200px;\" align=\"right\">\r\n	{if $smarty.session.company.preferences.hide_shop eq \"yes\"}\r\n		<br /><br /><br />\r\n	{else}\r\n		<a href=\"?pg=my_shop&amp;sub=&amp;tma=VIEW&amp;eids=29\">\r\n		<img src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" class=\"smallCookbook\" /><br />\r\n		Buy a Cookbook</a>\r\n	{/if}\r\n	</div>\r\n	<img src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" class=\"iconEater\" /> \r\n	<p>How nutritious are your meals?  Nutrition is the fuel for your body and is a major factor to your over all health.  Many different chronic diseases are caused by poor eating habits and are very preventable.  Use the links below to learn more about nutrition.</p>\r\n	<br />\r\n	<br />\r\n	<br />\r\n	<br />\r\n<blockquote>\r\n<table width=\"100%\"><tr>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Nutrition Tools:</h3>\r\n		<img src=\"{$skinFolder}images/pliers.gif\" class=\"floatLeft\" />\r\n		<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n		<ul>\r\n{* \r\n{toc_display start_id=248 level_limit=1 hide_start=1}\r\n{literal}\r\n	<li><a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n		<small>{$toc_description}<br /><br /></small></a></li>\r\n{/literal}\r\n{/toc_display}\r\n*}\r\n			<li><a href=\"?pg=recipes\">Recipes<br /><small>Slim and tasty recipies to cut out those calories.<br /><br /></small></a></li>\r\n			<li>{if $smarty.session.company.preferences.nutritionCoach}<a href=\"?pg=aexpNutrition\">{$smarty.session.company.preferences.nutritionCoach}</a>{else}\r\n			<a href=\"?pg=dieticianinfo\">Nutrition Coach<br /><small>Set an appointment with an EHC Dietitian today.<br /><br /></small></a></li>\r\n			<li><a href=\"?pg=nutrition\">Nutrition Data<br /><small><br /><br /></small></a></li>\r\n\r\n		</ul></td></tr></table>\r\n		<br />\r\n		<h3>Nutrition Tip:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/tack.gif\" class=\"floatLeft\" />		\r\n		<blockquote class=\"bgWhite\">		\r\n		{include_php file=\"shared_handle:nutrition/echoRandomTip\"}</blockquote>\r\n		<ul>\r\n			<li><a href=\"?pg=tips&sub=dieting_tips\">View All Nutrition Tips</a></li>\r\n		</ul>\r\n		</td>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Nutrition Articles:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/newspaper.gif\" class=\"floatLeft\" />\r\n		<table cellspacing=\"0\" cellpadding=\"0\"><tr><td><ul>\r\n{toc_display start_id=199 level_limit=1 hide_start=1}\r\n{literal}\r\n	<li><a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n		<small>{$toc_description}<br /><br /></small></a></li>\r\n{/literal}\r\n{/toc_display}\r\n		</ul></td></tr></table>\r\n		</td>\r\n	</tr></table>\r\n	</blockquote>\r\n</td></tr>\r\n</table>'),(4908,199,0.34,'smarty','0','Added a page_display for the sub pages.',1140821349,16,'216.194.127.150','{if $smarty.session.company.preferences.hide_nutrition eq \"yes\"}{include file=\"file:layouts/hiddenPageRedirector.tpl\"}{/if}\r\n{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title}</h1>\r\n\r\n<table>\r\n<tr><td valign=\"top\">\r\n	<div style=\"float:right; width:200px;\" align=\"right\">\r\n	{if $smarty.session.company.preferences.hide_shop eq \"yes\"}\r\n		<br /><br /><br />\r\n	{else}\r\n		<a href=\"?pg=my_shop&amp;sub=&amp;tma=VIEW&amp;eids=29\">\r\n		<img src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" class=\"smallCookbook\" /><br />\r\n		Buy a Cookbook</a>\r\n	{/if}\r\n	</div>\r\n	<img src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" class=\"iconEater\" /> \r\n	<p>How nutritious are your meals?  Nutrition is the fuel for your body and is a major factor to your over all health.  Many different chronic diseases are caused by poor eating habits and are very preventable.  Use the links below to learn more about nutrition.</p>\r\n	<br />\r\n	<br />\r\n	<br />\r\n	<br />\r\n<blockquote>\r\n<table width=\"100%\"><tr>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Nutrition Tools:</h3>\r\n		<img src=\"{$skinFolder}images/pliers.gif\" class=\"floatLeft\" />\r\n		<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n		<ul>\r\n{* \r\n{toc_display start_id=248 level_limit=1 hide_start=1}\r\n{literal}\r\n	<li><a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n		<small>{$toc_description}<br /><br /></small></a></li>\r\n{/literal}\r\n{/toc_display}\r\n*}\r\n			<li><a href=\"?pg=recipes\">Recipes<br /><small>Slim and tasty recipies to cut out those calories.<br /><br /></small></a></li>\r\n			<li>{if $smarty.session.company.preferences.nutritionCoach}<a href=\"?pg=aexpNutrition\">{$smarty.session.company.preferences.nutritionCoach}</a>{else}\r\n			<a href=\"?pg=dieticianinfo\">Nutrition Coach<br /><small>Set an appointment with an EHC Dietitian today.<br /><br /></small></a></li></if>\r\n			<li><a href=\"?pg=nutrition\">Nutrition Data<br /><small><br /><br /></small></a></li>\r\n\r\n		</ul></td></tr></table>\r\n		<br />\r\n		<h3>Nutrition Tip:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/tack.gif\" class=\"floatLeft\" />		\r\n		<blockquote class=\"bgWhite\">		\r\n		{include_php file=\"shared_handle:nutrition/echoRandomTip\"}</blockquote>\r\n		<ul>\r\n			<li><a href=\"?pg=tips&sub=dieting_tips\">View All Nutrition Tips</a></li>\r\n		</ul>\r\n		</td>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Nutrition Articles:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/newspaper.gif\" class=\"floatLeft\" />\r\n		<table cellspacing=\"0\" cellpadding=\"0\"><tr><td><ul>\r\n{toc_display start_id=199 level_limit=1 hide_start=1}\r\n{literal}\r\n	<li><a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n		<small>{$toc_description}<br /><br /></small></a></li>\r\n{/literal}\r\n{/toc_display}\r\n		</ul></td></tr></table>\r\n		</td>\r\n	</tr></table>\r\n	</blockquote>\r\n</td></tr>\r\n</table>'),(4909,199,0.35,'smarty','0','Added a page_display for the sub pages.',1140821453,16,'216.194.127.150','{if $smarty.session.company.preferences.hide_nutrition eq \"yes\"}{include file=\"file:layouts/hiddenPageRedirector.tpl\"}{/if}\r\n{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title}</h1>\r\n\r\n<table>\r\n<tr><td valign=\"top\">\r\n	<div style=\"float:right; width:200px;\" align=\"right\">\r\n	{if $smarty.session.company.preferences.hide_shop eq \"yes\"}\r\n		<br /><br /><br />\r\n	{else}\r\n		<a href=\"?pg=my_shop&amp;sub=&amp;tma=VIEW&amp;eids=29\">\r\n		<img src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" class=\"smallCookbook\" /><br />\r\n		Buy a Cookbook</a>\r\n	{/if}\r\n	</div>\r\n	<img src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" class=\"iconEater\" /> \r\n	<p>How nutritious are your meals?  Nutrition is the fuel for your body and is a major factor to your over all health.  Many different chronic diseases are caused by poor eating habits and are very preventable.  Use the links below to learn more about nutrition.</p>\r\n	<br />\r\n	<br />\r\n	<br />\r\n	<br />\r\n<blockquote>\r\n<table width=\"100%\"><tr>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Nutrition Tools:</h3>\r\n		<img src=\"{$skinFolder}images/pliers.gif\" class=\"floatLeft\" />\r\n		<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n		<ul>\r\n{* \r\n{toc_display start_id=248 level_limit=1 hide_start=1}\r\n{literal}\r\n	<li><a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n		<small>{$toc_description}<br /><br /></small></a></li>\r\n{/literal}\r\n{/toc_display}\r\n*}\r\n			<li><a href=\"?pg=recipes\">Recipes<br /><small>Slim and tasty recipies to cut out those calories.<br /><br /></small></a></li>\r\n			<li><a href=\"?pg=dieticianinfo\">Nutrition Coach<br /><small>Set an appointment with an EHC Dietitian today.<br /><br /></small></a></li></if>\r\n			<li><a href=\"?pg=nutrition\">Nutrition Data<br /><small><br /><br /></small></a></li>\r\n\r\n		</ul></td></tr></table>\r\n		<br />\r\n		<h3>Nutrition Tip:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/tack.gif\" class=\"floatLeft\" />		\r\n		<blockquote class=\"bgWhite\">		\r\n		{include_php file=\"shared_handle:nutrition/echoRandomTip\"}</blockquote>\r\n		<ul>\r\n			<li><a href=\"?pg=tips&sub=dieting_tips\">View All Nutrition Tips</a></li>\r\n		</ul>\r\n		</td>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Nutrition Articles:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/newspaper.gif\" class=\"floatLeft\" />\r\n		<table cellspacing=\"0\" cellpadding=\"0\"><tr><td><ul>\r\n{toc_display start_id=199 level_limit=1 hide_start=1}\r\n{literal}\r\n	<li><a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n		<small>{$toc_description}<br /><br /></small></a></li>\r\n{/literal}\r\n{/toc_display}\r\n		</ul></td></tr></table>\r\n		</td>\r\n	</tr></table>\r\n	</blockquote>\r\n</td></tr>\r\n</table>'),(4910,199,0.36,'smarty','0','Added a page_display for the sub pages.',1140821628,16,'216.194.127.150','{if $smarty.session.company.preferences.hide_nutrition eq \"yes\"}{include file=\"file:layouts/hiddenPageRedirector.tpl\"}{/if}\r\n{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title}</h1>\r\n\r\n<table>\r\n<tr><td valign=\"top\">\r\n	<div style=\"float:right; width:200px;\" align=\"right\">\r\n	{if $smarty.session.company.preferences.hide_shop eq \"yes\"}\r\n		<br /><br /><br />\r\n	{else}\r\n		<a href=\"?pg=my_shop&amp;sub=&amp;tma=VIEW&amp;eids=29\">\r\n		<img src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" class=\"smallCookbook\" /><br />\r\n		Buy a Cookbook</a>\r\n	{/if}\r\n	</div>\r\n	<img src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" class=\"iconEater\" /> \r\n	<p>How nutritious are your meals?  Nutrition is the fuel for your body and is a major factor to your over all health.  Many different chronic diseases are caused by poor eating habits and are very preventable.  Use the links below to learn more about nutrition.</p>\r\n	<br />\r\n	<br />\r\n	<br />\r\n	<br />\r\n<blockquote>\r\n<table width=\"100%\"><tr>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Nutrition Tools:</h3>\r\n		<img src=\"{$skinFolder}images/pliers.gif\" class=\"floatLeft\" />\r\n		<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n		<ul>\r\n{* \r\n{toc_display start_id=248 level_limit=1 hide_start=1}\r\n{literal}\r\n	<li><a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n		<small>{$toc_description}<br /><br /></small></a></li>\r\n{/literal}\r\n{/toc_display}\r\n*}\r\n			<li><a href=\"?pg=recipes\">Recipes<br /><small>Slim and tasty recipies to cut out those calories.<br /><br /></small></a></li>\r\n			<li>{if $smarty.session.company.preferences.nutritionCoach}<a href=\"?pg=aexpNutrition\">{$smarty.session.company.preferences.nutritionCoach}</a></li>{else}\r\n			<li><a href=\"?pg=dieticianinfo\">Nutrition Coach<br /><small>Set an appointment with an EHC Dietitian today.<br /><br /></small></a></li>{/if}\r\n			<li><a href=\"?pg=nutrition\">Nutrition Data<br /><small><br /><br /></small></a></li>\r\n\r\n		</ul></td></tr></table>\r\n		<br />\r\n		<h3>Nutrition Tip:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/tack.gif\" class=\"floatLeft\" />		\r\n		<blockquote class=\"bgWhite\">		\r\n		{include_php file=\"shared_handle:nutrition/echoRandomTip\"}</blockquote>\r\n		<ul>\r\n			<li><a href=\"?pg=tips&sub=dieting_tips\">View All Nutrition Tips</a></li>\r\n		</ul>\r\n		</td>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Nutrition Articles:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/newspaper.gif\" class=\"floatLeft\" />\r\n		<table cellspacing=\"0\" cellpadding=\"0\"><tr><td><ul>\r\n{toc_display start_id=199 level_limit=1 hide_start=1}\r\n{literal}\r\n	<li><a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n		<small>{$toc_description}<br /><br /></small></a></li>\r\n{/literal}\r\n{/toc_display}\r\n		</ul></td></tr></table>\r\n		</td>\r\n	</tr></table>\r\n	</blockquote>\r\n</td></tr>\r\n</table>'),(4911,199,0.37,'smarty','0','Added a page_display for the sub pages.',1140821669,16,'216.194.127.150','{if $smarty.session.company.preferences.hide_nutrition eq \"yes\"}{include file=\"file:layouts/hiddenPageRedirector.tpl\"}{/if}\r\n{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title}</h1>\r\n\r\n<table>\r\n<tr><td valign=\"top\">\r\n	<div style=\"float:right; width:200px;\" align=\"right\">\r\n	{if $smarty.session.company.preferences.hide_shop eq \"yes\"}\r\n		<br /><br /><br />\r\n	{else}\r\n		<a href=\"?pg=my_shop&amp;sub=&amp;tma=VIEW&amp;eids=29\">\r\n		<img src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" class=\"smallCookbook\" /><br />\r\n		Buy a Cookbook</a>\r\n	{/if}\r\n	</div>\r\n	<img src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" class=\"iconEater\" /> \r\n	<p>How nutritious are your meals?  Nutrition is the fuel for your body and is a major factor to your over all health.  Many different chronic diseases are caused by poor eating habits and are very preventable.  Use the links below to learn more about nutrition.</p>\r\n	<br />\r\n	<br />\r\n	<br />\r\n	<br />\r\n<blockquote>\r\n<table width=\"100%\"><tr>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Nutrition Tools:</h3>\r\n		<img src=\"{$skinFolder}images/pliers.gif\" class=\"floatLeft\" />\r\n		<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n		<ul>\r\n{* \r\n{toc_display start_id=248 level_limit=1 hide_start=1}\r\n{literal}\r\n	<li><a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n		<small>{$toc_description}<br /><br /></small></a></li>\r\n{/literal}\r\n{/toc_display}\r\n*}\r\n			<li><a href=\"?pg=recipes\">Recipes<br /><small>Slim and tasty recipies to cut out those calories.<br /><br /></small></a></li>\r\n			<li>{if $smarty.session.company.preferences.nutritionCoach}<a href=\"?pg=aexpNutrition\">{$smarty.session.company.preferences.nutritionCoach}</a></li>{else}\r\n			<li><a href=\"?pg=dieticianinfo\">Nutrition Coach<br /><small>Set an appointment with an EHC Dietitian today.<br /><br /></small></a></li>{/if}<br /><br />\r\n			<li><a href=\"?pg=nutrition\">Nutrition Data<br /><small><br /><br /></small></a></li>\r\n\r\n		</ul></td></tr></table>\r\n		<br />\r\n		<h3>Nutrition Tip:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/tack.gif\" class=\"floatLeft\" />		\r\n		<blockquote class=\"bgWhite\">		\r\n		{include_php file=\"shared_handle:nutrition/echoRandomTip\"}</blockquote>\r\n		<ul>\r\n			<li><a href=\"?pg=tips&sub=dieting_tips\">View All Nutrition Tips</a></li>\r\n		</ul>\r\n		</td>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Nutrition Articles:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/newspaper.gif\" class=\"floatLeft\" />\r\n		<table cellspacing=\"0\" cellpadding=\"0\"><tr><td><ul>\r\n{toc_display start_id=199 level_limit=1 hide_start=1}\r\n{literal}\r\n	<li><a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n		<small>{$toc_description}<br /><br /></small></a></li>\r\n{/literal}\r\n{/toc_display}\r\n		</ul></td></tr></table>\r\n		</td>\r\n	</tr></table>\r\n	</blockquote>\r\n</td></tr>\r\n</table>'),(4912,296,0.10,'smarty','0','Page created.',1140821746,16,'216.194.127.150',''),(4913,296,0.11,'smarty','0','Page created.',1140821820,16,'216.194.127.150','Eating the right amounts of the right food is critical for losing or maintaining weight and living a healthy lifestyle. Don’t know where to start? Get one on one help with a personal nutrition consultation! Learn what you can do to reach YOUR weight loss and health goals.\r\n\r\nYour onsite wellness coordinator offers personalized nutrition plans and nutrition counseling designed specifically for you!\r\n\r\nThe wellness coordinator will: \r\n\r\n•	Create a personalized nutrition plan for you based on your goals\r\n\r\n•	Educate you about healthy eating and guide you on such dilemmas as eating out and reading food labels\r\n\r\n•	Motivate you through regular correspondence\r\n\r\n•	Follow your progress and adjust your plan if needed \r\n\r\n\r\nIt’s Easy, Here’s how it works: \r\n\r\nTo start achieving your personal nutrition goals, contact your employee wellness coordinator at\r\nExtension 57348 or via email at Christine.H.Johnson@aexp.com\r\n\r\nThe wellness coordinator will discuss your goals and preferences, any nutrition-related health conditions you may have (diabetes, allergies, etc.), and create your nutrition plan with sample menus and explain these to you. You\'ll also receive a food tracking card to help you in following your nutrition plan.\r\n\r\n\r\nThe whole package is FREE. Contact your employee wellness coordinator today and you\'ll be on your way to better health! \r\n\r\n\r\n\r\n'),(4914,296,0.12,'smarty','0','Page created.',1140821852,16,'216.194.127.150','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title}</h1>\r\n\r\n\r\nEating the right amounts of the right food is critical for losing or maintaining weight and living a healthy lifestyle. Don’t know where to start? Get one on one help with a personal nutrition consultation! Learn what you can do to reach YOUR weight loss and health goals.\r\n\r\nYour onsite wellness coordinator offers personalized nutrition plans and nutrition counseling designed specifically for you!\r\n\r\nThe wellness coordinator will: \r\n\r\n•	Create a personalized nutrition plan for you based on your goals\r\n\r\n•	Educate you about healthy eating and guide you on such dilemmas as eating out and reading food labels\r\n\r\n•	Motivate you through regular correspondence\r\n\r\n•	Follow your progress and adjust your plan if needed \r\n\r\n\r\nIt’s Easy, Here’s how it works: \r\n\r\nTo start achieving your personal nutrition goals, contact your employee wellness coordinator at\r\nExtension 57348 or via email at Christine.H.Johnson@aexp.com\r\n\r\nThe wellness coordinator will discuss your goals and preferences, any nutrition-related health conditions you may have (diabetes, allergies, etc.), and create your nutrition plan with sample menus and explain these to you. You\'ll also receive a food tracking card to help you in following your nutrition plan.\r\n\r\n\r\nThe whole package is FREE. Contact your employee wellness coordinator today and you\'ll be on your way to better health! \r\n\r\n\r\n\r\n'),(4915,296,0.13,'smarty','0','Page created.',1140821967,16,'216.194.127.150','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title}</h1>\r\n\r\n\r\n<p>Eating the right amounts of the right food is critical for losing or maintaining weight and living a healthy lifestyle. Don’t know where to start? Get one on one help with a personal nutrition consultation! Learn what you can do to reach YOUR weight loss and health goals.\r\n\r\n</p><p>Your onsite wellness coordinator offers personalized nutrition plans and nutrition counseling designed specifically for you!\r\n\r\n</p><p>The wellness coordinator will: \r\n\r\n<ul>\r\n	<li>Create a personalized nutrition plan for you based on your goals</li>\r\n\r\n	<li>Educate you about healthy eating and guide you on such dilemmas as eating out and reading food labels</li>\r\n\r\n	<li>Motivate you through regular correspondence</li>\r\n\r\n	<li>Follow your progress and adjust your plan if needed </li>\r\n\r\n</ul>\r\n<p>It’s Easy, Here’s how it works: \r\n</p>\r\n<p>To start achieving your personal nutrition goals, contact your employee wellness coordinator at\r\nExtension 57348 or via email at Christine.H.Johnson@aexp.com\r\n</p>\r\n<p>The wellness coordinator will discuss your goals and preferences, any nutrition-related health conditions you may have (diabetes, allergies, etc.), and create your nutrition plan with sample menus and explain these to you. You\'ll also receive a food tracking card to help you in following your nutrition plan.\r\n</p>\r\n\r\n<p>The whole package is FREE. Contact your employee wellness coordinator today and you\'ll be on your way to better health! \r\n\r\n</p>'),(4916,199,0.38,'smarty','0','Added a page_display for the sub pages.',1140821994,16,'216.194.127.150','{if $smarty.session.company.preferences.hide_nutrition eq \"yes\"}{include file=\"file:layouts/hiddenPageRedirector.tpl\"}{/if}\r\n{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title}</h1>\r\n\r\n<table>\r\n<tr><td valign=\"top\">\r\n	<div style=\"float:right; width:200px;\" align=\"right\">\r\n	{if $smarty.session.company.preferences.hide_shop eq \"yes\"}\r\n		<br /><br /><br />\r\n	{else}\r\n		<a href=\"?pg=my_shop&amp;sub=&amp;tma=VIEW&amp;eids=29\">\r\n		<img src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" class=\"smallCookbook\" /><br />\r\n		Buy a Cookbook</a>\r\n	{/if}\r\n	</div>\r\n	<img src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" class=\"iconEater\" /> \r\n	<p>How nutritious are your meals?  Nutrition is the fuel for your body and is a major factor to your over all health.  Many different chronic diseases are caused by poor eating habits and are very preventable.  Use the links below to learn more about nutrition.</p>\r\n	<br />\r\n	<br />\r\n	<br />\r\n	<br />\r\n<blockquote>\r\n<table width=\"100%\"><tr>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Nutrition Tools:</h3>\r\n		<img src=\"{$skinFolder}images/pliers.gif\" class=\"floatLeft\" />\r\n		<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n		<ul>\r\n{* \r\n{toc_display start_id=248 level_limit=1 hide_start=1}\r\n{literal}\r\n	<li><a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n		<small>{$toc_description}<br /><br /></small></a></li>\r\n{/literal}\r\n{/toc_display}\r\n*}\r\n			<li><a href=\"?pg=recipes\">Recipes<br /><small>Slim and tasty recipies to cut out those calories.<br /><br /></small></a></li>\r\n			<li>{if $smarty.session.company.preferences.nutritionCoach}<a href=\"?pg=aexpNutritionCoach\">{$smarty.session.company.preferences.nutritionCoach}</a></li>{else}\r\n			<li><a href=\"?pg=dieticianinfo\">Nutrition Coach<br /><small>Set an appointment with an EHC Dietitian today.<br /><br /></small></a></li>{/if}<br /><br />\r\n			<li><a href=\"?pg=nutrition\">Nutrition Data<br /><small><br /><br /></small></a></li>\r\n\r\n		</ul></td></tr></table>\r\n		<br />\r\n		<h3>Nutrition Tip:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/tack.gif\" class=\"floatLeft\" />		\r\n		<blockquote class=\"bgWhite\">		\r\n		{include_php file=\"shared_handle:nutrition/echoRandomTip\"}</blockquote>\r\n		<ul>\r\n			<li><a href=\"?pg=tips&sub=dieting_tips\">View All Nutrition Tips</a></li>\r\n		</ul>\r\n		</td>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Nutrition Articles:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/newspaper.gif\" class=\"floatLeft\" />\r\n		<table cellspacing=\"0\" cellpadding=\"0\"><tr><td><ul>\r\n{toc_display start_id=199 level_limit=1 hide_start=1}\r\n{literal}\r\n	<li><a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n		<small>{$toc_description}<br /><br /></small></a></li>\r\n{/literal}\r\n{/toc_display}\r\n		</ul></td></tr></table>\r\n		</td>\r\n	</tr></table>\r\n	</blockquote>\r\n</td></tr>\r\n</table>'),(4917,199,0.39,'smarty','0','Added a page_display for the sub pages.',1140822066,16,'216.194.127.150','{if $smarty.session.company.preferences.hide_nutrition eq \"yes\"}{include file=\"file:layouts/hiddenPageRedirector.tpl\"}{/if}\r\n{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title}</h1>\r\n\r\n<table>\r\n<tr><td valign=\"top\">\r\n	<div style=\"float:right; width:200px;\" align=\"right\">\r\n	{if $smarty.session.company.preferences.hide_shop eq \"yes\"}\r\n		<br /><br /><br />\r\n	{else}\r\n		<a href=\"?pg=my_shop&amp;sub=&amp;tma=VIEW&amp;eids=29\">\r\n		<img src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" class=\"smallCookbook\" /><br />\r\n		Buy a Cookbook</a>\r\n	{/if}\r\n	</div>\r\n	<img src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" class=\"iconEater\" /> \r\n	<p>How nutritious are your meals?  Nutrition is the fuel for your body and is a major factor to your over all health.  Many different chronic diseases are caused by poor eating habits and are very preventable.  Use the links below to learn more about nutrition.</p>\r\n	<br />\r\n	<br />\r\n	<br />\r\n	<br />\r\n<blockquote>\r\n<table width=\"100%\"><tr>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Nutrition Tools:</h3>\r\n		<img src=\"{$skinFolder}images/pliers.gif\" class=\"floatLeft\" />\r\n		<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n		<ul>\r\n{* \r\n{toc_display start_id=248 level_limit=1 hide_start=1}\r\n{literal}\r\n	<li><a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n		<small>{$toc_description}<br /><br /></small></a></li>\r\n{/literal}\r\n{/toc_display}\r\n*}\r\n			<li><a href=\"?pg=recipes\">Recipes<br /><small>Slim and tasty recipies to cut out those calories.<br /><br /></small></a></li>\r\n			<li>{if $smarty.session.company.preferences.nutritionCoach}<a href=\"?pg=aexpNutritionCoach\">{$smarty.session.company.preferences.nutritionCoach}</a></li>{else}\r\n			<li><a href=\"?pg=dieticianinfo\">Nutrition Coach<br /><small>Set an appointment with an EHC Dietitian today.<br /><br /></small></a></li>{/if}<br /><br />\r\n			<li><a href=\"?pg=nutrition\">Nutrition Data<br /><small><br /><br /></small></a></li>\r\n\r\n		</ul></td></tr></table>\r\n		<br />\r\n		<h3>Nutrition Tip:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/tack.gif\" class=\"floatLeft\" />	\r\n		<blockquote class=\"bgWhite\">		\r\n		{include_php file=\"shared_handle:nutrition/echoRandomTip\"}</blockquote>\r\n		<ul>\r\n			<li><a href=\"?pg=tips&sub=dieting_tips\">View All Nutrition Tips</a></li>\r\n		</ul>\r\n		</td>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Nutrition Articles:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/newspaper.gif\" class=\"floatLeft\" />\r\n		<table cellspacing=\"0\" cellpadding=\"0\"><tr><td><ul>\r\n{toc_display start_id=199 level_limit=1 hide_start=1}\r\n{literal}\r\n	<li><a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n		<small>{$toc_description}<br /><br /></small></a></li>\r\n{/literal}\r\n{/toc_display}\r\n		</ul></td></tr></table>\r\n		</td>\r\n	</tr></table>\r\n	</blockquote>\r\n</td></tr>\r\n</table>'),(4918,296,0.14,'smarty','0','Page created.',1140822113,16,'216.194.127.150','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title}</h1>\r\n\r\n\r\n<p>Eating the right amounts of the right food is critical for losing or maintaining weight and living a healthy lifestyle. Don’t know where to start? Get one on one help with a personal nutrition consultation! Learn what you can do to reach YOUR weight loss and health goals.\r\n\r\n</p><p>Your onsite wellness coordinator offers personalized nutrition plans and nutrition counseling designed specifically for you!\r\n\r\n</p><p>The wellness coordinator will: \r\n\r\n<ul>\r\n	<li>Create a personalized nutrition plan for you based on your goals</li>\r\n\r\n	<li>Educate you about healthy eating and guide you on such dilemmas as eating out and reading food labels</li>\r\n\r\n	<li>Motivate you through regular correspondence</li>\r\n\r\n	<li>Follow your progress and adjust your plan if needed </li>\r\n\r\n</ul>\r\n<p>It’s Easy, Here’s how it works: \r\n</p>\r\n<p>To start achieving your personal nutrition goals, contact your employee wellness coordinator at\r\nExtension 57348 or via email at Christine.H.Johnson@aexp.com\r\n</p>\r\n<p>The wellness coordinator will discuss your goals and preferences, any nutrition-related health conditions you may have (diabetes, allergies, etc.), and create your nutrition plan with sample menus and explain these to you. You\'ll also receive a food tracking card to help you in following your nutrition plan.\r\n</p>\r\n\r\n<p>The whole package is FREE. <b><u>Contact</u></b> your employee wellness coordinator today and you\'ll be on your way to better health! \r\n\r\n</p>'),(4919,296,0.15,'smarty','1','Page created.',1140822146,16,'216.194.127.150','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title}</h1>\r\n\r\n\r\n<p>Eating the right amounts of the right food is critical for losing or maintaining weight and living a healthy lifestyle. Don’t know where to start? Get one on one help with a personal nutrition consultation! Learn what you can do to reach YOUR weight loss and health goals.\r\n\r\n</p><p>Your onsite wellness coordinator offers personalized nutrition plans and nutrition counseling designed specifically for you!\r\n\r\n</p><p>The wellness coordinator will: \r\n\r\n<ul>\r\n	<li>Create a personalized nutrition plan for you based on your goals</li>\r\n\r\n	<li>Educate you about healthy eating and guide you on such dilemmas as eating out and reading food labels</li>\r\n\r\n	<li>Motivate you through regular correspondence</li>\r\n\r\n	<li>Follow your progress and adjust your plan if needed </li>\r\n\r\n</ul>\r\n<p>It’s Easy, Here’s how it works: \r\n</p>\r\n<p>To start achieving your personal nutrition goals, <b><u>contact</u></b> your employee wellness coordinator at\r\nExtension 57348 or via email at Christine.H.Johnson@aexp.com\r\n</p>\r\n<p>The wellness coordinator will discuss your goals and preferences, any nutrition-related health conditions you may have (diabetes, allergies, etc.), and create your nutrition plan with sample menus and explain these to you. You\'ll also receive a food tracking card to help you in following your nutrition plan.\r\n</p>\r\n\r\n<p>The whole package is FREE. <b><u>Contact</u></b> your employee wellness coordinator today and you\'ll be on your way to better health! \r\n\r\n</p>'),(4920,199,0.40,'smarty','0','Added a page_display for the sub pages.',1140823543,16,'216.194.127.150','{if $smarty.session.company.preferences.hide_nutrition eq \"yes\"}{include file=\"file:layouts/hiddenPageRedirector.tpl\"}{/if}\r\n{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title}</h1>\r\n\r\n<table>\r\n<tr><td valign=\"top\">\r\n	<div style=\"float:right; width:200px;\" align=\"right\">\r\n	{if $smarty.session.company.preferences.hide_shop eq \"yes\"}\r\n		<br /><br /><br />\r\n	{else}\r\n		<a href=\"?pg=my_shop&amp;sub=&amp;tma=VIEW&amp;eids=29\">\r\n		<img src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" class=\"smallCookbook\" /><br />\r\n		Buy a Cookbook</a>\r\n	{/if}\r\n	</div>\r\n	<img src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" class=\"iconEater\" /> \r\n	<p>How nutritious are your meals?  Nutrition is the fuel for your body and is a major factor to your over all health.  Many different chronic diseases are caused by poor eating habits and are very preventable.  Use the links below to learn more about nutrition.</p>\r\n	<br />\r\n	<br />\r\n	<br />\r\n	<br />\r\n<blockquote>\r\n<table width=\"100%\"><tr>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Nutrition Tools:</h3>\r\n		<img src=\"{$skinFolder}images/pliers.gif\" class=\"floatLeft\" />\r\n		<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n		<ul>\r\n{* \r\n{toc_display start_id=248 level_limit=1 hide_start=1}\r\n{literal}\r\n	<li><a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n		<small>{$toc_description}<br /><br /></small></a></li>\r\n{/literal}\r\n{/toc_display}\r\n*}\r\n			<li><a href=\"?pg=recipes\">Recipes<br /><small>Slim and tasty recipies to cut out those calories.<br /><br /></small></a></li>\r\n			<li>{if $smarty.session.company.preferences.nutritionCoach}{$smarty.session.company.preferences.nutritionCoach}</li>{else}\r\n			<li><a href=\"?pg=dieticianinfo\">Nutrition Coach<br /><small>Set an appointment with an EHC Dietitian today.<br /><br /></small></a></li>{/if}<br /><br />\r\n			<li><a href=\"?pg=nutrition\">Nutrition Data<br /><small><br /><br /></small></a></li>\r\n\r\n		</ul></td></tr></table>\r\n		<br />\r\n		<h3>Nutrition Tip:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/tack.gif\" class=\"floatLeft\" />	\r\n		<blockquote class=\"bgWhite\">		\r\n		{include_php file=\"shared_handle:nutrition/echoRandomTip\"}</blockquote>\r\n		<ul>\r\n			<li><a href=\"?pg=tips&sub=dieting_tips\">View All Nutrition Tips</a></li>\r\n		</ul>\r\n		</td>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Nutrition Articles:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/newspaper.gif\" class=\"floatLeft\" />\r\n		<table cellspacing=\"0\" cellpadding=\"0\"><tr><td><ul>\r\n{toc_display start_id=199 level_limit=1 hide_start=1}\r\n{literal}\r\n	<li><a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n		<small>{$toc_description}<br /><br /></small></a></li>\r\n{/literal}\r\n{/toc_display}\r\n		</ul></td></tr></table>\r\n		</td>\r\n	</tr></table>\r\n	</blockquote>\r\n</td></tr>\r\n</table>'),(4921,198,0.51,'smarty','0','added hiddenPageRedirector',1140825416,16,'216.194.127.150','{if $smarty.session.company.preferences.hide_fitness eq \"yes\"}{include file=\"file:layouts/hiddenPageRedirector.tpl\"}{/if}\r\n{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title}</h1>\r\n\r\n<table>\r\n<tr><td valign=\"top\">\r\n	<div align=\"right\" style=\"width:200px; float:right;\">\r\n	{if $smarty.session.company.preferences.hide_shop eq \"yes\"}\r\n		<br /><br /><br />\r\n	{else}\r\n		<a href=\"?pg=my_shop&sub=&tma=VIEW&eids=9\"><img id=\"pedometerDealImg\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" /><br style=\"clear:both;\" />\r\n		Buy a Pedometer</a>\r\n	{/if}\r\n	</div>\r\n\r\n	<img src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" class=\"iconJoggers\" /> \r\n	<p>Its time to get Active!  Below you will find links that can help you understand ways to get exercise and be safe. Remember, the most difficult hurdle to exercise is time - but you must make time. Check out the \"At the Office\" link for things you can do at work.</p>\r\n	<br />\r\n	<br />\r\n<blockquote>\r\n<table width=\"100%\" cellspacing=\"10\"><tr>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Fitness Tools:</h3>\r\n		<img src=\"{$skinFolder}images/pliers.gif\" class=\"floatLeft\" />\r\n		<table cellspacing=\"0\" cellpadding=\"0\"><tr><td>\r\n		<ul>\r\n{toc_display start_id=247 level_limit=1 hide_start=1}\r\n{if $smarty.session.company.preferences.personalTrainer}{$smarty.session.company.preferences.personalTrainer}{else}\r\n{literal}\r\n		<li><a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n		<small>{$toc_description}<br /><br /></small></a></li>\r\n{/literal}\r\n{/if}\r\n{/toc_display}\r\n		</ul></td></tr></table>\r\n		<br class=\"clearLeft\" />\r\n		<br />\r\n		<h3>Fitness Tip:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/tack.gif\" class=\"floatLeft\" />\r\n		<blockquote class=\"bgWhite\">{include_php file=\"shared_handle:fitness/echoRandomTip\"}</blockquote>\r\n		<ul>\r\n			<li><a href=\"?pg=tips&sub=exercise_tips\">View All Fitness Tips</a></li>\r\n		</ul>\r\n		</td>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<h3>Fitness Articles:</h3>\r\n		<img src=\"{$skinFolder}images/ehc/newspaper.gif\" class=\"floatLeft\" />\r\n		<table><tr><td><ul>\r\n{toc_display start_id=198 level_limit=1 hide_start=1}\r\n{literal}\r\n		<li><a href=\"?pg={$toc_pageName}\">{$toc_title}<br />\r\n			<small>{$toc_description}<br /><br /></small></a></li>\r\n{/literal}\r\n{/toc_display}\r\n		</ul></td></tr></table>\r\n		</td>\r\n	</tr></table>\r\n	</blockquote>\r\n</td></tr>\r\n</table>'),(4924,297,0.12,'smarty','1','Page created.',1140825815,16,'216.194.127.150','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title}</h1>\r\n\r\n\r\n<p>Eating the right amounts of the right food is critical for losing or maintaining weight and living a healthy lifestyle. Don’t know where to start? Get one on one help with a personal nutrition consultation! Learn what you can do to reach YOUR weight loss and health goals.\r\n\r\n</p><p>Your onsite wellness coordinator offers personalized nutrition plans and nutrition counseling designed specifically for you!\r\n\r\n</p><p>The wellness coordinator will: \r\n\r\n<ul>\r\n	<li>Create a personalized nutrition plan for you based on your goals</li>\r\n\r\n	<li>Educate you about healthy eating and guide you on such dilemmas as eating out and reading food labels</li>\r\n\r\n	<li>Motivate you through regular correspondence</li>\r\n\r\n	<li>Follow your progress and adjust your plan if needed </li>\r\n\r\n</ul>\r\n<p>It’s Easy, Here’s how it works: \r\n</p>\r\n<p>To start achieving your personal nutrition goals, <b><u>contact</u></b> your employee wellness coordinator at\r\nX6010 or via email ashley.argyle@williams.com\r\n</p>\r\n<p>The wellness coordinator will discuss your goals and preferences, any nutrition-related health conditions you may have (diabetes, allergies, etc.), and create your nutrition plan with sample menus and explain these to you. You\'ll also receive a food tracking card to help you in following your nutrition plan.\r\n</p>\r\n\r\n<p>The whole package is FREE. <b><u>Contact</u></b> your employee wellness coordinator today and you\'ll be on your way to better health! \r\n\r\n</p>'),(4925,286,0.17,'smarty','1','Page created.',1141106554,2,'24.2.76.126','{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{include_php file=\"shared_handle:company/healthyForLifeSurveyList\"}\r\n\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title}</h1>\r\n\r\n<table width=\"100%\"><tr><td valign=\"top\">\r\n	<img class=\"iconClipboard\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" />\r\n</td><td valign=\"top\" width=\"100%\">\r\n	Welcome to Healthy For Life 2006. Participants in this program are awarded points for completing additional activities. Take this short assessment each month and the points you have earned will be tracked throughout the year. This will also serve as a reminder of activities that need to be completed. Remember- proper documentation, including the wellness coordinator’s initials, will still be required.  	\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</tr>\r\n</table>\r\n</blockquote>'),(4926,196,1.64,'smarty','0','Fixing healthy for life link stuff',1141107364,2,'24.2.76.126','{if $smarty.session.company.preferences.hide_incentives eq \"yes\"}{include file=\"file:layouts/hiddenPageRedirector.tpl\"}{/if}\r\n{include file=\"layouts/forceLoggedIn.tpl\"}\r\n\r\n{* HANDLERS *}\r\n{include_php file=\"shared_handle:company/participationPoints_v2\"}\r\n{include_php file=\"shared_handle:company/surveyList\"}\r\n{include_php file=\"shared_handle:company/incentivePointAdjustments\"}\r\n\r\n\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{if $smarty.session.company.preferences.title_my_incentives}{$smarty.session.company.preferences.title_my_incentives}</h1>{else}\r\n<h1>{$page.title}</h1>{/if}\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	{$incentiveText|default:\"<em>Yearly Incentive</em><br /><br />Not Yet Determined.\"}	\r\n</td></tr>\r\n</table>\r\n<br />\r\n{assign var=\"surveyPointsEarned\" value=$surveyPointsEarned|default:\"0\"}\r\n{assign var=\"totalIncentivePointAdjustments\" value=$totalIncentivePointAdjustments|default:\"0\"}\r\n<h2 class=\"boxed\"><i>Total Points Earned</i>: <em>{$totalParticipationPoints|math:\"x+$surveyPointsEarned+$totalIncentivePointAdjustments\"}</em></h2>\r\n\r\n<blockquote>\r\n<table width=\"700\">\r\n<tr><td valign=\"top\">\r\n	\r\n	<table>\r\n	<tr><td colspan=\"2\">\r\n		<h3>Available {if $smarty.session.company.preferences.change_word_survey}{$smarty.session.company.preferences.change_word_survey}{else} Surveys:</h3></td>{/if}\r\n	    <td valign=\"middle\"></td></tr>\r\n	{foreach from=$surveys item=item name=\"loopSurveys\"}\r\n	{assign var=\"hideCheck\" value=\"hide_survey_`$item.id`\"}\r\n	{if $smarty.session.company.preferences[$hideCheck] neq \"yes\"}\r\n		<tr><td valign=\"top\" nowrap=\"nowrap\">\r\n		{if $item.dateAvailable gt 0}\r\n			<img class=\"sIco ico{$item.icon}\" 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=\"sIco ico{$item.icon}\" 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	{/if}\r\n	{foreachelse}\r\n	<tr><td valign=\"top\" colspan=\"3\">>\r\n		None found.</td></tr>\r\n	{/foreach}\r\n\r\n	<tr><td>&nbsp;</td>\r\n	    <td align=\"right\"><em>{if $smarty.session.company.preferences.change_word_survey}{$smarty.session.company.preferences.change_word_survey}&nbsppoints earned{else}Survey points earned:{/if}</em></td>\r\n	    <td align=\"center\"><span class=\"boxed\">{$surveyPointsEarned|default:0}</span></td></tr>\r\n\r\n	{if $smarty.session.company.preferences.healthyForLifeLink}\r\n	<tr><td colspan=\"2\">\r\n		<h3><a href=\"?pg=healthyForLife\">{$smarty.session.company.preferences.healthyForLifeLink}</a></h3></td>\r\n	    <td valign=\"middle\"></td></tr>\r\n	{/if}\r\n\r\n	{if $smarty.session.company.preferences.hide_survey_hra neq \"yes\"}\r\n		{select_query return=\"row\" assign=\"aHRA\"}\r\n			dateTaken, pointsEarned FROM surveys_taken\r\n			WHERE userId = {$user->id}\r\n			AND surveyId = 8\r\n			ORDER BY dateTaken DESC\r\n			LIMIT 1\r\n		{/select_query}\r\n		<tr><td><img class=\"icoStethescope\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" /></td>\r\n		    <td><b><u>HRA Score</u>:</b>\r\n		    {if ($aHRA.dateTaken eq \"\") OR ($aHRA.dateTaken < $smarty.now|math:\"x - 31536000\")}<br /><a href=\"javascript://\" onclick=\"openSurvey(8);\">Available Now</a>{/if}</td>\r\n		    <td align=\"center\"><em>{$aHRA.pointsEarned}</em></td></tr>\r\n	{/if}\r\n\r\n	{if $vanity eq \"onai\" or $vanity eq \"mycompany\" or $vanity eq \"zions\" or $vanity eq \"zions2\"}\r\n	<tr><td><img class=\"icoWeights\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" /></td>\r\n		    <td><b><u>Consumer Tools</u>:</b><br /><em>NEW<i>!</i></em></td>\r\n		    <td align=\"center\"><a href=\"?pg=consumer_tools\">Click Here</a></td></tr>\r\n	{/if}\r\n\r\n	{if 0 neq $totalIncentivePointAdjustments}\r\n	<br style=\"clear:left;\" />\r\n	<tr><td colspan=\"3\"><h3>Adjustments/Redemptions:</h3></td></tr>\r\n        {foreach from=$incentivePointAdjustments item=\"adjustment\" name=\"loopAdjustments\"}<tr><td nowrap>\r\n	<tr><td colspan=\"2\"><small><i>{$adjustment.dateAssigned|date_format2:\"m/d/Y\"}</i> - {$adjustment.comment}</small></td>\r\n	    <td valign=\"middle\" align=\"right\"><em>{$adjustment.points}</em></td></tr>\r\n        {foreachelse}\r\n		<tr><td colspan=\"3\">None.</td></tr>\r\n        {/foreach}\r\n	<tr><td colspan=\"2\" align=\"right\"><em>Total:</em></td>\r\n		<td align=\"center\" nowrap=\"nowrap\"><span class=\"boxed\"><nobr>{$totalIncentivePointAdjustments|default:0}</nobr></span></td></tr>\r\n	{/if}\r\n\r\n	</table>\r\n\r\n</td><td valign=\"top\">\r\n	<h3>Feedback:</h3>\r\n	<table>\r\n	<tr><td>\r\n	<img class=\"icoNurse\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" />\r\n	</td><td>\r\n	<ul>\r\n		<li><a href=\"javascript:viewSurveys();\">Review My History</a></li>\r\n		{if $smarty.session.company.preferences.hide_survey_hra neq \"yes\"}\r\n		<li><a href=\"?pg=HRAScoreInfo\">HRA Score Info</a></li>\r\n		{/if}\r\n	<ul>\r\n	</td></tr>\r\n	</table>\r\n	<br />\r\n\r\n	{if $aScales|@count gt 0} {* PARTICIPATION POINTS -- IF APPLICABLE *}\r\n	<table align=\"right\">\r\n	<tr><td colspan=\"3\"><h3>Participation Points:</h3></td></tr>\r\n        {foreach from=$aScales item=\"scale\" name=\"loopScales\"}<tr><td nowrap>\r\n	<tr><td>{$scale.name|niceText}</td>\r\n	    <td><small>({$scale.dateStart|date_format2:\"m/d/y\"} - {$scale.dateEnd|date_format2:\"m/d/y\"})</small></td>\r\n	    <td valign=\"middle\" align=\"right\"><em>{$aScores[$scale.id]|number_format:\"1\"}</em></td></tr>\r\n        {foreachelse}\r\n		<tr><td colspan=\"3\">None.</td></tr>\r\n        {/foreach}\r\n	<tr><td colspan=\"2\" align=\"right\"><em>Participation points earned:</em></td>\r\n		<td align=\"right\"><span class=\"boxed\">{$totalParticipationPoints|default:0}</span></td></tr>\r\n	</table>\r\n	{/if}\r\n\r\n	</td></tr>\r\n</table>\r\n</blockquote>'),(4928,196,1.66,'smarty','0','Fixing healthy for life link stuff',1141110500,2,'24.2.76.126','{if $smarty.session.company.preferences.hide_incentives eq \"yes\"}{include file=\"file:layouts/hiddenPageRedirector.tpl\"}{/if}\r\n{include file=\"layouts/forceLoggedIn.tpl\"}\r\n\r\n{* HANDLERS *}\r\n{include_php file=\"shared_handle:company/participationPoints_v2\"}\r\n{include_php file=\"shared_handle:company/surveyList\"}\r\n{include_php file=\"shared_handle:company/incentivePointAdjustments\"}\r\n\r\n\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{if $smarty.session.company.preferences.title_my_incentives}{$smarty.session.company.preferences.title_my_incentives}</h1>{else}\r\n<h1>{$page.title}</h1>{/if}\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	{$incentiveText|default:\"<em>Yearly Incentive</em><br /><br />Not Yet Determined.\"}	\r\n</td></tr>\r\n</table>\r\n<br />\r\n{assign var=\"surveyPointsEarned\" value=$surveyPointsEarned|default:\"0\"}\r\n{assign var=\"totalIncentivePointAdjustments\" value=$totalIncentivePointAdjustments|default:\"0\"}\r\n<h2 class=\"boxed\"><i>Total Points Earned</i>: <em>{$totalParticipationPoints|math:\"x+$surveyPointsEarned+$totalIncentivePointAdjustments\"}</em></h2>\r\n\r\n<blockquote>\r\n<table width=\"700\">\r\n<tr><td valign=\"top\">\r\n	\r\n	<table>\r\n	<tr><td colspan=\"2\">\r\n		<h3>Available {if $smarty.session.company.preferences.change_word_survey}{$smarty.session.company.preferences.change_word_survey}{else} Surveys:</h3></td>{/if}\r\n	    <td valign=\"middle\"></td></tr>\r\n	{foreach from=$surveys item=item name=\"loopSurveys\"}\r\n	{assign var=\"hideCheck\" value=\"hide_survey_`$item.id`\"}\r\n	{if $smarty.session.company.preferences[$hideCheck] neq \"yes\"}\r\n		<tr><td valign=\"top\" nowrap=\"nowrap\">\r\n		{if $item.dateAvailable gt 0}\r\n			<img class=\"sIco ico{$item.icon}\" 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=\"sIco ico{$item.icon}\" 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	{/if}\r\n	{foreachelse}\r\n	<tr><td valign=\"top\" colspan=\"3\">>\r\n		None found.</td></tr>\r\n	{/foreach}\r\n\r\n	<tr><td>&nbsp;</td>\r\n	    <td align=\"right\"><em>{if $smarty.session.company.preferences.change_word_survey}{$smarty.session.company.preferences.change_word_survey}&nbsppoints earned{else}Survey points earned:{/if}</em></td>\r\n	    <td align=\"center\"><span class=\"boxed\">{$surveyPointsEarned|default:0}</span></td></tr>\r\n\r\n	{if $smarty.session.company.preferences.healthyForLifeLink}\r\n	<tr><td colspan=\"2\">\r\n		<h3><a href=\"?pg=healthyForLife\">{$smarty.session.company.preferences.healthyForLifeLink}</a></h3></td>\r\n	    <td valign=\"middle\"></td></tr>\r\n	{/if}\r\n\r\n	{if $smarty.session.company.preferences.hide_survey_hra neq \"yes\"}\r\n		{select_query return=\"row\" assign=\"aHRA\"}\r\n			dateTaken, pointsEarned FROM surveys_taken\r\n			WHERE userId = {$user->id}\r\n			AND surveyId = 8\r\n			ORDER BY dateTaken DESC\r\n			LIMIT 1\r\n		{/select_query}\r\n		<tr><td><img class=\"icoStethescope\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" /></td>\r\n		    <td><b><u>HRA Score</u>:</b>\r\n		    {if ($aHRA.dateTaken eq \"\") OR ($aHRA.dateTaken < $smarty.now|math:\"x - 31536000\")}<br /><a href=\"javascript://\" onclick=\"openSurvey(8);\">Available Now</a>{/if}</td>\r\n		    <td align=\"center\"><em>{$aHRA.pointsEarned}</em></td></tr>\r\n	{/if}\r\n\r\n	{if $vanity eq \"onai\" or $vanity eq \"mycompany\" or $vanity eq \"zions\" or $vanity eq \"zions2\"}\r\n	<tr><td><img class=\"icoWeights\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" /></td>\r\n		    <td><b><u>Consumer Tools</u>:</b><br /><em>NEW<i>!</i></em></td>\r\n		    <td align=\"center\"><a href=\"?pg=consumer_tools\">Click Here</a></td></tr>\r\n	{/if}\r\n\r\n	{if 0 neq $totalIncentivePointAdjustments}\r\n	<br style=\"clear:left;\" />\r\n	<tr><td colspan=\"3\"><h3>Adjustments/Redemptions:</h3></td></tr>\r\n        {foreach from=$incentivePointAdjustments item=\"adjustment\" name=\"loopAdjustments\"}<tr><td nowrap>\r\n	<tr><td colspan=\"2\"><small><i>{$adjustment.dateAssigned|date_format2:\"m/d/Y\"}</i> - {$adjustment.comment}</small></td>\r\n	    <td valign=\"middle\" align=\"right\"><em>{$adjustment.points}</em></td></tr>\r\n        {foreachelse}\r\n		<tr><td colspan=\"3\">None.</td></tr>\r\n        {/foreach}\r\n	<tr><td colspan=\"2\" align=\"right\"><em>Total:</em></td>\r\n		<td align=\"center\" nowrap=\"nowrap\"><span class=\"boxed\"><nobr>{$totalIncentivePointAdjustments|default:0}</nobr></span></td></tr>\r\n	{/if}\r\n\r\n	</table>\r\n\r\n</td><td valign=\"top\">\r\n	<h3>Feedback:</h3>\r\n	<table>\r\n	<tr><td>\r\n	<img class=\"icoNurse\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" />\r\n	</td><td>\r\n	<ul>\r\n		<li><a href=\"javascript:viewSurveys();\">Review My History</a></li>\r\n		{if $smarty.session.company.preferences.hide_survey_hra neq \"yes\"}\r\n		<li><a href=\"?pg=HRAScoreInfo\">HRA Score Info</a></li>\r\n		{/if}\r\n	<ul>\r\n	</td></tr>\r\n	</table>\r\n	<br />\r\n\r\n	{if $aScales|@count gt 0} {* PARTICIPATION POINTS -- IF APPLICABLE *}\r\n	<table align=\"right\">\r\n	<tr><td colspan=\"3\"><h3>Participation Points:</h3></td></tr>\r\n        {foreach from=$aScales item=\"scale\" name=\"loopScales\"}<tr><td nowrap>\r\n	<tr><td>{$scale.name|niceText}</td>\r\n	    <td><small>({$scale.dateStart|date_format2:\"m/d/y\"} - {$scale.dateEnd|date_format2:\"m/d/y\"})</small></td>\r\n	    <td valign=\"middle\" align=\"right\"><em>{$aScores[$scale.id]|number_format:\"1\"}</em></td></tr>\r\n        {foreachelse}\r\n		<tr><td colspan=\"3\">None.</td></tr>\r\n        {/foreach}\r\n	<tr><td colspan=\"2\" align=\"right\"><em>Participation points earned:</em></td>\r\n		<td align=\"right\"><span class=\"boxed\">{$totalParticipationPoints|default:0}</span></td></tr>\r\n	</table>\r\n	{/if}\r\n\r\n	</td></tr>\r\n</table>\r\n</blockquote>'),(4931,196,1.69,'smarty','0','Fixing healthy for life link stuff',1141110715,2,'24.2.76.126','{if $smarty.session.company.preferences.hide_incentives eq \"yes\"}{include file=\"file:layouts/hiddenPageRedirector.tpl\"}{/if}\r\n{include file=\"layouts/forceLoggedIn.tpl\"}\r\n\r\n{* HANDLERS *}\r\n{include_php file=\"shared_handle:company/participationPoints_v2\"}\r\n{include_php file=\"shared_handle:company/surveyList\"}\r\n{include_php file=\"shared_handle:company/incentivePointAdjustments\"}\r\n\r\n\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{if $smarty.session.company.preferences.title_my_incentives}{$smarty.session.company.preferences.title_my_incentives}</h1>{else}\r\n<h1>{$page.title}</h1>{/if}\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	{$incentiveText|default:\"<em>Yearly Incentive</em><br /><br />Not Yet Determined.\"}	\r\n</td></tr>\r\n</table>\r\n<br />\r\n{assign var=\"surveyPointsEarned\" value=$surveyPointsEarned|default:\"0\"}\r\n{assign var=\"totalIncentivePointAdjustments\" value=$totalIncentivePointAdjustments|default:\"0\"}\r\n<h2 class=\"boxed\"><i>Total Points Earned</i>: <em>{$totalParticipationPoints|math:\"x+$surveyPointsEarned+$totalIncentivePointAdjustments\"}</em></h2>\r\n\r\n<blockquote>\r\n<table width=\"700\">\r\n<tr><td valign=\"top\">\r\n	\r\n	<table>\r\n	<tr><td colspan=\"2\">\r\n		<h3>Available {if $smarty.session.company.preferences.change_word_survey}{$smarty.session.company.preferences.change_word_survey}{else} Surveys:</h3></td>{/if}\r\n	    <td valign=\"middle\"></td></tr>\r\n	{foreach from=$surveys item=item name=\"loopSurveys\"}\r\n	{assign var=\"hideCheck\" value=\"hide_survey_`$item.id`\"}\r\n	{if $smarty.session.company.preferences[$hideCheck] neq \"yes\"}\r\n		<tr><td valign=\"top\" nowrap=\"nowrap\">\r\n		{if $item.dateAvailable gt 0}\r\n			<img class=\"sIco ico{$item.icon}\" 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=\"sIco ico{$item.icon}\" 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	{/if}\r\n	{foreachelse}\r\n	<tr><td valign=\"top\" colspan=\"3\">>\r\n		None found.</td></tr>\r\n	{/foreach}\r\n\r\n	<tr><td>&nbsp;</td>\r\n	    <td align=\"right\"><em>{if $smarty.session.company.preferences.change_word_survey}{$smarty.session.company.preferences.change_word_survey}&nbsppoints earned{else}Survey points earned:{/if}</em></td>\r\n	    <td align=\"center\"><span class=\"boxed\">{$surveyPointsEarned|default:0}</span></td></tr>\r\n\r\n	{if $smarty.session.company.preferences.healthyForLifeLink}\r\n	<tr><td colspan=\"2\">\r\n		<ul><li><a href=\"?pg=healthyForLife\" style=\"color:#003366;\"><b>{$smarty.session.company.preferences.healthyForLifeLink}</b></a></li></ul></td>\r\n	    <td valign=\"middle\"></td></tr>\r\n	{/if}\r\n\r\n	{if $smarty.session.company.preferences.hide_survey_hra neq \"yes\"}\r\n		{select_query return=\"row\" assign=\"aHRA\"}\r\n			dateTaken, pointsEarned FROM surveys_taken\r\n			WHERE userId = {$user->id}\r\n			AND surveyId = 8\r\n			ORDER BY dateTaken DESC\r\n			LIMIT 1\r\n		{/select_query}\r\n		<tr><td><img class=\"icoStethescope\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" /></td>\r\n		    <td><b><u>HRA Score</u>:</b>\r\n		    {if ($aHRA.dateTaken eq \"\") OR ($aHRA.dateTaken < $smarty.now|math:\"x - 31536000\")}<br /><a href=\"javascript://\" onclick=\"openSurvey(8);\">Available Now</a>{/if}</td>\r\n		    <td align=\"center\"><em>{$aHRA.pointsEarned}</em></td></tr>\r\n	{/if}\r\n\r\n	{if $vanity eq \"onai\" or $vanity eq \"mycompany\" or $vanity eq \"zions\" or $vanity eq \"zions2\"}\r\n	<tr><td><img class=\"icoWeights\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" /></td>\r\n		    <td><b><u>Consumer Tools</u>:</b><br /><em>NEW<i>!</i></em></td>\r\n		    <td align=\"center\"><a href=\"?pg=consumer_tools\">Click Here</a></td></tr>\r\n	{/if}\r\n\r\n	{if 0 neq $totalIncentivePointAdjustments}\r\n	<br style=\"clear:left;\" />\r\n	<tr><td colspan=\"3\"><h3>Adjustments/Redemptions:</h3></td></tr>\r\n        {foreach from=$incentivePointAdjustments item=\"adjustment\" name=\"loopAdjustments\"}<tr><td nowrap>\r\n	<tr><td colspan=\"2\"><small><i>{$adjustment.dateAssigned|date_format2:\"m/d/Y\"}</i> - {$adjustment.comment}</small></td>\r\n	    <td valign=\"middle\" align=\"right\"><em>{$adjustment.points}</em></td></tr>\r\n        {foreachelse}\r\n		<tr><td colspan=\"3\">None.</td></tr>\r\n        {/foreach}\r\n	<tr><td colspan=\"2\" align=\"right\"><em>Total:</em></td>\r\n		<td align=\"center\" nowrap=\"nowrap\"><span class=\"boxed\"><nobr>{$totalIncentivePointAdjustments|default:0}</nobr></span></td></tr>\r\n	{/if}\r\n\r\n	</table>\r\n\r\n</td><td valign=\"top\">\r\n	<h3>Feedback:</h3>\r\n	<table>\r\n	<tr><td>\r\n	<img class=\"icoNurse\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" />\r\n	</td><td>\r\n	<ul>\r\n		<li><a href=\"javascript:viewSurveys();\">Review My History</a></li>\r\n		{if $smarty.session.company.preferences.hide_survey_hra neq \"yes\"}\r\n		<li><a href=\"?pg=HRAScoreInfo\">HRA Score Info</a></li>\r\n		{/if}\r\n	<ul>\r\n	</td></tr>\r\n	</table>\r\n	<br />\r\n\r\n	{if $aScales|@count gt 0} {* PARTICIPATION POINTS -- IF APPLICABLE *}\r\n	<table align=\"right\">\r\n	<tr><td colspan=\"3\"><h3>Participation Points:</h3></td></tr>\r\n        {foreach from=$aScales item=\"scale\" name=\"loopScales\"}<tr><td nowrap>\r\n	<tr><td>{$scale.name|niceText}</td>\r\n	    <td><small>({$scale.dateStart|date_format2:\"m/d/y\"} - {$scale.dateEnd|date_format2:\"m/d/y\"})</small></td>\r\n	    <td valign=\"middle\" align=\"right\"><em>{$aScores[$scale.id]|number_format:\"1\"}</em></td></tr>\r\n        {foreachelse}\r\n		<tr><td colspan=\"3\">None.</td></tr>\r\n        {/foreach}\r\n	<tr><td colspan=\"2\" align=\"right\"><em>Participation points earned:</em></td>\r\n		<td align=\"right\"><span class=\"boxed\">{$totalParticipationPoints|default:0}</span></td></tr>\r\n	</table>\r\n	{/if}\r\n\r\n	</td></tr>\r\n</table>\r\n</blockquote>'),(5043,272,0.85,'smarty','0','Adding stored object...',1146543209,2,'24.2.76.126','{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"comp\" from=\"comp\" assign=\"comp\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"comp\" destroy=\"true\"}{/if}\r\n\r\n{include file=\"shared:layouts/comp_create_navbar.tpl\"}\r\n\r\n<form method=\"post\" action=\"index.php\">\r\n{toc_next assign=\"nextStep\"}\r\n\r\n<table border=0 cellpadding=0 cellspacing=0 width=\"100%\">\r\n<tr>\r\n<td valign=\"top\">\r\n<br>\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">A. Competing for...</td><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"p2p\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'p2p\');\">Pound for pound <i>(Weight lost)</i></a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"pctWt\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'pctWt\');\">Percent of body weight lost</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"minEx\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'minEx\');\">Total minutes exercised</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"disEx\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'disEx\');\">Total distance exercised</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"veg\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'veg\');\">Vegetable challenge</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"gain\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'gain\');\">Weight gained</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"height:10px;background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif);background-repeat:no-repeat;background-position:top left;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif);background-repeat:no-repeat;background-position:top left;\"></td></tr>\r\n</table>\r\n</td>\r\n<td valign=\"top\">\r\n<br>\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">\r\n\r\nB. The competition name is...\r\n</td>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td>\r\n</tr>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td>\r\n<td>\r\n\r\n<div onclick=\"validateDiv(this);\" id=\"step1_block_B\" style=\"margin-top:-1px;margin-left:0px;border:solid 1px gray;background-color:silver;zIndex:100;position:absolute;filter:alpha(opacity=25);-moz-opacity:0.25;\">\r\n    <table border=0 cellspacing=0>\r\n    <tr>\r\n      <td><h3>Name:</h3></td>\r\n      <td><input type=\"text\" name=\"comp[tmp]\" id=\"comp[tmp]\" disabled=\"true\" onkeyup=\"unBlock(\'step1_block_C\');\"/></td>\r\n    </tr>\r\n    <tr>\r\n      <td valign=\"top\"><small><b>Examples:</b></small></td>\r\n      <td><small>&quot;The chubby family reunion&quot;<br />&quot;Company shape-up marathon&quot;<br />&quot;Super Summer Slimdown&quot;</small></td>\r\n    </tr>\r\n    </table>\r\n</div>\r\n\r\n\r\n    <table border=0 cellspacing=0>\r\n    <tr>\r\n      <td><h3>Name:</h3></td>\r\n      <td><input type=\"text\" name=\"comp[title]\" id=\"comp[title]\" onkeyup=\"unBlock(\'step1_block_C\');\"/></td>\r\n    </tr>\r\n    <tr>\r\n      <td valign=\"top\"><small><b>Examples:</b></small></td>\r\n      <td><small>&quot;The chubby family reunion&quot;<br />&quot;Company shape-up marathon&quot;<br />&quot;Super Summer Slimdown&quot;</small></td>\r\n    </tr>\r\n    </table>\r\n\r\n</td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td>\r\n</tr>\r\n<tr><td style=\"height:10px;background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif);background-repeat:no-repeat;background-position:top left;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif);background-repeat:no-repeat;background-position:top left;\"></td></tr>\r\n</table>\r\n    <br/>\r\n    <div style=\"border:solid 1px black;width:94%;height:85px;\">\r\n      test\r\n    </div>\r\n</td>\r\n<td valign=\"top\">\r\n<br>\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">\r\n\r\nC. Who\'s competing...\r\n</td>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td>\r\n</tr>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td>\r\n<td>\r\n\r\n<div onclick=\"validateDiv(this);\" id=\"step1_block_C\" style=\"margin-top:-1px;margin-left:-10px;border:solid 1px gray;background-color:silver;zIndex:100;position:absolute;filter:alpha(opacity=25);-moz-opacity:0.25;\">\r\n    <table border=0 cellpaddin=0 cellspacing=0>\r\n      <tr>\r\n	<td colspan=\"2\">\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	     <tr>\r\n	       <td colspan=2><li style=\"color:#cccccc\">Invate your friends</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small style=\"color:#cccccc\">\r\n		   My friend\'s Name:\r\n                 </small>\r\n	       </td>\r\n	       <td>\r\n	         &nbsp;&nbsp;&nbsp;<input type=\"text id=\"tmp1\" name=\"temp1\" style=\"width:110px;\" disabled />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small style=\"color:#cccccc\">\r\n		   My friend\'s Email:\r\n	         </small>\r\n	       </td>\r\n	       <td>\r\n	          &nbsp;&nbsp;&nbsp;<input type=\"text id=\"tmp1\" name=\"temp1\" style=\"width:110px;\" disabled/>\r\n               </td>\r\n             </tr>\r\n             <tr>\r\n	       <td colspan=\"2\" align=\"right\">\r\n	         <small style=\"color:#cccccc\">\r\n		   <span>\r\n                     Add more\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	</td>\r\n      </tr>\r\n      <tr><td colspan=\"2\"><li style=\"color:#cccccc\">Let them know with an email...</li></td></tr>\r\n      <tr>\r\n        <td valign=\"top\" colspan=2>\r\n	  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	      <tr>\r\n		 <td valign=\"top\">\r\n		    <small style=\"color:#cccccc\">\r\n			<table border=0 cellpadding=0 cellspacing=0 width=\"100%\">\r\n			  <tr><td>&nbsp;&nbsp;&nbsp;<input type=\"radio\" value=\"kind\" name=\"tmp2\"/> <span style=\"color:#cccccc;\">Kind Message</span></td></tr>\r\n			  <tr><td>&nbsp;&nbsp;&nbsp;<input type=\"radio\" value=\"smack\" name=\"tmp2\"/> <span style=\"color:#cccccc;\">Trash Talking Message</span></td></tr>\r\n			  <tr><td>&nbsp;&nbsp;&nbsp;<input type=\"radio\" value=\"challenge\" name=\"tmp2\"/> <span style=\"color:#cccccc;\">Motivational Message</span></td></tr>\r\n			  <tr><td>&nbsp;&nbsp;&nbsp;<input type=\"radio\" value=\"custom\" name=\"tmp2\"/> <span style=\"color:#cccccc;\">Make Your Own Message</span></td></tr>\r\n                        </table>\r\n		    </small>\r\n		 </td>\r\n		 <td valign=\"top\" id=\"invateHolder\">\r\n		    <div id=\"tmp3\" style=\"border-bottom:solid 1px #CCC;border-left:solid 1px #CCC;padding-right:5px;visibility:hidden;\">\r\n			<small style=\"color:#cccccc\">\r\n			   <a href=\"javascript:setInviteWeight(\'heavy\');\">Heavy</a><br />\r\n			   <a href=\"javascript:setInviteWeight(\'medium\');\">Medium</a><br />\r\n			   <a href=\"javascript:setInviteWeight(\'light\');\">Light</a><br />\r\n			</small>\r\n		    </div>\r\n		</td>\r\n	     </tr>\r\n	  </table>\r\n        </td>\r\n     </tr>\r\n     </table>\r\n</div>\r\n\r\n    <table border=0 cellpaddin=0 cellspacing=0>\r\n      <tr>\r\n	<td colspan=\"2\">\r\n	  <div id=\'enterFriendNameDiv\' style=\'display:block;\'>\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	     <tr>\r\n	       <td colspan=2><li>Invate your friends</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   My friend\'s Name:\r\n                 </small>\r\n	       </td>\r\n	       <td>\r\n	         <input type=\"text id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   My friend\'s Email:\r\n	         </small>\r\n	       </td>\r\n	       <td>\r\n		  <input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td colspan=\"2\" align=\"right\">\r\n	         <small>\r\n		   <span onclick=\"extraCompetitors(\'open\');\" style=\"cursor:pointer;\">\r\n                     Add more\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	  </div>\r\n	  <div id=\"myEnteredFriendsDiv\" style=\"display:none;\">\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\r\n	     <tr>\r\n	       <td><li>My Competitors:</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"left\" id=\"competitorListHolder\" style=\"padding-left:15px\">\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   <span onclick=\"editCompetitors();\" style=\"cursor:pointer;\">\r\n                     Edit my competitors\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	  </div>\r\n	</td>\r\n      </tr>\r\n      <tr><td colspan=\"2\"><li>Let them know with an email...</li></td></tr>\r\n      <tr>\r\n        <td valign=\"top\" colspan=2>\r\n	  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	      <tr>\r\n		 <td valign=\"top\">\r\n		    <small>\r\n			<table border=0 cellpadding=0 cellspacing=0 width=\"100%\">\r\n			  <tr><td id=\'kind\'><input type=\"radio\" value=\"kind\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'kind\');\"/> <a href=\"javascript:setInviteStyle(\'kind\');\">Kind Message</a></td></tr>\r\n			  <tr><td id=\'smack\'><input type=\"radio\" value=\"smack\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'smack\');\"/> <a href=\"javascript:setInviteStyle(\'smack\');\">Trash Talking Message</a></td></tr>\r\n			  <tr><td id=\'challenge\'><input type=\"radio\" value=\"challenge\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'challenge\');\" /> <a href=\"javascript:setInviteStyle(\'challenge\');\">Challenge</a></td></tr>\r\n			  <tr><td id=\'custom\'><input type=\"radio\" value=\"custom\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'custom\');\"/> <a href=\"javascript:setInviteStyle(\'custom\');\">Make Your Own</a></td></tr>\r\n                        </table>\r\n		    </small>\r\n		 </td>\r\n		 <td valign=\"top\" id=\"invateHolder\">\r\n		    <div id=\"InvateW\" style=\"border-bottom:solid 1px #CCC;border-left:solid 1px #CCC;padding-right:5px;visibility:hidden;\">\r\n			<small>\r\n			   <input type=\"radio\" value=\"heavy\" name=\"comp[invite_subtype]\"  onclick=\"displayLetter(\'{$vanity}\')\" /> <a href=\"javascript:setInviteWeight(\'heavy\');\">Heavy</a><br />\r\n			   <input type=\"radio\" value=\"medium\" name=\"comp[invite_subtype]\" onclick=\"displayLetter(\'{$vanity}\')\" /> <a href=\"javascript:setInviteWeight(\'medium\');\">Medium</a><br />\r\n			   <input type=\"radio\" value=\"light\" name=\"comp[invite_subtype]\" onclick=\"displayLetter(\'{$vanity}\')\" /> <a href=\"javascript:setInviteWeight(\'light\');\">Light</a><br />\r\n			</small>\r\n		    </div>\r\n		</td>\r\n	     </tr>\r\n	  </table>\r\n        </td>\r\n     </tr>\r\n     </table>\r\n\r\n\r\n</td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td>\r\n</tr>\r\n<tr><td style=\"height:10px;background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif);background-repeat:no-repeat;background-position:top left;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif);background-repeat:no-repeat;background-position:top left;\"></td></tr>\r\n</table>\r\n</td>\r\n<td>\r\n</td>\r\n</tr>\r\n</table>\r\n<br />\r\n<table border=\"0\" cellpadding=0 cellspacing=0 width=\"100%\">\r\n<tr>\r\n<td width=\"10px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/top.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/note/topLeftCorner.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/note/top.gif);background-repeat:repeat-x;\"></td>\r\n<td width=\"15px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/top.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/note/topRightCorner.gif\"></td>\r\n</tr>\r\n<tr>\r\n<td width=\"10px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/left.gif);background-repeat:repeat-y;\"></td>\r\n   <td>\r\n      <!-- <iframe src=\"\" id=\"letterHolder\" name=\"letterHolder\" style=\"width:100%;height:410px;\" scrollbars=\"no\" frameborder=\"0\"></iframe> -->\r\n      <div id=\"letterHolder\" name=\"letterHolder\" style=\"width:100%;height:410px;border:solid 1px white;\"></div>\r\n   </td>\r\n<td width=\"10px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/right.gif);background-repeat:repeat-y;\"></td>\r\n</tr>\r\n<tr><td style=\"height:10px;background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif);background-repeat:no-repeat;background-position:top left;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif);background-repeat:no-repeat;background-position:top left;\"></td></tr>\r\n</table>\r\n{* <iframe src=\"?pg=compCreate/inviteFrame\" style=\"width:100%;height:410px;\" scrollbars=\"no\" frameborder=\"0\"></iframe> *}\r\n\r\n<div id=\"invite-div\"></div>\r\n<br />\r\n\r\n<div align=\"right\">\r\n  <a href=\"?pg=compCreate/step2\"><img src=\"{$skinFolder}images/btn_next.gif\" alt=\"Next\" border=\"0\" /></a>\r\n</div>\r\n\r\n<div id=\"myCompetitors\" style=\"width:300px;background-color:white;zIndex:100;position:absolute;display:none;top:-70px;left:300px;border:solid 1px #CCC;filter: alpha(opacity=85)\">\r\n  <center>\r\n   <table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" width=\"95%\">\r\n      <tr><td align=\"right\" valign=\"top\" style=\"height:5px\"><small><span style=\"cursor:pointer;\" onclick=\"extraCompetitors(\'close\');\">close window</span><small></td></tr>\r\n      <tr><td style=\"border-bottom:solid 1px #CCC;\"><h2>More Competitors...</td></tr>\r\n      <tr>\r\n         <td align=\"center\">\r\n	    <table id=\"competitorsTable\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"90%\">\r\n                <tr>\r\n		  <td></td>\r\n		  <td align=\"center\" valign=\"bottom\">Name</td>\r\n                  <td align=\"center\" valign=\"bottom\">Email</td>\r\n                </tr>\r\n	        <tr>\r\n		  <td>2.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>3.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>4.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>5.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>6.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>7.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>8.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>9.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>10.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>11.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n		<tr>\r\n		  <td colspan=\"3\" align=\"right\"><small><span style=\"cursor:pointer;\" onclick=\'addMoreCompetitors();\'>Add More Lines</span></small></td>\r\n		</tr>\r\n            </table>\r\n         </td>\r\n      </tr>\r\n      <tr>\r\n	<td align=\"right\" style=\"border-top:solid 1px #CCC;\"><img style=\"cursor:pointer;\" onclick=\"addingCompetitors();\" src=\"{$skinFolder}images/btn_next.gif\" alt=\"Add\" border=\"0\" /></td>\r\n      </tr>\r\n   </table>\r\n  </center>\r\n</div>\r\n\r\n</form>\r\n\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/js-get-data.js\"></script>\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/AJAX.js\"></script>\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/NewComp.js\"></script>\r\n\r\n<script language=\"JavaScript\">\r\n	\r\n        //jsGetData(\'?pg=jsGetData\',\'invite-div\', \'madlib.form\', \'&compType=friends&inviteType=smack\');\r\n\r\n	var examples = Array();\r\n	{foreach from=$examples key=\"key\" item=\"example\"}\r\n	examples[{$key}] = \'{eval var=$example.body|addslashes|replace:\"\\r\":\"\"|replace:\"\\n\":\"\\\\n\"}\';\r\n	{/foreach}\r\n	\r\n	{literal}\r\n\r\n\r\n	{/literal}\r\n</script>'),(5045,273,0.32,'smarty','0','David Morales working',1146543428,2,'24.2.76.126','{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"comp\" from=\"comp\" assign=\"comp\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"comp\" destroy=\"true\"}{/if}\r\n\r\n{include file=\"shared:layouts/comp_create_navbar.tpl\"}\r\n\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/NewComp.js\"></script>\r\n\r\n<form name=\"compStartForm\" method=\"post\" style=\"margin:0px;\" action=\"index.php\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{toc_next}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n<tr>\r\n<td width=\"50%\" style=\"padding-top:10px\">\r\n<!-- A CONTENT -->\r\n<table border=0 cellpadding=0 cellspacing=0 width=\"100%\">\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td><td colspan=2 style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">A. When are we starting...</td><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td nowrap><font size=-2>Choose a starting date:</font></td><td nowrap><font size=-2>Choose an end date:</font></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td>\r\n	<td nowrap>\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	</td>\r\n        <td nowrap style=\"border-left:solid 1px gray;\">\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        </td>\r\n	<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr ><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td>\r\n       <td nowrap>\r\n	     <font size=-1>Starting on: </font>\r\n             <input type=\"text\" style=\"border:solid 1px white;width:90px;\" disabled=\"disabled\" name=\"comp[startDateViewable]\" value=\"{if not $comp.startDate}Click a Date {else}{$comp.startDate|date_format2:\"M j, Y\"}{/if}\">\r\n	     <input type=\"hidden\" name=\"comp[startDate]\" value=\"\">\r\n       </td>\r\n       <td nowrap>\r\n             <font size=-1>Ending on: </font><input style=\"border:solid 1px white;width:90px;\" type=\"text\" disabled=\"disabled\" name=\"comp[endDateViewable]\" value=\"{if not $comp.endDate}Click a Date {else}{$comp.endDate|date_format2:\"M j, Y\"}{/if}\">\r\n   	     <input type=\"hidden\" name=\"comp[endDate]\" value=\"\">\r\n       </td>\r\n      <td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\" colspan=2></td><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif\"></td></tr>\r\n</table>\r\n<!-- END OF A CONTENT -->\r\n</td>\r\n<td valign=top style=\"padding-top:10px;padding-left:20px;\">\r\n<!-- B CONTENT -->\r\n<table border=0 cellpadding=0 cellspacing=0 width=\"100%\">\r\n   <tr>\r\n	<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td>\r\n        <td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">B. And the winner takes home ...</td>\r\n        <td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td>\r\n   </tr>\r\n   <tr> \r\n        <td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td>\r\n        <td nowrap>\r\n<!-- Div to Block content -->\r\n<div onclick=\"validateDiv(this);\" id=\"step2_block_B\" style=\"margin-top:-1px;margin-left:-13px;border:solid 1px gray;background-color:silver;zIndex:100;position:absolute;filter:alpha(opacity=25); width:107%;\">\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n  <tr>\r\n  <td style=\'padding-left:13px\'><h2><font color=\'silver\'>Prize Method:</font></h2></td>\r\n  <td><select name=\"tmp5\" disabled>\r\n        <option value=\"\">Cash Settlement</option>\r\n      </select>\r\n  </td>\r\n  </tr>\r\n  <tr>\r\n  <td style=\'padding-left:13px;padding-top:3px;\'><b><font color=\'silver\'>Type:</font></b></td>\r\n  <td></td>\r\n  </tr>\r\n  <tr>\r\n  <td colspan=\"2\" align=\"right\"><img src=\"blank.gif\" width=\"200\" height=\"100\" alt=\"\" border=\"0\" /></td>\r\n  </tr>\r\n</table>\r\n\r\n</div>\r\n<!-- end of DIV -->\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n  <tr>\r\n  <td><h2>Prize Method:</h2></td>\r\n  <td><select name=\"comp[prize_method]\">\r\n        <option value=\"\">Cash Settlement</option>\r\n      </select>\r\n  </td>\r\n  </tr>\r\n  <tr>\r\n  <td><b>Type:</b></td>\r\n  <td><input type=\"text\" value=\"$50.00\" /></td>\r\n  </tr>\r\n  <tr>\r\n  <td colspan=\"2\" align=\"right\"><img src=\"blank.gif\" width=\"200\" height=\"100\" alt=\"\" border=\"0\" /></td>\r\n  </tr>\r\n</table>\r\n        </td>\r\n        <td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td>\r\n   </tr>\r\n   <tr>\r\n        <td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif\"></td>\r\n        <td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td>\r\n        <td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif\"></td>\r\n   </tr>\r\n</table>\r\n\r\n<!-- END OF B CONTENT -->\r\n</td>\r\n</tr>\r\n</table>\r\n\r\n\r\n<script language=\"javascript\">\r\n	validateDates();\r\n	{literal}\r\n		\r\n	{/literal}\r\n</script>\r\n\r\n{* stored_object_fill_form object=$comp name=\"comp\" *}\r\n\r\n<div align=\"right\">\r\n	<!-- input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\" -->\r\n	<a href=\"?pg=compCreate/step3\"><img src=\"{$skinFolder}images/btn_next.gif\" alt=\"\" border=\"0\" /></a>\r\n</div>\r\n\r\n</form>'),(5072,272,0.92,'smarty','0','Working on forms, etc.',1146551699,2,'24.2.76.126','{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"comp\" from=\"comp\" assign=\"comp\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"comp\" destroy=\"true\"}{/if}\r\n\r\n<form method=\"post\" action=\"index.php\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{toc_next}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n{include file=\"shared:layouts/comp_create_navbar.tpl\"}\r\n\r\n<table border=0 cellpadding=0 cellspacing=0 width=\"100%\">\r\n<tr>\r\n<td valign=\"top\">\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">A. Competing for...</td><td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"p2p\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'p2p\');\">Pound for pound <i>(Weight lost)</i></a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"pctWt\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'pctWt\');\">Percent of body weight lost</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"minEx\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'minEx\');\">Total minutes exercised</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"disEx\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'disEx\');\">Total distance exercised</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"veg\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'veg\');\">Vegetable challenge</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td><td><small><input type=\"radio\" name=\"comp[type]\" id=\"comp[type]\" value=\"gain\" onclick=\"unBlock(\'step1_block_B\');\"> <a href=\"javascript:setCompType(\'gain\');\">Weight gained</a></small></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td></tr>\r\n   <tr><td style=\"height:10px;background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif);background-repeat:no-repeat;background-position:top left;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif);background-repeat:no-repeat;background-position:top left;\"></td></tr>\r\n</table>\r\n</td>\r\n<td valign=\"top\">\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">\r\n\r\nB. The competition name is...\r\n</td>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td>\r\n</tr>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td>\r\n<td>\r\n\r\n<div onclick=\"validateDiv(this);\" id=\"step1_block_B\" style=\"margin-top:-1px;margin-left:0px;border:solid 1px gray;background-color:silver;zIndex:100;position:absolute;filter:alpha(opacity=25);-moz-opacity:0.25;\">\r\n    <table border=0 cellspacing=0>\r\n    <tr>\r\n      <td><h3>Name:</h3></td>\r\n      <td><input type=\"text\" name=\"comp[tmp]\" id=\"comp[tmp]\" disabled=\"true\" onkeyup=\"unBlock(\'step1_block_C\');\"/></td>\r\n    </tr>\r\n    <tr>\r\n      <td valign=\"top\"><small><b>Examples:</b></small></td>\r\n      <td><small>&quot;The chubby family reunion&quot;<br />&quot;Company shape-up marathon&quot;<br />&quot;Super Summer Slimdown&quot;</small></td>\r\n    </tr>\r\n    </table>\r\n</div>\r\n\r\n\r\n    <table border=0 cellspacing=0>\r\n    <tr>\r\n      <td><h3>Name:</h3></td>\r\n      <td><input type=\"text\" name=\"comp[title]\" id=\"comp[title]\" onkeyup=\"unBlock(\'step1_block_C\');\"/></td>\r\n    </tr>\r\n    <tr>\r\n      <td valign=\"top\"><small><b>Examples:</b></small></td>\r\n      <td><small>&quot;The chubby family reunion&quot;<br />&quot;Company shape-up marathon&quot;<br />&quot;Super Summer Slimdown&quot;</small></td>\r\n    </tr>\r\n    </table>\r\n\r\n</td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td>\r\n</tr>\r\n<tr><td style=\"height:10px;background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif);background-repeat:no-repeat;background-position:top left;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif);background-repeat:no-repeat;background-position:top left;\"></td></tr>\r\n</table>\r\n    <br/>\r\n    <div style=\"border:solid 1px black;width:94%;height:85px;\">\r\n      test\r\n    </div>\r\n</td>\r\n<td valign=\"top\">\r\n<table border=0 cellpadding=0 cellspacing=0>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_left.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table1_header_bg.gif);background-repeat:repeat-x;\">\r\n\r\nC. Who\'s competing...\r\n</td>\r\n<td><img src=\"{$skinFolder}images/ehc/containers/grayTable/table1_header_right2.gif\"></td>\r\n</tr>\r\n<tr>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_left.gif);background-repeat:repeat-y;\"></td>\r\n<td>\r\n\r\n<div onclick=\"validateDiv(this);\" id=\"step1_block_C\" style=\"margin-top:-1px;margin-left:-10px;border:solid 1px gray;background-color:silver;zIndex:100;position:absolute;filter:alpha(opacity=25);-moz-opacity:0.25;\">\r\n    <table border=0 cellpaddin=0 cellspacing=0>\r\n      <tr>\r\n	<td colspan=\"2\">\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	     <tr>\r\n	       <td colspan=2><li style=\"color:#cccccc\">Invite your friends</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small style=\"color:#cccccc\">\r\n		   My friend\'s Name:\r\n                 </small>\r\n	       </td>\r\n	       <td>\r\n	         &nbsp;&nbsp;&nbsp;<input type=\"text id=\"tmp1\" name=\"temp1\" style=\"width:110px;\" disabled />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small style=\"color:#cccccc\">\r\n		   My friend\'s Email:\r\n	         </small>\r\n	       </td>\r\n	       <td>\r\n	          &nbsp;&nbsp;&nbsp;<input type=\"text id=\"tmp1\" name=\"temp1\" style=\"width:110px;\" disabled/>\r\n               </td>\r\n             </tr>\r\n             <tr>\r\n	       <td colspan=\"2\" align=\"right\">\r\n	         <small style=\"color:#cccccc\">\r\n		   <span>\r\n                     Add more\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	</td>\r\n      </tr>\r\n      <tr><td colspan=\"2\"><li style=\"color:#cccccc\">Let them know with an email...</li></td></tr>\r\n      <tr>\r\n        <td valign=\"top\" colspan=2>\r\n	  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	      <tr>\r\n		 <td valign=\"top\">\r\n		    <small style=\"color:#cccccc\">\r\n			<table border=0 cellpadding=0 cellspacing=0 width=\"100%\">\r\n			  <tr><td>&nbsp;&nbsp;&nbsp;<input type=\"radio\" value=\"kind\" name=\"tmp2\"/> <span style=\"color:#cccccc;\">Kind Message</span></td></tr>\r\n			  <tr><td>&nbsp;&nbsp;&nbsp;<input type=\"radio\" value=\"smack\" name=\"tmp2\"/> <span style=\"color:#cccccc;\">Trash Talking Message</span></td></tr>\r\n			  <tr><td>&nbsp;&nbsp;&nbsp;<input type=\"radio\" value=\"challenge\" name=\"tmp2\"/> <span style=\"color:#cccccc;\">Motivational Message</span></td></tr>\r\n			  <tr><td>&nbsp;&nbsp;&nbsp;<input type=\"radio\" value=\"custom\" name=\"tmp2\"/> <span style=\"color:#cccccc;\">Make Your Own Message</span></td></tr>\r\n                        </table>\r\n		    </small>\r\n		 </td>\r\n		 <td valign=\"top\" id=\"invateHolder\">\r\n		    <div id=\"tmp3\" style=\"border-bottom:solid 1px #CCC;border-left:solid 1px #CCC;padding-right:5px;visibility:hidden;\">\r\n			<small style=\"color:#cccccc\">\r\n			   <a href=\"javascript:setInviteWeight(\'heavy\');\">Heavy</a><br />\r\n			   <a href=\"javascript:setInviteWeight(\'medium\');\">Medium</a><br />\r\n			   <a href=\"javascript:setInviteWeight(\'light\');\">Light</a><br />\r\n			</small>\r\n		    </div>\r\n		</td>\r\n	     </tr>\r\n	  </table>\r\n        </td>\r\n     </tr>\r\n     </table>\r\n</div>\r\n\r\n    <table border=0 cellpaddin=0 cellspacing=0>\r\n      <tr>\r\n	<td colspan=\"2\">\r\n	  <div id=\'enterFriendNameDiv\' style=\'display:block;\'>\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	     <tr>\r\n	       <td colspan=2><li>Invate your friends</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   My friend\'s Name:\r\n                 </small>\r\n	       </td>\r\n	       <td>\r\n	         <input type=\"text id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   My friend\'s Email:\r\n	         </small>\r\n	       </td>\r\n	       <td>\r\n		  <input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td colspan=\"2\" align=\"right\">\r\n	         <small>\r\n		   <span onclick=\"extraCompetitors(\'open\');\" style=\"cursor:pointer;\">\r\n                     Add more\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	  </div>\r\n	  <div id=\"myEnteredFriendsDiv\" style=\"display:none;\">\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\r\n	     <tr>\r\n	       <td><li>My Competitors:</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"left\" id=\"competitorListHolder\" style=\"padding-left:15px\">\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   <span onclick=\"editCompetitors();\" style=\"cursor:pointer;\">\r\n                     Edit my competitors\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	  </div>\r\n	</td>\r\n      </tr>\r\n      <tr><td colspan=\"2\"><li>Let them know with an email...</li></td></tr>\r\n      <tr>\r\n        <td valign=\"top\" colspan=2>\r\n	  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	      <tr>\r\n		 <td valign=\"top\">\r\n		    <small>\r\n			<table border=0 cellpadding=0 cellspacing=0 width=\"100%\">\r\n			  <tr><td id=\'kind\'><input type=\"radio\" value=\"kind\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'kind\');\"/> <a href=\"javascript:setInviteStyle(\'kind\');\">Kind Message</a></td></tr>\r\n			  <tr><td id=\'smack\'><input type=\"radio\" value=\"smack\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'smack\');\"/> <a href=\"javascript:setInviteStyle(\'smack\');\">Trash Talking Message</a></td></tr>\r\n			  <tr><td id=\'challenge\'><input type=\"radio\" value=\"challenge\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'challenge\');\" /> <a href=\"javascript:setInviteStyle(\'challenge\');\">Challenge</a></td></tr>\r\n			  <tr><td id=\'custom\'><input type=\"radio\" value=\"custom\" name=\"comp[invite_type]\" onclick=\"setInviteStyle(\'custom\');\"/> <a href=\"javascript:setInviteStyle(\'custom\');\">Make Your Own</a></td></tr>\r\n                        </table>\r\n		    </small>\r\n		 </td>\r\n		 <td valign=\"top\" id=\"invateHolder\">\r\n		    <div id=\"InvateW\" style=\"border-bottom:solid 1px #CCC;border-left:solid 1px #CCC;padding-right:5px;visibility:hidden;\">\r\n			<small>\r\n			   <input type=\"radio\" value=\"heavy\" name=\"comp[invite_subtype]\"  onclick=\"displayLetter(\'{$vanity}\')\" /> <a href=\"javascript:setInviteWeight(\'heavy\');\">Heavy</a><br />\r\n			   <input type=\"radio\" value=\"medium\" name=\"comp[invite_subtype]\" onclick=\"displayLetter(\'{$vanity}\')\" /> <a href=\"javascript:setInviteWeight(\'medium\');\">Medium</a><br />\r\n			   <input type=\"radio\" value=\"light\" name=\"comp[invite_subtype]\" onclick=\"displayLetter(\'{$vanity}\')\" /> <a href=\"javascript:setInviteWeight(\'light\');\">Light</a><br />\r\n			</small>\r\n		    </div>\r\n		</td>\r\n	     </tr>\r\n	  </table>\r\n        </td>\r\n     </tr>\r\n     </table>\r\n\r\n\r\n</td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_body_right2.gif);background-repeat:repeat-y;\"></td>\r\n</tr>\r\n<tr><td style=\"height:10px;background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif);background-repeat:no-repeat;background-position:top left;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif);background-repeat:no-repeat;background-position:top left;\"></td></tr>\r\n</table>\r\n</td>\r\n<td>\r\n</td>\r\n</tr>\r\n</table>\r\n<br />\r\n<table border=\"0\" cellpadding=0 cellspacing=0 width=\"100%\">\r\n<tr>\r\n<td width=\"10px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/top.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/note/topLeftCorner.gif\"></td>\r\n<td style=\"background-image:url({$skinFolder}images/ehc/containers/note/top.gif);background-repeat:repeat-x;\"></td>\r\n<td width=\"15px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/top.gif);background-repeat:repeat-x;\"><img src=\"{$skinFolder}images/ehc/containers/note/topRightCorner.gif\"></td>\r\n</tr>\r\n<tr>\r\n<td width=\"10px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/left.gif);background-repeat:repeat-y;\"></td>\r\n   <td>\r\n      <!-- <iframe src=\"\" id=\"letterHolder\" name=\"letterHolder\" style=\"width:100%;height:410px;\" scrollbars=\"no\" frameborder=\"0\"></iframe> -->\r\n      <div id=\"letterHolder\" name=\"letterHolder\" style=\"width:100%;height:410px;border:solid 1px white;\"></div>\r\n   </td>\r\n<td width=\"10px\" style=\"background-image:url({$skinFolder}images/ehc/containers/note/right.gif);background-repeat:repeat-y;\"></td>\r\n</tr>\r\n<tr><td style=\"height:10px;background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_left.gif);background-repeat:no-repeat;background-position:top left;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_bg.gif);background-repeat:repeat-x;\"></td><td style=\"background-image:url({$skinFolder}images/ehc/containers/grayTable/table_bottom_corner_right.gif);background-repeat:no-repeat;background-position:top left;\"></td></tr>\r\n</table>\r\n{* <iframe src=\"?pg=compCreate/inviteFrame\" style=\"width:100%;height:410px;\" scrollbars=\"no\" frameborder=\"0\"></iframe> *}\r\n\r\n<div id=\"invite-div\"></div>\r\n<br />\r\n\r\n<div align=\"right\">\r\n  <input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" alt=\"Next\" border=\"0\" />\r\n</div>\r\n\r\n<div id=\"myCompetitors\" style=\"width:300px;background-color:white;zIndex:100;position:absolute;display:none;top:-70px;left:300px;border:solid 1px #CCC;filter: alpha(opacity=85)\">\r\n  <center>\r\n   <table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" width=\"95%\">\r\n      <tr><td align=\"right\" valign=\"top\" style=\"height:5px\"><small><span style=\"cursor:pointer;\" onclick=\"extraCompetitors(\'close\');\">close window</span><small></td></tr>\r\n      <tr><td style=\"border-bottom:solid 1px #CCC;\"><h2>More Competitors...</td></tr>\r\n      <tr>\r\n         <td align=\"center\">\r\n	    <table id=\"competitorsTable\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"90%\">\r\n                <tr>\r\n		  <td></td>\r\n		  <td align=\"center\" valign=\"bottom\">Name</td>\r\n                  <td align=\"center\" valign=\"bottom\">Email</td>\r\n                </tr>\r\n	        <tr>\r\n		  <td>2.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>3.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>4.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>5.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>6.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>7.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>8.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>9.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>10.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>11.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n		<tr>\r\n		  <td colspan=\"3\" align=\"right\"><small><span style=\"cursor:pointer;\" onclick=\'addMoreCompetitors();\'>Add More Lines</span></small></td>\r\n		</tr>\r\n            </table>\r\n         </td>\r\n      </tr>\r\n      <tr>\r\n	<td align=\"right\" style=\"border-top:solid 1px #CCC;\"><img style=\"cursor:pointer;\" onclick=\"addingCompetitors();\" src=\"{$skinFolder}images/btn_next.gif\" alt=\"Add\" border=\"0\" /></td>\r\n      </tr>\r\n   </table>\r\n  </center>\r\n</div>\r\n\r\n</form>\r\n\r\n{stored_object_fill_form object=$comp name=\"comp\"}\r\n\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/js-get-data.js\"></script>\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/AJAX.js\"></script>\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/NewComp.js\"></script>\r\n\r\n<script language=\"JavaScript\">\r\n	\r\n        //jsGetData(\'?pg=jsGetData\',\'invite-div\', \'madlib.form\', \'&compType=friends&inviteType=smack\');\r\n\r\n	var examples = Array();\r\n	{foreach from=$examples key=\"key\" item=\"example\"}\r\n	examples[{$key}] = \'{eval var=$example.body|addslashes|replace:\"\\r\":\"\"|replace:\"\\n\":\"\\\\n\"}\';\r\n	{/foreach}\r\n	\r\n	{literal}\r\n\r\n\r\n	{/literal}\r\n</script>'),(4944,272,0.59,'smarty','0','Working...',1141873546,2271,'216.194.127.150','{include file=\"shared:layouts/comp_create_navbar.tpl\"}\r\n\r\n<form method=\"post\" action=\"index.php\">\r\n<div id=\"myCompetitors\" style=\"width:300px;background-color:white;zIndex:100;position:absolute;display:none;top:5;left:300px;border:solid 1px #CCC;filter: alpha(opacity=85);\">\r\n  <center>\r\n   <table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" width=\"95%\">\r\n      <tr><td align=\"right\" valign=\"top\" style=\"height:5px\"><small><span style=\"cursor:pointer;\" onclick=\"extraCompetitors(\'close\');\">close window</span><small></td></tr>\r\n      <tr><td style=\"border-bottom:solid 1px #CCC;\"><h2>More Competitors...</td></tr>\r\n      <tr>\r\n         <td align=\"center\">\r\n	    <table id=\"competitorsTable\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"90%\">\r\n                <tr>\r\n		  <td></td>\r\n		  <td align=\"center\" valign=\"bottom\">Name</td>\r\n                  <td align=\"center\" valign=\"bottom\">Email</td>\r\n                </tr>\r\n	        <tr>\r\n		  <td>1.</td>\r\n		  <td><input type=\"text\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>2.</td>\r\n		  <td><input type=\"text\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>3.</td>\r\n		  <td><input type=\"text\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>4.</td>\r\n		  <td><input type=\"text\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>5.</td>\r\n		  <td><input type=\"text name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>6.</td>\r\n		  <td><input type=\"text\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>7.</td>\r\n		  <td><input type=\"text\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>8.</td>\r\n		  <td><input type=\"text\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>9.</td>\r\n		  <td><input type=\"text\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>10.</td>\r\n		  <td><input type=\"text\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n		<tr>\r\n		  <td colspan=\"3\" align=\"right\"><small><span style=\"cursor:pointer;\" onclick=\'addMoreCompetitors();\'>Add More Lines</span></small></td>\r\n		</tr>\r\n            </table>\r\n         </td>\r\n      </tr>\r\n      <tr>\r\n	<td align=\"right\" style=\"border-top:solid 1px #CCC;\"><img style=\"cursor:pointer;\" src=\"{$skinFolder}images/btn_next.gif\" alt=\"Add\" border=\"0\" /></td>\r\n      </tr>\r\n   </table>\r\n  </center>\r\n</div>\r\n<table width=\"100%\" border=0>\r\n <tr>\r\n  <td nowrap><h2> A. Competing for...</h2></td>\r\n  <td nowrap><h2>B. The competition name is...</h2></td>\r\n  <td nowrap><h2>C. How\'s competing...</h2></td>\r\n </tr>\r\n <tr>\r\n  <td valign=\"top\" width=\"30%\">\r\n    <small>\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"p2p\" checked> <a href=\"javascript:setCompType(\'p2p\');\">Pound for pound <i>(Weight lost)</i></a><br />\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"pctWt\"> <a href=\"javascript:setCompType(\'pctWt\');\">Percent of body weight lost</a><br />\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"minEx\"> <a href=\"javascript:setCompType(\'minEx\');\">Total minutes excercised</a><br />\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"disEx\"> <a href=\"javascript:setCompType(\'disEx\');\">Total distance excercised</a><br />\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"veg\"> <a href=\"javascript:setCompType(\'veg\');\">Vegitable challenge</a><br />\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"gain\"> <a href=\"javascript:setCompType(\'gain\');\">Weight gained</a><br />\r\n    </small>\r\n  </td>\r\n  <td valign=\"top\">\r\n    <table border=0 cellspacing=0>\r\n    <tr>\r\n      <td><h3>Name:</h3></td>\r\n      <td><input type=\"text\" name=\"comp[title]\" /></td>\r\n    </tr>\r\n    <tr>\r\n      <td valign=\"top\"><small><b>Examples:</b></small></td>\r\n      <td><small>&quot;The chubby family reunion&quot;<br />&quot;Company shape-up marathon&quot;<br />&quot;Super Summer Slimdown&quot;</small></td>\r\n    </tr>\r\n    <tr>\r\n      <td colspan=\"2\">\r\n	<br/>\r\n        <div style=\"border:solid 1px black;width:98%;height:60px;\">\r\n	  test\r\n	</div>\r\n      </td>\r\n    </tr>\r\n    </table>\r\n  </td>\r\n  <td valign=\"top\">\r\n     <table border=1 cellpaddin=0 cellspacing=0>\r\n      <tr>\r\n	<td colspan=\"2\">\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	     <tr>\r\n	       <td colspan=2><li>Invate your friends</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   My friend\'s Name:\r\n                 </small>\r\n	       </td>\r\n	       <td>\r\n	         <input type=\"text name=\"comp[competitor_name]\" style=\"width:110px;\" />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   My friend\'s Email:\r\n	         </small>\r\n	       </td>\r\n	       <td>\r\n	         <input type=\"text name=\"comp[competitor_email]\" style=\"width:110px;\" />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td colspan=\"2\" align=\"right\">\r\n	         <small>\r\n		   <span onclick=\"extraCompetitors(\'open\');\" style=\"cursor:pointer;\">\r\n                     Add more\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	</td>\r\n      </tr>\r\n      <tr>\r\n        <td valign=\"top\">\r\n          <small>\r\n            <input type=\"radio\" value=\"kind\" name=\"comp[invite_type]\" /> <a href=\"javascript:setInviteStyle(\'kind\');\">Kind</a><br />\r\n            <input type=\"radio\" value=\"smack\" name=\"comp[invite_type]\" /> <a href=\"javascript:setInviteStyle(\'smack\');\">Smack</a><br />\r\n            <input type=\"radio\" value=\"challenge\" name=\"comp[invite_type]\" /> <a href=\"javascript:setInviteStyle(\'challenge\');\">Challenge</a><br />\r\n            <input type=\"radio\" value=\"custom\" name=\"comp[invite_type]\" /> <a href=\"javascript:setInviteStyle(\'custom\');\">Make Your Own</a><br />\r\n          </small>\r\n        </td>\r\n        <td valign=\"top\">\r\n	    <div id=\"InvateW\" style=\"border-bottom:solid 1px #CCC;border-left:solid 1px #CCC;padding-right:5px;visibility:hidden;\">\r\n	      <small>\r\n	    	<input type=\"radio\" value=\"heavy\" name=\"comp[invite_subtype]\" /> <a href=\"javascript:setInviteWeight(\'heavy\');\">Heavy</a><br />\r\n            	<input type=\"radio\" value=\"medium\" name=\"comp[invite_subtype]\" /> <a href=\"javascript:setInviteWeight(\'medium\');\">Medium</a><br />\r\n            	<input type=\"radio\" value=\"light\" name=\"comp[invite_subtype]\" /> <a href=\"javascript:setInviteWeight(\'light\');\">Light</a><br />\r\n              </small>\r\n            </div>\r\n        </td>\r\n     </tr>\r\n     </table>\r\n  </td>\r\n</tr>\r\n</table>\r\n\r\n{* <iframe src=\"?pg=compCreate/inviteFrame\" style=\"width:100%;height:410px;\" scrollbars=\"no\" frameborder=\"0\"></iframe> *}\r\n\r\n<div id=\"invite-div\"></div>\r\n<br />\r\n\r\n<div align=\"right\">\r\n  <a href=\"?pg=compCreate/step2\"><img src=\"{$skinFolder}images/btn_next.gif\" alt=\"Next\" border=\"0\" /></a>\r\n</div>\r\n</form>\r\n\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/js-get-data.js\"></script>\r\n\r\n<script language=\"JavaScript\">\r\n	\r\n        //jsGetData(\'?pg=jsGetData\',\'invite-div\', \'madlib.form\', \'&compType=friends&inviteType=smack\');\r\n\r\n	var examples = Array();\r\n	{foreach from=$examples key=\"key\" item=\"example\"}\r\n	examples[{$key}] = \'{eval var=$example.body|addslashes|replace:\"\\r\":\"\"|replace:\"\\n\":\"\\\\n\"}\';\r\n	{/foreach}\r\n	\r\n	{literal}\r\n	function setCompType(type) {\r\n		checkValue(type, \'comp[type]\');\r\n	}\r\n\r\n	function setInviteStyle(type) {\r\n		checkValue(type, \'comp[invite_type]\');\r\n		var oInvateW = document.getElementById(\'InvateW\');\r\n		if(type == \'custom\')\r\n		  oInvateW.style.visibility = \"hidden\";\r\n		else\r\n		  oInvateW.style.visibility = \"visible\";\r\n	}\r\n\r\n	function setInviteWeight(type) {\r\n		checkValue(type, \'comp[invite_subtype]\');\r\n	}\r\n\r\n	function checkValue(type, eName) {\r\n		var aInput=document.getElementsByName(eName);\r\n		for (i = 0; i < aInput.length; i++)\r\n		{\r\n			aInput[i].checked = (aInput[i].value == type) ? true : false;\r\n		}\r\n	}\r\n\r\n	/*  This functions should go inside of JS file  *******/\r\n\r\n	// This function adds a new row in the CompetitorsTable to add more competitors\r\n        // the current limit of competitors is 10\r\n	function addMoreCompetitors(){\r\n	  var oTable = document.getElementById(\"competitorsTable\");\r\n	  var rowNum = oTable.rows.length - 1;\r\n          if(rowNum >= 15){\r\n		alert(\'message: No more than 15\');\r\n		return;\r\n	  }\r\n	  var w = oTable.insertRow(rowNum);\r\n	  var x = w.insertCell(0);\r\n	  var y = w.insertCell(1);\r\n	  var z = w.insertCell(2);\r\n	\r\n	  x.innerHTML = rowNum + \".\";\r\n	  y.innerHTML = \"<input type=\'text\' name=\'comp[competitor_name]\' style=\'width:110px;\' />\";\r\n	  z.innerHTML = \"<input type=\'text\' name=\'comp[competitor_email]\' style=\'width:110px;\' />\";\r\n	  \r\n	  return;\r\n	}\r\n\r\n	function extraCompetitors(type){\r\n	  var oDiv = document.getElementById(\"myCompetitors\");\r\n\r\n	  if(type == \"close\"){\r\n	     oDiv.style.display = \"none\";\r\n	  }else{\r\n             oDiv.style.display = \"block\";\r\n	  }\r\n	  return;\r\n	}\r\n\r\n	{/literal}\r\n</script>'),(4946,272,0.61,'smarty','0','Working...',1141951593,2271,'216.194.127.150','{include file=\"shared:layouts/comp_create_navbar.tpl\"}\r\n\r\n<form method=\"post\" action=\"index.php\">\r\n<table width=\"100%\" border=0>\r\n <tr>\r\n  <td nowrap><h2> A. Competing for...</h2></td>\r\n  <td nowrap><h2>B. The competition name is...</h2></td>\r\n  <td nowrap><h2>C. How\'s competing...</h2></td>\r\n </tr>\r\n <tr>\r\n  <td valign=\"top\" width=\"30%\">\r\n    <small>\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"p2p\" checked> <a href=\"javascript:setCompType(\'p2p\');\">Pound for pound <i>(Weight lost)</i></a><br />\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"pctWt\"> <a href=\"javascript:setCompType(\'pctWt\');\">Percent of body weight lost</a><br />\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"minEx\"> <a href=\"javascript:setCompType(\'minEx\');\">Total minutes excercised</a><br />\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"disEx\"> <a href=\"javascript:setCompType(\'disEx\');\">Total distance excercised</a><br />\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"veg\"> <a href=\"javascript:setCompType(\'veg\');\">Vegitable challenge</a><br />\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"gain\"> <a href=\"javascript:setCompType(\'gain\');\">Weight gained</a><br />\r\n    </small>\r\n  </td>\r\n  <td valign=\"top\">\r\n    <table border=0 cellspacing=0>\r\n    <tr>\r\n      <td><h3>Name:</h3></td>\r\n      <td><input type=\"text\" name=\"comp[title]\" /></td>\r\n    </tr>\r\n    <tr>\r\n      <td valign=\"top\"><small><b>Examples:</b></small></td>\r\n      <td><small>&quot;The chubby family reunion&quot;<br />&quot;Company shape-up marathon&quot;<br />&quot;Super Summer Slimdown&quot;</small></td>\r\n    </tr>\r\n    <tr>\r\n      <td colspan=\"2\">\r\n	<br/>\r\n        <div style=\"border:solid 1px black;width:98%;height:60px;\">\r\n	  test\r\n	</div>\r\n      </td>\r\n    </tr>\r\n    </table>\r\n  </td>\r\n  <td valign=\"top\">\r\n     <table border=1 cellpaddin=0 cellspacing=0>\r\n      <tr>\r\n	<td colspan=\"2\">\r\n	  <div id=\'enterFriendNameDiv\' style=\'display:block;position:relative\'>\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	     <tr>\r\n	       <td colspan=2><li>Invate your friends</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   My friend\'s Name:\r\n                 </small>\r\n	       </td>\r\n	       <td>\r\n	         <input type=\"text id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   My friend\'s Email:\r\n	         </small>\r\n	       </td>\r\n	       <td>\r\n		  <input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td colspan=\"2\" align=\"right\">\r\n	         <small>\r\n		   <span onclick=\"extraCompetitors(\'open\');\" style=\"cursor:pointer;\">\r\n                     Add more\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	  <div>\r\n	  <div id=\"myEnteredFriends\" style=\"display:none;position:relative\">\r\n	  </div>\r\n	</td>\r\n      </tr>\r\n      <tr>\r\n        <td valign=\"top\">\r\n          <small>\r\n            <input type=\"radio\" value=\"kind\" name=\"comp[invite_type]\" /> <a href=\"javascript:setInviteStyle(\'kind\');\">Kind</a><br />\r\n            <input type=\"radio\" value=\"smack\" name=\"comp[invite_type]\" /> <a href=\"javascript:setInviteStyle(\'smack\');\">Smack</a><br />\r\n            <input type=\"radio\" value=\"challenge\" name=\"comp[invite_type]\" /> <a href=\"javascript:setInviteStyle(\'challenge\');\">Challenge</a><br />\r\n            <input type=\"radio\" value=\"custom\" name=\"comp[invite_type]\" /> <a href=\"javascript:setInviteStyle(\'custom\');\">Make Your Own</a><br />\r\n          </small>\r\n        </td>\r\n        <td valign=\"top\">\r\n	    <div id=\"InvateW\" style=\"border-bottom:solid 1px #CCC;border-left:solid 1px #CCC;padding-right:5px;visibility:hidden;\">\r\n	      <small>\r\n	    	<input type=\"radio\" value=\"heavy\" name=\"comp[invite_subtype]\" /> <a href=\"javascript:setInviteWeight(\'heavy\');\">Heavy</a><br />\r\n            	<input type=\"radio\" value=\"medium\" name=\"comp[invite_subtype]\" /> <a href=\"javascript:setInviteWeight(\'medium\');\">Medium</a><br />\r\n            	<input type=\"radio\" value=\"light\" name=\"comp[invite_subtype]\" /> <a href=\"javascript:setInviteWeight(\'light\');\">Light</a><br />\r\n              </small>\r\n            </div>\r\n        </td>\r\n     </tr>\r\n     </table>\r\n  </td>\r\n</tr>\r\n</table>\r\n\r\n{* <iframe src=\"?pg=compCreate/inviteFrame\" style=\"width:100%;height:410px;\" scrollbars=\"no\" frameborder=\"0\"></iframe> *}\r\n\r\n<div id=\"invite-div\"></div>\r\n<br />\r\n\r\n<div align=\"right\">\r\n  <a href=\"?pg=compCreate/step2\"><img src=\"{$skinFolder}images/btn_next.gif\" alt=\"Next\" border=\"0\" /></a>\r\n</div>\r\n\r\n<div id=\"myCompetitors\" style=\"width:300px;background-color:white;zIndex:100;position:absolute;display:none;top:-70px;left:300px;border:solid 1px #CCC;filter: alpha(opacity=90)\">\r\n  <center>\r\n   <table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" width=\"95%\">\r\n      <tr><td align=\"right\" valign=\"top\" style=\"height:5px\"><small><span style=\"cursor:pointer;\" onclick=\"extraCompetitors(\'close\');\">close window</span><small></td></tr>\r\n      <tr><td style=\"border-bottom:solid 1px #CCC;\"><h2>More Competitors...</td></tr>\r\n      <tr>\r\n         <td align=\"center\">\r\n	    <table id=\"competitorsTable\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"90%\">\r\n                <tr>\r\n		  <td></td>\r\n		  <td align=\"center\" valign=\"bottom\">Name</td>\r\n                  <td align=\"center\" valign=\"bottom\">Email</td>\r\n                </tr>\r\n	        <tr>\r\n		  <td>2.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>3.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>4.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>5.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>6.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>7.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>8.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>9.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>10.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>11.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n		<tr>\r\n		  <td colspan=\"3\" align=\"right\"><small><span style=\"cursor:pointer;\" onclick=\'addMoreCompetitors();\'>Add More Lines</span></small></td>\r\n		</tr>\r\n            </table>\r\n         </td>\r\n      </tr>\r\n      <tr>\r\n	<td align=\"right\" style=\"border-top:solid 1px #CCC;\"><img style=\"cursor:pointer;\" onclick=\"addingCompetitors();\" src=\"{$skinFolder}images/btn_next.gif\" alt=\"Add\" border=\"0\" /></td>\r\n      </tr>\r\n   </table>\r\n  </center>\r\n</div>\r\n\r\n</form>\r\n\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/js-get-data.js\"></script>\r\n\r\n<script language=\"JavaScript\">\r\n	\r\n        //jsGetData(\'?pg=jsGetData\',\'invite-div\', \'madlib.form\', \'&compType=friends&inviteType=smack\');\r\n\r\n	var examples = Array();\r\n	{foreach from=$examples key=\"key\" item=\"example\"}\r\n	examples[{$key}] = \'{eval var=$example.body|addslashes|replace:\"\\r\":\"\"|replace:\"\\n\":\"\\\\n\"}\';\r\n	{/foreach}\r\n	\r\n	{literal}\r\n	function setCompType(type) {\r\n		checkValue(type, \'comp[type]\');\r\n	}\r\n\r\n	function setInviteStyle(type) {\r\n		checkValue(type, \'comp[invite_type]\');\r\n		var oInvateW = document.getElementById(\'InvateW\');\r\n		if(type == \'custom\')\r\n		  oInvateW.style.visibility = \"hidden\";\r\n		else\r\n		  oInvateW.style.visibility = \"visible\";\r\n	}\r\n\r\n	function setInviteWeight(type) {\r\n		checkValue(type, \'comp[invite_subtype]\');\r\n	}\r\n\r\n	function checkValue(type, eName) {\r\n		var aInput=document.getElementsByName(eName);\r\n		for (i = 0; i < aInput.length; i++)\r\n		{\r\n			aInput[i].checked = (aInput[i].value == type) ? true : false;\r\n		}\r\n	}\r\n\r\n	/*  This functions should go inside of JS file  *******/\r\n\r\n	// This function adds a new row in the CompetitorsTable to add more competitors\r\n        // the current limit of competitors is 10\r\n	function addMoreCompetitors(){\r\n	  var oTable = document.getElementById(\"competitorsTable\");\r\n	  var rowNum = oTable.rows.length - 1;\r\n          if(rowNum >= 15){\r\n		alert(\'message: No more than 15\');\r\n		return;\r\n	  }\r\n	  var w = oTable.insertRow(rowNum);\r\n	  var x = w.insertCell(0);\r\n	  var y = w.insertCell(1);\r\n	  var z = w.insertCell(2);\r\n	\r\n	  rowNum++;\r\n	  x.innerHTML = rowNum + \".\";\r\n	  y.innerHTML = \"<input type=\'text\' id=\'comp[competitor_name]\' name=\'comp[competitor_name]\' style=\'width:110px;\' />\";\r\n	  z.innerHTML = \"<input type=\'text\' id=\'comp[competitor_email]\' name=\'comp[competitor_email]\' style=\'width:110px;\' />\";\r\n	  \r\n	  return;\r\n	}\r\n\r\n	function extraCompetitors(type){\r\n	  var oDiv = document.getElementById(\"myCompetitors\");\r\n\r\n	  if(type == \"close\"){\r\n	     oDiv.style.display = \"none\";\r\n	  }else{\r\n	      var nameValidator = document.getElementsByName(\"comp[competitor_name]\");\r\n	      var emailValidator = document.getElementsByName(\"comp[competitor_email]\");\r\n	\r\n		/*alert(nameValidator[0].value);\r\n		alert(emailValidator[0].value);*/\r\n	        if(nameValidator[0].value != \"\" && emailValidator[0].value != \"\")\r\n		{\r\n		   var goOn = validateEmail(emailValidator[0].value,0);\r\n		   if(!goOn)\r\n		     return;\r\n     \r\n		   oDiv.style.display = \"block\";\r\n	        }\r\n		else\r\n		{\r\n		   if(nameValidator[0].value == \"\" && emailValidator[0].value == \"\"){\r\n			alert(\"Please enter the information of your first competitor before adding more competitors\");\r\n			return;\r\n		   }\r\n		   if(nameValidator[0].value == \"\"){\r\n		   	alert(\"Please enter the name of your first competitor before adding more competitors\");\r\n			return;\r\n		   }\r\n		   if(emailValidator[0].value == \"\"){\r\n			alert(\"Please enter the email of your first competitor before adding more competitors\");\r\n			return;\r\n		   }\r\n\r\n	        }\r\n	  }\r\n	  return;\r\n	}\r\n\r\n	function validateEmail(email,comp){\r\n	  var validated = false;\r\n	  var at = false;\r\n	  var dot = false;\r\n	  comp = comp + 1;\r\n\r\n	  if(email.indexOf(\"@\") > -1)\r\n		at = true;\r\n\r\n	  if(email.indexOf(\".\") > -1)\r\n		dot = true;\r\n\r\n\r\n	  if(dot && at)\r\n		validated = true;\r\n\r\n	  if(!dot && at)\r\n	     alert(\'Please correct the email address for competitor \'+comp+\', (.) character missing\');\r\n\r\n	  if(!at && dot)\r\n	     alert(\'Please correct the email address for competitor \'+comp+\', (@) character missing\');\r\n\r\n	  if(!validated && !at && !dot)\r\n	     alert(\'Please enter a valid email address for competitor \'+comp);\r\n	\r\n	  return validated;        \r\n	}\r\n\r\n	function addingCompetitors()\r\n        {\r\n	   var nameValidator = document.getElementsByName(\"comp[competitor_name]\");\r\n	   var emailValidator = document.getElementsByName(\"comp[competitor_email]\");\r\n	   var validator;\r\n\r\n	   for(i=1;i<nameValidator.length;i++)\r\n	   {\r\n	      if(nameValidator[i].value != \"\"){\r\n	         validator = validateEmail(emailValidator[i].value,i);\r\n		 if(!validator){\r\n		   highLigh(i);\r\n		   return false;\r\n	         }\r\n	      }\r\n	   }	\r\n	}\r\n\r\n	function highLigh(row){\r\n	   var oTable = document.getElementById(\"competitorsTable\");\r\n	   var highLightRow = oTable.rows[row].cells[2];\r\n	   alert(highLightRow.innerHTML);\r\n	   highLightRow.bgcolor= \"#CCC\";\r\n           return;\r\n	}\r\n\r\n	{/literal}\r\n</script>'),(4947,272,0.62,'smarty','0','Working...',1141952073,2271,'216.194.127.150','{include file=\"shared:layouts/comp_create_navbar.tpl\"}\r\n\r\n<form method=\"post\" action=\"index.php\">\r\n<table width=\"100%\" border=0>\r\n <tr>\r\n  <td nowrap><h2> A. Competing for...</h2></td>\r\n  <td nowrap><h2>B. The competition name is...</h2></td>\r\n  <td nowrap><h2>C. How\'s competing...</h2></td>\r\n </tr>\r\n <tr>\r\n  <td valign=\"top\" width=\"30%\">\r\n    <small>\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"p2p\" checked> <a href=\"javascript:setCompType(\'p2p\');\">Pound for pound <i>(Weight lost)</i></a><br />\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"pctWt\"> <a href=\"javascript:setCompType(\'pctWt\');\">Percent of body weight lost</a><br />\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"minEx\"> <a href=\"javascript:setCompType(\'minEx\');\">Total minutes excercised</a><br />\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"disEx\"> <a href=\"javascript:setCompType(\'disEx\');\">Total distance excercised</a><br />\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"veg\"> <a href=\"javascript:setCompType(\'veg\');\">Vegitable challenge</a><br />\r\n      <input type=\"radio\" name=\"comp[type]\" value=\"gain\"> <a href=\"javascript:setCompType(\'gain\');\">Weight gained</a><br />\r\n    </small>\r\n  </td>\r\n  <td valign=\"top\">\r\n    <table border=0 cellspacing=0>\r\n    <tr>\r\n      <td><h3>Name:</h3></td>\r\n      <td><input type=\"text\" name=\"comp[title]\" /></td>\r\n    </tr>\r\n    <tr>\r\n      <td valign=\"top\"><small><b>Examples:</b></small></td>\r\n      <td><small>&quot;The chubby family reunion&quot;<br />&quot;Company shape-up marathon&quot;<br />&quot;Super Summer Slimdown&quot;</small></td>\r\n    </tr>\r\n    <tr>\r\n      <td colspan=\"2\">\r\n	<br/>\r\n        <div style=\"border:solid 1px black;width:98%;height:60px;\">\r\n	  test\r\n	</div>\r\n      </td>\r\n    </tr>\r\n    </table>\r\n  </td>\r\n  <td valign=\"top\">\r\n     <table border=1 cellpaddin=0 cellspacing=0>\r\n      <tr>\r\n	<td colspan=\"2\">\r\n	  <div id=\'enterFriendNameDiv\' style=\'display:block;position:relative\'>\r\n	   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n	     <tr>\r\n	       <td colspan=2><li>Invate your friends</li></td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   My friend\'s Name:\r\n                 </small>\r\n	       </td>\r\n	       <td>\r\n	         <input type=\"text id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td align=\"right\">\r\n	         <small>\r\n		   My friend\'s Email:\r\n	         </small>\r\n	       </td>\r\n	       <td>\r\n		  <input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" />\r\n	       </td>\r\n             </tr>\r\n             <tr>\r\n	       <td colspan=\"2\" align=\"right\">\r\n	         <small>\r\n		   <span onclick=\"extraCompetitors(\'open\');\" style=\"cursor:pointer;\">\r\n                     Add more\r\n                   </span>\r\n                 </small>\r\n	        </td>\r\n             </tr>\r\n	   </table>\r\n	  <div>\r\n	  <div id=\"myEnteredFriends\" style=\"display:none;position:relative\">\r\n	  </div>\r\n	</td>\r\n      </tr>\r\n      <tr>\r\n        <td valign=\"top\">\r\n          <small>\r\n            <input type=\"radio\" value=\"kind\" name=\"comp[invite_type]\" /> <a href=\"javascript:setInviteStyle(\'kind\');\">Kind</a><br />\r\n            <input type=\"radio\" value=\"smack\" name=\"comp[invite_type]\" /> <a href=\"javascript:setInviteStyle(\'smack\');\">Smack</a><br />\r\n            <input type=\"radio\" value=\"challenge\" name=\"comp[invite_type]\" /> <a href=\"javascript:setInviteStyle(\'challenge\');\">Challenge</a><br />\r\n            <input type=\"radio\" value=\"custom\" name=\"comp[invite_type]\" /> <a href=\"javascript:setInviteStyle(\'custom\');\">Make Your Own</a><br />\r\n          </small>\r\n        </td>\r\n        <td valign=\"top\">\r\n	    <div id=\"InvateW\" style=\"border-bottom:solid 1px #CCC;border-left:solid 1px #CCC;padding-right:5px;visibility:hidden;\">\r\n	      <small>\r\n	    	<input type=\"radio\" value=\"heavy\" name=\"comp[invite_subtype]\" /> <a href=\"javascript:setInviteWeight(\'heavy\');\">Heavy</a><br />\r\n            	<input type=\"radio\" value=\"medium\" name=\"comp[invite_subtype]\" /> <a href=\"javascript:setInviteWeight(\'medium\');\">Medium</a><br />\r\n            	<input type=\"radio\" value=\"light\" name=\"comp[invite_subtype]\" /> <a href=\"javascript:setInviteWeight(\'light\');\">Light</a><br />\r\n              </small>\r\n            </div>\r\n        </td>\r\n     </tr>\r\n     </table>\r\n  </td>\r\n</tr>\r\n</table>\r\n\r\n{* <iframe src=\"?pg=compCreate/inviteFrame\" style=\"width:100%;height:410px;\" scrollbars=\"no\" frameborder=\"0\"></iframe> *}\r\n\r\n<div id=\"invite-div\"></div>\r\n<br />\r\n\r\n<div align=\"right\">\r\n  <a href=\"?pg=compCreate/step2\"><img src=\"{$skinFolder}images/btn_next.gif\" alt=\"Next\" border=\"0\" /></a>\r\n</div>\r\n\r\n<div id=\"myCompetitors\" style=\"width:300px;background-color:white;zIndex:100;position:absolute;display:none;top:-70px;left:300px;border:solid 1px #CCC;filter: alpha(opacity=90)\">\r\n  <center>\r\n   <table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" width=\"95%\">\r\n      <tr><td align=\"right\" valign=\"top\" style=\"height:5px\"><small><span style=\"cursor:pointer;\" onclick=\"extraCompetitors(\'close\');\">close window</span><small></td></tr>\r\n      <tr><td style=\"border-bottom:solid 1px #CCC;\"><h2>More Competitors...</td></tr>\r\n      <tr>\r\n         <td align=\"center\">\r\n	    <table id=\"competitorsTable\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"90%\">\r\n                <tr>\r\n		  <td></td>\r\n		  <td align=\"center\" valign=\"bottom\">Name</td>\r\n                  <td align=\"center\" valign=\"bottom\">Email</td>\r\n                </tr>\r\n	        <tr>\r\n		  <td>2.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>3.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>4.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>5.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>6.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>7.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>8.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>9.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>10.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n	        <tr>\r\n		  <td>11.</td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_name]\" name=\"comp[competitor_name]\" style=\"width:110px;\" /></td>\r\n		  <td><input type=\"text\" id=\"comp[competitor_email]\" name=\"comp[competitor_email]\" style=\"width:110px;\" /></td>\r\n		</tr>\r\n		<tr>\r\n		  <td colspan=\"3\" align=\"right\"><small><span style=\"cursor:pointer;\" onclick=\'addMoreCompetitors();\'>Add More Lines</span></small></td>\r\n		</tr>\r\n            </table>\r\n         </td>\r\n      </tr>\r\n      <tr>\r\n	<td align=\"right\" style=\"border-top:solid 1px #CCC;\"><img style=\"cursor:pointer;\" onclick=\"addingCompetitors();\" src=\"{$skinFolder}images/btn_next.gif\" alt=\"Add\" border=\"0\" /></td>\r\n      </tr>\r\n   </table>\r\n  </center>\r\n</div>\r\n\r\n</form>\r\n\r\n<script language=\"javascript\" type=\"text/javascript\" src=\"/js/js-get-data.js\"></script>\r\n\r\n<script language=\"JavaScript\">\r\n	\r\n        //jsGetData(\'?pg=jsGetData\',\'invite-div\', \'madlib.form\', \'&compType=friends&inviteType=smack\');\r\n\r\n	var examples = Array();\r\n	{foreach from=$examples key=\"key\" item=\"example\"}\r\n	examples[{$key}] = \'{eval var=$example.body|addslashes|replace:\"\\r\":\"\"|replace:\"\\n\":\"\\\\n\"}\';\r\n	{/foreach}\r\n	\r\n	{literal}\r\n	function setCompType(type) {\r\n		checkValue(type, \'comp[type]\');\r\n	}\r\n\r\n	function setInviteStyle(type) {\r\n		checkValue(type, \'comp[invite_type]\');\r\n		var oInvateW = document.getElementById(\'InvateW\');\r\n		if(type == \'custom\')\r\n		  oInvateW.style.visibility = \"hidden\";\r\n		else\r\n		  oInvateW.style.visibility = \"visible\";\r\n	}\r\n\r\n	function setInviteWeight(type) {\r\n		checkValue(type, \'comp[invite_subtype]\');\r\n	}\r\n\r\n	function checkValue(type, eName) {\r\n		var aInput=document.getElementsByName(eName);\r\n		for (i = 0; i < aInput.length; i++)\r\n		{\r\n			aInput[i].checked = (aInput[i].value == type) ? true : false;\r\n		}\r\n	}\r\n\r\n	/*  This functions should go inside of JS file  *******/\r\n\r\n	// This function adds a new row in the CompetitorsTable to add more competitors\r\n        // the current limit of competitors is 10\r\n	function addMoreCompetitors(){\r\n	  var oTable = document.getElementById(\"competitorsTable\");\r\n	  var rowNum = oTable.rows.length - 1;\r\n          if(rowNum >= 15){\r\n		alert(\'message: No more than 15\');\r\n		return;\r\n	  }\r\n	  var w = oTable.insertRow(rowNum);\r\n	  var x = w.insertCell(0);\r\n	  var y = w.insertCell(1);\r\n	  var z = w.insertCell(2);\r\n	\r\n	  rowNum++;\r\n	  x.innerHTML = rowNum + \".\";\r\n	  y.innerHTML = \"<input type=\'text\' id=\'comp[competitor_name]\' name=\'comp[competitor_name]\' style=\'width:110px;\' />\";\r\n	  z.innerHTML = \"<input type=\'text\' id=\'comp[competitor_email]\' name=\'comp[competitor_email]\' style=\'width:110px;\' />\";\r\n	  \r\n	  return;\r\n	}\r\n\r\n	function extraCompetitors(type){\r\n	  var oDiv = document.getElementById(\"myCompetitors\");\r\n\r\n	  if(type == \"close\"){\r\n	     oDiv.style.display = \"none\";\r\n	  }else{\r\n	      var nameValidator = document.getElementsByName(\"comp[competitor_name]\");\r\n	      var emailValidator = document.getElementsByName(\"comp[competitor_email]\");\r\n	\r\n		/*alert(nameValidator[0].value);\r\n		alert(emailValidator[0].value);*/\r\n	        if(nameValidator[0].value != \"\" && emailValidator[0].value != \"\")\r\n		{\r\n		   var goOn = validateEmail(emailValidator[0].value,0);\r\n		   if(!goOn)\r\n		     return;\r\n     \r\n		   oDiv.style.display = \"block\";\r\n	        }\r\n		else\r\n		{\r\n		   if(nameValidator[0].value == \"\" && emailValidator[0].value == \"\"){\r\n			alert(\"Please enter the information of your first competitor before adding more competitors\");\r\n			return;\r\n		   }\r\n		   if(nameValidator[0].value == \"\"){\r\n		   	alert(\"Please enter the name of your first competitor before adding more competitors\");\r\n			return;\r\n		   }\r\n		   if(emailValidator[0].value == \"\"){\r\n			alert(\"Please enter the email of your first competitor before adding more competitors\");\r\n			return;\r\n		   }\r\n\r\n	        }\r\n	  }\r\n	  return;\r\n	}\r\n\r\n	function validateEmail(email,comp){\r\n	  var validated = false;\r\n	  var at = false;\r\n	  var dot = false;\r\n	  comp = comp + 1;\r\n\r\n	  if(email.indexOf(\"@\") > -1)\r\n		at = true;\r\n\r\n	  if(email.indexOf(\".\") > -1)\r\n		dot = true;\r\n\r\n\r\n	  if(dot && at)\r\n		validated = true;\r\n\r\n	  if(!dot && at)\r\n	     alert(\'Please correct the email address for competitor \'+comp+\', (.) character missing\');\r\n\r\n	  if(!at && dot)\r\n	     alert(\'Please correct the email address for competitor \'+comp+\', (@) character missing\');\r\n\r\n	  if(!validated && !at && !dot)\r\n	     alert(\'Please enter a valid email address for competitor \'+comp);\r\n	\r\n	  return validated;        \r\n	}\r\n\r\n	function addingCompetitors()\r\n        {\r\n	   var nameValidator = document.getElementsByName(\"comp[competitor_name]\");\r\n	   var emailValidator = document.getElementsByName(\"comp[competitor_email]\");\r\n	   var validator;\r\n\r\n	   for(i=1;i<nameValidator.length;i++)\r\n	   {\r\n	      if(nameValidator[i].value != \"\"){\r\n	         validator = validateEmail(emailValidator[i].value,i);\r\n		 highLigh(i,2,validator);\r\n		 if(!validator){\r\n		   return false;\r\n	         }\r\n	      }\r\n	   }	\r\n	}\r\n\r\n	function highLigh(row,cell,validator){\r\n	   var oTable = document.getElementById(\"competitorsTable\");\r\n	   var highLightRow = oTable.rows[row].cells[cell];\r\n	   highLightRow.style.backgroundColor = !validator ? \"darkred\" : \"\";\r\n           return;\r\n	}\r\n\r\n	{/literal}\r\n</script>'),(4958,299,0.19,'php','0','Page created.',1141976916,2,'24.2.76.126','<?php\r\n\r\n$fp = fopen(\"/www/logs/20060227_request_log.php\", \'r\');\r\n\r\n$data = array();\r\n$totalCount = 0;\r\n$totalTime = 0.0;\r\n$totalQueries = 0;\r\n\r\nwhile (!feof($fp)) {\r\n	$line = fgets($fp, 4096);\r\n	$lineItems = split(\',\', $line);\r\n\r\n	$totalCount++;\r\n	$data[\'vanities\'][$lineItems[0]]++;\r\n	$data[\'domains\'][$lineItems[1]]++;\r\n	$totalTime += (float) $lineItems[2];\r\n	$data[\'pages\'][$lineItems[3]]++;\r\n	$totalQueries += (int) $lineItems[4];\r\n	$data[\'users\'][$lineItems[7]]++;\r\n	$data[\'ips\'][$lineItems[8]]++;\r\n}\r\n\r\nfclose($fp);\r\n\r\n$totalIps = count($data[\'ips\']);\r\n$totalUsers = count($data[\'users\']);\r\n\r\n\r\necho \"Total hits: <b>$totalCount</b><br />\";\r\necho \"Total time processing: <b>$totalTime seconds</b> (<b>\" . ($totalTime / 60) . \" minutes</b>)<br />\";\r\necho \"Average time processing: <b>\" . ($totalTime / $totalCount) . \"</b><br />\";\r\necho \"Queries processed: <b>$totalQueries</b><br />\";\r\necho \"Average queries processed: <b>\" . ($totalQueries / $totalCount) . \"</b><br />\";\r\necho \"Unique IP Addresses: <b>$totalIps</b><br />\";\r\necho \"Unique users: <b>$totalUsers</b><br />\";\r\n\r\n$keys = array_keys($data);\r\n\r\nforeach ($keys as $key) {\r\n	arsort($data[$key]);\r\n	\r\n	echo <<<EOL\r\n<br />\r\n<h2>{$key}</h2>\r\n<table>\r\nEOL;\r\n\r\n	foreach ($data[$key] as $item=>$count) {\r\n		echo <<<EOL\r\n<tr>\r\n	<td>$item</td>\r\n	<td align=\"right\">$count</td>\r\n</tr>\r\nEOL;\r\n	}\r\n\r\n	echo <<<EOL\r\n</table>\r\nEOL;\r\n\r\n}\r\n?>'),(4959,299,0.20,'php','0','Page created.',1141977335,2,'24.2.76.126','<form method=\"get\" action=\"index.php\">\r\n<input type=\"hidden\" name=\"pg\" value=\"<?php echo $_REQUEST[\'pg\']; ?>\" />\r\nDate: <input type=\"text\" name=\"date\" value=\"<?php echo $_REQUEST[\'date\']; ?>\" />\r\n<input type=\"submit\" value=\"Go\" />\r\n</form>\r\n\r\n<?php\r\n\r\n$targetDate = strtotime($_REQUEST[\'date\']);\r\n\r\nif (0 >= $targetDate) {\r\n	return;\r\n}\r\n\r\n$targetDate = date(\'Ymd\', $targetDate);\r\n\r\n$fp = fopen(\"/www/logs/\" . $targetDate . \"_request_log.php\", \'r\');\r\n\r\n$data = array();\r\n$totalCount = 0;\r\n$totalTime = 0.0;\r\n$totalQueries = 0;\r\n\r\nwhile (!feof($fp)) {\r\n	$line = fgets($fp, 4096);\r\n	$lineItems = split(\',\', $line);\r\n\r\n	$totalCount++;\r\n	$data[\'vanities\'][$lineItems[0]]++;\r\n	$data[\'domains\'][$lineItems[1]]++;\r\n	$totalTime += (float) $lineItems[2];\r\n	$data[\'pages\'][$lineItems[3]]++;\r\n	$totalQueries += (int) $lineItems[4];\r\n	$data[\'users\'][$lineItems[7]]++;\r\n	$data[\'ips\'][$lineItems[8]]++;\r\n}\r\n\r\nfclose($fp);\r\n\r\n$totalIps = count($data[\'ips\']);\r\n$totalUsers = count($data[\'users\']);\r\n\r\necho \"<h1>Report for: \" . $_REQUEST[\'date\'] . \"</h1>\";\r\n\r\necho \"Total hits: <b>$totalCount</b><br />\";\r\necho \"Total time processing: <b>$totalTime seconds</b> (<b>\" . ($totalTime / 60) . \" minutes</b>)<br />\";\r\necho \"Average time processing: <b>\" . ($totalTime / $totalCount) . \"</b><br />\";\r\necho \"Queries processed: <b>$totalQueries</b><br />\";\r\necho \"Average queries processed: <b>\" . ($totalQueries / $totalCount) . \"</b><br />\";\r\necho \"Unique IP Addresses: <b>$totalIps</b><br />\";\r\necho \"Unique users: <b>$totalUsers</b><br />\";\r\n\r\n$keys = array_keys($data);\r\n\r\nforeach ($keys as $key) {\r\n	arsort($data[$key]);\r\n	\r\n	echo <<<EOL\r\n<br />\r\n<h2>{$key}</h2>\r\n<table>\r\nEOL;\r\n\r\n	foreach ($data[$key] as $item=>$count) {\r\n		echo <<<EOL\r\n<tr>\r\n	<td>$item</td>\r\n	<td align=\"right\">$count</td>\r\n</tr>\r\nEOL;\r\n	}\r\n\r\n	echo <<<EOL\r\n</table>\r\nEOL;\r\n\r\n}\r\n?>'),(4961,299,0.22,'php','0','Page created.',1141977559,2,'24.2.76.126','<form method=\"get\" action=\"index.php\">\r\n<input type=\"hidden\" name=\"pg\" value=\"<?php echo $_REQUEST[\'pg\']; ?>\" />\r\nDate: <input type=\"text\" name=\"date\" value=\"<?php echo $_REQUEST[\'date\']; ?>\" />\r\n<input type=\"submit\" value=\"Go\" />\r\n</form>\r\n\r\n<?php\r\n\r\n$targetDate = ($_REQUEST[\'date\']) ? strtotime($_REQUEST[\'date\']) : 0;\r\n\r\nif (0 >= $targetDate) {\r\n	return;\r\n}\r\n\r\n$targetFile = \"/www/logs/\" . date(\'Ymd\', $targetDate) . \"_request_log.php\";\r\n\r\n$fp = fopen($targetFile, \'r\');\r\n\r\nif (!$fp) {\r\n	echo \"No report for \" . $_REQUEST[\'date\'] . \"<br />\";\r\n	return;\r\n}\r\n\r\n$data = array();\r\n$totalCount = 0;\r\n$totalTime = 0.0;\r\n$totalQueries = 0;\r\n\r\nwhile (!feof($fp)) {\r\n	$line = fgets($fp, 4096);\r\n	$lineItems = split(\',\', $line);\r\n\r\n	$totalCount++;\r\n	$data[\'vanities\'][$lineItems[0]]++;\r\n	$data[\'domains\'][$lineItems[1]]++;\r\n	$totalTime += (float) $lineItems[2];\r\n	$data[\'pages\'][$lineItems[3]]++;\r\n	$totalQueries += (int) $lineItems[4];\r\n	$data[\'users\'][$lineItems[7]]++;\r\n	$data[\'ips\'][$lineItems[8]]++;\r\n}\r\n\r\nfclose($fp);\r\n\r\n$totalIps = count($data[\'ips\']);\r\n$totalUsers = count($data[\'users\']);\r\n\r\necho \"<h1>Report for: \" . date(\"l, F d, Y\", $targetDate) . \"</h1>\";\r\n\r\necho \"Total hits: <b>$totalCount</b><br />\";\r\necho \"Total time processing: <b>$totalTime seconds</b> (<b>\" . ($totalTime / 60) . \" minutes</b>)<br />\";\r\necho \"Average time processing: <b>\" . ($totalTime / $totalCount) . \"</b><br />\";\r\necho \"Queries processed: <b>$totalQueries</b><br />\";\r\necho \"Average queries processed: <b>\" . ($totalQueries / $totalCount) . \"</b><br />\";\r\necho \"Unique IP Addresses: <b>$totalIps</b><br />\";\r\necho \"Unique users: <b>$totalUsers</b><br />\";\r\n\r\n$keys = array_keys($data);\r\n\r\nforeach ($keys as $key) {\r\n	arsort($data[$key]);\r\n	\r\n	echo <<<EOL\r\n<br />\r\n<h2>{$key}</h2>\r\n<table>\r\nEOL;\r\n\r\n	foreach ($data[$key] as $item=>$count) {\r\n		echo <<<EOL\r\n<tr>\r\n	<td>$item</td>\r\n	<td align=\"right\">$count</td>\r\n</tr>\r\nEOL;\r\n	}\r\n\r\n	echo <<<EOL\r\n</table>\r\nEOL;\r\n\r\n}\r\n?>'),(4963,299,0.24,'php','0','Page created.',1141977667,2,'24.2.76.126','<form method=\"get\" action=\"index.php\">\r\n<input type=\"hidden\" name=\"pg\" value=\"<?php echo $_REQUEST[\'pg\']; ?>\" />\r\nDate: <input type=\"text\" name=\"date\" value=\"<?php echo $_REQUEST[\'date\']; ?>\" />\r\n<input type=\"submit\" value=\"Go\" />\r\n</form>\r\n\r\n<?php\r\n\r\n$targetDate = ($_REQUEST[\'date\']) ? strtotime($_REQUEST[\'date\']) : 0;\r\n\r\nif (0 >= $targetDate) {\r\n	return;\r\n}\r\n\r\n$targetFile = \"/www/logs/\" . date(\'Ymd\', $targetDate) . \"_request_log.php\";\r\n\r\n$fp = @fopen($targetFile, \'r\');\r\n\r\nif (!$fp) {\r\n	echo \"No report for \" . $_REQUEST[\'date\'] . \"<br />\";\r\n	return;\r\n}\r\n\r\n$data = array();\r\n$totalCount = 0;\r\n$totalTime = 0.0;\r\n$totalQueries = 0;\r\n\r\nwhile (!feof($fp)) {\r\n	$line = fgets($fp, 4096);\r\n	$lineItems = split(\',\', $line);\r\n\r\n	$totalCount++;\r\n	$data[\'vanities\'][$lineItems[0]]++;\r\n	$data[\'domains\'][$lineItems[1]]++;\r\n	$totalTime += (float) $lineItems[2];\r\n	$data[\'pages\'][$lineItems[3]]++;\r\n	$totalQueries += (int) $lineItems[4];\r\n	$data[\'users\'][$lineItems[7]]++;\r\n	$data[\'ips\'][$lineItems[8]]++;\r\n}\r\n\r\nfclose($fp);\r\n\r\n$totalIps = count($data[\'ips\']);\r\n$totalUsers = count($data[\'users\']);\r\n\r\necho \"<h1>Report for: \" . date(\"l, F j, Y\", $targetDate) . \"</h1>\";\r\n\r\necho \"Total hits: <b>$totalCount</b><br />\";\r\necho \"Total time processing: <b>$totalTime seconds</b> (<b>\" . ($totalTime / 60) . \" minutes</b>)<br />\";\r\necho \"Average time processing: <b>\" . ($totalTime / $totalCount) . \"</b><br />\";\r\necho \"Queries processed: <b>$totalQueries</b><br />\";\r\necho \"Average queries processed: <b>\" . ($totalQueries / $totalCount) . \"</b><br />\";\r\necho \"Unique IP Addresses: <b>$totalIps</b><br />\";\r\necho \"Unique users: <b>$totalUsers</b><br />\";\r\n\r\n$keys = array_keys($data);\r\n\r\nforeach ($keys as $key) {\r\n	arsort($data[$key]);\r\n	\r\n	echo <<<EOL\r\n<br />\r\n<h2>{$key}</h2>\r\n<table>\r\nEOL;\r\n\r\n	foreach ($data[$key] as $item=>$count) {\r\n		echo <<<EOL\r\n<tr>\r\n	<td>$item</td>\r\n	<td align=\"right\">$count</td>\r\n</tr>\r\nEOL;\r\n	}\r\n\r\n	echo <<<EOL\r\n</table>\r\nEOL;\r\n\r\n}\r\n?>'),(4965,299,0.26,'php','0','Page created.',1141977829,2,'24.2.76.126','<h1>Site Usage Report</h1>\r\n<form method=\"get\" action=\"index.php\">\r\n<input type=\"hidden\" name=\"pg\" value=\"<?php echo $_REQUEST[\'pg\']; ?>\" />\r\nDate: <input type=\"text\" name=\"date\" value=\"<?php echo $_REQUEST[\'date\']; ?>\" />\r\n<input type=\"submit\" value=\"Go\" />\r\n</form>\r\n\r\n<?php\r\n\r\n$targetDate = ($_REQUEST[\'date\']) ? strtotime($_REQUEST[\'date\']) : 0;\r\n\r\nif (0 >= $targetDate) {\r\n	return;\r\n}\r\n\r\n$targetFile = \"/www/logs/\" . date(\'Ymd\', $targetDate) . \"_request_log.php\";\r\n\r\n$fp = @fopen($targetFile, \'r\');\r\n\r\nif (!$fp) {\r\n	echo \"No report for \" . $_REQUEST[\'date\'] . \"<br />\";\r\n	return;\r\n}\r\n\r\n$data = array();\r\n$totalCount = 0;\r\n$totalTime = 0.0;\r\n$totalQueries = 0;\r\n\r\nwhile (!feof($fp)) {\r\n	$line = fgets($fp, 4096);\r\n	$lineItems = split(\',\', $line);\r\n\r\n	$totalCount++;\r\n	$data[\'vanities\'][$lineItems[0]]++;\r\n	$data[\'domains\'][$lineItems[1]]++;\r\n	$totalTime += (float) $lineItems[2];\r\n	$data[\'pages\'][$lineItems[3]]++;\r\n	$totalQueries += (int) $lineItems[4];\r\n	$data[\'users\'][$lineItems[7]]++;\r\n	$data[\'ips\'][$lineItems[8]]++;\r\n}\r\n\r\nfclose($fp);\r\n\r\n$totalIps = count($data[\'ips\']);\r\n$totalUsers = count($data[\'users\']);\r\n\r\necho \"<h1>Report for: \" . date(\"l, F j, Y\", $targetDate) . \"</h1>\";\r\n\r\necho \"Total hits: <b>$totalCount</b><br />\";\r\necho \"Total time processing: <b>$totalTime seconds</b> (<b>\" . ($totalTime / 60) . \" minutes</b>)<br />\";\r\necho \"Average time processing: <b>\" . ($totalTime / $totalCount) . \"</b><br />\";\r\necho \"Queries processed: <b>$totalQueries</b><br />\";\r\necho \"Average queries processed: <b>\" . ($totalQueries / $totalCount) . \"</b><br />\";\r\necho \"Unique IP Addresses: <b>$totalIps</b><br />\";\r\necho \"Unique users: <b>$totalUsers</b><br />\";\r\n\r\n$keys = array_keys($data);\r\n\r\necho \"<table>\\n\";\r\n\r\nforeach ($keys as $key) {\r\n	arsort($data[$key]);\r\n	\r\n	echo <<<EOL\r\n<tr>\r\n	<td colspan=\"2\"><h2>{$key}</h2></td>\r\n</tr>\r\nEOL;\r\n\r\n	foreach ($data[$key] as $item=>$count) {\r\n		echo <<<EOL\r\n<tr>\r\n	<td>$item</td>\r\n	<td align=\"right\">$count</td>\r\n</tr>\r\nEOL;\r\n	}\r\n\r\n	echo <<<EOL\r\nEOL;\r\n\r\n}\r\n\r\necho \"</table>\\n\";\r\n\r\n?>'),