(5091,315,0.11,'smarty','0','Page created.',1152287719,1124,'67.181.211.233','NUTRITION FROM THE LAB: Improve mental health with good food, exercise\r\nBy James Penland\r\nDid you know that being more physically active can improve your mental health?\r\n\r\nThe news media are full of stories about the increase in overweight and obesity in the United States. We are reminded that excess weight is a major risk factor for many health problems. These include heart disease, diabetes and osteoporosis. And we repeatedly are told that eating a healthy diet and being physically active are the keys to losing weight and avoiding weight gain.\r\n\r\nMyPyramid.gov, which is based on the Dietary Guidelines for Americans (2005), recommends that adults get at least 30 minutes of \"moderate\" physical activity most days of the week. Moderate activities include walking, housework, gardening, actively playing with children, and yoga. Children should be active for at least 60 minutes a day to avoid gaining weight. Adults trying to lose weight and maintain weight loss should be active 60 to 0 minutes a day. Everyone should spend less time watching television.\r\n\r\nTo learn more about these exercise guidelines, go to MyPyramid.gov, click on \"Inside the Pyramid,\" and then click on the person climbing the stairs for a brisk primer on exercise guidelines.\r\n\r\nMore \"vigorous\" activities, such as jogging and aerobics, may provide greater benefits for physical health. Most people realize that physical activity can increase their endurance, strength and flexibility. What many people don\'t realize is that physical activity also is important for mental health.\r\n\r\nDepression is a mood disorder. A person may be depressed if he or she has several of the following symptoms for at least 2 weeks. Feelings of sadness, worthlessness, hopelessness, fatigue or irritability. Difficulty concentrating, remembering or making decisions. Problems with sleep or appetite.\r\n\r\nA depressed person may have physical symptoms that do not respond to treatment, such as headaches, digestive disorders and chronic pain. People with severe depression may have thoughts of death or suicide, or actually attempt suicide. People who are depressed often have poorer physical health and are less productive at work or school. Depression also results in less self-esteem, social problems and reduced quality of life.\r\n\r\n\"The Global Burden of Disease Study,\" a survey of health problems and their costs in countries around the world showed that depression is the fourth-leading cause of disability worldwide.\r\n\r\nAbout 10 percent of Americans suffer from depression each year. Depression costs the U.S. economy $80 billion each year in lost work productivity and treatment. Treatments include psychotherapy (talk therapy), medication and hospitalization. Unfortunately, only about one in four of those affected seek treatment.\r\n\r\nStudies have found that several months of moderate physical activity can reduce the symptoms of depression. In fact, the benefits of activity often were similar to those obtained from taking antidepressant medications and psychotherapy. And benefits continued even when people resumed a less active lifestyle.\r\n\r\nBut consistency is important. Brief periods of vigorous physical activity may not be as beneficial as regular moderate activity. In fact, some studies have found no effect of vigorous activity on depression. Others have found an increase in depression. In addition, we don\'t know whether moderate activity plays a role in helping prevent depression.\r\n\r\nStudies at the Cooper Institute in Dallas have found that regular physical activity may help reduce the symptoms of panic and anxiety disorders. Fatigue and sleep problems which are common in mental health disorders also were found to improve with more physical activity. Other studies have found that more physical activity helps people to cope better with stress. And it improves self-esteem and overall quality of life.\r\n\r\nScientists now are trying to find out whether increasing physical activity might improve chronic disorders such as schizophrenia and Alzheimer\'s disease. Initial studies show that more physical activity improves quality of life in these groups.\r\n\r\nThe Grand Forks Human Nutrition Research Center is collaborating in a national study to find out what makes it so hard for people to eat healthy diets and be more physically active. We also are trying to find out whether the DGA recommendations work in all the different age and ethnic groups in the country.\r\n\r\nAnother goal of this study is to find out whether following the DGA recommendations for physical activity and diet will improve symptoms of depression and other aspects of mental health.\r\n\r\nThe message is clear. Being physically active promotes a healthy weight and reduces risk of chronic physical diseases. But it is also likely that physical activity reduces depression and it may be a useful treatment for other chronic mental health problems.\r\n'),(5092,315,0.12,'smarty','0','Page created.',1152287931,1124,'67.181.211.233','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n\r\n\r\nDid you know that being more physically active can improve your mental health?\r\n\r\nThe news media are full of stories about the increase in overweight and obesity in the United States. We are reminded that excess weight is a major risk factor for many health problems. These include heart disease, diabetes and osteoporosis. And we repeatedly are told that eating a healthy diet and being physically active are the keys to losing weight and avoiding weight gain.\r\n\r\nMyPyramid.gov, which is based on the Dietary Guidelines for Americans (2005), recommends that adults get at least 30 minutes of \"moderate\" physical activity most days of the week. Moderate activities include walking, housework, gardening, actively playing with children, and yoga. Children should be active for at least 60 minutes a day to avoid gaining weight. Adults trying to lose weight and maintain weight loss should be active 60 to 0 minutes a day. Everyone should spend less time watching television.\r\n\r\nTo learn more about these exercise guidelines, go to MyPyramid.gov, click on \"Inside the Pyramid,\" and then click on the person climbing the stairs for a brisk primer on exercise guidelines.\r\n\r\nMore \"vigorous\" activities, such as jogging and aerobics, may provide greater benefits for physical health. Most people realize that physical activity can increase their endurance, strength and flexibility. What many people don\'t realize is that physical activity also is important for mental health.\r\n\r\nDepression is a mood disorder. A person may be depressed if he or she has several of the following symptoms for at least 2 weeks. Feelings of sadness, worthlessness, hopelessness, fatigue or irritability. Difficulty concentrating, remembering or making decisions. Problems with sleep or appetite.\r\n\r\nA depressed person may have physical symptoms that do not respond to treatment, such as headaches, digestive disorders and chronic pain. People with severe depression may have thoughts of death or suicide, or actually attempt suicide. People who are depressed often have poorer physical health and are less productive at work or school. Depression also results in less self-esteem, social problems and reduced quality of life.\r\n\r\n\"The Global Burden of Disease Study,\" a survey of health problems and their costs in countries around the world showed that depression is the fourth-leading cause of disability worldwide.\r\n\r\nAbout 10 percent of Americans suffer from depression each year. Depression costs the U.S. economy $80 billion each year in lost work productivity and treatment. Treatments include psychotherapy (talk therapy), medication and hospitalization. Unfortunately, only about one in four of those affected seek treatment.\r\n\r\nStudies have found that several months of moderate physical activity can reduce the symptoms of depression. In fact, the benefits of activity often were similar to those obtained from taking antidepressant medications and psychotherapy. And benefits continued even when people resumed a less active lifestyle.\r\n\r\nBut consistency is important. Brief periods of vigorous physical activity may not be as beneficial as regular moderate activity. In fact, some studies have found no effect of vigorous activity on depression. Others have found an increase in depression. In addition, we don\'t know whether moderate activity plays a role in helping prevent depression.\r\n\r\nStudies at the Cooper Institute in Dallas have found that regular physical activity may help reduce the symptoms of panic and anxiety disorders. Fatigue and sleep problems which are common in mental health disorders also were found to improve with more physical activity. Other studies have found that more physical activity helps people to cope better with stress. And it improves self-esteem and overall quality of life.\r\n\r\nScientists now are trying to find out whether increasing physical activity might improve chronic disorders such as schizophrenia and Alzheimer\'s disease. Initial studies show that more physical activity improves quality of life in these groups.\r\n\r\nThe Grand Forks Human Nutrition Research Center is collaborating in a national study to find out what makes it so hard for people to eat healthy diets and be more physically active. We also are trying to find out whether the DGA recommendations work in all the different age and ethnic groups in the country.\r\n\r\nAnother goal of this study is to find out whether following the DGA recommendations for physical activity and diet will improve symptoms of depression and other aspects of mental health.\r\n\r\nThe message is clear. Being physically active promotes a healthy weight and reduces risk of chronic physical diseases. But it is also likely that physical activity reduces depression and it may be a useful treatment for other chronic mental health problems.\r\n'),(5093,315,0.13,'smarty','0','Page created.',1152288265,1124,'67.181.211.233','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n\r\n\r\n<p>Did you know that being more physically active can improve your mental health?</p>\r\n\r\n<p>The news media are full of stories about the increase in overweight and obesity in the United States. We are reminded that excess weight is a major risk factor for many health problems. These include heart disease, diabetes and osteoporosis. And we repeatedly are told that eating a healthy diet and being physically active are the keys to losing weight and avoiding weight gain.</p>\r\n\r\n<p>MyPyramid.gov, which is based on the Dietary Guidelines for Americans (2005), recommends that adults get at least 30 minutes of \"moderate\" physical activity most days of the week. Moderate activities include walking, housework, gardening, actively playing with children, and yoga. Children should be active for at least 60 minutes a day to avoid gaining weight. Adults trying to lose weight and maintain weight loss should be active 60 to 0 minutes a day. Everyone should spend less time watching television.</p>\r\n\r\n<p>To learn more about these exercise guidelines, go to MyPyramid.gov, click on \"Inside the Pyramid,\" and then click on the person climbing the stairs for a brisk primer on exercise guidelines.</p>\r\n\r\n<p>More \"vigorous\" activities, such as jogging and aerobics, may provide greater benefits for physical health. Most people realize that physical activity can increase their endurance, strength and flexibility. What many people don\'t realize is that physical activity also is important for mental health.</p>\r\n\r\n<p>Depression is a mood disorder. A person may be depressed if he or she has several of the following symptoms for at least 2 weeks. Feelings of sadness, worthlessness, hopelessness, fatigue or irritability. Difficulty concentrating, remembering or making decisions. Problems with sleep or appetite.</p>\r\n\r\n<p>A depressed person may have physical symptoms that do not respond to treatment, such as headaches, digestive disorders and chronic pain. People with severe depression may have thoughts of death or suicide, or actually attempt suicide. People who are depressed often have poorer physical health and are less productive at work or school. Depression also results in less self-esteem, social problems and reduced quality of life.</p>\r\n\r\n<p>\"The Global Burden of Disease Study,\" a survey of health problems and their costs in countries around the world showed that depression is the fourth-leading cause of disability worldwide.</p>\r\n\r\n<p>About 10 percent of Americans suffer from depression each year. Depression costs the U.S. economy $80 billion each year in lost work productivity and treatment. Treatments include psychotherapy (talk therapy), medication and hospitalization. Unfortunately, only about one in four of those affected seek treatment.</p>\r\n\r\n<p>Studies have found that several months of moderate physical activity can reduce the symptoms of depression. In fact, the benefits of activity often were similar to those obtained from taking antidepressant medications and psychotherapy. And benefits continued even when people resumed a less active lifestyle.</p>\r\n\r\n<p>But consistency is important. Brief periods of vigorous physical activity may not be as beneficial as regular moderate activity. In fact, some studies have found no effect of vigorous activity on depression. Others have found an increase in depression. In addition, we don\'t know whether moderate activity plays a role in helping prevent depression.</p>\r\n\r\n<p>Studies at the Cooper Institute in Dallas have found that regular physical activity may help reduce the symptoms of panic and anxiety disorders. Fatigue and sleep problems which are common in mental health disorders also were found to improve with more physical activity. Other studies have found that more physical activity helps people to cope better with stress. And it improves self-esteem and overall quality of life.</p>\r\n\r\n<p>Scientists now are trying to find out whether increasing physical activity might improve chronic disorders such as schizophrenia and Alzheimer\'s disease. Initial studies show that more physical activity improves quality of life in these groups.</p>\r\n\r\n<p>The Grand Forks Human Nutrition Research Center is collaborating in a national study to find out what makes it so hard for people to eat healthy diets and be more physically active. We also are trying to find out whether the DGA recommendations work in all the different age and ethnic groups in the country.</p>\r\n\r\n<p>Another goal of this study is to find out whether following the DGA recommendations for physical activity and diet will improve symptoms of depression and other aspects of mental health.</p>\r\n\r\n<p>The message is clear. Being physically active promotes a healthy weight and reduces risk of chronic physical diseases. But it is also likely that physical activity reduces depression and it may be a useful treatment for other chronic mental health problems.</p>\r\n'),(5094,315,0.14,'smarty','1','Page created.',1152288367,1124,'67.181.211.233','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n\r\n<hl><b>NUTRITION FROM THE LAB: Improve mental health with good food, exercise.</b></hl>\r\n\r\n<p>Did you know that being more physically active can improve your mental health?</p>\r\n\r\n<p>The news media are full of stories about the increase in overweight and obesity in the United States. We are reminded that excess weight is a major risk factor for many health problems. These include heart disease, diabetes and osteoporosis. And we repeatedly are told that eating a healthy diet and being physically active are the keys to losing weight and avoiding weight gain.</p>\r\n\r\n<p>MyPyramid.gov, which is based on the Dietary Guidelines for Americans (2005), recommends that adults get at least 30 minutes of \"moderate\" physical activity most days of the week. Moderate activities include walking, housework, gardening, actively playing with children, and yoga. Children should be active for at least 60 minutes a day to avoid gaining weight. Adults trying to lose weight and maintain weight loss should be active 60 to 0 minutes a day. Everyone should spend less time watching television.</p>\r\n\r\n<p>To learn more about these exercise guidelines, go to MyPyramid.gov, click on \"Inside the Pyramid,\" and then click on the person climbing the stairs for a brisk primer on exercise guidelines.</p>\r\n\r\n<p>More \"vigorous\" activities, such as jogging and aerobics, may provide greater benefits for physical health. Most people realize that physical activity can increase their endurance, strength and flexibility. What many people don\'t realize is that physical activity also is important for mental health.</p>\r\n\r\n<p>Depression is a mood disorder. A person may be depressed if he or she has several of the following symptoms for at least 2 weeks. Feelings of sadness, worthlessness, hopelessness, fatigue or irritability. Difficulty concentrating, remembering or making decisions. Problems with sleep or appetite.</p>\r\n\r\n<p>A depressed person may have physical symptoms that do not respond to treatment, such as headaches, digestive disorders and chronic pain. People with severe depression may have thoughts of death or suicide, or actually attempt suicide. People who are depressed often have poorer physical health and are less productive at work or school. Depression also results in less self-esteem, social problems and reduced quality of life.</p>\r\n\r\n<p>\"The Global Burden of Disease Study,\" a survey of health problems and their costs in countries around the world showed that depression is the fourth-leading cause of disability worldwide.</p>\r\n\r\n<p>About 10 percent of Americans suffer from depression each year. Depression costs the U.S. economy $80 billion each year in lost work productivity and treatment. Treatments include psychotherapy (talk therapy), medication and hospitalization. Unfortunately, only about one in four of those affected seek treatment.</p>\r\n\r\n<p>Studies have found that several months of moderate physical activity can reduce the symptoms of depression. In fact, the benefits of activity often were similar to those obtained from taking antidepressant medications and psychotherapy. And benefits continued even when people resumed a less active lifestyle.</p>\r\n\r\n<p>But consistency is important. Brief periods of vigorous physical activity may not be as beneficial as regular moderate activity. In fact, some studies have found no effect of vigorous activity on depression. Others have found an increase in depression. In addition, we don\'t know whether moderate activity plays a role in helping prevent depression.</p>\r\n\r\n<p>Studies at the Cooper Institute in Dallas have found that regular physical activity may help reduce the symptoms of panic and anxiety disorders. Fatigue and sleep problems which are common in mental health disorders also were found to improve with more physical activity. Other studies have found that more physical activity helps people to cope better with stress. And it improves self-esteem and overall quality of life.</p>\r\n\r\n<p>Scientists now are trying to find out whether increasing physical activity might improve chronic disorders such as schizophrenia and Alzheimer\'s disease. Initial studies show that more physical activity improves quality of life in these groups.</p>\r\n\r\n<p>The Grand Forks Human Nutrition Research Center is collaborating in a national study to find out what makes it so hard for people to eat healthy diets and be more physically active. We also are trying to find out whether the DGA recommendations work in all the different age and ethnic groups in the country.</p>\r\n\r\n<p>Another goal of this study is to find out whether following the DGA recommendations for physical activity and diet will improve symptoms of depression and other aspects of mental health.</p>\r\n\r\n<p>The message is clear. Being physically active promotes a healthy weight and reduces risk of chronic physical diseases. But it is also likely that physical activity reduces depression and it may be a useful treatment for other chronic mental health problems.</p>\r\n'),(5095,316,0.10,'smarty','0','Page created.',1152288960,1124,'67.181.211.233',''),(5096,316,0.11,'smarty','0','Page created.',1152288983,1124,'67.181.211.233','<hl><b>Know Your Fats</b></hl>\r\n\r\n\r\n<b>Know your fats</b>\r\n<p>Knowing which fats raise LDL cholesterol and which ones don\'t is the first step in lowering your risk of heart disease. Saturated fat, trans-fatty acids and dietary cholesterol raise blood cholesterol. Monounsaturated fats and polyunsaturated fats don\'t. Some studies suggest they might even help lower LDL cholesterol slightly when eaten as part of a low-saturated-fat diet. </p>\r\n<b>Saturated fats</b>\r\n<p>Saturated fat is the main dietary cause of high blood cholesterol. The American Heart Association recommends that you limit your saturated fat intake to 7–10 percent of total calories (or less) each day. If you have coronary heart disease or your LDL cholesterol level is 100 mg/dL or greater, your doctor should recommend the Therapeutic Lifestyle Change (TLC) Diet. It recommends 25–35 percent of calories from fat, with less than 7 percent coming from saturated fat. Cholesterol is limited to less than 200 milligrams a day.</p>\r\n<p>Saturated fat is found mostly in foods from animals and some plants.</p>\r\n<p><b>Foods from animals</b> — These include beef, beef fat, veal, lamb, pork, lard, poultry fat, butter, cream, milk, cheeses and other dairy products made from whole milk. These foods also contain dietary cholesterol.</p>\r\n<p><b>Foods from plants</b> — These include coconut oil, palm oil and palm kernel oil (often called tropical oils), and cocoa butter.</p>\r\n<b>Hydrogenated fats</b>\r\n<p>During food processing, fats may undergo a chemical process called hydrogenation. This is common in margarine and shortening. These fats also raise blood cholesterol. Use hydrogenated fats only if they contain no more than two grams of saturated fat per tablespoon. The saturated fat content of most margarines and spreads is printed on the package or Nutrition Facts label.</p>\r\n<p><b>Polyunsaturated and monounsaturated fats</b>  — Polyunsaturated and monounsaturated fats are the two unsaturated fats. They\'re found primarily in oils from plants.</p>\r\n<p><b>Polyunsaturated fats </b>— These include safflower, sesame and sunflower seeds, corn and soybeans, many nuts and seeds, and their oils.</p>\r\n<p><b>Monounsaturated fats</b> — These include canola, olive and peanut oils, and avocados.</p>\r\n<p>Both polyunsaturated and monounsaturated fats may help lower your blood cholesterol level when you use them in place of saturated fats in your diet. But a moderate intake of all types of fat is best. Use polyunsaturated or monounsaturated oils — and margarines and spreads made from them — in limited amounts. This is recommended in place of using fats with a high saturated fat content, such as butter, lard or hydrogenated shortenings.</p>\r\n<b>Trans-fatty acids</b>\r\n<p>Unsaturated fatty acids can be in one of two shapes — \"cis\" and \"trans.\" These terms refer to the physical positioning of hydrogen atoms around the carbon chain. The cis form is more common than the trans form. Trans-fatty acids (TFA) are found in small amounts in various animal products such as beef, pork, lamb and the butterfat in butter and milk. TFA are also formed during the process of hydrogenation, making margarine, shortening, cooking oils and the foods made from them a major source of TFA in the American diet. Partially hydrogenated vegetable oils provide about three-fourths of the TFA in the U.S. diet.</p>\r\n<p>To make foods that will stay fresh on the shelf or to get a solid fat product, such as margarine, food manufacturers hydrogenate polyunsaturated oils. \"Hydrogenate\" means to add hydrogen. When unsaturated fatty acids are hydrogenated, some of the hydrogen atoms are added on opposite sides of the molecule to the already attached hydrogen. Cis double bonds convert to trans double bonds, and the fatty acids become saturated.</p>\r\n<b>How are trans-fatty acids harmful?</b>\r\n<p>In clinical studies, TFA or hydrogenated fats tend to raise total blood cholesterol levels. Some scientists believe they raise cholesterol levels more than saturated fats. TFA also tend to raise LDL (\"bad\") cholesterol and lower HDL (\"good\") cholesterol when used instead of cis fatty acids or natural oils. These changes may increase the risk of heart disease.</p>\r\n<p>Because there are no standard methods, it\'s difficult to estimate the TFA content of food items. It\'s also difficult to estimate intake, especially long-term intake. The four most important sources of TFA in one large group of women studied included margarine; beef, pork or lamb as the main dish; cookies (biscuits); and white bread.</p>\r\n<p>Recently the FDA passed a regulation requiring trans fat to be listed on the nutrition label by January 2006. Although changes in labeling are important, they aren\'t enough. Many fast foods contain high levels of TFA. There are no labeling regulations for fast food, and it can even be advertised as cholesterol-free and cooked in vegetable oil. Eating one doughnut at breakfast (3.2 g of TFA) and a large order of french fries at lunch (6.8 g of TFA) add 10 g of TFA to one\'s diet, so the lack of regulations for labeling restaurant foods can be harmful to your health.</p>\r\n<b>Is butter better than margarine?</b>\r\n<p>Recent studies on the potential cholesterol-raising effects of TFA have raised public concern about the use of margarine and whether other options, including butter, might be a better choice. Some stick margarines contribute more TFA than unhydrogenated oils or other fats.</p>\r\n<p>Because butter is rich in both saturated fat and cholesterol, it\'s potentially a highly atherogenic food (a food that causes the arteries to be blocked). Most margarine is made from vegetable fat and provides no dietary cholesterol. The more liquid the margarine, i.e., tub or liquid forms, the less hydrogenated it is and the less TFA it contains.</p>\r\n<b>What can I do to regulate my intake of trans-fatty acids?</b>\r\n<p>The American Heart Association\'s Nutrition Committee strongly advises that healthy Americans over age 2 limit their intake of saturated fat to 7–10 percent of total calories. Individuals should adjust total fat intake to meet their caloric needs. People who are overweight or obese should limit their total fat intake to no more than 30 percent of total calories.</p>\r\n<p>On the basis of current data, the American Heart Association recommends that consumers follow these tips:\r\n<li>Use naturally occurring, unhydrogenated oil such as canola or olive oil when possible. </li>\r\n<li>Look for processed foods made with unhydrogenated oil rather than hydrogenated or saturated fat. </li>\r\n<li>Use margarine as a substitute for butter, and choose soft margarines (liquid or tub varieties) over harder stick forms. Shop for margarine with no more than 2 grams of saturated fat per tablespoon and with liquid vegetable oil as the first ingredient. Look for those labeled \"trans-fat free.\" </li>\r\n<li>French fries, doughnuts, cookies and crackers are examples of foods that are high in TFA. Consume them infrequently.  </li>\r\n<li>Limit the saturated fat in your diet. If you don\'t eat a lot of saturated fat, you won\'t be consuming a lot of TFA. </li>\r\n<li>Eat commercially fried foods and commercial baked goods infrequently. Not only are these foods very high in fat, but that fat is also likely to be very hydrogenated, meaning a lot of TFA. </li>\r\n<li>Commercial shortening and deep-frying fats will continue to be made by hydrogenation and will contain TFA. That\'s just one more reason to eat fried fast food infrequently. </li>\r\n'),(5097,316,0.12,'smarty','1','Page created.',1152289121,1124,'67.181.211.233','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n\r\n<hl><b>Know Your Fats</b></hl>\r\n\r\n\r\n<b>Know your fats</b>\r\n<p>Knowing which fats raise LDL cholesterol and which ones don\'t is the first step in lowering your risk of heart disease. Saturated fat, trans-fatty acids and dietary cholesterol raise blood cholesterol. Monounsaturated fats and polyunsaturated fats don\'t. Some studies suggest they might even help lower LDL cholesterol slightly when eaten as part of a low-saturated-fat diet. </p>\r\n<b>Saturated fats</b>\r\n<p>Saturated fat is the main dietary cause of high blood cholesterol. The American Heart Association recommends that you limit your saturated fat intake to 7–10 percent of total calories (or less) each day. If you have coronary heart disease or your LDL cholesterol level is 100 mg/dL or greater, your doctor should recommend the Therapeutic Lifestyle Change (TLC) Diet. It recommends 25–35 percent of calories from fat, with less than 7 percent coming from saturated fat. Cholesterol is limited to less than 200 milligrams a day.</p>\r\n<p>Saturated fat is found mostly in foods from animals and some plants.</p>\r\n<p><b>Foods from animals</b> — These include beef, beef fat, veal, lamb, pork, lard, poultry fat, butter, cream, milk, cheeses and other dairy products made from whole milk. These foods also contain dietary cholesterol.</p>\r\n<p><b>Foods from plants</b> — These include coconut oil, palm oil and palm kernel oil (often called tropical oils), and cocoa butter.</p>\r\n<b>Hydrogenated fats</b>\r\n<p>During food processing, fats may undergo a chemical process called hydrogenation. This is common in margarine and shortening. These fats also raise blood cholesterol. Use hydrogenated fats only if they contain no more than two grams of saturated fat per tablespoon. The saturated fat content of most margarines and spreads is printed on the package or Nutrition Facts label.</p>\r\n<p><b>Polyunsaturated and monounsaturated fats</b>  — Polyunsaturated and monounsaturated fats are the two unsaturated fats. They\'re found primarily in oils from plants.</p>\r\n<p><b>Polyunsaturated fats </b>— These include safflower, sesame and sunflower seeds, corn and soybeans, many nuts and seeds, and their oils.</p>\r\n<p><b>Monounsaturated fats</b> — These include canola, olive and peanut oils, and avocados.</p>\r\n<p>Both polyunsaturated and monounsaturated fats may help lower your blood cholesterol level when you use them in place of saturated fats in your diet. But a moderate intake of all types of fat is best. Use polyunsaturated or monounsaturated oils — and margarines and spreads made from them — in limited amounts. This is recommended in place of using fats with a high saturated fat content, such as butter, lard or hydrogenated shortenings.</p>\r\n<b>Trans-fatty acids</b>\r\n<p>Unsaturated fatty acids can be in one of two shapes — \"cis\" and \"trans.\" These terms refer to the physical positioning of hydrogen atoms around the carbon chain. The cis form is more common than the trans form. Trans-fatty acids (TFA) are found in small amounts in various animal products such as beef, pork, lamb and the butterfat in butter and milk. TFA are also formed during the process of hydrogenation, making margarine, shortening, cooking oils and the foods made from them a major source of TFA in the American diet. Partially hydrogenated vegetable oils provide about three-fourths of the TFA in the U.S. diet.</p>\r\n<p>To make foods that will stay fresh on the shelf or to get a solid fat product, such as margarine, food manufacturers hydrogenate polyunsaturated oils. \"Hydrogenate\" means to add hydrogen. When unsaturated fatty acids are hydrogenated, some of the hydrogen atoms are added on opposite sides of the molecule to the already attached hydrogen. Cis double bonds convert to trans double bonds, and the fatty acids become saturated.</p>\r\n<b>How are trans-fatty acids harmful?</b>\r\n<p>In clinical studies, TFA or hydrogenated fats tend to raise total blood cholesterol levels. Some scientists believe they raise cholesterol levels more than saturated fats. TFA also tend to raise LDL (\"bad\") cholesterol and lower HDL (\"good\") cholesterol when used instead of cis fatty acids or natural oils. These changes may increase the risk of heart disease.</p>\r\n<p>Because there are no standard methods, it\'s difficult to estimate the TFA content of food items. It\'s also difficult to estimate intake, especially long-term intake. The four most important sources of TFA in one large group of women studied included margarine; beef, pork or lamb as the main dish; cookies (biscuits); and white bread.</p>\r\n<p>Recently the FDA passed a regulation requiring trans fat to be listed on the nutrition label by January 2006. Although changes in labeling are important, they aren\'t enough. Many fast foods contain high levels of TFA. There are no labeling regulations for fast food, and it can even be advertised as cholesterol-free and cooked in vegetable oil. Eating one doughnut at breakfast (3.2 g of TFA) and a large order of french fries at lunch (6.8 g of TFA) add 10 g of TFA to one\'s diet, so the lack of regulations for labeling restaurant foods can be harmful to your health.</p>\r\n<b>Is butter better than margarine?</b>\r\n<p>Recent studies on the potential cholesterol-raising effects of TFA have raised public concern about the use of margarine and whether other options, including butter, might be a better choice. Some stick margarines contribute more TFA than unhydrogenated oils or other fats.</p>\r\n<p>Because butter is rich in both saturated fat and cholesterol, it\'s potentially a highly atherogenic food (a food that causes the arteries to be blocked). Most margarine is made from vegetable fat and provides no dietary cholesterol. The more liquid the margarine, i.e., tub or liquid forms, the less hydrogenated it is and the less TFA it contains.</p>\r\n<b>What can I do to regulate my intake of trans-fatty acids?</b>\r\n<p>The American Heart Association\'s Nutrition Committee strongly advises that healthy Americans over age 2 limit their intake of saturated fat to 7–10 percent of total calories. Individuals should adjust total fat intake to meet their caloric needs. People who are overweight or obese should limit their total fat intake to no more than 30 percent of total calories.</p>\r\n<p>On the basis of current data, the American Heart Association recommends that consumers follow these tips:\r\n<li>Use naturally occurring, unhydrogenated oil such as canola or olive oil when possible. </li>\r\n<li>Look for processed foods made with unhydrogenated oil rather than hydrogenated or saturated fat. </li>\r\n<li>Use margarine as a substitute for butter, and choose soft margarines (liquid or tub varieties) over harder stick forms. Shop for margarine with no more than 2 grams of saturated fat per tablespoon and with liquid vegetable oil as the first ingredient. Look for those labeled \"trans-fat free.\" </li>\r\n<li>French fries, doughnuts, cookies and crackers are examples of foods that are high in TFA. Consume them infrequently.  </li>\r\n<li>Limit the saturated fat in your diet. If you don\'t eat a lot of saturated fat, you won\'t be consuming a lot of TFA. </li>\r\n<li>Eat commercially fried foods and commercial baked goods infrequently. Not only are these foods very high in fat, but that fat is also likely to be very hydrogenated, meaning a lot of TFA. </li>\r\n<li>Commercial shortening and deep-frying fats will continue to be made by hydrogenation and will contain TFA. That\'s just one more reason to eat fried fast food infrequently. </li>\r\n'),(5098,317,0.10,'smarty','0','Page created.',1152289414,1124,'67.181.211.233',''),(5099,317,0.11,'smarty','0','Page created.',1152289552,1124,'67.181.211.233','<hl><b>Strength Training For Weight Loss Success </b></hl>\r\nby Deborah L. Mullen, CSCS\r\n<b>Why Diets Don\'t Work</b>\r\n<p>If you go \"on a diet\", what does that mean? That you will eventually go \"off the diet\". If you haven\'t changed your eating and physical activity behaviors, what\'s going to happen? Rationally, you know the answer, but emotionally, you engage in wishful thinking, hoping that this time you will lose the weight and keep it off. What weight are we talking about? When people tell me they lost 12 pounds in two weeks, I ask \"12 pounds of what?\" On low-calorie diets, about 25 percent of the weight loss may be muscle (Ballor & Polehlman 1994).</p>\r\n<p>Losing muscle is a bad thing. Muscle tissue is very active--it burns a lot of calories. Every pound of muscle burns about 35 calories per day, just staying alive. Using the above example, if you lost 12 pounds, then, you lost three pounds of muscle. You would be burning 105 less calories per day or 3150 per month. Since there are 3500 calories in a pound of fat, you would gain almost one pound of fat per month just from the muscle mass that you lost!</p>\r\n<b>Why The Middle-Aged Spread Keeps Spreading</b>\r\n<p>Inactive adults lose around one-half pound of muscle per year, or five pounds per decade. Since most people continue to eat as much as usual, what\'s going to happen? If you take in more calories then you burn, the extra calories get stored as fat. Fat is less dense then muscle---a pound of fat takes up more room than a pound of muscle. This means that as you lose muscle and gain fat, your weight might remain the same over the years, but your waistline will continue to expand!</p>\r\n<b>Rev Up Your Metabolism--The Key to Permanent Weight Loss</b>\r\n<p>How can we lose and keep off extra fat? You need to increase your resting metabolic rate (RMR), which is the pace your body burns calories at rest. Your RMR is closely linked to the amount of muscle you have--remember, muscle burns more calories than fat. Adding muscle will raise your RMR and will greatly increase the chance that the weight loss (more accurately fat loss) will be maintained.</p>\r\n<b>Strength Training Versus Aerobic Exercise</b>\r\n<p>Contrary to what many people think, strength training is as important, maybe more important to successful fat loss than aerobic exercise. The reason lies in the amount of calories that are burned when you aren\'t exercising. Depending on the intensity and your weight, an aerobic workout (walking, cycling, stairstepping) will burn approximately 300 calories per hour. If the exercise is strenuous enough (which is unlikely in the beginning exerciser) the RMR will be elevated temporarily up to a few hours afterwards. Compare this to strength training which elevates the RMR permanently. The RMR accounts for 60 to 75 percent of your daily calorie expenditure, so even a modest increase will help burn off more fat.</p>\r\n<p>One study (Campbell 1994) found that a three-month basic strength-training program resulted in the subjects gaining three pound of muscle and losing four pounds of fat, while eating 370 more calories per day (a 15 percent calorie increase). Remember, aerobic exercise generally doesn\'t increase muscle tissue. In fact, excessive amount of aerobic exercise combined with a low-calorie diet can cause the loss of some muscle tissue. This is not to say that overweight individuals shouldn\'t do aerobic exercise--it offers many health benefits and is a part of a weight loss program. It\'s just that aerobic exercise by itself may not be the best solution for permanent weight (fat) loss.</p>\r\n<p>Don\'t think that you need to workout in a gym for two hours to strength train. Significant gains can be made with a consistent 30-minute workout performed 2 -3 times per week. This could be your key to successful weight control!</p>\r\n'),(5100,317,0.12,'smarty','1','Page created.',1152289606,1124,'67.181.211.233','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n\r\n\r\n<hl><b>Strength Training For Weight Loss Success </b></hl>\r\nby Deborah L. Mullen, CSCS\r\n<b>Why Diets Don\'t Work</b>\r\n<p>If you go \"on a diet\", what does that mean? That you will eventually go \"off the diet\". If you haven\'t changed your eating and physical activity behaviors, what\'s going to happen? Rationally, you know the answer, but emotionally, you engage in wishful thinking, hoping that this time you will lose the weight and keep it off. What weight are we talking about? When people tell me they lost 12 pounds in two weeks, I ask \"12 pounds of what?\" On low-calorie diets, about 25 percent of the weight loss may be muscle (Ballor & Polehlman 1994).</p>\r\n<p>Losing muscle is a bad thing. Muscle tissue is very active--it burns a lot of calories. Every pound of muscle burns about 35 calories per day, just staying alive. Using the above example, if you lost 12 pounds, then, you lost three pounds of muscle. You would be burning 105 less calories per day or 3150 per month. Since there are 3500 calories in a pound of fat, you would gain almost one pound of fat per month just from the muscle mass that you lost!</p>\r\n<b>Why The Middle-Aged Spread Keeps Spreading</b>\r\n<p>Inactive adults lose around one-half pound of muscle per year, or five pounds per decade. Since most people continue to eat as much as usual, what\'s going to happen? If you take in more calories then you burn, the extra calories get stored as fat. Fat is less dense then muscle---a pound of fat takes up more room than a pound of muscle. This means that as you lose muscle and gain fat, your weight might remain the same over the years, but your waistline will continue to expand!</p>\r\n<b>Rev Up Your Metabolism--The Key to Permanent Weight Loss</b>\r\n<p>How can we lose and keep off extra fat? You need to increase your resting metabolic rate (RMR), which is the pace your body burns calories at rest. Your RMR is closely linked to the amount of muscle you have--remember, muscle burns more calories than fat. Adding muscle will raise your RMR and will greatly increase the chance that the weight loss (more accurately fat loss) will be maintained.</p>\r\n<b>Strength Training Versus Aerobic Exercise</b>\r\n<p>Contrary to what many people think, strength training is as important, maybe more important to successful fat loss than aerobic exercise. The reason lies in the amount of calories that are burned when you aren\'t exercising. Depending on the intensity and your weight, an aerobic workout (walking, cycling, stairstepping) will burn approximately 300 calories per hour. If the exercise is strenuous enough (which is unlikely in the beginning exerciser) the RMR will be elevated temporarily up to a few hours afterwards. Compare this to strength training which elevates the RMR permanently. The RMR accounts for 60 to 75 percent of your daily calorie expenditure, so even a modest increase will help burn off more fat.</p>\r\n<p>One study (Campbell 1994) found that a three-month basic strength-training program resulted in the subjects gaining three pound of muscle and losing four pounds of fat, while eating 370 more calories per day (a 15 percent calorie increase). Remember, aerobic exercise generally doesn\'t increase muscle tissue. In fact, excessive amount of aerobic exercise combined with a low-calorie diet can cause the loss of some muscle tissue. This is not to say that overweight individuals shouldn\'t do aerobic exercise--it offers many health benefits and is a part of a weight loss program. It\'s just that aerobic exercise by itself may not be the best solution for permanent weight (fat) loss.</p>\r\n<p>Don\'t think that you need to workout in a gym for two hours to strength train. Significant gains can be made with a consistent 30-minute workout performed 2 -3 times per week. This could be your key to successful weight control!</p>\r\n'),(5137,318,0.46,'smarty','0','Page created.',1158298403,16,'67.177.52.95','<a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\" border=\"0\" align=\"right\"></a>\r\nThe holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or email contact AT eHealthCompete dot com. \r\n</p>		\r\n	\r\n\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2><br />\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/ODwwITY6l28\"></param><embed src=\"http://www.youtube.com/v/ODwwITY6l28\" type=\"application/x-shockwave-flash\" width=\"400\" height=\"233\"></embed></object>\r\n\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr><td>These are some of the companies who participated last year\r\n				</td></tr>\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5139,318,0.48,'smarty','0','Page created.',1158298640,16,'67.177.52.95','<a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\" border=\"0\" align=\"right\"></a>\r\nThe holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or email contact AT eHealthCompete dot com. \r\n</p>		\r\n	\r\n\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2><br />\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/ODwwITY6l28\"></param><embed src=\"http://www.youtube.com/v/ODwwITY6l28\" type=\"application/x-shockwave-flash\" width=\"400\" height=\"233\"></embed></object>\r\n\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr><td>These are some of the companies who participated last year\r\n				</td></tr>\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\" width=\"204\" height=\"32\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5141,318,0.50,'smarty','0','Page created.',1158298799,16,'67.177.52.95','<a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\" border=\"0\" align=\"right\"></a>\r\nThe holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or email contact AT eHealthCompete dot com. \r\n</p>		\r\n	\r\n\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2><br />\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/ODwwITY6l28\"></param><embed src=\"http://www.youtube.com/v/ODwwITY6l28\" type=\"application/x-shockwave-flash\" width=\"400\" height=\"233\"></embed></object>\r\n\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr align=\"center\"><td>These are some of the companies who competed last year\r\n				</td></tr>\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\" width=\"204\" height=\"32\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\" width=\"204\" height=\"42\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5143,318,0.52,'smarty','0','Page created.',1158332764,16,'216.194.127.150','<a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\" border=\"0\" align=\"right\"></a>\r\nThe holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or <a href=\"http://www.ehealthcompete.com/contact\">email us by clicking here</a>. \r\n</p>		\r\n	\r\n\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2><br />\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/ODwwITY6l28\"></param><embed src=\"http://www.youtube.com/v/ODwwITY6l28\" type=\"application/x-shockwave-flash\" width=\"400\" height=\"233\"></embed></object>\r\n\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr align=\"center\"><td>These are some of the companies who competed last year\r\n				</td></tr>\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\" width=\"204\" height=\"32\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\" width=\"204\" height=\"42\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5144,109,0.33,'smarty','0','Fixed... did not have a closing form tag.',1158332810,16,'216.194.127.150','{if $user->isLoggedIn()}{assign var=\"pgLayout\" value=\"file:layouts/withLeftNav.tpl\"}{/if}\r\n{include_php file=\"shared_handle:contactForm\"}\r\n\r\n<h1>Contact Us</h1>\r\n\r\n<strong>You can contact us by E-mail, phone, or U.S. mail. </strong><br><br>\r\n\r\n<form name=\"contactForm\" action=\"index.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<table>\r\n<tr>\r\n	<td><span>Your Name:</span></td>\r\n	<td><input type=\"text\" name=\"mfName\" value=\"{$smarty.request.mfName|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Your E-mail Address:</span></td>\r\n	<td><input type=\"text\" name=\"mfEmail\" value=\"{$smarty.request.mfEmail|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Your Phone:</span></td>\r\n	<td><input type=\"text\" name=\"mfPhone\" value=\"{$smarty.request.mfPhone|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n\r\n<tr>\r\n	<td><span>Subject:</span></td>\r\n	<td><input type=\"text\" name=\"mfSubject\" value=\"{$smarty.request.mfSubject|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Message Body:</span></td>\r\n	<td><textarea cols=\"35\" rows=\"6\" name=\"mfMessage\">{$smarty.request.mfMessage|stripslashes|htmlspecialchars}</textarea></td>\r\n</tr>\r\n<tr>\r\n	<td><span>&nbsp;</span></td>\r\n	<td><input type=\"submit\" value=\"Send Now\"></td>\r\n</tr>\r\n</table>\r\n{if $smarty.session.company.preferences.contact_email eq \"\"}\r\n	<div class=\"underline\">&nbsp;</div>\r\n	<br />\r\n	<table>\r\n	<tr>\r\n		<td><span>E-Mail:</span></td>\r\n		<td><span><strong>Fill out the form above or email us at <br>{mailto address=\"contact@ehealthcompete.com\" text=\"contact@ehealthcompete.com\" encode=\"javascript\"}</strong></span></td>\r\n	</tr>\r\n	<tr>\r\n		<td><span>Phone:</span></td>\r\n		<td><span><strong>801.443.4823</strong></span></td>\r\n	</tr>\r\n	<!--tr>\r\n		<td><span>Fax:</span></td>\r\n		<td><span><strong>1-801-555-5555 </strong></span></td>\r\n	</tr-->\r\n	<tr>\r\n		<td valign=\"top\" nowrap><span><br>U.S. Mail: &nbsp; &nbsp; </span></td>\r\n		<td><span><strong><br>eHealthCompete, L.L.C. <br>\r\n				963 W. 670 S. Ste 23<br>\r\n				Pleasant Grove, Ut 84062</strong></span></td>\r\n	</tr>\r\n	</table>\r\n{/if}\r\n</form>\r\n'),(5146,318,0.54,'smarty','0','Page created.',1158333244,16,'216.194.127.150','<a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\" border=\"0\" align=\"right\"></a>\r\nThe holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or <a href=\"http://www.ehealthcompete.com/contact\">email us by clicking here</a>. \r\n</p>		\r\n	\r\n\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2><br />\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/ODwwITY6l28\"></param><embed src=\"http://www.youtube.com/v/ODwwITY6l28\" type=\"application/x-shockwave-flash\" width=\"400\" height=\"233\"></embed></object>\r\n\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr align=\"center\"><td>These are some of the companies who competed last year\r\n				</td></tr>\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\" width=\"162\" height=\"73\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\" width=\"180\" height=\"36\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\" width=\"204\" height=\"32\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\" width=\"204\" height=\"42\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5152,195,0.78,'smarty','0','Testing graph links.',1159383921,16,'216.194.127.150','{if $smarty.session.company.preferences.hide_home eq \"yes\"}{include file=\"file:layouts/hiddenPageRedirector.tpl\"}{/if}\r\n{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{include_php file=\"shared_handle:myHome\"}\r\n{include_php file=\"shared_handle:getProfile\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title} - {$userProfile.firstName} {$userProfile.lastName} ({$userProfile.username})</h1>\r\n\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\r\n<table width=\"700\">\r\n<tr>\r\n	<td>\r\n	<div id=\"statsContainer\" style=\"overflow:hidden;\">\r\n		<a name=\"updateStats\"></a>\r\n		<iframe name=\"profileUpdateFrame\" id=\"profileUpdateIFrame\" src=\"?pg=my_statistics/update&userId={$smarty.request.userId|default:$userProfile.id}\" frameborder=\"0\" width=\"700\" height=\"440\" scrolling=\"no\"></iframe>\r\n	</div>\r\n	</td>\r\n</tr>\r\n</table>\r\n\r\n<table width=\"700\">\r\n<tr><td>\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'profileGraphTable\', \'\', \'showHide\');\"><img id=\"profileGraphTable_img\" src=\"blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a>\r\n	</div>User Profile &amp; Graphs</h2>\r\n</td></tr></table>\r\n\r\n<table id=\"profileGraphTable\" width=\"700\">\r\n<tr><td width=\"205\" valign=\"top\">\r\n	<div id=\"UserProfileColumn\" class=\"contentColumn\">\r\n	<h2 class=\"withBG\">Your Profile</h2>\r\n		<span class=\"cellHeadLarge\">Age:</span><span class=\"cellSmall\">{$userProfile.age|default:\"-\"}</span><br />\r\n		<span class=\"cellHeadLarge\">Height:</span><span class=\"cellSmall\">{$userProfile.heightFeet|default:\"-\"}\'{$userProfile.heightInches|default:\"-\"}&quot;</span><br />\r\n		<span class=\"cellHeadLarge\">Start BMI:</span><span class=\"cellSmall\">{$userProfile.startBMI|default:\"-\"}</span><br />\r\n		<span class=\"cellHeadLarge\">Start Weight:</span><span class=\"cellSmall\">{$userProfile.initialWeight|default:\"-\"}</span><br /><span class=\"cellHeadLarge\">Goal Weight:</span><span class=\"cellSmall\">{$userProfile.goalWeight|default:\"-\"}</span><br />\r\n		<span class=\"cellHeadLarge\">Current Weight:</span><span class=\"cellSmall\">{$userProfile.currentWeight|default:\"-\"}</span><br />\r\n		<span class=\"cellHeadLarge\">HRA Score:</span><span class=\"cellSmall\">{$aHRA.pointsEarned|default:\"-\"}</span><br />\r\n\r\n		<a href=\"?pg=my_profile\" class=\"link\"><img src=\"{$skinFolder}images/btn_profile.gif\" border=\"0\" alt=\"Update Profile\" vspace=\"10\" /></a><br />\r\n		<a href=\"?pg=my_settings\" class=\"link\"><img src=\"{$skinFolder}images/btn_settings.gif\" border=\"0\" alt=\"Account Settings\" vspace=\"0\" /></a>\r\n	</div>\r\n</td><td valign=\"top\" align=\"center\">	\r\n	<div id=\"graphContainer\">\r\n	<iframe name=\"graphwindow\" src=\"?pg=flashgraph-frame&compId={$compData.id}&format=small\" frameborder=\"0\" width=\"425\" height=\"240\" scrollbars=\"no\"></iframe></div>\r\n	{if true OR $user->username eq \"chad\" OR $user->username eq \"trave\"}\r\n	{include_php file=\"shared_handle:estats/getEstatsInfo\"}\r\n	<div id=\"graphLinksDiv\">\r\n		<table width=\"100%\">\r\n		<tr>\r\n			<td width=\"100%\" align=\"center\"><small>\r\n			{foreach from=$aEstats item=\"es\" name=\"loopEstats\"}\r\n				<a href=\"?pg=flashgraph-frame&format=small&userIds={$userProfile.id}&esId={$es.id}&type={$es.name|niceText|htmlspecialchars}&fillPrevious={if $es.assumeConstantValues eq \"yes\"}1{else}0{/if}&precision={$es.units.decimalPlaces|default:1}\" target=\"graphwindow\">{$es.name|niceText|replace:\" \":\"&nbsp;\"}</a> {if !$smarty.foreach.loopEstats.last}|{/if}\r\n			{foreachelse}\r\n				<b>No Available eStat Graphs</b>\r\n			{/foreach}\r\n			</small></td>\r\n		</tr>\r\n		</table>\r\n	</div>\r\n	{else} {* OLD GRAPH LISTINGS *}\r\n	<small>\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=1&totalChange=1\" target=\"graphwindow\">Change in Weight</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=1\" target=\"graphwindow\">Weight</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=fat&fillPrevious=0&precision=1\" target=\"graphwindow\">Fat Intake</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=calories&fillPrevious=0&precision=1\" target=\"graphwindow\">Calorie Intake</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=carbs&fillPrevious=0&precision=1\" target=\"graphwindow\">Carb Intake</a><br />\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=water&fillPrevious=0&precision=1\" target=\"graphwindow\">Water Intake</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=minutesExercise&fillPrevious=0&precision=1\" target=\"graphwindow\">Exercise Min</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=distanceExercised&fillPrevious=0&precision=1\" target=\"graphwindow\">Distance Exercised</a>\r\n	</small>\r\n	{/if}\r\n</td></tr>\r\n</table>\r\n<br />\r\n<table width=\"700\">\r\n<tr><td colspan=\"2\">\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'goalsMottosBlock\', \'\', \'showHide\');\"><img id=\"goalsMottosBlock_img\" src=\"blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a>\r\n	</div>\r\n	Goals &amp; Mottos</h2>\r\n<blockquote id=\"goalsMottosBlock\" style=\"display:block;\">\r\n<dl>\r\n	<dt>Motto:</dt>\r\n	<dd>{$userProfile.personalSaying|default:\"- Not Set - <a href=\"http://partners.ehealthcompete.com/index.php?pg=my_profile\">Click here to update now</a>\"}</dd>\r\n	<dt>Nutrition Goal:</dt>\r\n	<dd>{$userProfile.nutritionGoal|default:\"- Not Set - Click on the <i><b>Update my Profile</b></i> button toward the top of this page to set your goal\"}</dd>\r\n	<dt>Fitness Goal:</dt>\r\n	<dd>{$userProfile.fitnessGoal|default:\"- Not Set - Click on the <i><b>Update my Profile</b></i> button toward the top of this page to set your goal\"}</dd>\r\n	<dt>Lifestyle Goal:</dt>\r\n	<dd>{$userProfile.lifestyleGoal|default:\"- Not Set - Click on the <i><b>Update my Profile</b></i> button toward the top of this page to set your goal\"}</dd>\r\n</dl>\r\n</blockquote>\r\n</td></tr>\r\n</table>\r\n\r\n<script type=\"text/javascript\">\r\n	function updateGraphLinks(s) {ldelim}\r\n		//s.replace(/\\[userId\\]/gi, \'{$userProfile.id}\'); \r\n		document.getElementById(\'graphLinksDiv\').innerHTML = s;\r\n	{rdelim}\r\n</script>'),(5170,318,0.61,'smarty','1','Page created.',1166486808,16,'216.194.127.150','<a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\" border=\"0\" align=\"right\"></a>\r\nThe holiday Weight Maintain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or <a href=\"http://www.ehealthcompete.com/contact\">email us by clicking here</a>. \r\n</p>		\r\n	\r\n\r\n\r\n<table>\r\n	<tr>\r\n		<!---<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2><br />\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/ODwwITY6l28\"></param><embed src=\"http://www.youtube.com/v/ODwwITY6l28\" type=\"application/x-shockwave-flash\" width=\"400\" height=\"233\"></embed></object>\r\n\r\n		</td>--->\r\n		<td> \r\n			<table>\r\n				<tr align=\"center\"><td>These are some of the companies who competed last year\r\n				</td></tr>\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\" width=\"162\" height=\"73\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\" width=\"175\" height=\"35\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\" width=\"175\" height=\"27\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\" width=\"175\" height=\"36\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5171,113,1.53,'smarty','0','Added maxlength 15 on username.',1167801455,2,'67.177.21.139','{assign var=\"pgLayout\" value=\"layouts/default.tpl\"}\r\n{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n{assign var=\"return\" value=$smarty.request.return|default:$signup.return|default:\"my_competitions/available\"}\r\n<!-- {$return} -->\r\n{if $user->isLoggedIn() and $return neq \"\"}\r\n	{if $return eq \"home\"}\r\n		{message type=\"error\" value=\"You cannot sign up for a membership when you are already logged in.\"}\r\n	{/if}\r\n	{store_messages}\r\n	{redirect href=\"?pg=`$return`\"}\r\n{/if}\r\n{if not $smarty.session.company.id}\r\n	{message type=\"error\" value=\"Unable to determine your company. It is possible you were given an incorrect link. You should go to <b>http://yourcompany.ehealthcompete.com/signup/begin</b> where <b>yourcompany</b> is the name of your company.\"}\r\n	{message type=\"error\" value=\"If you need assistance, please <a href=\\\"?pg=contact\\\">contact us</a>.\"}\r\n	{store_messages}\r\n	{redirect href=\"?pg=`$return`\"}\r\n{/if}\r\n\r\n<h1 class=\"underline\">Sign Up - Step 1</h1>\r\nCreating your <em>FREE</em> membership is simple.  Just fill out the forms below and click Next.<br />\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n	<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n	<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:$signup.returndefault:\"home\"}\" />\r\n	<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n	<h2 class=\"withBG\">Already a Member?</h2>\r\n		<div><a href=\"javascript://\" onclick=\"toggle(\'logInNow\');\">Log in now.</a></div>\r\n		<div id=\"logInNow\" style=\"display:none;\">\r\n		Username: <input type=\"text\" name=\"username\" class=\"textInput\" size=\"12\" /><br />\r\n		Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n		<div class=\"underline\">&nbsp;</div>\r\n		<a href=\"javascript:document.loginForm2.submit();\">Submit</a> | <a href=\"javascript:doForgotPassword();\">Forgot Password?</a>\r\n		</div>\r\n	</form>\r\n</div>\r\n<div class=\"underline\" style=\"clear:left;\"></div>\r\n{toc_next assign=\"next\"}\r\n{toc_prev assign=\"prev\"}\r\n<form name=\"signup\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$next.pageName}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" id=\"signupReturn\" name=\"signup[return]\" value=\"{$return}\">\r\n<input type=\"hidden\" name=\"signup[companyId]\" value=\"{$smarty.session.company.id}\" />\r\n\r\n<table><tr><td>\r\n\r\n<div class=\"chunk300 h150 w300\">\r\n<h2 class=\"withBG\">Create your Membership </h2>\r\n	*First Name:\r\n	<input type=\"text\" name=\"signup[firstName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*Last Name:\r\n	<input type=\"text\" name=\"signup[lastName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*E-mail:\r\n	<input type=\"text\" name=\"signup[email]\" class=\"textInput\" size=\"30\" /><br />\r\n\r\n	*Desired Username:\r\n	<input type=\"text\" name=\"signup[username]\" class=\"textInput\" size=\"12\" maxlength=\"15\"><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Password</h2>\r\n{if $signup.password}\r\n	<small>You have already chosen a valid password. If you would like to choose a different one, enter it below and confirm it.</small><br /><br />\r\n{/if}\r\n	*Choose Your Password:\r\n	<input type=\"password\" name=\"signupSecure[password]\" size=\"12\" class=\"textInput\"><br />\r\n	<small>(Password must be at least 8 characters long)</small><br />\r\n\r\n	*Confirm Your Password:\r\n	<input type=\"password\" name=\"signupSecure[passwordConfirm]\" size=\"12\" class=\"textInput\"><br />\r\n</div>\r\n\r\n</td><td valign=\"top\">\r\n\r\n<div class=\"chunk300 w300\">\r\n	<h2 class=\"withBG\">Shipping &amp; Contact Address</h2>\r\n	\r\n	<div id=\"addressInfo\" style=\"display:block; width:auto;\">\r\n	*Address:\r\n	<input type=\"text\" name=\"signup[address1]\" value=\"{$smarty.request.signup.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"signup[address2]\" value=\"{$smarty.request.signup.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*City:\r\n	<input type=\"text\" name=\"signup[city]\" value=\"{$smarty.request.signup.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*State, *Zip:\r\n	<input type=\"text\" name=\"signup[state]\" value=\"{$smarty.request.signup.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"signup[zip]\" value=\"{$smarty.request.signup.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n	<div id=\"signupstate\" style=\"text-align:left; margin-left:200px; position:absolute; background-color:#fff; border:1px solid black;\"></div>\r\n\r\n	*Country:\r\n	<input type=\"text\" name=\"signup[country]\" value=\"{$smarty.request.signup.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /><br />\r\n	<div id=\"signupcountry\" style=\"text-align:left; float:left; margin-left:100px; position:absolute; background-color:#fff; border:1px solid black;\"></div>\r\n\r\n	Phone:\r\n	<input type=\"text\" name=\"signup[phone1]\" value=\"{$smarty.request.signup.phone1}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	Phone 2:\r\n	<input type=\"text\" name=\"signup[phone2]\" value=\"{$smarty.request.signup.phone2}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	</div>\r\n</div>\r\n<div style=\"clear:left;\">* indicates a required field</div>\r\n</td></tr></table>\r\n\r\n{if $modules.spadeAutoComplete2}\r\n	{capture name=\"headAddendum\"}\r\n	<script language=\"javascript\" src=\"{$modules.spadeAutoComplete2}\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_states.js\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_countries.js\"></script>\r\n	{/capture}\r\n	<script language=\"javascript\">\r\n		initAutoComplete(\'signup[state]\', \'signupstate\', states, true);\r\n		initAutoComplete(\'signup[country]\', \'signupcountry\', countries, true);\r\n	</script>\r\n{/if}\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<br />\r\n	{if $prev.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\"><!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;&lt;&lt; Back&nbsp;\" onclick=\"pg.value=\'{$prev.pageName}\';\"> |-->&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\"> <!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;Next &gt;&gt;&nbsp;\"> -->	{/if}\r\n</div>\r\n\r\n{stored_object_fill_form object=$signup name=\"signup\"}\r\n<script language=\"javascript\">document.getElementById(\'signupReturn\').value = \'{$return}\';</script>\r\n\r\n</form>'),(5118,318,0.27,'smarty','0','Page created.',1158187576,16,'216.194.127.150','<table>\r\n	<tr>\r\n		<td>The holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by losing 537 lbs!  \r\n		<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or email contact AT eHealthCompete dot com. \r\n		</td>\r\n		<td>For more info <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><h1>Download Brochure</h1></a>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2>\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/_Y6BqLr7nLQ\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/_Y6BqLr7nLQ\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"350\"></embed></object>\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr><td>These are some of the companies who participated last year\r\n				</td></tr>\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p>This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text \r\n'),(5119,318,0.28,'smarty','0','Page created.',1158187685,16,'216.194.127.150','<table>\r\n	<tr>\r\n		<td>The holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by losing 537 lbs!  \r\n		<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or email contact AT eHealthCompete dot com. \r\n		</td>\r\n		<td>For more info <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><h2>Download Brochure</h2></a>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2>\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/_Y6BqLr7nLQ\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/_Y6BqLr7nLQ\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"350\"></embed></object>\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr><td>These are some of the companies who participated last year\r\n				</td></tr>\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p>This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text \r\n'),(5120,318,0.29,'smarty','0','Page created.',1158187821,16,'216.194.127.150','<table>\r\n	<tr>\r\n		<td>The holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by losing 537 lbs!  \r\n		<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or email contact AT eHealthCompete dot com. \r\n		</td>\r\n		<td>For more info <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><h2>Download Brochure</h2></a>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2>\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/_Y6BqLr7nLQ\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/_Y6BqLr7nLQ\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"350\"></embed></object>\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr><td>These are some of the companies who participated last year\r\n				</td></tr>\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5121,318,0.30,'smarty','0','Page created.',1158187873,16,'216.194.127.150','<table>\r\n	<tr>\r\n		<td>The holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <b>losing 537 lbs!</b>  \r\n		<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or email contact AT eHealthCompete dot com. \r\n		</td>\r\n		<td>For more info <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><h2>Download Brochure</h2></a>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2>\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/_Y6BqLr7nLQ\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/_Y6BqLr7nLQ\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"350\"></embed></object>\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr><td>These are some of the companies who participated last year\r\n				</td></tr>\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5122,318,0.31,'smarty','0','Page created.',1158188563,16,'216.194.127.150','<table>\r\n	<tr>\r\n		<td>The holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n		<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or email contact AT eHealthCompete dot com. \r\n		</td>\r\n		<td><a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here<img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\"></a>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2>\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/_Y6BqLr7nLQ\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/_Y6BqLr7nLQ\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"350\"></embed></object>\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr><td>These are some of the companies who participated last year\r\n				</td></tr>\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5123,318,0.32,'smarty','0','Page created.',1158188592,16,'216.194.127.150','<table>\r\n	<tr>\r\n		<td>The holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n		<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or email contact AT eHealthCompete dot com. \r\n		</td>\r\n		<td><a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\"></a>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2>\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/_Y6BqLr7nLQ\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/_Y6BqLr7nLQ\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"350\"></embed></object>\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr><td>These are some of the companies who participated last year\r\n				</td></tr>\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5124,318,0.33,'smarty','0','Page created.',1158188614,16,'216.194.127.150','<table>\r\n	<tr>\r\n		<td>The holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n		<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or email contact AT eHealthCompete dot com. \r\n		</td>\r\n		<td><a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\" border=\"0\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\"></a>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2>\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/_Y6BqLr7nLQ\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/_Y6BqLr7nLQ\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"350\"></embed></object>\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr><td>These are some of the companies who participated last year\r\n				</td></tr>\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5125,318,0.34,'smarty','0','Page created.',1158188626,16,'216.194.127.150','<table>\r\n	<tr>\r\n		<td>The holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n		<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or email contact AT eHealthCompete dot com. \r\n		</td>\r\n		<td><a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\" border=0><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\"></a>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2>\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/_Y6BqLr7nLQ\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/_Y6BqLr7nLQ\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"350\"></embed></object>\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr><td>These are some of the companies who participated last year\r\n				</td></tr>\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5126,318,0.35,'smarty','0','Page created.',1158188639,16,'216.194.127.150','<table>\r\n	<tr>\r\n		<td>The holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n		<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or email contact AT eHealthCompete dot com. \r\n		</td>\r\n		<td><a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\" border=\"none\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\"></a>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2>\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/_Y6BqLr7nLQ\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/_Y6BqLr7nLQ\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"350\"></embed></object>\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr><td>These are some of the companies who participated last year\r\n				</td></tr>\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5127,318,0.36,'smarty','0','Page created.',1158188748,16,'216.194.127.150','<table>\r\n	<tr>\r\n		<td>The holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n		<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or email contact AT eHealthCompete dot com. \r\n		</td>\r\n		<td><a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\" border=\"0\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\"></a>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2>\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/_Y6BqLr7nLQ\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/_Y6BqLr7nLQ\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"350\"></embed></object>\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr><td>These are some of the companies who participated last year\r\n				</td></tr>\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5128,318,0.37,'smarty','0','Page created.',1158188771,16,'216.194.127.150','<table>\r\n	<tr>\r\n		<td>The holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n		<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or email contact AT eHealthCompete dot com. \r\n		</td>\r\n		<td><a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\" border=\"0\"></a>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2>\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/_Y6BqLr7nLQ\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/_Y6BqLr7nLQ\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"350\"></embed></object>\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr><td>These are some of the companies who participated last year\r\n				</td></tr>\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5129,318,0.38,'smarty','0','Page created.',1158189219,16,'216.194.127.150','<a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\" border=\"0\" align=\"right\"></a>\r\nThe holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or email contact AT eHealthCompete dot com. \r\n		\r\n	\r\n\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2>\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/_Y6BqLr7nLQ\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/_Y6BqLr7nLQ\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"350\"></embed></object>\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr><td>These are some of the companies who participated last year\r\n				</td></tr>\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5130,318,0.39,'smarty','0','Page created.',1158189262,16,'216.194.127.150','<a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\" border=\"0\" align=\"right\"></a>\r\nThe holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or email contact AT eHealthCompete dot com. \r\n</p>		\r\n	\r\n\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2>\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/_Y6BqLr7nLQ\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/_Y6BqLr7nLQ\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"350\"></embed></object>\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr><td>These are some of the companies who participated last year\r\n				</td></tr>\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5131,318,0.40,'smarty','0','Page created.',1158189289,16,'216.194.127.150','<a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\" border=\"0\" align=\"right\"></a>\r\nThe holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or email contact AT eHealthCompete dot com. \r\n</p>		\r\n	\r\n\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2><br />\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/_Y6BqLr7nLQ\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/_Y6BqLr7nLQ\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"350\"></embed></object>\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr><td>These are some of the companies who participated last year\r\n				</td></tr>\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5132,318,0.41,'smarty','0','Page created.',1158289787,16,'67.177.52.95','<a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\" border=\"0\" align=\"right\"></a>\r\nThe holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or email contact AT eHealthCompete dot com. \r\n</p>		\r\n	\r\n\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2><br />\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/ODwwITY6l28\"></param><embed src=\"http://www.youtube.com/v/ODwwITY6l28\" type=\"application/x-shockwave-flash\" width=\"600\" height=\"350\"></embed></object>\r\n\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr><td>These are some of the companies who participated last year\r\n				</td></tr>\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5133,318,0.42,'smarty','0','Page created.',1158289869,16,'67.177.52.95','<a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\" border=\"0\" align=\"right\"></a>\r\nThe holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or email contact AT eHealthCompete dot com. \r\n</p>		\r\n	\r\n\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2><br />\r\n		<object width=\"325\" height=\"250\"><param name=\"movie\" value=\"http://www.youtube.com/v/ODwwITY6l28\"></param><embed src=\"http://www.youtube.com/v/ODwwITY6l28\" type=\"application/x-shockwave-flash\" width=\"600\" height=\"350\"></embed></object>\r\n\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr><td>These are some of the companies who participated last year\r\n				</td></tr>\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5134,318,0.43,'smarty','0','Page created.',1158298141,16,'67.177.52.95','<a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\" border=\"0\" align=\"right\"></a>\r\nThe holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or email contact AT eHealthCompete dot com. \r\n</p>		\r\n	\r\n\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2><br />\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/ODwwITY6l28\"></param><embed src=\"http://www.youtube.com/v/ODwwITY6l28\" type=\"application/x-shockwave-flash\" width=\"600\" height=\"350\"></embed></object>\r\n\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr><td>These are some of the companies who participated last year\r\n				</td></tr>\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5135,318,0.44,'smarty','0','Page created.',1158298252,16,'67.177.52.95','<a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\" border=\"0\" align=\"right\"></a>\r\nThe holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or email contact AT eHealthCompete dot com. \r\n</p>		\r\n	\r\n\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2><br />\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/ODwwITY6l28\"></param><embed src=\"http://www.youtube.com/v/ODwwITY6l28\" type=\"application/x-shockwave-flash\" width=\"400\" height=\"233\"></embed></object>\r\n\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr><td>These are some of the companies who participated last year\r\n				</td></tr>\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5136,318,0.45,'smarty','0','Page created.',1158298347,16,'67.177.52.95','<a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\" border=\"0\" align=\"right\"></a>\r\nThe holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or email contact AT eHealthCompete dot com. \r\n</p>		\r\n	\r\n\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2><br />\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/ODwwITY6l28\"></param><embed src=\"http://www.youtube.com/v/ODwwITY6l28\" type=\"application/x-shockwave-flash\" width=\"400\" height=\"233\"></embed></object>\r\n\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr><td>These are some of the companies who participated last year\r\n				</td></tr>\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\"></td></tr>\r\n\r\n				<tr><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5138,318,0.47,'smarty','0','Page created.',1158298546,16,'67.177.52.95','<a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\" border=\"0\" align=\"right\"></a>\r\nThe holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or email contact AT eHealthCompete dot com. \r\n</p>		\r\n	\r\n\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2><br />\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/ODwwITY6l28\"></param><embed src=\"http://www.youtube.com/v/ODwwITY6l28\" type=\"application/x-shockwave-flash\" width=\"400\" height=\"233\"></embed></object>\r\n\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr><td>These are some of the companies who participated last year\r\n				</td></tr>\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\" width=\"206\" height=\"41\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5140,318,0.49,'smarty','0','Page created.',1158298736,16,'67.177.52.95','<a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\" border=\"0\" align=\"right\"></a>\r\nThe holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or email contact AT eHealthCompete dot com. \r\n</p>		\r\n	\r\n\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2><br />\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/ODwwITY6l28\"></param><embed src=\"http://www.youtube.com/v/ODwwITY6l28\" type=\"application/x-shockwave-flash\" width=\"400\" height=\"233\"></embed></object>\r\n\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr><td>These are some of the companies who participated last year\r\n				</td></tr>\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\" width=\"204\" height=\"32\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\" width=\"204\" height=\"42\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5142,318,0.51,'smarty','0','Page created.',1158298885,16,'67.177.52.95','<a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\" border=\"0\" align=\"right\"></a>\r\nThe holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or email contact AT eHealthCompete dot com. \r\n</p>		\r\n	\r\n\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2><br />\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/ODwwITY6l28\"></param><embed src=\"http://www.youtube.com/v/ODwwITY6l28\" type=\"application/x-shockwave-flash\" width=\"400\" height=\"233\"></embed></object>\r\n\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr align=\"center\"><td>These are some of the companies who competed last year\r\n				</td></tr>\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\" width=\"204\" height=\"32\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\" width=\"204\" height=\"42\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5145,318,0.53,'smarty','0','Page created.',1158333102,16,'216.194.127.150','<a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\" border=\"0\" align=\"right\"></a>\r\nThe holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or <a href=\"http://www.ehealthcompete.com/contact\">email us by clicking here</a>. \r\n</p>		\r\n	\r\n\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2><br />\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/ODwwITY6l28\"></param><embed src=\"http://www.youtube.com/v/ODwwITY6l28\" type=\"application/x-shockwave-flash\" width=\"400\" height=\"233\"></embed></object>\r\n\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr align=\"center\"><td>These are some of the companies who competed last year\r\n				</td></tr>\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\" width=\"204\" height=\"42\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\" width=\"180\" height=\"36\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\" width=\"204\" height=\"42\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\" width=\"204\" height=\"32\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\" width=\"204\" height=\"42\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5147,318,0.55,'smarty','0','Page created.',1158333313,16,'216.194.127.150','<a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\" border=\"0\" align=\"right\"></a>\r\nThe holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or <a href=\"http://www.ehealthcompete.com/contact\">email us by clicking here</a>. \r\n</p>		\r\n	\r\n\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2><br />\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/ODwwITY6l28\"></param><embed src=\"http://www.youtube.com/v/ODwwITY6l28\" type=\"application/x-shockwave-flash\" width=\"400\" height=\"233\"></embed></object>\r\n\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr align=\"center\"><td>These are some of the companies who competed last year\r\n				</td></tr>\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\" width=\"162\" height=\"73\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\" width=\"175\" height=\"35\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\" width=\"204\" height=\"32\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\" width=\"204\" height=\"42\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5148,318,0.56,'smarty','0','Page created.',1158333379,16,'216.194.127.150','<a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\" border=\"0\" align=\"right\"></a>\r\nThe holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or <a href=\"http://www.ehealthcompete.com/contact\">email us by clicking here</a>. \r\n</p>		\r\n	\r\n\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2><br />\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/ODwwITY6l28\"></param><embed src=\"http://www.youtube.com/v/ODwwITY6l28\" type=\"application/x-shockwave-flash\" width=\"400\" height=\"233\"></embed></object>\r\n\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr align=\"center\"><td>These are some of the companies who competed last year\r\n				</td></tr>\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\" width=\"162\" height=\"73\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\" width=\"175\" height=\"35\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\" width=\"175\" height=\"27\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\" width=\"204\" height=\"42\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5149,318,0.57,'smarty','0','Page created.',1158333432,16,'216.194.127.150','<a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\" border=\"0\" align=\"right\"></a>\r\nThe holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or <a href=\"http://www.ehealthcompete.com/contact\">email us by clicking here</a>. \r\n</p>		\r\n	\r\n\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2><br />\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/ODwwITY6l28\"></param><embed src=\"http://www.youtube.com/v/ODwwITY6l28\" type=\"application/x-shockwave-flash\" width=\"400\" height=\"233\"></embed></object>\r\n\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr align=\"center\"><td>These are some of the companies who competed last year\r\n				</td></tr>\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\" width=\"162\" height=\"73\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\" width=\"175\" height=\"35\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\" width=\"175\" height=\"27\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\" width=\"175\" height=\"36\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5150,318,0.58,'smarty','0','Page created.',1158333861,16,'216.194.127.150','<a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\" border=\"0\" align=\"right\"></a>\r\nThe holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or <a href=\"http://www.ehealthcompete.com/contact\">email us by clicking here</a>. \r\n</p>		\r\n	\r\n\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2><br />\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/ODwwITY6l28\"></param><embed src=\"http://www.youtube.com/v/ODwwITY6l28\" type=\"application/x-shockwave-flash\" width=\"400\" height=\"233\"></embed></object>\r\n			<--To activate the flash youtube video-->\r\n			<script type=\"text/javascript\" src=\"ieupdate.js\"></script>\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr align=\"center\"><td>These are some of the companies who competed last year\r\n				</td></tr>\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\" width=\"162\" height=\"73\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\" width=\"175\" height=\"35\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\" width=\"175\" height=\"27\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\" width=\"175\" height=\"36\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5151,318,0.59,'smarty','0','Page created.',1158334312,16,'216.194.127.150','<a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\" border=\"0\" align=\"right\"></a>\r\nThe holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or <a href=\"http://www.ehealthcompete.com/contact\">email us by clicking here</a>. \r\n</p>		\r\n	\r\n\r\n\r\n<table>\r\n	<tr>\r\n		<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2><br />\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/ODwwITY6l28\"></param><embed src=\"http://www.youtube.com/v/ODwwITY6l28\" type=\"application/x-shockwave-flash\" width=\"400\" height=\"233\"></embed></object>\r\n\r\n		</td>\r\n		<td> \r\n			<table>\r\n				<tr align=\"center\"><td>These are some of the companies who competed last year\r\n				</td></tr>\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\" width=\"162\" height=\"73\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\" width=\"175\" height=\"35\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\" width=\"175\" height=\"27\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\" width=\"175\" height=\"36\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5153,195,0.79,'smarty','0','Testing graph links.',1159383963,16,'216.194.127.150','{if $smarty.session.company.preferences.hide_home eq \"yes\"}{include file=\"file:layouts/hiddenPageRedirector.tpl\"}{/if}\r\n{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{include_php file=\"shared_handle:myHome\"}\r\n{include_php file=\"shared_handle:getProfile\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title} - {$userProfile.firstName} {$userProfile.lastName} ({$userProfile.username})</h1>\r\n\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\r\n<table width=\"700\">\r\n<tr>\r\n	<td>\r\n	<div id=\"statsContainer\" style=\"overflow:hidden;\">\r\n		<a name=\"updateStats\"></a>\r\n		<iframe name=\"profileUpdateFrame\" id=\"profileUpdateIFrame\" src=\"?pg=my_statistics/update&userId={$smarty.request.userId|default:$userProfile.id}\" frameborder=\"0\" width=\"700\" height=\"440\" scrolling=\"no\"></iframe>\r\n	</div>\r\n	</td>\r\n</tr>\r\n</table>\r\n\r\n<table width=\"700\">\r\n<tr><td>\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'profileGraphTable\', \'\', \'showHide\');\"><img id=\"profileGraphTable_img\" src=\"blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a>\r\n	</div>User Profile &amp; Graphs</h2>\r\n</td></tr></table>\r\n\r\n<table id=\"profileGraphTable\" width=\"700\">\r\n<tr><td width=\"205\" valign=\"top\">\r\n	<div id=\"UserProfileColumn\" class=\"contentColumn\">\r\n	<h2 class=\"withBG\">Your Profile</h2>\r\n		<span class=\"cellHeadLarge\">Age:</span><span class=\"cellSmall\">{$userProfile.age|default:\"-\"}</span><br />\r\n		<span class=\"cellHeadLarge\">Height:</span><span class=\"cellSmall\">{$userProfile.heightFeet|default:\"-\"}\'{$userProfile.heightInches|default:\"-\"}&quot;</span><br />\r\n		<span class=\"cellHeadLarge\">Start BMI:</span><span class=\"cellSmall\">{$userProfile.startBMI|default:\"-\"}</span><br />\r\n		<span class=\"cellHeadLarge\">Start Weight:</span><span class=\"cellSmall\">{$userProfile.initialWeight|default:\"-\"}</span><br /><span class=\"cellHeadLarge\">Goal Weight:</span><span class=\"cellSmall\">{$userProfile.goalWeight|default:\"-\"}</span><br />\r\n		<span class=\"cellHeadLarge\">Current Weight:</span><span class=\"cellSmall\">{$userProfile.currentWeight|default:\"-\"}</span><br />\r\n		<span class=\"cellHeadLarge\">HRA Score:</span><span class=\"cellSmall\">{$aHRA.pointsEarned|default:\"-\"}</span><br />\r\n\r\n		<a href=\"?pg=my_profile\" class=\"link\"><img src=\"{$skinFolder}images/btn_profile.gif\" border=\"0\" alt=\"Update Profile\" vspace=\"10\" /></a><br />\r\n		<a href=\"?pg=my_settings\" class=\"link\"><img src=\"{$skinFolder}images/btn_settings.gif\" border=\"0\" alt=\"Account Settings\" vspace=\"0\" /></a>\r\n	</div>\r\n</td><td valign=\"top\" align=\"center\">	\r\n	<div id=\"graphContainer\">\r\n	<iframe name=\"graphwindow\" src=\"?pg=flashgraph-frame&compId={$compData.id}&format=small\" frameborder=\"0\" width=\"425\" height=\"240\" scrollbars=\"no\"></iframe></div>\r\n	{if true OR $user->username eq \"chad\" OR $user->username eq \"trave\"}\r\n	{include_php file=\"shared_handle:estats/getEstatsInfo\"}\r\n	<div id=\"graphLinksDiv\">\r\n		<table width=\"100%\">\r\n		<tr>\r\n			<td width=\"100%\" align=\"center\"><small>\r\n			{foreach from=$aEstats item=\"es\" name=\"loopEstats\"}\r\n				<a href=\"?pg=flashgraph-frame&format=small&userIds={$userProfile.id}&esId={$es.id}&type={$es.name|niceText|htmlspecialchars}&fillPrevious={if $es.assumeConstantValues eq \"yes\"}1{else}0{/if}&precision={$es.units.decimalPlaces|default:1}\" target=\"graphwindow\">{$es.name|niceText|replace:\" \":\"&nbsp;\"}</a> {if !$smarty.foreach.loopEstats.last}|{/if}\r\n			{foreachelse}\r\n				<b>No Available eStat Graphs</b>\r\n			{/foreach}\r\n			</small></td>\r\n		</tr>\r\n		</table>\r\n	</div>\r\n	{else} {* OLD GRAPH LISTINGS *}\r\n	<small>\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=1&totalChange=1\" target=\"graphwindow\">Change in Weight</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=1\" target=\"graphwindow\">Weight</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=fat&fillPrevious=0&precision=1\" target=\"graphwindow\">Fat Intake</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=calories&fillPrevious=0&precision=1\" target=\"graphwindow\">Calorie Intake</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=carbs&fillPrevious=0&precision=1\" target=\"graphwindow\">Carb Intake</a><br />\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=water&fillPrevious=0&precision=1\" target=\"graphwindow\">Water Intake</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=minutesExercise&fillPrevious=0&precision=1\" target=\"graphwindow\">Exercise Min</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=distanceExercised&fillPrevious=0&precision=1\" target=\"graphwindow\">Distance Exercised</a>\r\n	</small>\r\n	{/if}\r\n</td></tr>\r\n</table>\r\n<br />\r\n<table width=\"700\">\r\n<tr><td colspan=\"2\">\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'goalsMottosBlock\', \'\', \'showHide\');\"><img id=\"goalsMottosBlock_img\" src=\"blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a>\r\n	</div>\r\n	Goals &amp; Mottos</h2>\r\n<blockquote id=\"goalsMottosBlock\" style=\"display:block;\">\r\n<dl>\r\n	<dt>Motto:</dt>\r\n	<dd>{$userProfile.personalSaying|default:\"- Not Set - <a href=\\\"http://partners.ehealthcompete.com/index.php?pg=my_profile\\\">Click here to update now</a>\"}</dd>\r\n	<dt>Nutrition Goal:</dt>\r\n	<dd>{$userProfile.nutritionGoal|default:\"- Not Set - Click on the <i><b>Update my Profile</b></i> button toward the top of this page to set your goal\"}</dd>\r\n	<dt>Fitness Goal:</dt>\r\n	<dd>{$userProfile.fitnessGoal|default:\"- Not Set - Click on the <i><b>Update my Profile</b></i> button toward the top of this page to set your goal\"}</dd>\r\n	<dt>Lifestyle Goal:</dt>\r\n	<dd>{$userProfile.lifestyleGoal|default:\"- Not Set - Click on the <i><b>Update my Profile</b></i> button toward the top of this page to set your goal\"}</dd>\r\n</dl>\r\n</blockquote>\r\n</td></tr>\r\n</table>\r\n\r\n<script type=\"text/javascript\">\r\n	function updateGraphLinks(s) {ldelim}\r\n		//s.replace(/\\[userId\\]/gi, \'{$userProfile.id}\'); \r\n		document.getElementById(\'graphLinksDiv\').innerHTML = s;\r\n	{rdelim}\r\n</script>'),(5155,195,0.81,'smarty','0','Testing graph links.',1159384082,16,'216.194.127.150','{if $smarty.session.company.preferences.hide_home eq \"yes\"}{include file=\"file:layouts/hiddenPageRedirector.tpl\"}{/if}\r\n{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{include_php file=\"shared_handle:myHome\"}\r\n{include_php file=\"shared_handle:getProfile\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title} - {$userProfile.firstName} {$userProfile.lastName} ({$userProfile.username})</h1>\r\n\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\r\n<table width=\"700\">\r\n<tr>\r\n	<td>\r\n	<div id=\"statsContainer\" style=\"overflow:hidden;\">\r\n		<a name=\"updateStats\"></a>\r\n		<iframe name=\"profileUpdateFrame\" id=\"profileUpdateIFrame\" src=\"?pg=my_statistics/update&userId={$smarty.request.userId|default:$userProfile.id}\" frameborder=\"0\" width=\"700\" height=\"440\" scrolling=\"no\"></iframe>\r\n	</div>\r\n	</td>\r\n</tr>\r\n</table>\r\n\r\n<table width=\"700\">\r\n<tr><td>\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'profileGraphTable\', \'\', \'showHide\');\"><img id=\"profileGraphTable_img\" src=\"blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a>\r\n	</div>User Profile &amp; Graphs</h2>\r\n</td></tr></table>\r\n\r\n<table id=\"profileGraphTable\" width=\"700\">\r\n<tr><td width=\"205\" valign=\"top\">\r\n	<div id=\"UserProfileColumn\" class=\"contentColumn\">\r\n	<h2 class=\"withBG\">Your Profile</h2>\r\n		<span class=\"cellHeadLarge\">Age:</span><span class=\"cellSmall\">{$userProfile.age|default:\"-\"}</span><br />\r\n		<span class=\"cellHeadLarge\">Height:</span><span class=\"cellSmall\">{$userProfile.heightFeet|default:\"-\"}\'{$userProfile.heightInches|default:\"-\"}&quot;</span><br />\r\n		<span class=\"cellHeadLarge\">Start BMI:</span><span class=\"cellSmall\">{$userProfile.startBMI|default:\"-\"}</span><br />\r\n		<span class=\"cellHeadLarge\">Start Weight:</span><span class=\"cellSmall\">{$userProfile.initialWeight|default:\"-\"}</span><br /><span class=\"cellHeadLarge\">Goal Weight:</span><span class=\"cellSmall\">{$userProfile.goalWeight|default:\"-\"}</span><br />\r\n		<span class=\"cellHeadLarge\">Current Weight:</span><span class=\"cellSmall\">{$userProfile.currentWeight|default:\"-\"}</span><br />\r\n		<span class=\"cellHeadLarge\">HRA Score:</span><span class=\"cellSmall\">{$aHRA.pointsEarned|default:\"-\"}</span><br />\r\n\r\n		<a href=\"?pg=my_profile\" class=\"link\"><img src=\"{$skinFolder}images/btn_profile.gif\" border=\"0\" alt=\"Update Profile\" vspace=\"10\" /></a><br />\r\n		<a href=\"?pg=my_settings\" class=\"link\"><img src=\"{$skinFolder}images/btn_settings.gif\" border=\"0\" alt=\"Account Settings\" vspace=\"0\" /></a>\r\n	</div>\r\n</td><td valign=\"top\" align=\"center\">	\r\n	<div id=\"graphContainer\">\r\n	<iframe name=\"graphwindow\" src=\"?pg=flashgraph-frame&compId={$compData.id}&format=small\" frameborder=\"0\" width=\"425\" height=\"240\" scrollbars=\"no\"></iframe></div>\r\n	{if true OR $user->username eq \"chad\" OR $user->username eq \"trave\"}\r\n	{include_php file=\"shared_handle:estats/getEstatsInfo\"}\r\n	<div id=\"graphLinksDiv\">\r\n		<table width=\"100%\">\r\n		<tr>\r\n			<td width=\"100%\" align=\"center\"><small>\r\n			{foreach from=$aEstats item=\"es\" name=\"loopEstats\"}\r\n				<a href=\"?pg=flashgraph-frame&format=small&userIds={$userProfile.id}&esId={$es.id}&type={$es.name|niceText|htmlspecialchars}&fillPrevious={if $es.assumeConstantValues eq \"yes\"}1{else}0{/if}&precision={$es.units.decimalPlaces|default:1}\" target=\"graphwindow\">{$es.name|niceText|replace:\" \":\"&nbsp;\"}</a> {if !$smarty.foreach.loopEstats.last}|{/if}\r\n			{foreachelse}\r\n				<b>No Available eStat Graphs</b>\r\n			{/foreach}\r\n			</small></td>\r\n		</tr>\r\n		</table>\r\n	</div>\r\n	{else} {* OLD GRAPH LISTINGS *}\r\n	<small>\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=1&totalChange=1\" target=\"graphwindow\">Change in Weight</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=1\" target=\"graphwindow\">Weight</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=fat&fillPrevious=0&precision=1\" target=\"graphwindow\">Fat Intake</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=calories&fillPrevious=0&precision=1\" target=\"graphwindow\">Calorie Intake</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=carbs&fillPrevious=0&precision=1\" target=\"graphwindow\">Carb Intake</a><br />\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=water&fillPrevious=0&precision=1\" target=\"graphwindow\">Water Intake</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=minutesExercise&fillPrevious=0&precision=1\" target=\"graphwindow\">Exercise Min</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=distanceExercised&fillPrevious=0&precision=1\" target=\"graphwindow\">Distance Exercised</a>\r\n	</small>\r\n	{/if}\r\n</td></tr>\r\n</table>\r\n<br />\r\n<table width=\"700\">\r\n<tr><td colspan=\"2\">\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'goalsMottosBlock\', \'\', \'showHide\');\"><img id=\"goalsMottosBlock_img\" src=\"blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a>\r\n	</div>\r\n	Goals &amp; Mottos</h2>\r\n<blockquote id=\"goalsMottosBlock\" style=\"display:block;\">\r\n<dl>\r\n	<dt>Motto:</dt>\r\n	<dd>{$userProfile.personalSaying|default:\"- Not Set - <a href=\\\"http://partners.ehealthcompete.com/index.php?pg=my_profile\\\">Click here to update now</a>\"}</dd>\r\n	<dt>Nutrition Goal:</dt>\r\n	<dd>{$userProfile.nutritionGoal|default:\"- Not Set - Click on the <i><b>Update my Profile</b></i> button toward the top of this page to set your goal\"}</dd>\r\n	<dt>Fitness Goal:</dt>\r\n	<dd>{$userProfile.fitnessGoal|default:\"- Not Set - Click on the <i><b>Update my Profile</b></i> button toward the top of this page to set your goal\"}</dd>\r\n	<dt>Lifestyle Goal:</dt>\r\n	<dd>{$userProfile.lifestyleGoal|default:\"- Not Set - Click on the <i><b>Update my Profile</b></i> button toward the top of this page to set your goal\"}</dd>\r\n</dl>\r\n</blockquote>\r\n</td></tr>\r\n</table>\r\n\r\n<script type=\"text/javascript\">\r\n	function updateGraphLinks(s) {ldelim}\r\n		//s.replace(/\\[userId\\]/gi, \'{$userProfile.id}\'); \r\n		document.getElementById(\'graphLinksDiv\').innerHTML = s;\r\n	{rdelim}\r\n</script>'),(5161,319,0.12,'smarty','0','Page created.',1159812032,1124,'67.181.211.233','<p><b><hl>Accept Your Body and Learn to Have a Positive Self Image</hl></b></p>\r\n<p>Thin females and muscular males are seen as the ideal in our society and because we have come to believe that body size and shape are totally under a person\'s control, most people enter diet and exercise programs with unrealistic goals and expectations. If you continually strive to achieve a socially imposed ideal, you will never be free of your insecurities or your self-consciousness. You must truly realize and then learn to accept that we are not all meant to be fashion-model size.</p>\r\n\r\n<p>Our body size and structure reflects not only our eating and exercise habits but also our genetics. The role this latter factor plays in determining weight seems to vary greatly between individuals. We are all born with a certain body type inherited from our parents. Although hardly anyone is a pure body type, there are three different applicable categories: ectomorphs, mesomorphs, and endomorphs.</p>\r\n\r\n<p>Characteristically, ectomorphs have a light build with slight muscular development. They are usually tall and thin with small frames and narrow hips and shoulders.</p>\r\n\r\n<p>Mesomorphs have a husky, muscular build. They often have broad shoulders, and their weight is concentrated in the upper body, making them look compact or stocky.</p>\r\n\r\n<p>Endomorphs are characterized by a heavy, rounded build with shoulders usually narrower than their hips. They have a round, soft appearance and are more often overweight or obese.</p>\r\n\r\n<p>When we understand and appreciate our bodies, we are able to work with them, not against them. Although many of us are a combination of two body types, we cannot become what we are not. However, everyone can improve their appearance and their health and performance levels by implementing the principles of a safe and effective eating and exercise program.</p>\r\n\r\n<p>Even if you have a genetic predisposition to being overweight, the way you live is what ultimately determines whether you become fat. Genes clearly play a role, but they certainly don\'t determine what you\'re going to have for dinner or how often you exercise. Chances are if you\'re living an unhealthy lifestyle, you\'ll become fat and unhealthy.</p>\r\n\r\n<p>All of us can\'t be thin. But every single one of us can be healthy. By focusing on what you\'re eating and how much you\'re exercising, you\'ll be able to achieve optimum health and fitness, even though you may not achieve society\'s ideal of thinness. Accepting yourself does not mean that you\'re hopeless and that it\'s okay to do nothing. It means that you feel good and care about yourself, and that you want to be the very best you can be, regardless of your genetics, regardless of society\'s standards.</p>\r\n\r\n<p>To achieve this level of optimum wellness, you must have a positive self image. This means that your feelings about your body are not influenced by events in your daily life. For many people, life\'s problems are projected onto their body.  If only I were thinner--or more muscular, I would have made the team, gotten the job, been chosen. . . . If only I were thinner--or more muscular, I could meet more people, find the right guy/girl, be happy.  This self-defeating habit is reinforced by the images we see in advertising; your body becomes an easy target for everything wrong in your life.</p>\r\n\r\n<p>When you have a positive self-image, you value and respect your body; you are also more likely to feel good about living a healthy lifestyle.</p>\r\n<p>No matter how much genetics predetermines how you store and lose fat, the body you\'ve been given will still respond positively to being appreciated and treated well. Focusing on fun physical activity and eating healthy foods will help you feel good whatever your size. Developing a healthy, positive image of yourself is the first critical factor in your fitness success. Having a strong sense of self-worth provides the basis for making rational and affirming decisions about your health. Good luck, stay positive, and enjoy all the wonderful benefits of a healthy, active lifestyle </p>\r\n'),(5162,319,0.13,'smarty','1','Page created.',1159812151,1124,'67.181.211.233','<p><b><hl>Accept Your Body and Learn to Have a Positive Self Image</hl></b></p>\r\n<p>Thin females and muscular males are seen as the ideal in our society and because we have come to believe that body size and shape are totally under a person\'s control, most people enter diet and exercise programs with unrealistic goals and expectations. If you continually strive to achieve a socially imposed ideal, you will never be free of your insecurities or your self-consciousness. You must truly realize and then learn to accept that we are not all meant to be fashion-model size.</p>\r\n\r\n<p>Our body size and structure reflects not only our eating and exercise habits but also our genetics. The role this latter factor plays in determining weight seems to vary greatly between individuals. We are all born with a certain body type inherited from our parents. Although hardly anyone is a pure body type, there are three different applicable categories: ectomorphs, mesomorphs, and endomorphs.</p>\r\n\r\n<p>Characteristically, ectomorphs have a light build with slight muscular development. They are usually tall and thin with small frames and narrow hips and shoulders.</p>\r\n\r\n<p>Mesomorphs have a husky, muscular build. They often have broad shoulders, and their weight is concentrated in the upper body, making them look compact or stocky.</p>\r\n\r\n<p>Endomorphs are characterized by a heavy, rounded build with shoulders usually narrower than their hips. They have a round, soft appearance and are more often overweight or obese.</p>\r\n\r\n<p>When we understand and appreciate our bodies, we are able to work with them, not against them. Although many of us are a combination of two body types, we cannot become what we are not. However, everyone can improve their appearance and their health and performance levels by implementing the principles of a safe and effective eating and exercise program.</p>\r\n\r\n<p>Even if you have a genetic predisposition to being overweight, the way you live is what ultimately determines whether you become fat. Genes clearly play a role, but they certainly don\'t determine what you\'re going to have for dinner or how often you exercise. Chances are if you\'re living an unhealthy lifestyle, you\'ll become fat and unhealthy.</p>\r\n\r\n<p>All of us can\'t be thin. But every single one of us can be healthy. By focusing on what you\'re eating and how much you\'re exercising, you\'ll be able to achieve optimum health and fitness, even though you may not achieve society\'s ideal of thinness. Accepting yourself does not mean that you\'re hopeless and that it\'s okay to do nothing. It means that you feel good and care about yourself, and that you want to be the very best you can be, regardless of your genetics, regardless of society\'s standards.</p>\r\n\r\n<p>To achieve this level of optimum wellness, you must have a positive self image. This means that your feelings about your body are not influenced by events in your daily life. For many people, life\'s problems are projected onto their body.  If only I were thinner--or more muscular, I would have made the team, gotten the job, been chosen. . . . If only I were thinner--or more muscular, I could meet more people, find the right guy/girl, be happy.  This self-defeating habit is reinforced by the images we see in advertising; your body becomes an easy target for everything wrong in your life.</p>\r\n\r\n<p>When you have a positive self-image, you value and respect your body; you are also more likely to feel good about living a healthy lifestyle.</p>\r\n<p>No matter how much genetics predetermines how you store and lose fat, the body you\'ve been given will still respond positively to being appreciated and treated well. Focusing on fun physical activity and eating healthy foods will help you feel good whatever your size. Developing a healthy, positive image of yourself is the first critical factor in your fitness success. Having a strong sense of self-worth provides the basis for making rational and affirming decisions about your health. Good luck, stay positive, and enjoy all the wonderful benefits of a healthy, active lifestyle </p>\r\n'),(5163,320,0.10,'smarty','0','Page created.',1159812765,1124,'67.181.211.233',''),(5164,320,0.11,'smarty','1','Page created.',1159812886,1124,'67.181.211.233','<p><b><hl>Food and nutrition: the benefits of eating seasonal & locally grown produce</hl></b></p>\r\n\r\n<p>Today\'s food shopper has choices our ancestors never dreamed of. Any time of the year, they can go to the grocery store and buy produce that was once available for only a few months or weeks of the year. Have strawberries in November, corn on the cob in February  Given these options, why would one want to eat like our ancestors did, eating produce in season, grown within a short drive from their homes? </p>\r\n<p>Because it\'s better for you, and it tastes better too.</p> \r\n\r\n\r\n<p>Produce is at its peak nutritional value when it is ripe. But fruits and vegetables that will be traveling long distances to market aren\'t picked when they are ripe, but before ripeness. While the produce might gain color and softness on its journey to the supermarket, nutritional value comes through the stem from the living plant. Once harvested, a vegetable is as nutritious as its going to get. And in a double whammy, nutritional value actually decreases every day past harvest. </p>\r\n<p>Nor is nutritional value on the top of the agenda for large commercial vegetable farmers. In the days when all produce was local, horticulturists developing new strains of fruits and vegetables only had to consider several criteria: taste and nutritional value. But today, with much of the growing and harvesting handled by machines and with produce shipped around the world, several other criteria take priority, and taste and nutrition take a back seat. Sturdiness and shippability are one factor, and uniformity of size is another. Another key factor big producers take into account is grocery case eye appeal. </p>\r\n<p>While these new criteria are important to the grower\'s profits, they add nothing to the health of the consumer. If anything, they detract from it. Sturdy produce that stands up to lengthy shipping will be shipped long distances, taking days on its journey to your table, and losing nutritional value with every day that passes between harvest and eating. 	</p>\r\n<p>So for your health\'s sake, take a step back in time when you\'re shopping for produce. Find your local vegetable stand, preferably one on the road right in front of the farm where the fruits and vegetables are grown, selling what was picked that day. Eat produce that was intended to be grown in the area where you live, and buy it at its peak of ripeness, rather than produce that was picked unripe and shipped thousands of miles.</p> \r\n<p>If you live in the city, finding the farm stand might take some doing, and getting there will require some driving. But what better excursion that a relaxing drive in the country to buy freshly picked vegetables? So urban that you don\'t even own a car? Then look for your local health food store; most of them will have a fresh produce section, and their staff will be glad to tell you where the produce comes from and what days it\'s delivered. </p>\r\n<p>You might even want to add some healthy outdoor exercise into the mix and grow your own  But if you lack the yard space, time, or inclination, by all means, support your community fruit and vegetable growers by buying your produce ripe, locally grown, and freshly harvested. 	</p>.	'),(5169,318,0.60,'smarty','0','Page created.',1166184570,16,'67.177.52.95','<a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\"><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/download.png\" border=\"0\" align=\"right\"></a>\r\nThe holiday Weight Maitain challenge is back!  Last year seven companies competed, head to head, to see who could lose the most weight.  In the end USANA Health Sciences took home the coveted trophy by <u><b>losing 537 lbs!</b></u>  \r\n<p>To be a part of this years competition contact Chad Blodgett 801.443.4823 or <a href=\"http://www.ehealthcompete.com/contact\">email us by clicking here</a>. \r\n</p>		\r\n	\r\n\r\n\r\n<table>\r\n	<tr>\r\n		<!---<td><h2>Channel 2 news covered the winner of last years challenge. Click Play below to watch</h2><br />\r\n		<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/ODwwITY6l28\"></param><embed src=\"http://www.youtube.com/v/ODwwITY6l28\" type=\"application/x-shockwave-flash\" width=\"400\" height=\"233\"></embed></object>\r\n\r\n		</td>--->\r\n		<td> \r\n			<table>\r\n				<tr align=\"center\"><td>These are some of the companies who competed last year\r\n				</td></tr>\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/usana.gif\" width=\"162\" height=\"73\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\" width=\"175\" height=\"35\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/americanExpress.gif\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\" width=\"175\" height=\"27\"></td></tr>\r\n\r\n				<tr align=\"center\"><td><img src=\"http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/westech_logo.gif\" width=\"175\" height=\"36\"></td></tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n<p><h1> To download a brochure with more info please <a href=\"http://www.ehealthcompete.com/systems/v2_ehc/images/holidayChallenge.pdf\">click here </a></h1>\r\n'),(5166,322,0.10,'smarty','0','Page created.',1159814169,1124,'67.181.211.233',''),(5168,322,0.11,'smarty','1','Page created.',1159814730,1124,'67.181.211.233','<hl>Healthy Habits That Zap Your Energy</hl>\r\n\r\n<p>1. You Sleep in on the Weekends</p> <p>\r\n1. It\'s easy to blame an energy slump on bad habits, but what about those times when you do almost everything right -- yet you can barely stay awake? Some of the moves you think are good for you can actually make you more exhausted. But perk up: These simple tweaks will turn yawn inducers into stamina boosters.</p>\r\n\r\n<p>Your alarm goes off at 6 a.m. all week, so snoozing until nine on Saturday and Sunday sounds like a dream come true. The trouble is, this plan often backfires. You get up feeling groggy, which can last for hours -- a phenomenon called sleep inertia, says Russell Rosenberg, PhD, director of the Northside Hospital Sleep Medicine Institute in Atlanta. It\'s likely that when you rise at your normal time during the week, your body has moved into a lighter phase of sleep and you can awaken more quickly. But Rosenberg believes that too many extra z\'s may send you back into a deeper stage of sleep, so you wake up feeling sluggish rather than alert. </p>\r\n<p>So how do you catch up on much-needed rest?  Spread it out over the weekend,  Rosenberg advises.  To avoid grogginess, snooze 30 to 60 minutes later each day, and take no more than a 45-minute nap.  Not only will you feel sharp, you\'ll also be much more likely to drift off at your normal time at night.</p>\r\n<p>2. You eat a big breakfast. </p>\r\n<p>Why does the most important meal of the day cause a midmorning lull? You may be eating too much -- or choosing the wrong foods. For instance, the average deli-size bagel is big enough to count as four servings of bread. Add a generous amount of cream cheese and you\'re looking at about 567 calories and 22 grams of fat.  When you eat a meal with a lot of calories and fat, some of the blood that normally provides energy to the brain and muscles is diverted to the stomach to help with digestion,  says Sue Moores, RD, a spokesperson for the American Dietetic Association. </p>\r\n<p>Instead, try two eggs and toast with fruit spread. A study shows that people who ate this felt satisfied (and thus energized) longer -- and consumed 420 fewer calories a day -- than those who had nonfat yogurt and a bagel with cream cheese.</p>\r\n<p>3. You never snack between meals. </p>\r\n<p>It may seem like a smart weight-control technique, but if you go more than four hours without food, your blood sugar may drop, which drains your energy and leaves you cranky and ravenous. Munching on a portion-controlled snack that\'s a combo of protein, carbs, and fat can help stabilize your blood sugar, mood, and energy levels. Smart choices include one ounce of string cheese with one-quarter cup of soy nuts, one-fourth cup of dried fruit and 20 almonds, or a mini whole wheat pita pocket stuffed with one-quarter cup of low-fat cottage cheese and carrots. If you\'re worried about consuming extra calories in your meals, include foods with a high water content, such as soup, salad, and veggies, so you\'ll feel full faster and eat less. 	</p>\r\n<p>4. You hydrate during and after your workout. </p>\r\n<p>You\'re forgetting one crucial step: drinking water before you exercise.  If you don\'t, it\'s like heading out on a trip with three-quarters of a tank versus a full one. You simply won\'t go as far,  says Fabio Comana, an exercise physiologist and spokesperson for the American Council on Exercise. Water is crucial to regulating body temperature and maintaining blood circulation. A loss of fluids equal to just 2 percent of your body weight can tire you out and significantly impair your performance, he adds. To stay energized, drink 16 ounces of water or a noncaffeinated beverage spaced out over one to two hours before you exercise and another 6 to 8 ounces within 15 minutes of working out. </p>\r\n<p>5. To extend your cardio time, you skip the post-workout stretch. </p>\r\n<p>You\'re missing an important chance to help your muscles recover.  Stretching expedites recovery and improves circulation, making you feel more energetic and possibly reducing muscle soreness after your workout,  says Comana. To get a bigger boost, do full-body stretching for at least five minutes after exercising. </p>\r\n'),(5183,324,0.12,'smarty','0','Page created.',1168833860,2,'67.177.21.139','{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n{include_php file=\"shared_handle:submitYourSuccess\"}\r\n\r\n<h1>{$page.title}</h1>\r\n<h2>{$page.description}</h2>\r\n\r\n<form name=\"submitYourSuccessForm\" action=\"index.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<table>\r\n<tr>\r\n	<td><span>Your Name:</span></td>\r\n	<td><input type=\"text\" name=\"Name\" value=\"{$smarty.request.Name|default:$user->firstName|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Your E-mail Address:</span></td>\r\n	<td><input type=\"text\" name=\"Email\" value=\"{$smarty.request.Email|default:$user->email|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Your Friend\'s Address:</span></td>\r\n	<td><div id=\"friendEmailList\">\r\n		{foreach from=$smarty.request.FriendEmail item=\"FriendEmail\"}\r\n			<input type=\"text\" name=\"FriendEmail[]\" value=\"{$FriendEmail|stripslashes|htmlspecialchars}\"><br />\r\n		{foreachelse}\r\n			<input type=\"text\" name=\"FriendEmail[]\" value=\"\"><br />\r\n		{/foreach}\r\n	</div></td>\r\n</tr>\r\n\r\n<tr>\r\n	<td><span>Your Message:</span></td>\r\n	<td><textarea cols=\"55\" rows=\"16\" name=\"Message\">{$smarty.request.Message|stripslashes|htmlspecialchars}</textarea></td>\r\n</tr>\r\n<tr>\r\n	<td><span>&nbsp;</span></td>\r\n	<td><input type=\"submit\" value=\"Send Now\"></td>\r\n</tr>\r\n</table>\r\n\r\n<script type=\"text/javascript\">\r\n{literal}\r\nfunction addFriend() {\r\n	document.getElementById(\'friendEmailList\').innerHTML += \'<input type=\"text\" name=\"FriendEmail[]\" value=\"\"><br />\';\r\n}\r\n{/literal}\r\n</script>\r\n\r\n</form>'),(5184,324,0.13,'smarty','0','Page created.',1168834947,2,'67.177.21.139','{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n{include_php file=\"shared_handle:submitYourSuccess\"}\r\n\r\n<h1>{$page.title}</h1>\r\n<h2>{$page.description}</h2>\r\n\r\n<form name=\"submitYourSuccessForm\" action=\"index.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<table>\r\n<tr>\r\n	<td><span>Your Name:</span></td>\r\n	<td><input type=\"text\" name=\"Name\" value=\"{$smarty.request.Name|default:$user->firstName|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Your E-mail Address:</span></td>\r\n	<td><input type=\"text\" name=\"Email\" value=\"{$smarty.request.Email|default:$user->email|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Your Friend\'s Address:</span></td>\r\n	<td><div id=\"friendEmailList\">\r\n		{foreach from=$smarty.request.FriendEmail item=\"FriendEmail\"}\r\n			<input type=\"text\" name=\"FriendEmail[]\" value=\"{$FriendEmail|stripslashes|htmlspecialchars}\"><br />\r\n		{foreachelse}\r\n			<input type=\"text\" name=\"FriendEmail[]\" value=\"\"><br />\r\n		{/foreach}\r\n		\r\n	</div><a href=\"javascript://\" onclick=\"addFriend(); return false;\">Invite more friends...</a></td>\r\n</tr>\r\n\r\n<tr>\r\n	<td><span>Your Message:</span></td>\r\n	<td><textarea cols=\"45\" rows=\"10\" name=\"Message\">{if not $smarty.request.Message}Friends:\r\n\r\nI\'d like to invite you to eHealthCompete. {display var=$smarty.session.company}{else}{$smarty.request.Message|stripslashes|htmlspecialchars}{/if}</textarea></td>\r\n</tr>\r\n<tr>\r\n	<td><span>&nbsp;</span></td>\r\n	<td><input type=\"submit\" value=\"Send Now\"></td>\r\n</tr>\r\n</table>\r\n\r\n<script type=\"text/javascript\">\r\n{literal}\r\nfunction addFriend() {\r\n	document.getElementById(\'friendEmailList\').innerHTML += \'<input type=\"text\" name=\"FriendEmail[]\" value=\"\"><br />\';\r\n}\r\n{/literal}\r\n</script>\r\n\r\n</form>'),(5185,324,0.14,'smarty','0','Page created.',1168835059,2,'67.177.21.139','{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n{include_php file=\"shared_handle:submitYourSuccess\"}\r\n\r\n<h1>{$page.title}</h1>\r\n<h2>{$page.description}</h2>\r\n\r\n<form name=\"submitYourSuccessForm\" action=\"index.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<table>\r\n<tr>\r\n	<td><span>Your Name:</span></td>\r\n	<td><input type=\"text\" name=\"Name\" value=\"{$smarty.request.Name|default:$user->firstName|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Your E-mail Address:</span></td>\r\n	<td><input type=\"text\" name=\"Email\" value=\"{$smarty.request.Email|default:$user->email|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Your Friend\'s Address:</span></td>\r\n	<td><div id=\"friendEmailList\">\r\n		{foreach from=$smarty.request.FriendEmail item=\"FriendEmail\"}\r\n			<input type=\"text\" name=\"FriendEmail[]\" value=\"{$FriendEmail|stripslashes|htmlspecialchars}\"><br />\r\n		{foreachelse}\r\n			<input type=\"text\" name=\"FriendEmail[]\" value=\"\"><br />\r\n		{/foreach}\r\n		\r\n	</div><a href=\"javascript://\" onclick=\"addFriend(); return false;\">Invite more friends...</a></td>\r\n</tr>\r\n\r\n<tr>\r\n	<td><span>Your Message:</span></td>\r\n	<td><textarea cols=\"45\" rows=\"10\" name=\"Message\">{if not $smarty.request.Message}Friends:\r\n\r\nI\'d like to invite you to eHealthCompete. Just go to http://{$smarty.session.company.companyVanity}.ehealthcompete.com and sign up!\r\n\r\nHope to see you there!\r\n\r\n{$user->firstName}{else}{$smarty.request.Message|stripslashes|htmlspecialchars}{/if}</textarea></td>\r\n</tr>\r\n<tr>\r\n	<td><span>&nbsp;</span></td>\r\n	<td><input type=\"submit\" value=\"Send Now\"></td>\r\n</tr>\r\n</table>\r\n\r\n<script type=\"text/javascript\">\r\n{literal}\r\nfunction addFriend() {\r\n	document.getElementById(\'friendEmailList\').innerHTML += \'<input type=\"text\" name=\"FriendEmail[]\" value=\"\"><br />\';\r\n}\r\n{/literal}\r\n</script>\r\n\r\n</form>'),(5186,324,0.15,'smarty','0','Page created.',1168835103,2,'67.177.21.139','{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n{include_php file=\"shared_handle:submitYourSuccess\"}\r\n\r\n<h1>{$page.title}</h1>\r\n<h2>{$page.description}</h2>\r\n\r\n<form name=\"submitYourSuccessForm\" action=\"index.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<table>\r\n<tr>\r\n	<td><span>Your Name:</span></td>\r\n	<td><input type=\"text\" name=\"Name\" value=\"{$smarty.request.Name|default:$user->firstName|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Your E-mail Address:</span></td>\r\n	<td><input type=\"text\" name=\"Email\" value=\"{$smarty.request.Email|default:$user->email|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td valign=\"top\"><span>Your Friend\'s Address:</span></td>\r\n	<td><div id=\"friendEmailList\">\r\n		{foreach from=$smarty.request.FriendEmail item=\"FriendEmail\"}\r\n			<input type=\"text\" name=\"FriendEmail[]\" value=\"{$FriendEmail|stripslashes|htmlspecialchars}\"><br />\r\n		{foreachelse}\r\n			<input type=\"text\" name=\"FriendEmail[]\" value=\"\"><br />\r\n		{/foreach}\r\n		\r\n	</div><a href=\"javascript://\" onclick=\"addFriend(); return false;\">Invite more friends...</a></td>\r\n</tr>\r\n\r\n<tr>\r\n	<td valign=\"top\"><span>Your Message:</span></td>\r\n	<td><textarea cols=\"45\" rows=\"10\" name=\"Message\">{if not $smarty.request.Message}Friends:\r\n\r\nI\'d like to invite you to eHealthCompete. Just go to http://{$smarty.session.company.companyVanity}.ehealthcompete.com and sign up!\r\n\r\nHope to see you there!\r\n\r\n{$user->firstName}{else}{$smarty.request.Message|stripslashes|htmlspecialchars}{/if}</textarea></td>\r\n</tr>\r\n<tr>\r\n	<td><span>&nbsp;</span></td>\r\n	<td><input type=\"submit\" value=\"Send Now\"></td>\r\n</tr>\r\n</table>\r\n\r\n<script type=\"text/javascript\">\r\n{literal}\r\nfunction addFriend() {\r\n	document.getElementById(\'friendEmailList\').innerHTML += \'<input type=\"text\" name=\"FriendEmail[]\" value=\"\"><br />\';\r\n}\r\n{/literal}\r\n</script>\r\n\r\n</form>'),(5187,324,0.16,'smarty','0','Page created.',1168835144,2,'67.177.21.139','{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n{include_php file=\"shared_handle:tellAFriend\"}\r\n\r\n<h1>{$page.title}</h1>\r\n<h2>{$page.description}</h2>\r\n\r\n<form name=\"submitYourSuccessForm\" action=\"index.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<table>\r\n<tr>\r\n	<td><span>Your Name:</span></td>\r\n	<td><input type=\"text\" name=\"Name\" value=\"{$smarty.request.Name|default:$user->firstName|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Your E-mail Address:</span></td>\r\n	<td><input type=\"text\" name=\"Email\" value=\"{$smarty.request.Email|default:$user->email|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td valign=\"top\"><span>Your Friend\'s Address:</span></td>\r\n	<td><div id=\"friendEmailList\">\r\n		{foreach from=$smarty.request.FriendEmail item=\"FriendEmail\"}\r\n			<input type=\"text\" name=\"FriendEmail[]\" value=\"{$FriendEmail|stripslashes|htmlspecialchars}\"><br />\r\n		{foreachelse}\r\n			<input type=\"text\" name=\"FriendEmail[]\" value=\"\"><br />\r\n		{/foreach}\r\n		\r\n	</div><a href=\"javascript://\" onclick=\"addFriend(); return false;\">Invite more friends...</a></td>\r\n</tr>\r\n\r\n<tr>\r\n	<td valign=\"top\"><span>Your Message:</span></td>\r\n	<td><textarea cols=\"45\" rows=\"10\" name=\"Message\">{if not $smarty.request.Message}Friends:\r\n\r\nI\'d like to invite you to eHealthCompete. Just go to http://{$smarty.session.company.companyVanity}.ehealthcompete.com and sign up!\r\n\r\nHope to see you there!\r\n\r\n{$user->firstName}{else}{$smarty.request.Message|stripslashes|htmlspecialchars}{/if}</textarea></td>\r\n</tr>\r\n<tr>\r\n	<td><span>&nbsp;</span></td>\r\n	<td><input type=\"submit\" value=\"Send Now\"></td>\r\n</tr>\r\n</table>\r\n\r\n<script type=\"text/javascript\">\r\n{literal}\r\nfunction addFriend() {\r\n	document.getElementById(\'friendEmailList\').innerHTML += \'<input type=\"text\" name=\"FriendEmail[]\" value=\"\"><br />\';\r\n}\r\n{/literal}\r\n</script>\r\n\r\n</form>'),(5188,324,0.17,'smarty','0','Page created.',1168835621,2,'67.177.21.139','{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n{include_php file=\"shared_handle:tellAFriend\"}\r\n\r\n<h1>{$page.title}</h1>\r\n<h2>{$page.description}</h2>\r\n\r\n<form name=\"submitYourSuccessForm\" action=\"index.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<table>\r\n<tr>\r\n	<td><span>Your Name:</span></td>\r\n	<td><input type=\"text\" name=\"Name\" value=\"{$smarty.request.Name|default:$user->firstName|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Your E-mail Address:</span></td>\r\n	<td><input type=\"text\" name=\"Email\" value=\"{$smarty.request.Email|default:$user->email|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td valign=\"top\"><span>Your Friend\'s Address:</span></td>\r\n	<td><div id=\"friendEmailList\">\r\n		{foreach from=$smarty.request.FriendEmail item=\"FriendEmail\"}\r\n			<input type=\"text\" name=\"FriendEmail[]\" value=\"{$FriendEmail|stripslashes|htmlspecialchars}\"><br />\r\n		{foreachelse}\r\n			<input type=\"text\" name=\"FriendEmail[]\" value=\"\"><br />\r\n		{/foreach}\r\n		\r\n	</div><a href=\"javascript://\" onclick=\"addFriend(); return false;\">Click to invite more friends...</a></td>\r\n</tr>\r\n\r\n<tr>\r\n	<td valign=\"top\"><span>Your Message:</span></td>\r\n	<td><textarea cols=\"45\" rows=\"10\" name=\"Message\">{if not $smarty.request.Message}Friends:\r\n\r\nI\'d like to invite you to eHealthCompete. Just go to http://{$smarty.session.company.companyVanity}.ehealthcompete.com and sign up!\r\n\r\nHope to see you there!\r\n\r\n{$user->firstName}{else}{$smarty.request.Message|stripslashes|htmlspecialchars}{/if}</textarea></td>\r\n</tr>\r\n<tr>\r\n	<td><span>&nbsp;</span></td>\r\n	<td><input type=\"submit\" value=\"Send Now\"></td>\r\n</tr>\r\n</table>\r\n\r\n<script type=\"text/javascript\">\r\n{literal}\r\nfunction addFriend() {\r\n	document.getElementById(\'friendEmailList\').innerHTML += \'<input type=\"text\" name=\"FriendEmail[]\" value=\"\"><br />\';\r\n}\r\n{/literal}\r\n</script>\r\n\r\n</form>'),(5189,324,0.18,'smarty','0','Page created.',1168836154,2,'67.177.21.139','{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n{include_php file=\"shared_handle:tellAFriend\"}\r\n\r\n<h1>{$page.title}</h1>\r\n<h2>{$page.description}</h2>\r\n\r\n<form name=\"submitYourSuccessForm\" action=\"index.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<table>\r\n<tr>\r\n	<td><span>Your Name:</span></td>\r\n	<td><input type=\"text\" name=\"Name\" value=\"{$smarty.request.Name|default:$user->firstName|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Your E-mail Address:</span></td>\r\n	<td><input type=\"text\" name=\"Email\" value=\"{$smarty.request.Email|default:$user->email|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td valign=\"top\"><span>Your Friend\'s Address:</span></td>\r\n	<td><div id=\"friendEmailList\">\r\n		{foreach from=$smarty.request.FriendEmail item=\"FriendEmail\"}\r\n			<input type=\"text\" name=\"FriendEmail[]\" value=\"{$FriendEmail|stripslashes|htmlspecialchars}\"><br />\r\n		{foreachelse}\r\n			<input type=\"text\" name=\"FriendEmail[]\" value=\"\"><br />\r\n		{/foreach}\r\n		\r\n	</div><a href=\"javascript://\" onclick=\"addFriend(); return false;\">Click to invite more friends...</a></td>\r\n</tr>\r\n\r\n<tr>\r\n	<td valign=\"top\"><span>Your Message:</span></td>\r\n	<td><textarea cols=\"45\" rows=\"10\" name=\"Message\">{if not $smarty.request.Message}Friends:\r\n\r\nI\'d like to invite you to eHealthCompete. Just go to http://{$smarty.session.company.companyVanity}.ehealthcompete.com and sign up!\r\n\r\nHope to see you there!\r\n\r\n{$user->firstName}{else}{$smarty.request.Message|stripslashes|htmlspecialchars}{/if}</textarea></td>\r\n</tr>\r\n<tr>\r\n	<td><span>&nbsp;</span></td>\r\n	<td><input type=\"submit\" value=\"Send Now\"></td>\r\n</tr>\r\n</table>\r\n\r\n<script type=\"text/javascript\">\r\nvar count = {$smarty.request.FriendEmail|@count};\r\n{literal}\r\nfunction addFriend() {\r\n	count++;\r\n	if (count > 10) {\r\n		alert(\'You cannot send to more than 10 friends at a time.\');\r\n	} else {\r\n		document.getElementById(\'friendEmailList\').innerHTML += \'<input type=\"text\" name=\"FriendEmail[]\" value=\"\"><br />\';\r\n	}\r\n{/literal}\r\n</script>\r\n\r\n</form>'),(5190,324,0.19,'smarty','0','Page created.',1168836214,2,'67.177.21.139','{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n{include_php file=\"shared_handle:tellAFriend\"}\r\n\r\n<h1>{$page.title}</h1>\r\n<h2>{$page.description}</h2>\r\n\r\n<form name=\"submitYourSuccessForm\" action=\"index.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<table>\r\n<tr>\r\n	<td><span>Your Name:</span></td>\r\n	<td><input type=\"text\" name=\"Name\" value=\"{$smarty.request.Name|default:$user->firstName|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Your E-mail Address:</span></td>\r\n	<td><input type=\"text\" name=\"Email\" value=\"{$smarty.request.Email|default:$user->email|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td valign=\"top\"><span>Your Friend\'s Address:</span></td>\r\n	<td><div id=\"friendEmailList\">\r\n		{foreach from=$smarty.request.FriendEmail item=\"FriendEmail\"}\r\n			<input type=\"text\" name=\"FriendEmail[]\" value=\"{$FriendEmail|stripslashes|htmlspecialchars}\"><br />\r\n		{foreachelse}\r\n			<input type=\"text\" name=\"FriendEmail[]\" value=\"\"><br />\r\n		{/foreach}\r\n		\r\n	</div><a href=\"javascript://\" onclick=\"addFriend(); return false;\">Click to invite more friends...</a></td>\r\n</tr>\r\n\r\n<tr>\r\n	<td valign=\"top\"><span>Your Message:</span></td>\r\n	<td><textarea cols=\"45\" rows=\"10\" name=\"Message\">{if not $smarty.request.Message}Friends:\r\n\r\nI\'d like to invite you to eHealthCompete. Just go to http://{$smarty.session.company.companyVanity}.ehealthcompete.com and sign up!\r\n\r\nHope to see you there!\r\n\r\n{$user->firstName}{else}{$smarty.request.Message|stripslashes|htmlspecialchars}{/if}</textarea></td>\r\n</tr>\r\n<tr>\r\n	<td><span>&nbsp;</span></td>\r\n	<td><input type=\"submit\" value=\"Send Now\"></td>\r\n</tr>\r\n</table>\r\n\r\n<script type=\"text/javascript\">\r\nvar count = {$smarty.request.FriendEmail|@count};\r\n{literal}\r\nfunction addFriend() {\r\n	if (count++ > 10) {\r\n		alert(\'You cannot send to more than 10 friends at a time.\');\r\n	} else {\r\n		document.getElementById(\'friendEmailList\').innerHTML += \'<input type=\"text\" name=\"FriendEmail[]\" value=\"\"><br />\';\r\n	}\r\n}\r\n{/literal}\r\n</script>\r\n\r\n</form>'),(5191,324,0.20,'smarty','0','Page created.',1168836429,2,'67.177.21.139','{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n{include_php file=\"shared_handle:tellAFriend\"}\r\n\r\n<h1>{$page.title}</h1>\r\n<h2>{$page.description}</h2>\r\n\r\n<form name=\"submitYourSuccessForm\" action=\"index.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<table>\r\n<tr>\r\n	<td><span>Your Name:</span></td>\r\n	<td><input type=\"text\" name=\"Name\" value=\"{$smarty.request.Name|default:$user->firstName|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Your E-mail Address:</span></td>\r\n	<td><input type=\"text\" name=\"Email\" value=\"{$smarty.request.Email|default:$user->email|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td valign=\"top\"><span>Your Friend\'s Address:</span></td>\r\n	<td><div id=\"friendEmailList\">\r\n		{foreach from=$smarty.request.FriendEmail item=\"FriendEmail\"}\r\n			<input type=\"text\" name=\"FriendEmail[]\" value=\"{$FriendEmail|stripslashes|htmlspecialchars}\"><br />\r\n		{foreachelse}\r\n			<input type=\"text\" name=\"FriendEmail[]\" value=\"\"><br />\r\n		{/foreach}\r\n		\r\n	</div><a href=\"javascript://\" onclick=\"addFriend(); return false;\">Click to invite more friends...</a></td>\r\n</tr>\r\n\r\n<tr>\r\n	<td valign=\"top\"><span>Your Message:</span></td>\r\n	<td><textarea cols=\"45\" rows=\"10\" name=\"Message\">{if not $smarty.request.Message}Friends:\r\n\r\nI\'d like to invite you to eHealthCompete. Just go to http://{$smarty.session.company.companyVanity}.ehealthcompete.com and sign up!\r\n\r\nHope to see you there!\r\n\r\n{$user->firstName}{else}{$smarty.request.Message|stripslashes|htmlspecialchars}{/if}</textarea></td>\r\n</tr>\r\n<tr>\r\n	<td><span>&nbsp;</span></td>\r\n	<td><input type=\"submit\" value=\"Send Now\"></td>\r\n</tr>\r\n</table>\r\n\r\n<script type=\"text/javascript\">\r\nvar count = {$smarty.request.FriendEmail|@count};\r\n{literal}\r\nfunction addFriend() {\r\n	if (++count >= 9) {\r\n		alert(\'You cannot send to more than 10 friends at a time.\');\r\n	} else {\r\n		document.getElementById(\'friendEmailList\').innerHTML += \'<input type=\"text\" name=\"FriendEmail[]\" value=\"\"><br />\';\r\n	}\r\n}\r\n{/literal}\r\n</script>\r\n\r\n</form>'),(5192,324,0.21,'smarty','0','Page created.',1168836478,2,'67.177.21.139','{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n{include_php file=\"shared_handle:tellAFriend\"}\r\n\r\n<h1>{$page.title}</h1>\r\n<h2>{$page.description}</h2>\r\n\r\n<form name=\"submitYourSuccessForm\" action=\"index.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<table>\r\n<tr>\r\n	<td><span>Your Name:</span></td>\r\n	<td><input type=\"text\" name=\"Name\" value=\"{$smarty.request.Name|default:$user->firstName|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Your E-mail Address:</span></td>\r\n	<td><input type=\"text\" name=\"Email\" value=\"{$smarty.request.Email|default:$user->email|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td valign=\"top\"><span>Your Friend\'s Address:</span></td>\r\n	<td><div id=\"friendEmailList\">\r\n		{foreach from=$smarty.request.FriendEmail item=\"FriendEmail\"}\r\n			<input type=\"text\" name=\"FriendEmail[]\" value=\"{$FriendEmail|stripslashes|htmlspecialchars}\"><br />\r\n		{foreachelse}\r\n			<input type=\"text\" name=\"FriendEmail[]\" value=\"\"><br />\r\n		{/foreach}\r\n		\r\n	</div><a href=\"javascript://\" onclick=\"addFriend(); return false;\">Click to invite more friends...</a></td>\r\n</tr>\r\n\r\n<tr>\r\n	<td valign=\"top\"><span>Your Message:</span></td>\r\n	<td><textarea cols=\"45\" rows=\"10\" name=\"Message\">{if not $smarty.request.Message}Friends:\r\n\r\nI\'d like to invite you to eHealthCompete. Just go to http://{$smarty.session.company.companyVanity}.ehealthcompete.com and sign up!\r\n\r\nHope to see you there!\r\n\r\n{$user->firstName}{else}{$smarty.request.Message|stripslashes|htmlspecialchars}{/if}</textarea></td>\r\n</tr>\r\n<tr>\r\n	<td><span>&nbsp;</span></td>\r\n	<td><input type=\"submit\" value=\"Send Now\"></td>\r\n</tr>\r\n</table>\r\n\r\n<script type=\"text/javascript\">\r\nvar count = {$smarty.request.FriendEmail|@count};\r\n{literal}\r\nfunction addFriend() {\r\n	if (++count >= 10) {\r\n		alert(\'You cannot send to more than 10 friends at a time.\');\r\n	} else {\r\n		document.getElementById(\'friendEmailList\').innerHTML += \'<input type=\"text\" name=\"FriendEmail[]\" value=\"\"><br />\';\r\n	}\r\n}\r\n{/literal}\r\n</script>\r\n\r\n</form>'),(5193,324,0.22,'smarty','0','Page created.',1168836870,2,'67.177.21.139','{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n{include_php file=\"shared_handle:tellAFriend\"}\r\n\r\n<h1>{$page.title}</h1>\r\n<h2>{$page.description}</h2>\r\n\r\n<form name=\"submitYourSuccessForm\" action=\"index.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<table>\r\n<tr>\r\n	<td><span>Your Name:</span></td>\r\n	<td><input type=\"text\" name=\"Name\" value=\"{$smarty.request.Name|default:$user->firstName|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Your E-mail Address:</span></td>\r\n	<td><input type=\"text\" name=\"Email\" value=\"{$smarty.request.Email|default:$user->email|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td valign=\"top\"><span>Your Friend\'s Address:</span></td>\r\n	<td><div id=\"friendEmailList\">\r\n		{foreach from=$smarty.request.FriendEmail item=\"FriendEmail\"}\r\n			<input type=\"text\" name=\"FriendEmail[]\" value=\"{$FriendEmail|stripslashes|htmlspecialchars}\"><br />\r\n		{foreachelse}\r\n			<input type=\"text\" name=\"FriendEmail[]\" value=\"\"><br />\r\n		{/foreach}\r\n		\r\n	</div><div id=\"inviteMoreLink\">{if $smarty.request.FriendEmail|@count lt 10}<a href=\"javascript://\" onclick=\"addFriend(); return false;\">Click to invite more friends...</a>{/if}</div></td>\r\n</tr>\r\n\r\n<tr>\r\n	<td valign=\"top\"><span>Your Message:</span></td>\r\n	<td><textarea cols=\"45\" rows=\"10\" name=\"Message\">{if not $smarty.request.Message}Friends:\r\n\r\nI\'d like to invite you to eHealthCompete. Just go to http://{$smarty.session.company.companyVanity}.ehealthcompete.com and sign up!\r\n\r\nHope to see you there!\r\n\r\n{$user->firstName}{else}{$smarty.request.Message|stripslashes|htmlspecialchars}{/if}</textarea></td>\r\n</tr>\r\n<tr>\r\n	<td><span>&nbsp;</span></td>\r\n	<td><input type=\"submit\" value=\"Send Now\"></td>\r\n</tr>\r\n</table>\r\n\r\n<script type=\"text/javascript\">\r\nvar count = {$smarty.request.FriendEmail|@count};\r\n{literal}\r\nfunction addFriend() {\r\n	if (++count >= 10) {\r\n		alert(\'You cannot send to more than 10 friends at a time.\');\r\n		document.getElementById(\'inviteMoreLink\').style.display = \'none\';\r\n	} else {\r\n		document.getElementById(\'friendEmailList\').innerHTML += \'<input type=\"text\" name=\"FriendEmail[]\" value=\"\"><br />\';\r\n	}\r\n}\r\n{/literal}\r\n</script>\r\n\r\n</form>'),(5194,324,0.23,'smarty','0','Page created.',1168837489,2,'67.177.21.139','{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n{include_php file=\"shared_handle:tellAFriend\"}\r\n\r\n<h1>{$page.title}</h1>\r\n<h2>{$page.description}</h2>\r\n\r\n<form name=\"submitYourSuccessForm\" action=\"index.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<table>\r\n<tr>\r\n	<td><span>You are:</span></td>\r\n	<td>{$user->firstName} {$user->lastName} ({$user->email})</td>\r\n</tr>\r\n<tr>\r\n	<td valign=\"top\"><span>Your Friend\'s Address:</span></td>\r\n	<td><div id=\"friendEmailList\">\r\n		{foreach from=$smarty.request.FriendEmail item=\"FriendEmail\"}\r\n			<input type=\"text\" name=\"FriendEmail[]\" value=\"{$FriendEmail|stripslashes|htmlspecialchars}\"><br />\r\n		{foreachelse}\r\n			<input type=\"text\" name=\"FriendEmail[]\" value=\"\"><br />\r\n		{/foreach}\r\n		\r\n	</div><div id=\"inviteMoreLink\">{if $smarty.request.FriendEmail|@count lt 10}<a href=\"javascript://\" onclick=\"addFriend(); return false;\">Click to invite more friends...</a>{/if}</div></td>\r\n</tr>\r\n\r\n<tr>\r\n	<td valign=\"top\"><span>Your Message:</span></td>\r\n	<td><textarea cols=\"45\" rows=\"10\" name=\"Message\">{if not $smarty.request.Message}Friends:\r\n\r\nI\'d like to invite you to eHealthCompete. Just go to http://{$smarty.session.company.companyVanity}.ehealthcompete.com and sign up!\r\n\r\nHope to see you there!\r\n\r\n{$user->firstName}{else}{$smarty.request.Message|stripslashes|htmlspecialchars}{/if}</textarea></td>\r\n</tr>\r\n<tr>\r\n	<td><span>&nbsp;</span></td>\r\n	<td><input type=\"submit\" value=\"Send Now\"></td>\r\n</tr>\r\n</table>\r\n\r\n<script type=\"text/javascript\">\r\nvar count = {$smarty.request.FriendEmail|@count};\r\n{literal}\r\nfunction addFriend() {\r\n	if (++count >= 10) {\r\n		alert(\'You cannot send to more than 10 friends at a time.\');\r\n		document.getElementById(\'inviteMoreLink\').style.display = \'none\';\r\n	} else {\r\n		document.getElementById(\'friendEmailList\').innerHTML += \'<input type=\"text\" name=\"FriendEmail[]\" value=\"\"><br />\';\r\n	}\r\n}\r\n{/literal}\r\n</script>\r\n\r\n</form>'),(5195,199,0.41,'smarty','0','Added a page_display for the sub pages.',1169661251,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 recipes to cut out those calories.<br /><br /></small></a></li>\r\n			{if<li> $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>'),(5196,199,0.42,'smarty','0','Added a page_display for the sub pages.',1169661305,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 recipes to cut out those calories.<br /><br /></small></a></li>\r\n			 {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>'),(5197,325,0.10,'smarty','0','Page created.',1169669270,16,'216.194.127.150',''),(5198,325,0.11,'smarty','0','Page created.',1169669368,16,'216.194.127.150','<p>The Rules: During the RESET GAMES you will participate in the 5 day Jump-Start to lose the first pounds towards a healthy, new you. \r\n\r\n</p><p>During these 5 days you will need to record your weight, physical activity minutes, and water intake, as well as your Nutrimeal Shakes, Am and PM HealthPaks, low glycemic and bonus snacks and meals on your “MyHome” page. When you record these things on your MyHome page you will receive points!\r\n\r\n</p><p>You can also receive points for logging in, reading and posting messages in the discussion forums and taking self assessments on the Incentives page. All of these points add up and can qualify you for great prizes!\r\n\r\n</p><p>After the 5 day Jump-Start challenge you will then join either the “Transform” or “Maintain” group and continue to record your progress on your MyHome page. During these phases you will continue to  \r\n\r\n</p><p>Prizes: explain what the prize method and opportunity is here. </p>\r\n'),(5199,325,0.12,'smarty','0','Page created.',1169669421,16,'216.194.127.150','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n\r\n<p>The Rules: During the RESET GAMES you will participate in the 5 day Jump-Start to lose the first pounds towards a healthy, new you. \r\n\r\n</p><p>During these 5 days you will need to record your weight, physical activity minutes, and water intake, as well as your Nutrimeal Shakes, Am and PM HealthPaks, low glycemic and bonus snacks and meals on your “MyHome” page. When you record these things on your MyHome page you will receive points!\r\n\r\n</p><p>You can also receive points for logging in, reading and posting messages in the discussion forums and taking self assessments on the Incentives page. All of these points add up and can qualify you for great prizes!\r\n\r\n</p><p>After the 5 day Jump-Start challenge you will then join either the “Transform” or “Maintain” group and continue to record your progress on your MyHome page. During these phases you will continue to  \r\n\r\n</p><p>Prizes: explain what the prize method and opportunity is here. </p>\r\n'),(5200,325,0.13,'smarty','0','Page created.',1169669812,16,'216.194.127.150','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<img src=\"\">\r\n<p>The Rules: During the RESET GAMES you will participate in the 5 day Jump-Start to lose the first pounds towards a healthy, new you. \r\n\r\n</p><p>During these 5 days you will need to record your weight, physical activity minutes, and water intake, as well as your Nutrimeal Shakes, Am and PM HealthPaks, low glycemic and bonus snacks and meals on your “MyHome” page. When you record these things on your MyHome page you will receive points!\r\n\r\n</p><p>You can also receive points for logging in, reading and posting messages in the discussion forums and taking self assessments on the Incentives page. All of these points add up and can qualify you for great prizes!\r\n\r\n</p><p>After the 5 day Jump-Start challenge you will then join either the “Transform” or “Maintain” group and continue to record your progress on your MyHome page. During these phases you will continue to  \r\n\r\n</p><p>Prizes: explain what the prize method and opportunity is here. </p>\r\n'),(5201,325,0.14,'smarty','0','Page created.',1169669877,16,'216.194.127.150','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<img src=\"systems/v2_ehc/images/reset_with_tape.jpg\">\r\n<p>The Rules: During the RESET GAMES you will participate in the 5 day Jump-Start to lose the first pounds towards a healthy, new you. \r\n\r\n</p><p>During these 5 days you will need to record your weight, physical activity minutes, and water intake, as well as your Nutrimeal Shakes, Am and PM HealthPaks, low glycemic and bonus snacks and meals on your “MyHome” page. When you record these things on your MyHome page you will receive points!\r\n\r\n</p><p>You can also receive points for logging in, reading and posting messages in the discussion forums and taking self assessments on the Incentives page. All of these points add up and can qualify you for great prizes!\r\n\r\n</p><p>After the 5 day Jump-Start challenge you will then join either the “Transform” or “Maintain” group and continue to record your progress on your MyHome page. During these phases you will continue to  \r\n\r\n</p><p>Prizes: explain what the prize method and opportunity is here. </p>\r\n'),(5202,325,0.15,'smarty','0','Page created.',1169670159,16,'216.194.127.150','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<img src=\"systems/v2_ehc/images/reset_with_tape.jpg\">\r\n<p>The Rules: During the RESET GAMES you will participate in the 5 day Jump-Start to <br />\r\nlose the first pounds towards a healthy, new you. \r\n\r\n</p><p>During these 5 days you will need to record your weight, physical activity minutes,<br />\r\nand water intake, as well as your NUTRIMEAL Shakes, Am and PM HEALTHPAKS, low glycemic and \r\n<br />bonus snacks and meals on your “MyHome” page. When you record these things on your \r\n<br />MyHome page you will receive points!\r\n\r\n</p><p>You can also receive points for logging in, reading and posting messages in the \r\n<br />discussion forums and taking self assessments on the Incentives page. All of these points\r\n<br /> add up and can qualify you for great prizes!\r\n\r\n</p><p>After the 5 day Jump-Start challenge you will then join either the “Transform” \r\n<br />or “Maintain” group and continue to record your progress on your MyHome page. \r\n<br />During these phases you will continue to earn points for prizes!\r\n\r\n</p><p>Prizes: explain what the prize method and opportunity is here. </p>\r\n'),(5203,325,0.16,'smarty','0','Page created.',1169670252,16,'216.194.127.150','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<img src=\"systems/v2_ehc/images/reset_with_tape.jpg\">\r\n<p>The Rules: During the RESET GAMES you will participate in the 5 day Jump-Start to <br />\r\nlose the first pounds towards a healthy, new you. \r\n\r\n</p><p>During these 5 days you will need to record your weight, physical activity minutes,and water intake, as well as your NUTRIMEAL Shakes, Am and PM HEALTHPAKS, low glycemic and bonus snacks and meals on your “MyHome” page. When you record these things on your MyHome page you will receive points!\r\n\r\n</p><p>You can also receive points for logging in, reading and posting messages in the discussion forums and taking self assessments on the Incentives page. All of these points add up and can qualify you for great prizes!\r\n\r\n</p><p>After the 5 day Jump-Start challenge you will then join either the “Transform” or “Maintain” group and continue to record your progress on your MyHome page. During these phases you will continue to earn points for prizes!\r\n\r\n</p><p>Prizes: explain what the prize method and opportunity is here. </p>\r\n'),(5204,199,0.43,'smarty','0','Added ask an expert link if ask_expert_email company preference is assigned.',1169704351,2,'67.177.21.139','{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 recipes to cut out those calories.<br /><br /></small></a></li>\r\n			{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			{if $smarty.session.company.preferences.ask_expert_email}<li><a href=\"?pg=ask_an_expert\">Ask an Expert<br /><small>Ask an expert a question about health.<br /><br /></small></a></li>{/if}\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>'),(5205,198,0.52,'smarty','0','Added a link in the tools section to Ask an Expert if the ask_expert_email preference is set',1169704470,2,'67.177.21.139','{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		{if $smarty.session.company.preferences.ask_expert_email}<li><a href=\"?pg=ask_an_expert\">Ask an Expert<br /><small>Ask an expert a question about fitness.<br /><br /></small></a></li>{/if}\r\n\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>'),(5212,202,1.04,'smarty','0','added company forums to this page',1169742532,16,'216.194.127.150','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n\r\n{if $smarty.request.showNewMenu eq \"true\"}\r\n<div class=\"rightSideMenu\">\r\n	<div class=\"rightMenuBox\">\r\n	<h3>EHC News</h3>\r\n		<div class=\"rightMenuItem\">\r\n		<span class=\"floatLeft iconNew\"></span>\r\n		<small><a href=\"#\">Portion Control Article in the nutrition corner. Click here to read</a></small>\r\n		</div>\r\n		<div class=\"rightMenuItem\">\r\n		<small><a href=\"#\">Learn more about carbohydrates and how they affect your body.</a></small>\r\n		</div>	\r\n	</div>\r\n	<div class=\"rightMenuBox\">\r\n	<h3>Product Highlight</h3>\r\n		<div class=\"rightMenuItem\">\r\n		<img src=\"{$skinFolder}images/rypHeartMonitor_small.jpg\" align=\"right\" class=\"img1\" alt=\"\" height=\"120\" width=\"91\" /><br />\r\n		<small><a href=\"#\">Reebok\'s Heart Rate Monitor.  Click here.</a></small>\r\n		</div>\r\n	</div>\r\n	<div class=\"rightMenuBox\">\r\n	<h3>To Do List:</h3>\r\n		<div class=\"rightMenuItem\">\r\n		<small><a href=\"#\">Update your progress</a><br />\r\n		<a href=\"#\">Earn more incentive points</a><br />\r\n		<a href=\"#\">Check out the competition</a><br />\r\n		<a href=\"#\">Read New Articles</a></small>\r\n		</div>\r\n	</div>\r\n</div>\r\n{/if}\r\n\r\n{if $user->isLoggedIn()}\r\n	<img src=\"{if $smarty.session.company.preferences.landing_logo_url}{$smarty.session.company.preferences.landing_logo_url}{else}{$skinFolder}images/ehc/corporateBuilding_sm.jpg{/if}\" style=\"margin-right:10px; float:left; border:#CCC 1px solid;\" />\r\n\r\n	{include_php file=\"shared_handle:company/announcements\"}\r\n	<h2 class=\"uline\">Company Announcements:</h2>\r\n\r\n	<blockquote>\r\n		<dl>\r\n		{foreach from=$announcements item=\"current\"}\r\n			<dt><div style=\"float:right;\"><small><i>{$current.postedDate|date_format2:\"D, M j\"}</i></small></div>\r\n			    {$current.title}</dt>\r\n			<dd>{$current.description}</dd>\r\n		{foreachelse}\r\n			<dt>No announcements at this time</dt>\r\n		{/foreach}\r\n		</dl>\r\n	</blockquote>\r\n\r\n       <blockquote>\r\n               {include_php file=\"shared_handle:company/forumsList\"}\r\n\r\n                   <h3>Company Forums:</h3>\r\n                   <ul>\r\n                   {foreach from=$companyForums item=\"cForum\"}\r\n                   <li><a href=\"?pg=company_forum&fId={$cForum.id}\">{$cForum.name}</a></li>\r\n                   {/foreach}\r\n                   </ul>\r\n       </blockquote>\r\n\r\n	{include_php file=\"shared_handle:company/companySurveyList\"}\r\n	{if $landingSurveyText OR $surveys|@count gt 0}\r\n		<h2 class=\"uline\">Company Surveys:</h2>\r\n		<blockquote>\r\n		{$landingSurveyText}\r\n		{if $surveys|@count gt 0}\r\n			<table>\r\n			<tr><td colspan=\"2\">\r\n				<h3>Available Surveys:</h3></td>\r\n			    <td valign=\"middle\"></td></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=\"icoSurvey\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" /></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=\"icoSurvey\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" /></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		{/if}\r\n		</blockquote>\r\n	{/if}\r\n	{if $smarty.session.company.preferences.hide_shop neq \"yes\"}\r\n		<h2 class=\"uline\">eHealthCompete Highlights:</h2>\r\n		\r\n		<table>\r\n		<tr><td valign=\"middle\">\r\n		<blockquote>\r\n		<dl>	\r\n			<dt>Pedometer Deal</dt>\r\n			<dd>eHealthCompete has just negotiated a great deal on RYP Pedometers.  If you have been looking to purchase a pedometer the eHealthCompete price and quality could be your best bet.  This deal is only available to members of EHC.</dd>\r\n			\r\n		</dl>\r\n		</blockquote></td>\r\n		<td valign=\"top\" align=\"center\">\r\n			<a href=\"?pg=my_shop&sub=&tma=VIEW&eids=9\">\r\n			<img id=\"pedometerDealImg\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" /><br />\r\n			Buy one now</a>\r\n		</td></tr></table>\r\n	{/if}\r\n{else}\r\n	{assign var=\"hideLogin\" value=\"true\"}\r\n		<script language=\"JavaScript\">{literal}\r\n			function doForgotPassword(boxId, formName) {\r\n				if (!formName) formName = \'loginForm\';\r\n				if (!boxId) boxId = \'usernameBox\';\r\n\r\n				var df = document.forms[formName];\r\n				var obj = document.getElementById(boxId);\r\n		\r\n				if (obj.value == \'\') {\r\n					obj.value = prompt(\'Enter your username:\', \'\');\r\n				}\r\n				\r\n\r\n				df.forgotPassword.value = \'true\';\r\n				df.submit();	\r\n			}\r\n\r\n		{/literal}</script>\r\n	<table align=\"center\" width=\"305\" cellpadding=\"0\" cellspacing=\"0\">\r\n	<tr><td align=\"center\">\r\n		<h2>{$smarty.session.company.companyName}</h2>\r\n	</td></tr>\r\n	<tr><td>\r\n		{if $smarty.session.company.preferences.hide_login eq \"yes\"}\r\n			<p><b>You are not logged in or your session has expired.</b><br /><br />\r\n			If you would like to log in, please follow this link <br /><br /><a href=\"http://www.appleprogram.com/\"><b><u>The Apple Program website</u></b></a>.<br /><br />\r\n			</p>\r\n		{else}\r\n		<div align=\"center\" class=\"chunk300\">\r\n			<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n			<input type=\"hidden\" name=\"pg\" value=\"{$smarty.request.return|default:$signup.return|default:\"my_login\"}\" />\r\n			<input type=\"hidden\" name=\"cid\" value=\"{$smarty.request.cid}\" />\r\n			<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n			<input type=\"hidden\" name=\"no_expire_keep_alive\" value=\"pg cid\" />\r\n			<input type=\"hidden\" name=\"forgotPassword\" value=\"\" />\r\n		\r\n			<h2 class=\"withBG\">Log In:</h2>\r\n				Username: <input id=\"usernameBox2\" type=\"text\" name=\"username\" value=\"{$smarty.request.username}\" class=\"textInput\" size=\"12\" /><br />\r\n				Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n				<div class=\"underline\">&nbsp;</div>\r\n				<a href=\"javascript:document.forms[\'loginForm2\'].submit();\">Submit</a> | <a href=\"javascript:doForgotPassword(\'usernameBox2\', \'loginForm2\');\">Forgot Password?</a>\r\n				<input type=\"submit\" name=\"loginSubmit\" value=\"Submit\" style=\"position:absolute; top:-300px; left:-300px;\" />\r\n			</form>\r\n			<script language=\"javascript\">\r\n				document.forms.loginForm2.username.focus();\r\n			</script>\r\n		</div>\r\n		{/if}		\r\n	</td></tr>\r\n	<tr><td align=\"right\">\r\n		<br />\r\n		{if $smarty.session.company.companyName and $smarty.session.company.preferences.hide_login neq \"yes\" and $smarty.session.company.preferences.hide_signup_now neq \"yes\"}\r\n			<small>Not registered yet?</small> <a href=\"?pg=signup/begin\">Sign Up Now!</a> &nbsp;\r\n		{else}\r\n			<!-- Place holder for sign up info content. -->\r\n		{/if}\r\n	</td></tr>\r\n	</table>\r\n{/if}'),(5229,325,0.20,'smarty','1','Page created.',1172257835,16,'216.194.127.150','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<img src=\"systems/v2_ehc/images/reset_with_tape.jpg\">\r\n<p>The Rules: During the RESET GAMES you will participate in the 5 day Jump-Start to <br />\r\nlose the first pounds towards a healthy, new you. \r\n\r\n</p><p>During these 5 days you will need to record your weight, physical activity minutes,and water intake, as well as your NUTRIMEAL Shakes, Am and PM HEALTHPAKS, low glycemic and bonus snacks and meals on your “MyHome” page. When you record these things on your MyHome page you will receive points!\r\n\r\n</p><p>You can also receive points for logging in, reading and posting messages in the discussion forums and taking self assessments on the Incentives page. All of these points add up and can qualify you for great prizes!\r\n\r\n</p><p>After the 5 day Jump-Start challenge you will then join either the “Transform” or “Maintain” group and continue to record your progress on your MyHome page. During these phases you will continue to earn points for prizes!\r\n\r\n</p><p>Prizes: You can earn up to <b>$150 worth of USANA products</b> during this 7 week challenge. See the following point scale to learn how to earn these great prizes... </p>\r\n<p> To earn <b>$25</b> worth of USANA products you must have the following amounts of points in each category. \r\n<ul>\r\n<li>Logging in: 63</li>\r\n<li>Weight: 105</li>\r\n<li>Water: 42</li>\r\n<li>Physical Activity Minutes: 126</li>\r\n<li>Fruits and Vegetables: 42</li>\r\n<li>Discussion Board Posts: 63</li>\r\n<li>NutriMeal Shakes: 21</li>\r\n<li>HealthPak: 21</li>\r\n<li>Low-Glycemic Snack or Meal: 21</li>\r\n<li>USANA bar: 21</li>\r\n</ul>\r\n</p><p>To earn <b>$50</b> worth of USANA products you must have the following amounts of points in each category. \r\n<ul><li>Logging in: 84</li>\r\n<li>Weight: 140</li>\r\n<li>Water: 56</li>\r\n<li>Physical Activity Minutes: 168</li>\r\n<li>Fruits and Vegetables: 56</li>\r\n<li>Discussion Board Posts: 84</li>\r\n<li>NutriMeal Shakes: 28</li>\r\n<li>HealthPak: 28</li>\r\n<li>Low-Glycemic Snack or Meal: 28</li>\r\n<li>USANA bar: 28</li>\r\n</ul>\r\n</p><p>To earn <b>$75</b> worth of USANA products you must have the following amounts of points in each category...\r\n<ul><li> Logging in: 105</li>\r\n<li>Weight: 175</li>\r\n<li>Water: 70</li>\r\n<li>Physical Activity Minutes: 210</li>\r\n<li>Fruits and Vegetables: 70</li>\r\n<li>Discussion Board Posts: 105</li>\r\n<li>NutriMeal Shakes: 70</li>\r\n<li>HealthPak: 70</li>\r\n<li>Low-Glycemic Snack or Meal: 70</li>\r\n<li>USANA bar: 35</li>\r\n</ul>\r\n</p>'),(5230,251,0.48,'smarty','0','',1172508813,16,'216.194.127.150','{if $smarty.request.submit_send neq \"\" && $smarty.request.fromEmail neq \"\"}{include_php file=\"shared_handle:adminMultiMailTemplate\"}{/if}\r\n{assign var=\"hideWidgets\" value=\"true\"}\r\n{assign var=\"wideFormat\" value=\"true\"}\r\n\r\n{select_query assign=\"aGroups\" return=\"array\"}\r\n	name, description from _groups\r\n{/select_query}\r\n\r\n{select_query assign=\"aCompanies\" return=\"array\"}\r\n	id, companyName AS name FROM companies\r\n{/select_query}\r\n \r\n<h1 class=\"underline\">Broadcast an Email</h1>\r\n<br />\r\n\r\n<form name=\"emailForm\" method=\"post\" action=\"index.php\">\r\n<input type=\"hidden\" name=\"pg\" value=\"sendTemplatedEmail\"> \r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<div>{assign var=\"userName\" value=\"`$user->firstName` `$user->lastName`\"}\r\n<b>From Name:&nbsp;</b><input type=\"text\" name=\"fromName\" value=\"{$smarty.request.fromName|stripslashes|default:$userName}\" /> &nbsp; \r\n<b>From Email:&nbsp;</b><input type=\"text\" name=\"fromEmail\" value=\"{$smarty.request.fromEmail|default:$user->email}\" /><br />\r\n<b>Subject Line:&nbsp;</b><input type=\"text\" name=\"mailSubject\" value=\"{$smarty.request.mailSubject|stripslashes}\" style=\"width:380px;\" /><br /><br />\r\n\r\n<b><input type=\"checkbox\" name=\"toNewsletterSubscribers\" value=\"1\" /> Send to All Newsletter Subscribers?</b>\r\n<br/><br />\r\n\r\n<b>Select each Company:</b> <small>(hold <b>CTRL</b> key)</small><br />\r\n<select name=\"toCompanies[]\" multiple>{foreach from=$aCompanies item=\"row\"}\r\n	<option value=\"{$row.id}\">{$row.name} - {$row.description}</option>{/foreach}\r\n</select><br />\r\n<small><em>* Will not send message to addresses in the OPT-OUT database table.</em></small><br /><br />\r\n\r\n<b>Select the Email Groups:</b> <small>(hold <b>CTRL</b> key)</small><br />\r\n<select name=\"toGroups[]\" multiple>{foreach from=$aGroups item=\"row\"}\r\n	<option value=\"{$row.name}\">{$row.name} - {$row.description}</option>{/foreach}\r\n</select><br />\r\n<small><em>* Will not send message to addresses in the OPT-OUT database table.</em></small><br /><br />\r\n\r\n<b>Enter Additional Email Addresses: <small>(comma delimited)</small></b>\r\n<textarea style=\"width:500px;display:block;\" name=\"toAddresses\"></textarea>\r\n<small><em>* These addresses are not checked against the OPT-OUT database table.</em></small><br /><br />\r\n\r\n<b>Title:</b> <small>(to be shown in offline email clients)</small><br />\r\n<input style=\"width:300px;\" type=\"text\" name=\"offlinetitle\" value=\"{$smarty.request.offlinetitle|stripslashes|default:\'eHealthComplete Newsletter\'}\" /><br />\r\n\r\n<br />\r\n<input type=\"checkbox\" name=\"hidestorelink\" /> <b>Hide Store Link?</b><br />\r\n<input type=\"checkbox\" name=\"hidebannerad\" /> <b>Hide Banner Ad?</b> <small>(not necessary if no ad image is entered)</small><br />\r\n<input type=\"checkbox\" name=\"hidesponsorads\" /> <b>Hide Sponsor Images</b> <small>(not necessary if no sponsor images are entered)</small><br />\r\n<br />\r\n<b>Main Banner Image:</b><br/>\r\n* Note: this will not change the image until a caching error is resolved.<br/>\r\n<script>{literal}\r\nfunction setMainBannerImage(str) {\r\ndocument.getElementById(\'mainbannerimage\').src=\"/systems/wlw/layouts/newsletter/\" + str;\r\n}\r\n{/literal}</script>\r\n<img id=\"mainbannerimage\" src=\"/systems/wlw/layouts/newsletter/{$smarty.request.mainbannerimage|stripslashes|default:\"banner_shoes.jpg\"}\" style=\"border:2px solid #000000; margin:5px 0px;\"><br/>\r\n{php}\r\nglobal $SPADE;\r\n$bannerimages = array(\r\narray(\"name\" => \"banner_apples.jpg\", \"title\" => \"Apples\"),\r\narray(\"name\" => \"banner_autumn.jpg\", \"title\" => \"Autumn Trees\"),\r\narray(\"name\" => \"banner_basketball.jpg\", \"title\" => \"Basketball\"),\r\narray(\"name\" => \"banner_beach.jpg\", \"title\" => \"Beach\"),\r\narray(\"name\" => \"banner_fruit.jpg\", \"title\" => \"Fruit Splashing\"),\r\narray(\"name\" => \"banner_grass.jpg\", \"title\" => \"Grass & Sky\"),\r\narray(\"name\" => \"banner_jogging.jpg\", \"title\" => \"Jogging People\"),\r\narray(\"name\" => \"banner_jumping.jpg\", \"title\" => \"Jumping Girl\"),\r\narray(\"name\" => \"banner_kiwi.jpg\", \"title\" => \"Kiwis\"),\r\narray(\"name\" => \"banner_palmtrees.jpg\", \"title\" => \"Palm Trees & Ocean\"),\r\narray(\"name\" => \"banner_pond.jpg\", \"title\" => \"Pond\"),\r\narray(\"name\" => \"banner_pumpkins1.jpg\", \"title\" => \"Pumpkins #1\"),\r\narray(\"name\" => \"banner_pumpkins2.jpg\", \"title\" => \"Pumpkins #2\"),\r\narray(\"name\" => \"banner_rose.jpg\", \"title\" => \"Rose\"),\r\narray(\"name\" => \"banner_runner.jpg\", \"title\" => \"Runner\"),\r\narray(\"name\" => \"banner_scale.jpg\", \"title\" => \"Weight Scale\"),\r\narray(\"name\" => \"banner_shoes.jpg\", \"title\" => \"Running Shoes\"),\r\narray(\"name\" => \"banner_snowman.jpg\", \"title\" => \"Snowman\"),\r\narray(\"name\" => \"banner_springtime.jpg\", \"title\" => \"Girl Smiling\"),\r\narray(\"name\" => \"banner_thanksgiving1.jpg\", \"title\" => \"Thanksgiving #1\"),\r\narray(\"name\" => \"banner_thanksgiving2.jpg\", \"title\" => \"Thanksgiving #2\"),\r\narray(\"name\" => \"banner_tulips.jpg\", \"title\" => \"Tulips\"),\r\narray(\"name\" => \"banner_vegetables.jpg\", \"title\" => \"Vegetables\"),\r\narray(\"name\" => \"banner_weights.jpg\", \"title\" => \"Weights\"),\r\narray(\"name\" => \"banner_wheat.jpg\", \"title\" => \"Wheat\"),\r\narray(\"name\" => \"banner_winter.jpg\", \"title\" => \"Winter\")\r\n);\r\n$SPADE[\'template\']->assign(\"bannerimages\", $bannerimages);\r\n{/php}\r\n<table border=\"0\">\r\n<tr>\r\n{foreach name=banners item=b from=$bannerimages}\r\n<td><input type=\"radio\" name=\"mainbannerimage\" value=\"{$b.name}\" {if $smarty.request.mainbannerimage == $b.name}checked{/if} onclick=\"setMainBannerImage(this.value);\"/> {$b.title}</td>\r\n{if $smarty.foreach.banners.iteration % 3 == 0 && !$smarty.foreach.banners.last}</tr><tr>{/if}\r\n{/foreach}\r\n</tr>\r\n</table>\r\n<br/>\r\n<table border=\"0\">\r\n<tr><td colspan=\"4\"><b>Banner Ad:</b></td></tr>\r\n<tr>\r\n<td><small>Image URL:</small></td><td><input type=\"text\" name=\"bannerimage\" value=\"{$smarty.request.bannerimage|stripslashes}\" /></td>\r\n<td><small>Link URL:</small></td><td><input type=\"text\" name=\"bannerurl\" value=\"{$smarty.request.bannerurl|stripslashes}\" /></td>\r\n</tr>\r\n<tr><td colspan=\"4\"><b>Sponsor Ads:</b></td></tr>\r\n<tr>\r\n<td><small>Image URL:</small></td><td><input type=\"text\" name=\"sponsor1image\" value=\"{$smarty.request.sponsor1image|stripslashes}\" /></td>\r\n<td><small>Link URL:</small></td><td><input type=\"text\" name=\"sponsor1url\" value=\"{$smarty.request.sponsor1url|stripslashes}\" /></td>\r\n</tr>\r\n<tr>\r\n<td><small>Image URL:</small></td><td><input type=\"text\" name=\"sponsor2image\" value=\"{$smarty.request.sponsor2image|stripslashes}\" /></td>\r\n<td><small>Link URL:</small></td><td><input type=\"text\" name=\"sponsor2url\" value=\"{$smarty.request.sponsor2url|stripslashes}\" /></td>\r\n</tr>\r\n<tr>\r\n<td><small>Image URL:</small></td><td><input type=\"text\" name=\"sponsor3image\" value=\"{$smarty.request.sponsor3image|stripslashes}\" /></td>\r\n<td><small>Link URL:</small></td><td><input type=\"text\" name=\"sponsor3url\" value=\"{$smarty.request.sponsor3url|stripslashes}\" /></td>\r\n</tr>\r\n<tr>\r\n<td><small>Image URL:</small></td><td><input type=\"text\" name=\"sponsor4image\" value=\"{$smarty.request.sponsor4image|stripslashes}\" /></td>\r\n<td><small>Link URL:</small></td><td><input type=\"text\" name=\"sponsor4url\" value=\"{$smarty.request.sponsor4url|stripslashes}\" /></td>\r\n</tr>\r\n<tr>\r\n<td><small>Image URL:</small></td><td><input type=\"text\" name=\"sponsor5image\" value=\"{$smarty.request.sponsor5image|stripslashes}\" /></td>\r\n<td><small>Link URL:</small></td><td><input type=\"text\" name=\"sponsor5url\" value=\"{$smarty.request.sponsor5url|stripslashes}\" /></td>\r\n</tr>\r\n<tr>\r\n<td><small>Image URL:</small></td><td><input type=\"text\" name=\"sponsor6image\" value=\"{$smarty.request.sponsor6image|stripslashes}\" /></td>\r\n<td><small>Link URL:</small></td><td><input type=\"text\" name=\"sponsor6url\" value=\"{$smarty.request.sponsor6url|stripslashes}\" /></td>\r\n</tr>\r\n<tr>\r\n<td><small>Image URL:</small></td><td><input type=\"text\" name=\"sponsor7image\" value=\"{$smarty.request.sponsor7image|stripslashes}\" /></td>\r\n<td><small>Link URL:</small></td><td><input type=\"text\" name=\"sponsor7url\" value=\"{$smarty.request.sponsor7url|stripslashes}\" /></td>\r\n</tr>\r\n<tr>\r\n<td><small>Image URL:</small></td><td><input type=\"text\" name=\"sponsor8image\" value=\"{$smarty.request.sponsor8image|stripslashes}\" /></td>\r\n<td><small>Link URL:</small></td><td><input type=\"text\" name=\"sponsor8url\" value=\"{$smarty.request.sponsor8url|stripslashes}\" /></td>\r\n</tr>\r\n<tr>\r\n<td><small>Image URL:</small></td><td><input type=\"text\" name=\"sponsor9image\" value=\"{$smarty.request.sponsor9image|stripslashes}\" /></td>\r\n<td><small>Link URL:</small></td><td><input type=\"text\" name=\"sponsor9url\" value=\"{$smarty.request.sponsor9url|stripslashes}\" /></td>\r\n</tr>\r\n<tr>\r\n<td><small>Image URL:</small></td><td><input type=\"text\" name=\"sponsor10image\" value=\"{$smarty.request.sponsor10image|stripslashes}\" /></td>\r\n<td><small>Link URL:</small></td><td><input type=\"text\" name=\"sponsor10url\" value=\"{$smarty.request.sponsor10url|stripslashes}\" /></td>\r\n</tr>\r\n\r\n</table>\r\n<small><em>* image urls MUST be absolute (e.g. \"http://...\").</em></small><br />\r\n\r\n<br />\r\n<b>Custom Logo URL:</b><br />\r\n<input style=\"width:300px;\" type=\"text\" name=\"logo\" value=\"{$smarty.request.logo|stripslashes}\" /><br />\r\n<small><em>* image urls MUST be absolute (e.g. \"http://...\"). Default is eHealthCompete logo.</em></small><br />\r\n<small>**The Apple Programs URL is http://www.ehealthcompete.com/systems/v2_ehc/images/ehc/logos/appleprogram_logo.jpg<br />\r\n**The iHealth URL is http://www.ehealthcompete.com/systems/v2_ehc/styles/img/topLogo_iHealthLogo.gif<br />\r\n** The Black Ink Fit URL is: http://www.ehealthcompete.com/systems/v2_ehc/images/b-fit.gif</small>\r\n<br/>\r\n<b>Feature Image URL:</b><br />\r\n<input style=\"width:300px;\" type=\"text\" name=\"featureimage\" value=\"{$smarty.request.featureimage|stripslashes}\" /><br />\r\n<small><em>* image urls MUST be absolute (e.g. \"http://...\").</em></small><br />\r\n<b>Feature Title:</b><br />\r\n<input style=\"width:300px;\" type=\"text\" name=\"featuretitle\" value=\"{$smarty.request.featuretitle|stripslashes}\" /><br />\r\n<b>Feature Content:</b><br />\r\n<textarea style=\"width:500px;height:200px;\" name=\"featurebody\">{$smarty.request.featurebody|stripslashes}</textarea><br />\r\n\r\n\r\n<br />\r\n<b>Recipe of the Week Title:</b><br />\r\n<input style=\"width:300px;\" type=\"text\" name=\"recipetitle\" value=\"{$smarty.request.recipetitle|stripslashes}\" /><br />\r\n<b>Recipe of the Week Content:</b><br />\r\n<textarea style=\"width:500px;height:140px;\" name=\"recipebody\">{$smarty.request.recipebody|stripslashes}</textarea><br />\r\n\r\n<br />\r\n<b>Tip of the Week:</b><br />\r\n<textarea style=\"width:500px;height:100px;\" name=\"tipbody\">{$smarty.request.tipbody|stripslashes}</textarea><br />\r\n\r\n<br />\r\n<b>Hero Highlight:</b><br />\r\n<textarea style=\"width:500px;height:100px;\" name=\"herobody\">{$smarty.request.herobody|stripslashes}</textarea><br />\r\n\r\n<br />\r\n<b>Quote:</b><br />\r\n<textarea style=\"width:500px;height:100px;\" name=\"quotebody\">{$smarty.request.quotebody|stripslashes}</textarea><br />\r\n\r\n<br />\r\n\r\n<div style=\"text-align:right;\">\r\n<input type=\"button\" value=\"Preview HTML\" onclick=\"previewHTML()\">\r\n<input type=\"submit\" name=\"submit_send\" onclick=\"prepareToSend();\" value=\"Send Now\" />\r\n</div>\r\n</div>\r\n\r\n</form>\r\n\r\n<script language=\"javascript\">{literal}\r\nfunction prepareToSend() {\r\n	dF = document.emailForm;\r\n	dF.pg.value = \"sendTemplatedEmail\";	\r\n	dF.target = \'_self\';\r\n\r\n}\r\nfunction previewHTML() {\r\n	dF = document.emailForm;\r\n	dF.pg.value = \"newsletterpreview\";	\r\n\r\n	webPreview = parent.window.open(\"index.php?pg=newsletterpreview\", \"webPreview\", \"fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,directories=no,location=no,width=800,height=600,left=10,top=10\");\r\n	dF.target = \'webPreview\';\r\n	dF.submit();\r\n	webPreview.focus();\r\n}\r\n{/literal}</script>'),(5239,169,0.23,'smarty','1','added em tags',1175033093,16,'67.177.52.95','<h1 class=\"withBG\">Problem</h1>\r\n<img src=\"{$skinFolder}images/icon_problem.jpg\" align=\"right\" alt=\"\" class=\"img1\" hspace=\"20\" vspace=\"20\"/><br />\r\n\r\n<p><i>This is a very difficult time for\r\n[employers] to cope with double digit\r\nmedical premium increases.\r\nIn the current business environment,\r\nmost simply cannot afford to\r\npass these costs along. There is\r\nno silver bullet solution to contain\r\nmedical costs, so companies\r\nmust use multiple strategies.\r\n- Michael Carter VP Hay Group\'s Benefit Practice.</i></p>\r\n\r\n<p>Your employees\' lifestyle is costing you big\r\nbucks! Poor nutrition and sedentary lifestyles are\r\nattributed to disease, sick days and dollars!\r\nHealth Care costs continue to post painful increases\r\neach year and according to the Washington\r\nBusiness Group, obesity-related costs to\r\nbusinesses exceed $12 billion annually.</p>\r\n\r\n<p>What\'s the good news? Much\r\nof these costs are preventable.\r\nEven small changes in your employees\'\r\nlifestyle behaviors can\r\nresult in significant savings.</p>\r\n\r\n\r\n<p> What can you do?  <a href=\"?pg=solution\"> Solution </a></p>'),(5240,110,0.28,'smarty','0','added section 20',1179762989,16,'216.194.127.150','{if $user->isLoggedIn()}{assign var=\"pgLayout\" value=\"file:layouts/withLeftNav.tpl\"}{/if}\r\n<h1>Terms of Use</h1><p />\r\n\r\n<h2>TERMS OF SERVICE AGREEMENT </h2>\r\n<hr noshade size=\"1\" />\r\n\r\nThis agreement (hereinafter, the \"Agreement\") between eHealthCompete (hereinafter, \"EHC\", \"us\" or \"we\") and you sets forth the terms and conditions which govern your use of any of the EHC or WLW sponsored websites (hereinafter, the \"Sites\") and/or the services (hereinafter, the \"Services\") thereon which are provided by EHC. \r\n<br /><br />PLEASE READ THIS AGREEMENT CAREFULLY BEFORE ACCESSING OR USING ANY OF THE SITES AND/OR SERVICES. BY ACCESSING OR USING THE SITES AND/OR SERVICES, YOU AGREE TO BE BOUND BY THE TERMS AND CONDITIONS SET FORTH BELOW. IF YOU DO NOT WISH TO BE BOUND BY THESE TERMS AND CONDITIONS, YOU MAY NOT ACCESS OR USE THE SITES OR SERVICES AND SHOULD IMMEDIATELY CEASE SUCH USE. EHC MAY MODIFY THIS AGREEMENT AT ANY TIME, AND SUCH MODIFICATIONS SHALL BE EFFECTIVE IMMEDIATELY UPON NOTICE, WHICH MAY BE ACCOMPLISHED BY POSTING THE MODIFIED AGREEMENT ON THE SITE OR VIA EMAIL. YOUR USE OF ANY OF THE SITES AND/OR SERVICES FOLLOWING SUCH NOTICE SHALL BE DEEMED YOUR ACCEPTANCE OF SUCH CHANGES. YOU AGREE TO REVIEW THE AGREEMENT PERIODICALLY TO BE AWARE OF SUCH MODIFICATIONS AND YOUR CONTINUED ACCESS OR USE OF THE SITE AND/OR THE SERVICES SHALL BE DEEMED YOUR CONCLUSIVE ACCEPTANCE OF THE MODIFIED AGREEMENT. IF WE REQUEST, YOU IRREVOCABLY AGREE TO SIGN A NON-ELECTRONIC VERSION OF THIS AGREEMENT.\r\n<br /><br /><b>1. Limited License; Use of Services.</b><br /><br />\r\nEHC grants to you a limited personal, non-exclusive and non-transferable right and license to access the Sites and use the Services thereon. Unless otherwise specified in writing, the Services are for your personal and non-commercial use. \r\nEHC\'s Services shall contain, without limitation, email services, bulletin and message boards, chat areas, news groups, forums, communities, calendars, and various other message communication applications.\r\n<br /><br />\r\n<b>2. Prohibited Activities.</b><br /><br />\r\n\r\nIn connection with your use of the Sites and/or the Services, you acknowledge and agree that you will not:\r\n<ul>\r\na. copy, reverse engineer, reverse assemble, otherwise attempt to discover the source code, distribute, transmit, display, perform, reproduce, publish, license, create derivative works from, transfer or sell any information, software, products or services obtained through the Sites or the Services; <br /><br />\r\nb. access the Sites or Services by any means other than through the standard industry-accepted or EHC-provided interfaces; <br /><br />\r\nc. transmit any message, information, data, text, software or image, or other content that is unlawful, harmful, threatening, abusive, harassing, tortuous, defamatory, vulgar, obscene, libelous, or otherwise objectionable which may invade another\'s right of privacy or publicity; <br /><br />\r\nd. impersonate any person or entity, including without limitation, an EHC official, forum leader, chat room monitor, guide or host, or falsely state or otherwise misrepresent your affiliation with such a person or entity; <br /><br />\r\ne. post or transmit any material that contains a virus or corrupted data; <br /><br />\r\nf. delete any author attributions, legal notices or proprietary designations or labels that you upload to any communication feature; <br /><br />\r\ng. use of any Site or Service\'s communications features in a manner that adversely affects the availability of its resources to other users (e.g., excessive shouting, use of all caps, or flooding continuous postings of repetitive text); <br /><br />\r\nh. post or transmit any unsolicited advertising, promotional materials, \"junk mail\", \"spam,\" \"chain letters,\" \"pyramid schemes\" or any other form of solicitation or any non-resume information such as opinions or notices, commercial or otherwise; <br /><br />\r\ni. violate any applicable local, state, national or international law; <br /><br />\r\nj. upload or transmit any material that infringes any patent, trademark, trade secret, copyright or other proprietary rights of any party; <br /><br />\r\nk. delete or revise any material posted by any other person or entity; <br /><br />\r\nl. manipulate or otherwise display the Sites and/or the Services by using framing or similar navigational technology; <br /><br />\r\nm. register, subscribe, attempt to register, attempt to subscribe, unsubscribe, or attempt to unsubscribe, any party for any EHC product or Service if you are not expressly authorized by such party to do so; or<br /><br />\r\nn. use the Sites and/or the Services for any purpose that is unlawful or prohibited by these terms and conditions. You may not use the Site or the Services in any manner that could damage, disable, overburden or impair EHC\'s servers or networks, or interfere with any other user\'s use and enjoyment of the Sites and/or the Services. Furthermore, you may not attempt to gain unauthorized access to any of the Sites, Services, accounts, computer systems or networks connected to EHC through hacking, password mining or any other means. You may not obtain or attempt to obtain any materials or information through any means not intentionally made available through the Sites or the Services. <br /><br />\r\n</ul>\r\n<b>3. Billing and Renewal Transactions and Policies.</b><br /><br />\r\nCertain products or Services may be offered for sale on the Sites. In the event you wish to purchase or to subscribe for any of these products or Services, you will be asked by EHC or an authorized third party to supply certain information, including without limitation, your full name, address, telephone number and credit card information. You agree to provide EHC or such third party with the foregoing information as well as any other mandatory information that is accurate, complete and current, and to comply with the terms and conditions of any agreement that you may enter into governing your purchase of the product or Service. You shall be responsible for all charges incurred through your account as well as for paying any applicable taxes.\r\nSome Services offered by EHC are subscription-based services. If you open a subscription-based account with any of EHC\'s Sites, you hereby agree to pay all charges to your account, including any applicable taxes, in accordance with billing terms in effect at the time the fee or charge becomes payable. EHC reserves the right to change the amount of, or basis for determining, any fees or charges for Services we provide, and to institute new fees, charges or terms effective upon notice to subscribers. We reserve the right to terminate any account at any time for any reason. <br /><br />\r\nPlease note that we only accept credit card payments and do not accept debit card payments at this time.  However, Visa and Master Card debit cards are accepted. <br /><br />\r\n<br /><br />\r\n<b>4. Message Boards and Chat Rooms. </b><br /><br />\r\nEHC hosts message boards, chats and other public forums on its Sites. Any user failing to comply with the terms and conditions of this Agreement may be expelled from and refused continued access to, the message boards, chats or other public forums in the future. EHC or its designated agents may remove or alter any user-created content at any time for any reason. Message boards, chats and other public forums are intended to serve as discussion centers for users and subscribers. Information and content posted within these public forums may be provided by EHC staff, WLW\'s outside contributors, or by users not connected with EHC, some of whom may employ anonymous user names. EHC expressly disclaims all responsibility and endorsement and makes no representation as to the validity of any opinion, advice, information or statement made or displayed in these forums by third parties, nor are we responsible for any errors or omissions in such postings, or for hyperlinks embedded in any messages. Under no circumstances will we, our affiliates, suppliers or agents be liable for any loss or damage caused by your reliance on information obtained through these forums. The opinions expressed in these forums are solely the opinions of the participants, and do not reflect the opinions of EHC or any of its subsidiaries or affiliates. <br /><br />\r\n<b>5. Monitoring.</b> <br /><br />\r\nEHC has no obligation whatsoever to monitor any of the content or postings on the message boards, chat rooms or other public forums on the Sites. However, you acknowledge and agree that we have the absolute right to monitor the same at our sole discretion. In addition, we reserve the right to alter, edit, refuse to post or remove any postings or content, in whole or in part, for any reason and to disclose such materials and the circumstances surrounding their transmission to any third party in order to satisfy any applicable law, regulation, legal process or governmental request and to protect ourselves, our clients, sponsors, users and visitors. <br /><br />\r\nMaterials posted and/or uploaded to the various public forums may be subject to size and usage limitations. You are responsible for adhering to such limitations. <br /><br />\r\n<b>6. Third Party Content. </b><br /><br />\r\nIn general, the content contained on any of the Sites or Services is supplied by third parties and users. Accordingly, EHC is a distributor (and not a publisher) of such content and has no more editorial control over such content than does a public library, bookstore, or newsstand. Any opinions, advice, statements, services, offers, or other information or content expressed or made available by third parties, including information providers, are those of the respective authors or distributors, and not EHC. Neither WLW nor any third-party provider of information guarantees the accuracy, completeness, or usefulness of any content. Furthermore, EHC neither endorses nor is responsible for the accuracy and reliability of any opinion, advice, or statement made on any of the Sites or Services by anyone other than an authorized EHC representative while acting in his/her official capacity. <br /><br />\r\n<b>7. Contests and Games. </b><br /><br />\r\nEHC often provides contests and games on its Sites. The rules, regulations and procedures governing any of the foregoing shall be accessible through a hypertext link prominently displayed on the web page where the contest or game may be located. By entering or participating in any of them, you agree to be subject to those rules, regulations and procedures. Please remember to read the rules carefully before participating. <br /><br />\r\n<b>8. Accounts, Passwords and Security.</b> <br /><br />\r\nIf any of the Sites or Services require you to open an account, you must complete the registration process by providing EHC with current, complete and accurate information, as prompted by the applicable registration form. You acknowledge that by providing any information to EHC which is untrue, inaccurate, not current or incomplete, EHC reserves the right to terminate this Agreement and your continued access and use of the Sites and/or the Services. <br /><br />\r\nAs part of the registration process, you will be asked to select a username and password. You are entirely responsible for maintaining the security and confidentiality of your account and password. FURTHERMORE, YOU ARE ENTIRELY RESPONSIBLE FOR ANY AND ALL ACTIVITIES AND CONDUCT, WHETHER BY YOU OR ANYONE ELSE, THAT ARE CONDUCTED THROUGH YOUR ACCOUNT. You agree to notify EHC immediately of any unauthorized use of your account or any other breach of security. EHC will not be liable for any loss that you may incur as a result of someone else using your password or account, either with or without your knowledge. However, you may be held liable for any losses incurred by EHC or another party due to someone else using your account or password. <br /><br />\r\n<b>9. Disclaimer Regarding Links. </b><br /><br />\r\nThe links on any of the Sites and/or Services will let you leave the particular Site or Service you are accessing in order to access a linked site (the \"Linked Sites\"). EHC provides these links as a convenience, but we neither control nor endorse these Linked Sites, nor has EHC reviewed or approved the content which appears on the Linked Sites. EHC is not responsible for the legality, accuracy or inappropriate nature of any content, advertising, products or other materials on or available from any Linked Sites. You acknowledge and agree that EHC shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with the use of any of the links, content, goods or services available on or through the Linked Sites. <br /><br />\r\n<b>10. Dealings with Third Parties.</b> <br /><br />\r\nYour participation, correspondence or business dealings with any third party found on or through our Sites and Services, regarding payment and delivery of specific goods and services, and any other terms, conditions, representations or warranties associated with such dealings, are solely between you and such third party. You agree that EHC shall not be responsible or liable for any loss, damage, or other matters of any sort incurred as the result of such dealings. <br /><br />\r\n<b>11. Proprietary Rights.</b> <br /><br />\r\nYou acknowledge and agree that the Sites and Services contain proprietary and confidential information that is protected by applicable intellectual property and other laws, and are the sole property of EHC or its licensors. You further acknowledge and agree that any content contained in advertisements or information presented to you through advertisers concerning EHC or otherwise is protected by copyrights, trademarks, service marks, patents or other proprietary rights and laws. <br /><br />\r\nBy sending or transmitting to us creative suggestions, ideas, notes, concepts, information, or other materials (collectively, \" Submission Materials\") or by posting such Submission Materials on the Sites, you hereby grant to us and our designees a worldwide, non-exclusive, sublicensable (through multiple tiers), assignable, royalty-free, perpetual, irrevocable right to use, reproduce, distribute (through multiple tiers), create derivative works of, publicly perform, publicly display, digitally perform, make, have made, sell, offer for sale and import such Submission Materials in any media now known or hereafter devised, for any purpose whatsoever, commercial or otherwise, without compensation to you, the provider of the Submission Materials. The foregoing license to EHC shall be fully paid-up and royalty free. In addition, under no circumstances shall EHC have any obligation whatsoever to pay a fee to any subscriber or user in connection with the Submission Materials upon the occurrence of a transfer of all or any portion of EHC\'s business through a merger, sale or transfer of all or substantially all of the assets of EHC, nor shall the sale of advertising on any of the Sites give rise to any obligation to pay a fee to Subscribers. <br /><br />\r\nNone of the Submission Materials disclosed or posted via message boards, chats or other public forums shall be subject to any obligation, whether of confidentiality, attribution, or otherwise, on EHC\'s part and we shall not be liable for any use or disclosure of any such Submission Materials. <br /><br />\r\nWe suggest that you consult your legal advisor before filing a notice or counter-notice. Also, be aware that there can be penalties for false claims under the DMCA. <br /><br />\r\n<b>13. Privacy. </b><br /><br />\r\nEHC\'s policy with respect to the collection and use of your personally identifiable information is set forth at https://www.eHealthCompete.com/index.php?pg=privacy By accepting these Terms of Service, you acknowledge this policy. <br /><br />\r\n<b>14. Disclaimer of Warranties. </b><br /><br />\r\nTHE SITES AND THE SERVICES, AND ANY CONTENT, TOOLS, PRODUCTS OR SERVICES DISPLAYED, ACCESSED OR OBTAINED ON OR THROUGH THE SITES AND SERVICES ARE PROVIDED \"AS IS\", \"AS AVAILABLE\", AND WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. WITHOUT LIMITING THE GENERALITY OF THE FOREGOING, EHC AND ITS AFFILIATES, SUPPLIERS, AND AGENTS DO NOT WARRANT AND EXPRESSLY DISCLAIM THAT: (i) YOUR USE OF THE SITES AND/OR SERVICES AND ACCESS TO AND USE OF ALL OF THE TOOLS AND FEATURES THEREON WILL BE UNINTERRUPTED, ERROR-FREE, OR SECURE, (ii) THAT ANY INFORMATION OBTAINED THEREIN IS ACCURATE, RELIABLE OR COMPLETE, (iii) THAT DEFECTS WILL BE CORRECTED, or (iv) THAT ANY SOFTWARE, SERVICES, SITES OR SERVER(S) ON WHICH THE SERVICES AND SITES ARE HOSTED ARE FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS. YOUR USE OF THE SITES AND THE SERVICES AND ANY INFORMATION OR MATERIALS PROVIDED ON OR THROUGH THE SITES AND SERVICES ARE ENTIRELY AT YOUR OWN RISK. <br /><br />\r\n<b>15. Limitation of Liability. </b><br /><br />\r\nNEITHER EHC NOR ITS DIRECTORS, OFFICERS, EMPLOYEES, CONTRACTORS, AGENTS OR SPONSORS ARE RESPONSIBLE OR LIABLE TO YOU OR ANYONE ELSE FOR ANY LOSS OR INJURY OR ANY INDIRECT, INCIDENTAL, CONSEQUENTIAL, SPECIAL, EXEMPLARY, PUNITIVE OR OTHER DAMAGES UNDER ANY CONTRACT, NEGLIGENCE, STRICT LIABILITY OR OTHER THEORY ARISING OUT OF OR RELATING IN ANY WAY TO (i) THE USE OF OR INABILITY TO USE THE SITES OR THE SERVICES; (ii) ANY CONTENT CONTAINED ON THE SITES AND/OR THE SERVICES; (iii) STATEMENTS OR CONDUCT POSTED OR MADE PUBLICLY AVAILABLE ON THE SITES AND/OR THE SERVICES; (iv) ANY PRODUCT OR SERVICE PURCHASED OR OBTAINED THROUGH THE SITES; (v) ANY ACTION TAKEN IN RESPONSE TO OR AS A RESULT OF ANY INFORMATION AVAILABLE ON THE SITES OR THE SERVICES; (vi) ANY DAMAGE CAUSED BY LOSS OF ACCESS TO, DELETION OF, FAILURE TO STORE, FAILURE TO BACK UP, OR ALTERATION OF ANY CONTENT ON THE SITES OR THE SERVICES, or (vii) ANY OTHER MATTER RELATING TO THE SITES AND/OR THE SERVICES. IN NO EVENT SHALL EHC\'S TOTAL LIABILITY TO YOU FOR ANY AND ALL DAMAGES, LOSSES, AND CAUSES OF ACTION (WHETHER IN CONTRACT, TORT [INCLUDING, BUT NOT LIMITED TO, NEGLIGENCE], STATUTORY, OR OTHERWISE) EXCEED THE AMOUNT PAID BY YOU, IF ANY, FOR USING ANY OF THE SERVICES OR THE SITES. <br /><br />\r\n<b>16. Professional Advice Disclaimer. </b><br /><br />\r\nEHC\'S SITES DO NOT PROVIDE MEDICAL OR COUNSELLING ADVICE. NOTHING STATED OR POSTED ON ANY SITES OR AVAILABLE THROUGH ANY SERVICES ARE INTENDED TO BE, AND MUST NOT BE TAKEN TO BE, THE PRACTICE OF MEDICAL OR COUNSELING CARE. FOR PURPOSES OF THIS AGREEMENT, THE PRACTICE OF MEDICINE AND COUNSELING INCLUDES, WITHOUT LIMITAITON, PSYCHIATRY, PSYCHOLOGY, PSYCHOTHERAPY, OR PROVIDING HEALTH CARE TREATMENT, INSTRUCTIONS, DIAGNOSIS, PROGNOSIS OR ADVICE. OUR SITES ARE CONTINUALLY UNDER DEVELOPMENT AND EHC MAKES NO WARRANTY OF ANY KIND, IMPLIED OR EXPRESS, AS TO ITS ACCURACY, COMPLETENESS OR APPROPRIATENESS FOR ANY PURPOSE. PLEASE SEEK THE ADVICE OF PROFESSIONALS, AS APPROPRIATE, REGARDING THE EVALUATION OF ANY SPECIFIC INFORMATION, OPINION, ADVICE OR CONTENT. <br /><br />\r\n<b>17. Indemnification. </b><br /><br />\r\nYou agree to indemnify, defend, and hold EHC and its subsidiaries, affiliates, officers, directors, agents, co-branders or other partners, employees, and representatives harmless from and against any and all claims, damages, losses, costs or expenses (including reasonable attorneys\' fees and disbursements) which arise directly or indirectly out of or from (i) your breach of this Agreement, (ii) any allegation that any materials that you submit to EHC or post on any forums (e.g., message boards, chat rooms) infringe or otherwise violate the copyright, trade secret, trademark or other intellectual property rights of a third party, and (iii) your access or use of the Sites and/or the Services. This Section 17 shall survive in the event this Agreement is terminated for any reason. <br /><br />\r\n<b>18. Jurisdictional Issues. </b><br /><br />\r\nEHC makes no representation or warranty that the content and materials on the Sites and/or the Services are appropriate or available for use in locations outside the United States. Those who choose to access the Sites or use the Services from other locations do so on their own initiative and at their own risk, and are responsible for compliance with local laws, if and to the extent applicable. EHC reserves the right, at any time in our sole discretion, to limit the availability and accessibility of the Sites and/or the Services to any person, geographic area, or jurisdiction we so desire, and to limit the quantities of any such Service or products that we provide. <br /><br />\r\n<b>19. Termination. </b><br /><br />\r\nThis Agreement shall remain effective until terminated in accordance with its own terms and conditions. You agree that EHC, in its sole discretion, may terminate your password, account (in whole or in part), or use of the Sites or Services, and remove and discard any content within the Sites, at any time and for any reason. You agree that any actions taken under this Section 19 may be effective without prior notice to you. In the event of termination, however, those Sections in this Agreement which provide for continuing obligations on your part shall survive indefinitely. <br /><br />\r\n\r\n<p><b>20. Health Issues</b></p><p>\r\nBY USING THIS SITE, YOU AGREE TO ACCEPT ALL RISKS ASSOCIATED WITH THE EHC PROGRAMS DESCRIBED HEREIN AND THAT YOU WILL NOT HOLD EHC LLC LIABLE FOR ANY INJURY THAT MAY OCCUR. When undertaking any exercise activity, there is a risk of injury. Although we try to outline the safest and most effective methods of fitness training, we cannot prevent injuries from occurring. You should consult your physician before beginning any exercise program. You should be healthy and familiar with the proper form, techniques, and preparation for the exercises you undertake and the equipment you use. Always use safe techniques and protective equipment when engaging in exercise. If you are unfamiliar with the proper and safe techniques and equipment for the exercises you intend to perform, please seek advice and assistance before performing them. If you are in poor health, or are handicap, ask for the opinion of your physician or health care provider and exercise only under qualified supervision. Discontinue to exercise if you experience any light headaches, dizziness, shortness of breath, or discomfort and consult your physician or other health care provider. EHC is not responsible or liable for any injury that may result from improper use of its training programs.\r\nEHC assumes no liability or responsibility for damage or injury to persons or property arising from any use of any product, information, idea, or instruction contained in the materials provided to you. EHC reserves the right to change or discontinue at any time any aspect or feature of this site.\r\n</p>\r\n\r\n\r\n\r\n<b>21. General Information.</b> <br /><br />\r\nThis Agreement constitutes the entire agreement and understanding between you and EHC and governs your use of the Sites and the Services, superseding any prior agreements between you and EHC. This Agreement and the relationship between you and EHC shall be governed by and construed in accordance with the laws of the State of New York, without regard to its conflict of law provisions. You and EHC irrevocably agree to submit to the personal and exclusive jurisdiction of the federal and state courts located within the county of New York, in the State of New York, and waive any jurisdictional, venue, or inconvenient forum objections to such courts. The failure of EHC to exercise or enforce any right or provision of this Agreement shall not constitute a waiver of such right or provision. If any provision of this Agreement is found by a court of competent jurisdiction to be unlawful, void or for any reason unenforceable, then that provision shall be deemed severed herefrom and shall not affect the validity and enforceability of any remaining provisions. The section titles in this Agreement are for convenience purposes only and have no legal or contractual effect. This Agreement is not assignable, transferable or sub-licensable by you except with our prior written consent. However, we may assign this Agreement to any third party whom we choose without your consent. No waiver by EHC of any breach or default hereunder shall be deemed a waiver of any preceding or subsequent breach or default. <br /><br />\r\n\r\n\r\n\r\n'),(5241,110,0.29,'smarty','1','added section 20',1179763256,16,'216.194.127.150','{if $user->isLoggedIn()}{assign var=\"pgLayout\" value=\"file:layouts/withLeftNav.tpl\"}{/if}\r\n<h1>Terms of Use</h1><p />\r\n\r\n<h2>TERMS OF SERVICE AGREEMENT </h2>\r\n<hr noshade size=\"1\" />\r\n\r\nThis agreement (hereinafter, the \"Agreement\") between eHealthCompete (hereinafter, \"EHC\", \"us\" or \"we\") and you sets forth the terms and conditions which govern your use of any of the EHC or WLW sponsored websites (hereinafter, the \"Sites\") and/or the services (hereinafter, the \"Services\") thereon which are provided by EHC. \r\n<br /><br />PLEASE READ THIS AGREEMENT CAREFULLY BEFORE ACCESSING OR USING ANY OF THE SITES AND/OR SERVICES. BY ACCESSING OR USING THE SITES AND/OR SERVICES, YOU AGREE TO BE BOUND BY THE TERMS AND CONDITIONS SET FORTH BELOW. IF YOU DO NOT WISH TO BE BOUND BY THESE TERMS AND CONDITIONS, YOU MAY NOT ACCESS OR USE THE SITES OR SERVICES AND SHOULD IMMEDIATELY CEASE SUCH USE. EHC MAY MODIFY THIS AGREEMENT AT ANY TIME, AND SUCH MODIFICATIONS SHALL BE EFFECTIVE IMMEDIATELY UPON NOTICE, WHICH MAY BE ACCOMPLISHED BY POSTING THE MODIFIED AGREEMENT ON THE SITE OR VIA EMAIL. YOUR USE OF ANY OF THE SITES AND/OR SERVICES FOLLOWING SUCH NOTICE SHALL BE DEEMED YOUR ACCEPTANCE OF SUCH CHANGES. YOU AGREE TO REVIEW THE AGREEMENT PERIODICALLY TO BE AWARE OF SUCH MODIFICATIONS AND YOUR CONTINUED ACCESS OR USE OF THE SITE AND/OR THE SERVICES SHALL BE DEEMED YOUR CONCLUSIVE ACCEPTANCE OF THE MODIFIED AGREEMENT. IF WE REQUEST, YOU IRREVOCABLY AGREE TO SIGN A NON-ELECTRONIC VERSION OF THIS AGREEMENT.\r\n<br /><br /><b>1. Limited License; Use of Services.</b><br /><br />\r\nEHC grants to you a limited personal, non-exclusive and non-transferable right and license to access the Sites and use the Services thereon. Unless otherwise specified in writing, the Services are for your personal and non-commercial use. \r\nEHC\'s Services shall contain, without limitation, email services, bulletin and message boards, chat areas, news groups, forums, communities, calendars, and various other message communication applications.\r\n<br /><br />\r\n<b>2. Prohibited Activities.</b><br /><br />\r\n\r\nIn connection with your use of the Sites and/or the Services, you acknowledge and agree that you will not:\r\n<ul>\r\na. copy, reverse engineer, reverse assemble, otherwise attempt to discover the source code, distribute, transmit, display, perform, reproduce, publish, license, create derivative works from, transfer or sell any information, software, products or services obtained through the Sites or the Services; <br /><br />\r\nb. access the Sites or Services by any means other than through the standard industry-accepted or EHC-provided interfaces; <br /><br />\r\nc. transmit any message, information, data, text, software or image, or other content that is unlawful, harmful, threatening, abusive, harassing, tortuous, defamatory, vulgar, obscene, libelous, or otherwise objectionable which may invade another\'s right of privacy or publicity; <br /><br />\r\nd. impersonate any person or entity, including without limitation, an EHC official, forum leader, chat room monitor, guide or host, or falsely state or otherwise misrepresent your affiliation with such a person or entity; <br /><br />\r\ne. post or transmit any material that contains a virus or corrupted data; <br /><br />\r\nf. delete any author attributions, legal notices or proprietary designations or labels that you upload to any communication feature; <br /><br />\r\ng. use of any Site or Service\'s communications features in a manner that adversely affects the availability of its resources to other users (e.g., excessive shouting, use of all caps, or flooding continuous postings of repetitive text); <br /><br />\r\nh. post or transmit any unsolicited advertising, promotional materials, \"junk mail\", \"spam,\" \"chain letters,\" \"pyramid schemes\" or any other form of solicitation or any non-resume information such as opinions or notices, commercial or otherwise; <br /><br />\r\ni. violate any applicable local, state, national or international law; <br /><br />\r\nj. upload or transmit any material that infringes any patent, trademark, trade secret, copyright or other proprietary rights of any party; <br /><br />\r\nk. delete or revise any material posted by any other person or entity; <br /><br />\r\nl. manipulate or otherwise display the Sites and/or the Services by using framing or similar navigational technology; <br /><br />\r\nm. register, subscribe, attempt to register, attempt to subscribe, unsubscribe, or attempt to unsubscribe, any party for any EHC product or Service if you are not expressly authorized by such party to do so; or<br /><br />\r\nn. use the Sites and/or the Services for any purpose that is unlawful or prohibited by these terms and conditions. You may not use the Site or the Services in any manner that could damage, disable, overburden or impair EHC\'s servers or networks, or interfere with any other user\'s use and enjoyment of the Sites and/or the Services. Furthermore, you may not attempt to gain unauthorized access to any of the Sites, Services, accounts, computer systems or networks connected to EHC through hacking, password mining or any other means. You may not obtain or attempt to obtain any materials or information through any means not intentionally made available through the Sites or the Services. <br /><br />\r\n</ul>\r\n<b>3. Billing and Renewal Transactions and Policies.</b><br /><br />\r\nCertain products or Services may be offered for sale on the Sites. In the event you wish to purchase or to subscribe for any of these products or Services, you will be asked by EHC or an authorized third party to supply certain information, including without limitation, your full name, address, telephone number and credit card information. You agree to provide EHC or such third party with the foregoing information as well as any other mandatory information that is accurate, complete and current, and to comply with the terms and conditions of any agreement that you may enter into governing your purchase of the product or Service. You shall be responsible for all charges incurred through your account as well as for paying any applicable taxes.\r\nEHC reserves the right to change the amount of, or basis for determining, any fees or charges for Services we provide, and to institute new fees, charges or terms effective upon notice to subscribers. We reserve the right to terminate any account at any time for any reason. <br /><br />\r\n<b>4. Message Boards and Chat Rooms. </b><br /><br />\r\nEHC hosts message boards, chats and other public forums on its Sites. Any user failing to comply with the terms and conditions of this Agreement may be expelled from and refused continued access to, the message boards, chats or other public forums in the future. EHC or its designated agents may remove or alter any user-created content at any time for any reason. Message boards, chats and other public forums are intended to serve as discussion centers for users and subscribers. Information and content posted within these public forums may be provided by EHC staff, WLW\'s outside contributors, or by users not connected with EHC, some of whom may employ anonymous user names. EHC expressly disclaims all responsibility and endorsement and makes no representation as to the validity of any opinion, advice, information or statement made or displayed in these forums by third parties, nor are we responsible for any errors or omissions in such postings, or for hyperlinks embedded in any messages. Under no circumstances will we, our affiliates, suppliers or agents be liable for any loss or damage caused by your reliance on information obtained through these forums. The opinions expressed in these forums are solely the opinions of the participants, and do not reflect the opinions of EHC or any of its subsidiaries or affiliates. <br /><br />\r\n<b>5. Monitoring.</b> <br /><br />\r\nEHC has no obligation whatsoever to monitor any of the content or postings on the message boards, chat rooms or other public forums on the Sites. However, you acknowledge and agree that we have the absolute right to monitor the same at our sole discretion. In addition, we reserve the right to alter, edit, refuse to post or remove any postings or content, in whole or in part, for any reason and to disclose such materials and the circumstances surrounding their transmission to any third party in order to satisfy any applicable law, regulation, legal process or governmental request and to protect ourselves, our clients, sponsors, users and visitors. <br /><br />\r\nMaterials posted and/or uploaded to the various public forums may be subject to size and usage limitations. You are responsible for adhering to such limitations. <br /><br />\r\n<b>6. Third Party Content. </b><br /><br />\r\nIn general, the content contained on any of the Sites or Services is supplied by third parties and users. Accordingly, EHC is a distributor (and not a publisher) of such content and has no more editorial control over such content than does a public library, bookstore, or newsstand. Any opinions, advice, statements, services, offers, or other information or content expressed or made available by third parties, including information providers, are those of the respective authors or distributors, and not EHC. Neither WLW nor any third-party provider of information guarantees the accuracy, completeness, or usefulness of any content. Furthermore, EHC neither endorses nor is responsible for the accuracy and reliability of any opinion, advice, or statement made on any of the Sites or Services by anyone other than an authorized EHC representative while acting in his/her official capacity. <br /><br />\r\n<b>7. Contests and Games. </b><br /><br />\r\nEHC often provides contests and games on its Sites. The rules, regulations and procedures governing any of the foregoing shall be accessible through a hypertext link prominently displayed on the web page where the contest or game may be located. By entering or participating in any of them, you agree to be subject to those rules, regulations and procedures. Please remember to read the rules carefully before participating. <br /><br />\r\n<b>8. Accounts, Passwords and Security.</b> <br /><br />\r\nIf any of the Sites or Services require you to open an account, you must complete the registration process by providing EHC with current, complete and accurate information, as prompted by the applicable registration form. You acknowledge that by providing any information to EHC which is untrue, inaccurate, not current or incomplete, EHC reserves the right to terminate this Agreement and your continued access and use of the Sites and/or the Services. <br /><br />\r\nAs part of the registration process, you will be asked to select a username and password. You are entirely responsible for maintaining the security and confidentiality of your account and password. FURTHERMORE, YOU ARE ENTIRELY RESPONSIBLE FOR ANY AND ALL ACTIVITIES AND CONDUCT, WHETHER BY YOU OR ANYONE ELSE, THAT ARE CONDUCTED THROUGH YOUR ACCOUNT. You agree to notify EHC immediately of any unauthorized use of your account or any other breach of security. EHC will not be liable for any loss that you may incur as a result of someone else using your password or account, either with or without your knowledge. However, you may be held liable for any losses incurred by EHC or another party due to someone else using your account or password. <br /><br />\r\n<b>9. Disclaimer Regarding Links. </b><br /><br />\r\nThe links on any of the Sites and/or Services will let you leave the particular Site or Service you are accessing in order to access a linked site (the \"Linked Sites\"). EHC provides these links as a convenience, but we neither control nor endorse these Linked Sites, nor has EHC reviewed or approved the content which appears on the Linked Sites. EHC is not responsible for the legality, accuracy or inappropriate nature of any content, advertising, products or other materials on or available from any Linked Sites. You acknowledge and agree that EHC shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with the use of any of the links, content, goods or services available on or through the Linked Sites. <br /><br />\r\n<b>10. Dealings with Third Parties.</b> <br /><br />\r\nYour participation, correspondence or business dealings with any third party found on or through our Sites and Services, regarding payment and delivery of specific goods and services, and any other terms, conditions, representations or warranties associated with such dealings, are solely between you and such third party. You agree that EHC shall not be responsible or liable for any loss, damage, or other matters of any sort incurred as the result of such dealings. <br /><br />\r\n<b>11. Proprietary Rights.</b> <br /><br />\r\nYou acknowledge and agree that the Sites and Services contain proprietary and confidential information that is protected by applicable intellectual property and other laws, and are the sole property of EHC or its licensors. You further acknowledge and agree that any content contained in advertisements or information presented to you through advertisers concerning EHC or otherwise is protected by copyrights, trademarks, service marks, patents or other proprietary rights and laws. <br /><br />\r\nBy sending or transmitting to us creative suggestions, ideas, notes, concepts, information, or other materials (collectively, \" Submission Materials\") or by posting such Submission Materials on the Sites, you hereby grant to us and our designees a worldwide, non-exclusive, sublicensable (through multiple tiers), assignable, royalty-free, perpetual, irrevocable right to use, reproduce, distribute (through multiple tiers), create derivative works of, publicly perform, publicly display, digitally perform, make, have made, sell, offer for sale and import such Submission Materials in any media now known or hereafter devised, for any purpose whatsoever, commercial or otherwise, without compensation to you, the provider of the Submission Materials. The foregoing license to EHC shall be fully paid-up and royalty free. In addition, under no circumstances shall EHC have any obligation whatsoever to pay a fee to any subscriber or user in connection with the Submission Materials upon the occurrence of a transfer of all or any portion of EHC\'s business through a merger, sale or transfer of all or substantially all of the assets of EHC, nor shall the sale of advertising on any of the Sites give rise to any obligation to pay a fee to Subscribers. <br /><br />\r\nNone of the Submission Materials disclosed or posted via message boards, chats or other public forums shall be subject to any obligation, whether of confidentiality, attribution, or otherwise, on EHC\'s part and we shall not be liable for any use or disclosure of any such Submission Materials. <br /><br />\r\nWe suggest that you consult your legal advisor before filing a notice or counter-notice. Also, be aware that there can be penalties for false claims under the DMCA. <br /><br />\r\n<b>13. Privacy. </b><br /><br />\r\nEHC\'s policy with respect to the collection and use of your personally identifiable information is set forth at https://www.eHealthCompete.com/index.php?pg=privacy By accepting these Terms of Service, you acknowledge this policy. <br /><br />\r\n<b>14. Disclaimer of Warranties. </b><br /><br />\r\nTHE SITES AND THE SERVICES, AND ANY CONTENT, TOOLS, PRODUCTS OR SERVICES DISPLAYED, ACCESSED OR OBTAINED ON OR THROUGH THE SITES AND SERVICES ARE PROVIDED \"AS IS\", \"AS AVAILABLE\", AND WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. WITHOUT LIMITING THE GENERALITY OF THE FOREGOING, EHC AND ITS AFFILIATES, SUPPLIERS, AND AGENTS DO NOT WARRANT AND EXPRESSLY DISCLAIM THAT: (i) YOUR USE OF THE SITES AND/OR SERVICES AND ACCESS TO AND USE OF ALL OF THE TOOLS AND FEATURES THEREON WILL BE UNINTERRUPTED, ERROR-FREE, OR SECURE, (ii) THAT ANY INFORMATION OBTAINED THEREIN IS ACCURATE, RELIABLE OR COMPLETE, (iii) THAT DEFECTS WILL BE CORRECTED, or (iv) THAT ANY SOFTWARE, SERVICES, SITES OR SERVER(S) ON WHICH THE SERVICES AND SITES ARE HOSTED ARE FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS. YOUR USE OF THE SITES AND THE SERVICES AND ANY INFORMATION OR MATERIALS PROVIDED ON OR THROUGH THE SITES AND SERVICES ARE ENTIRELY AT YOUR OWN RISK. <br /><br />\r\n<b>15. Limitation of Liability. </b><br /><br />\r\nNEITHER EHC NOR ITS DIRECTORS, OFFICERS, EMPLOYEES, CONTRACTORS, AGENTS OR SPONSORS ARE RESPONSIBLE OR LIABLE TO YOU OR ANYONE ELSE FOR ANY LOSS OR INJURY OR ANY INDIRECT, INCIDENTAL, CONSEQUENTIAL, SPECIAL, EXEMPLARY, PUNITIVE OR OTHER DAMAGES UNDER ANY CONTRACT, NEGLIGENCE, STRICT LIABILITY OR OTHER THEORY ARISING OUT OF OR RELATING IN ANY WAY TO (i) THE USE OF OR INABILITY TO USE THE SITES OR THE SERVICES; (ii) ANY CONTENT CONTAINED ON THE SITES AND/OR THE SERVICES; (iii) STATEMENTS OR CONDUCT POSTED OR MADE PUBLICLY AVAILABLE ON THE SITES AND/OR THE SERVICES; (iv) ANY PRODUCT OR SERVICE PURCHASED OR OBTAINED THROUGH THE SITES; (v) ANY ACTION TAKEN IN RESPONSE TO OR AS A RESULT OF ANY INFORMATION AVAILABLE ON THE SITES OR THE SERVICES; (vi) ANY DAMAGE CAUSED BY LOSS OF ACCESS TO, DELETION OF, FAILURE TO STORE, FAILURE TO BACK UP, OR ALTERATION OF ANY CONTENT ON THE SITES OR THE SERVICES, or (vii) ANY OTHER MATTER RELATING TO THE SITES AND/OR THE SERVICES. IN NO EVENT SHALL EHC\'S TOTAL LIABILITY TO YOU FOR ANY AND ALL DAMAGES, LOSSES, AND CAUSES OF ACTION (WHETHER IN CONTRACT, TORT [INCLUDING, BUT NOT LIMITED TO, NEGLIGENCE], STATUTORY, OR OTHERWISE) EXCEED THE AMOUNT PAID BY YOU, IF ANY, FOR USING ANY OF THE SERVICES OR THE SITES. <br /><br />\r\n<b>16. Professional Advice Disclaimer. </b><br /><br />\r\nEHC\'S SITES DO NOT PROVIDE MEDICAL OR COUNSELLING ADVICE. NOTHING STATED OR POSTED ON ANY SITES OR AVAILABLE THROUGH ANY SERVICES ARE INTENDED TO BE, AND MUST NOT BE TAKEN TO BE, THE PRACTICE OF MEDICAL OR COUNSELING CARE. FOR PURPOSES OF THIS AGREEMENT, THE PRACTICE OF MEDICINE AND COUNSELING INCLUDES, WITHOUT LIMITAITON, PSYCHIATRY, PSYCHOLOGY, PSYCHOTHERAPY, OR PROVIDING HEALTH CARE TREATMENT, INSTRUCTIONS, DIAGNOSIS, PROGNOSIS OR ADVICE. OUR SITES ARE CONTINUALLY UNDER DEVELOPMENT AND EHC MAKES NO WARRANTY OF ANY KIND, IMPLIED OR EXPRESS, AS TO ITS ACCURACY, COMPLETENESS OR APPROPRIATENESS FOR ANY PURPOSE. PLEASE SEEK THE ADVICE OF PROFESSIONALS, AS APPROPRIATE, REGARDING THE EVALUATION OF ANY SPECIFIC INFORMATION, OPINION, ADVICE OR CONTENT. <br /><br />\r\n<b>17. Indemnification. </b><br /><br />\r\nYou agree to indemnify, defend, and hold EHC and its subsidiaries, affiliates, officers, directors, agents, co-branders or other partners, employees, and representatives harmless from and against any and all claims, damages, losses, costs or expenses (including reasonable attorneys\' fees and disbursements) which arise directly or indirectly out of or from (i) your breach of this Agreement, (ii) any allegation that any materials that you submit to EHC or post on any forums (e.g., message boards, chat rooms) infringe or otherwise violate the copyright, trade secret, trademark or other intellectual property rights of a third party, and (iii) your access or use of the Sites and/or the Services. This Section 17 shall survive in the event this Agreement is terminated for any reason. <br /><br />\r\n<b>18. Jurisdictional Issues. </b><br /><br />\r\nEHC makes no representation or warranty that the content and materials on the Sites and/or the Services are appropriate or available for use in locations outside the United States. Those who choose to access the Sites or use the Services from other locations do so on their own initiative and at their own risk, and are responsible for compliance with local laws, if and to the extent applicable. EHC reserves the right, at any time in our sole discretion, to limit the availability and accessibility of the Sites and/or the Services to any person, geographic area, or jurisdiction we so desire, and to limit the quantities of any such Service or products that we provide. <br /><br />\r\n<b>19. Termination. </b><br /><br />\r\nThis Agreement shall remain effective until terminated in accordance with its own terms and conditions. You agree that EHC, in its sole discretion, may terminate your password, account (in whole or in part), or use of the Sites or Services, and remove and discard any content within the Sites, at any time and for any reason. You agree that any actions taken under this Section 19 may be effective without prior notice to you. In the event of termination, however, those Sections in this Agreement which provide for continuing obligations on your part shall survive indefinitely. <br /><br />\r\n\r\n<p><b>20. Health Issues</b></p><p>\r\nBY USING THIS SITE, YOU AGREE TO ACCEPT ALL RISKS ASSOCIATED WITH THE EHC PROGRAMS DESCRIBED HEREIN AND THAT YOU WILL NOT HOLD EHC LLC LIABLE FOR ANY INJURY THAT MAY OCCUR. When undertaking any exercise activity, there is a risk of injury. Although we try to outline the safest and most effective methods of fitness training, we cannot prevent injuries from occurring. You should consult your physician before beginning any exercise program. You should be healthy and familiar with the proper form, techniques, and preparation for the exercises you undertake and the equipment you use. Always use safe techniques and protective equipment when engaging in exercise. If you are unfamiliar with the proper and safe techniques and equipment for the exercises you intend to perform, please seek advice and assistance before performing them. If you are in poor health, or are handicap, ask for the opinion of your physician or health care provider and exercise only under qualified supervision. Discontinue to exercise if you experience any light headaches, dizziness, shortness of breath, or discomfort and consult your physician or other health care provider. EHC is not responsible or liable for any injury that may result from improper use of its training programs.\r\nEHC assumes no liability or responsibility for damage or injury to persons or property arising from any use of any product, information, idea, or instruction contained in the materials provided to you. EHC reserves the right to change or discontinue at any time any aspect or feature of this site.\r\n</p>\r\n\r\n\r\n\r\n<b>21. General Information.</b> <br /><br />\r\nThis Agreement constitutes the entire agreement and understanding between you and EHC and governs your use of the Sites and the Services, superseding any prior agreements between you and EHC. This Agreement and the relationship between you and EHC shall be governed by and construed in accordance with the laws of the State of New York, without regard to its conflict of law provisions. You and EHC irrevocably agree to submit to the personal and exclusive jurisdiction of the federal and state courts located within the county of New York, in the State of New York, and waive any jurisdictional, venue, or inconvenient forum objections to such courts. The failure of EHC to exercise or enforce any right or provision of this Agreement shall not constitute a waiver of such right or provision. If any provision of this Agreement is found by a court of competent jurisdiction to be unlawful, void or for any reason unenforceable, then that provision shall be deemed severed herefrom and shall not affect the validity and enforceability of any remaining provisions. The section titles in this Agreement are for convenience purposes only and have no legal or contractual effect. This Agreement is not assignable, transferable or sub-licensable by you except with our prior written consent. However, we may assign this Agreement to any third party whom we choose without your consent. No waiver by EHC of any breach or default hereunder shall be deemed a waiver of any preceding or subsequent breach or default. <br /><br />\r\n\r\n\r\n\r\n'),(5242,285,0.22,'php','0','Copied the page over from dev site... now testing.',1184956187,2,'71.195.230.181','<?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$fp = fopen(\"/tmp/webservice_debug.log\", \'a\');\r\nfputs($fp, $Q . \"\\n\\n\";\r\nfclose($fp);\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?>'),(5243,285,0.23,'php','0','Copied the page over from dev site... now testing.',1184956431,2,'71.195.230.181','<?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$fp = @fopen(\"/tmp/webservice_debug.log\", \'a\');\r\nfputs($fp, $Q . \"\\n\\n\";\r\nfclose($fp);\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?>'),(5244,285,0.24,'php','0','Copied the page over from dev site... now testing.',1184956474,2,'71.195.230.181','<?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/*$fp = @fopen(\"/tmp/webservice_debug.log\", \'a\');\r\nfputs($fp, $Q . \"\\n\\n\";\r\nfclose($fp);*/\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?>'),(5245,285,0.25,'php','0','Copied the page over from dev site... now testing.',1184956526,2,'71.195.230.181','<?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$fp = fopen(\"webservice_debug.log\", \'a\');\r\nfputs($fp, $Q . \"\\n\\n\";\r\nfclose($fp);\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?>'),(5246,285,0.26,'php','0','Copied the page over from dev site... now testing.',1184956719,2,'71.195.230.181','<?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$fp = fopen(\"/tmp/webservice_debug.log\", \'a\');\r\nfputs($fp, $Q . \"\\n\\n\");\r\nfclose($fp);\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?>'),(5247,285,0.27,'php','0','Copied the page over from dev site... now testing.',1184957145,2,'71.195.230.181','<?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\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$fp = fopen(\'/tmp/webservices_debug.log\', \'a\');\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\nfputs($fp, date(\'Ymd-His\') . \':::Request from:\' . $_SERVER[\'REMOTE_ADDR\'] . \':::\' . serialize($objResponse).\"\\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\nfputs($fp, date(\'Ymd-His\') . \':::Request from:\' . $_SERVER[\'REMOTE_ADDR\'] . \':::\' . serialize($objResponse).\"\\n\");\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\nfputs($fp, date(\'Ymd-His\') . \':::Request from:\' . $_SERVER[\'REMOTE_ADDR\'] . \':::\' . serialize($objResponse).\"\\n\");\r\n\r\n			$sessionNotes = $objResponse->detail;\r\n			\r\n		} else {\r\nfputs($fp, date(\'Ymd-His\') . \':::Request from:\' . $_SERVER[\'REMOTE_ADDR\'] . \':::\' . \'FATAL ERROR\' .\"\\n\");\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\nfputs($fp, date(\'Ymd-His\') . \':::Request from:\' . $_SERVER[\'REMOTE_ADDR\'] . \':::\' . serialize($objResponse).\"\\n\");\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?>'),(5248,285,0.28,'php','0','Copied the page over from dev site... now testing.',1184957314,2,'71.195.230.181','<?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\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$fp2 = fopen(\'/tmp/webservices_debug.log\', \'a\');\r\nfputs($fp2, date(\'Ymd-His\') . \':::Request from:\' . $_SERVER[\'REMOTE_ADDR\'] . \':::\' . $Q.\"\\n\");\r\nfclose($fp2);\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$fp = fopen(\'/tmp/webservices_debug.log\', \'a\');\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\nfputs($fp, date(\'Ymd-His\') . \':::Request from:\' . $_SERVER[\'REMOTE_ADDR\'] . \':::\' . serialize($objResponse).\"\\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\nfputs($fp, date(\'Ymd-His\') . \':::Request from:\' . $_SERVER[\'REMOTE_ADDR\'] . \':::\' . serialize($objResponse).\"\\n\");\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\nfputs($fp, date(\'Ymd-His\') . \':::Request from:\' . $_SERVER[\'REMOTE_ADDR\'] . \':::\' . serialize($objResponse).\"\\n\");\r\n\r\n			$sessionNotes = $objResponse->detail;\r\n			\r\n		} else {\r\nfputs($fp, date(\'Ymd-His\') . \':::Request from:\' . $_SERVER[\'REMOTE_ADDR\'] . \':::\' . \'FATAL ERROR\' .\"\\n\");\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\nfputs($fp, date(\'Ymd-His\') . \':::Request from:\' . $_SERVER[\'REMOTE_ADDR\'] . \':::\' . serialize($objResponse).\"\\n\");\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?>'),(5249,285,0.29,'php','1','Copied the page over from dev site... now testing.',1184957932,2,'71.195.230.181','<?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\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	$result = $SPADE[\'db\']->query($Q, DB_ROW);\r\n\r\nif (!$result) {\r\n$fp2 = fopen(\'/tmp/webservices_debug.log\', \'a\');\r\nfputs($fp2, date(\'Ymd-His\') . \':::Request from:\' . $_SERVER[\'REMOTE_ADDR\'] . \':::\' . $Q.\"\\n\");\r\nfclose($fp2);\r\n}\r\n	return $result;\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$fp = fopen(\'/tmp/webservices_debug.log\', \'a\');\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\nfputs($fp, date(\'Ymd-His\') . \':::Request from:\' . $_SERVER[\'REMOTE_ADDR\'] . \':::\' . serialize($objResponse).\"\\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\nfputs($fp, date(\'Ymd-His\') . \':::Request from:\' . $_SERVER[\'REMOTE_ADDR\'] . \':::\' . serialize($objResponse).\"\\n\");\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\nfputs($fp, date(\'Ymd-His\') . \':::Request from:\' . $_SERVER[\'REMOTE_ADDR\'] . \':::\' . serialize($objResponse).\"\\n\");\r\n\r\n			$sessionNotes = $objResponse->detail;\r\n			\r\n		} else {\r\nfputs($fp, date(\'Ymd-His\') . \':::Request from:\' . $_SERVER[\'REMOTE_ADDR\'] . \':::\' . \'FATAL ERROR\' .\"\\n\");\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\nfputs($fp, date(\'Ymd-His\') . \':::Request from:\' . $_SERVER[\'REMOTE_ADDR\'] . \':::\' . serialize($objResponse).\"\\n\");\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?>'),(5250,113,1.54,'smarty','0','Added maxlength 15 on username.',1197582551,16,'166.70.24.189','{assign var=\"pgLayout\" value=\"layouts/default.tpl\"}\r\n{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n{assign var=\"return\" value=$smarty.request.return|default:$signup.return|default:\"my_competitions/available\"}\r\n<!-- {$return} -->\r\n{if $user->isLoggedIn() and $return neq \"\"}\r\n	{if $return eq \"home\"}\r\n		{message type=\"error\" value=\"You cannot sign up for a membership when you are already logged in.\"}\r\n	{/if}\r\n	{store_messages}\r\n	{redirect href=\"?pg=`$return`\"}\r\n{/if}\r\n{if not $smarty.session.company.id}\r\n	{message type=\"error\" value=\"Unable to determine your company. It is possible you were given an incorrect link. You should go to <b>http://yourcompany.ehealthcompete.com/signup/begin</b> where <b>yourcompany</b> is the name of your company.\"}\r\n	{message type=\"error\" value=\"If you need assistance, please <a href=\\\"?pg=contact\\\">contact us</a>.\"}\r\n	{store_messages}\r\n	{redirect href=\"?pg=`$return`\"}\r\n{/if}\r\n\r\n<h1 class=\"underline\">Sign Up - Step 1</h1>\r\nCreating your <em>FREE</em> membership is simple.  Just fill out the forms below and click Next.<br />\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n	<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n	<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:$signup.returndefault:\"home\"}\" />\r\n	<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n	<h2 class=\"withBG\">Already a Member?</h2>\r\n		<div><a href=\"javascript://\" onclick=\"toggle(\'logInNow\');\">Log in now.</a></div>\r\n		<div id=\"logInNow\" style=\"display:none;\">\r\n		Username: <input type=\"text\" name=\"username\" class=\"textInput\" size=\"12\" /><br />\r\n		Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n		<div class=\"underline\">&nbsp;</div>\r\n		<a href=\"javascript:document.loginForm2.submit();\">Submit</a> | <a href=\"javascript:doForgotPassword();\">Forgot Password?</a>\r\n		</div>\r\n	</form>\r\n</div>\r\n<div class=\"underline\" style=\"clear:left;\"></div>\r\n{toc_next assign=\"next\"}\r\n{toc_prev assign=\"prev\"}\r\n<form name=\"signup\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$next.pageName}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" id=\"signupReturn\" name=\"signup[return]\" value=\"{$return}\">\r\n<input type=\"hidden\" name=\"signup[companyId]\" value=\"{$smarty.session.company.id}\" />\r\n\r\n<table><tr><td>\r\n\r\n<div class=\"chunk300 h150 w300\">\r\n<h2 class=\"withBG\">Create your Membership </h2>\r\n	*First Name:\r\n	<input type=\"text\" name=\"signup[firstName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*Last Name:\r\n	<input type=\"text\" name=\"signup[lastName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*E-mail:\r\n	<input type=\"text\" name=\"signup[email]\" class=\"textInput\" size=\"30\" /><br />\r\n\r\n	*Desired Username:\r\n	<input type=\"text\" name=\"signup[username]\" class=\"textInput\" size=\"12\" maxlength=\"15\"><br />\r\n        <small>Username must NOT contain your name or your CAI</small>\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Password</h2>\r\n{if $signup.password}\r\n	<small>You have already chosen a valid password. If you would like to choose a different one, enter it below and confirm it.</small><br /><br />\r\n{/if}\r\n	*Choose Your Password:\r\n	<input type=\"password\" name=\"signupSecure[password]\" size=\"12\" class=\"textInput\"><br />\r\n	<small>(Password must be at least 8 characters long)</small><br />\r\n\r\n	*Confirm Your Password:\r\n	<input type=\"password\" name=\"signupSecure[passwordConfirm]\" size=\"12\" class=\"textInput\"><br />\r\n</div>\r\n\r\n</td><td valign=\"top\">\r\n\r\n<div class=\"chunk300 w300\">\r\n	<h2 class=\"withBG\">Shipping &amp; Contact Address</h2>\r\n	\r\n	<div id=\"addressInfo\" style=\"display:block; width:auto;\">\r\n	*Address:\r\n	<input type=\"text\" name=\"signup[address1]\" value=\"{$smarty.request.signup.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"signup[address2]\" value=\"{$smarty.request.signup.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*City:\r\n	<input type=\"text\" name=\"signup[city]\" value=\"{$smarty.request.signup.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*State, *Zip:\r\n	<input type=\"text\" name=\"signup[state]\" value=\"{$smarty.request.signup.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"signup[zip]\" value=\"{$smarty.request.signup.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n	<div id=\"signupstate\" style=\"text-align:left; margin-left:200px; position:absolute; background-color:#fff; border:1px solid black;\"></div>\r\n\r\n	*Country:\r\n	<input type=\"text\" name=\"signup[country]\" value=\"{$smarty.request.signup.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /><br />\r\n	<div id=\"signupcountry\" style=\"text-align:left; float:left; margin-left:100px; position:absolute; background-color:#fff; border:1px solid black;\"></div>\r\n\r\n	Phone:\r\n	<input type=\"text\" name=\"signup[phone1]\" value=\"{$smarty.request.signup.phone1}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	Phone 2:\r\n	<input type=\"text\" name=\"signup[phone2]\" value=\"{$smarty.request.signup.phone2}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	</div>\r\n</div>\r\n<div style=\"clear:left;\">* indicates a required field</div>\r\n</td></tr></table>\r\n\r\n{if $modules.spadeAutoComplete2}\r\n	{capture name=\"headAddendum\"}\r\n	<script language=\"javascript\" src=\"{$modules.spadeAutoComplete2}\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_states.js\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_countries.js\"></script>\r\n	{/capture}\r\n	<script language=\"javascript\">\r\n		initAutoComplete(\'signup[state]\', \'signupstate\', states, true);\r\n		initAutoComplete(\'signup[country]\', \'signupcountry\', countries, true);\r\n	</script>\r\n{/if}\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<br />\r\n	{if $prev.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\"><!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;&lt;&lt; Back&nbsp;\" onclick=\"pg.value=\'{$prev.pageName}\';\"> |-->&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\"> <!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;Next &gt;&gt;&nbsp;\"> -->	{/if}\r\n</div>\r\n\r\n{stored_object_fill_form object=$signup name=\"signup\"}\r\n<script language=\"javascript\">document.getElementById(\'signupReturn\').value = \'{$return}\';</script>\r\n\r\n</form>'),(5258,327,0.14,'smarty','0','Page created.',1206736278,16,'166.70.24.189','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n\r\n<h3> Here are some great activities that you can do to keep your self in shape and your heart healthy. The activities were taken from the President\'s Council on Physical Fitness and Sports.\r\n</h3>\r\n<table><tr><td>\r\n<table><tr><td>\r\nAerobics\r\n</td></tr><tr><td>\r\nAir Hockey\r\n</td></tr><tr><td>\r\nArchery\r\n</td></tr><tr><td>\r\nAuto repair\r\n</td></tr><tr><td>\r\nBadminton\r\n</td></tr><tr><td>\r\nBaseball\r\n</td></tr><tr><td>\r\nBasketball\r\n</td></tr><tr><td>\r\nBicycling\r\n</td></tr><tr><td>\r\nBilliards\r\n</td></tr><tr><td>\r\nBowling\r\n</td></tr><tr><td>\r\nBoxing/Kick boxing\r\n</td></tr><tr><td>\r\nCabbage ball\r\n</td></tr><tr><td>\r\nCalisthenics\r\n</td></tr><tr><td>\r\nCanoeing\r\n</td></tr><tr><td>\r\nCardio Machines\r\n</td></tr><tr><td>\r\nChildren\'s Games\r\n</td></tr><tr><td>\r\nCircuit Training\r\n</td></tr><tr><td>\r\nCoaching\r\n</td></tr><tr><td>\r\nCricket\r\n</td></tr><tr><td>\r\nCroquet\r\n</td></tr><tr><td>\r\nCurling\r\n</td></tr><tr><td>\r\nDancing\r\n</td></tr><tr><td>\r\nDarts\r\n</td></tr><tr><td>\r\nDiving\r\n</td></tr><tr><td>\r\nFencing\r\n</td></tr><tr><td>\r\nFishing\r\n</td></tr><tr><td>\r\nFoosball\r\n</td></tr><tr><td>\r\nFootball\r\n</td></tr><tr><td>\r\nFrisbee</td></tr><tr><td>\r\nGardening</td></tr><tr><td>\r\nGolf</td></tr><tr><td>\r\nGymnastics</td></tr><tr><td>\r\nHacky Sack</td></tr><tr><td>\r\nHandball</td></tr><tr><td>\r\nHiking/Backpacking</td></tr><tr><td>\r\nHockey</td></tr><tr><td>\r\nHome Repair</td></tr><tr><td>\r\nHorseback Riding</td></tr><tr><td>\r\nHorseshoe Pitching</td></tr><tr><td>\r\nHousehold Tasks</td></tr><tr><td>\r\nHunting</td></tr><tr><td>\r\nInline Skating</td></tr><tr><td>\r\nJuggling</td></tr><tr><td>\r\nKayaking</td></tr><tr><td>\r\nLacrosse</td></tr><tr><td>\r\nLandscaping</td></tr><tr><td>\r\nLawn Bowling</td></tr><tr><td>\r\nLawn mowing</td></tr>\r\n</td></tr></table>\r\n<td><table><tr><td>\r\nLifting/Hauling</td></tr><tr><td>\r\nMarching</td></tr><tr><td>\r\nMartial Arts</td></tr><tr><td>\r\nMountain Biking</td></tr><tr><td>\r\nPaddleball</td></tr><tr><td>\r\nPedometer</td></tr><tr><td>\r\nPilates</td></tr><tr><td>\r\nPing Pong</td></tr><tr><td>\r\nPolo</td></tr><tr><td>\r\nRacquetball</td></tr><tr><td>\r\nRock Climbing</td></tr><tr><td>\r\nRoller Skating</td></tr><tr><td>\r\nRope Jumping</td></tr><tr><td>\r\nRowing</td></tr><tr><td>\r\nRugby</td></tr><tr><td>\r\nRunning</td></tr><tr><td>\r\nScuba diving</td></tr><tr><td>\r\nShuffleboard</td></tr><tr><td>\r\nSkateboarding</td></tr><tr><td>\r\nSkating</td></tr><tr><td>\r\nSnorkeling</td></tr><tr><td>\r\nSoccer</td></tr><tr><td>\r\nSoftball</td></tr><tr><td>\r\nSquash</td></tr><tr><td>\r\nStationary Bike</td></tr><tr><td>\r\nStretching</td></tr><tr><td>\r\nSurfing</td></tr><tr><td>\r\nSwimming</td></tr><tr><td>\r\nTable Tennis</td></tr><tr><td>\r\nTai Chi</td></tr><tr><td>\r\nTennis</td></tr><tr><td>\r\nTrack & Field</td></tr><tr><td>\r\nTrampoline</td></tr><tr><td>\r\nTrap & Skeet</td></tr><tr><td>\r\nVolleyball</td></tr><tr><td>\r\nWake boarding</td></tr><tr><td>\r\nWalking</td></tr><tr><td>\r\nWallyball</td></tr><tr><td>\r\nWater Aerobics</td></tr><tr><td>\r\nWater Jogging</td></tr><tr><td>\r\nWater Polo</td></tr><tr><td>\r\nWater Skiing</td></tr><tr><td>\r\nWeight Training</td></tr><tr><td>\r\nWrestling</td></tr><tr><td>\r\nYoga</td></tr><tr><td>\r\n\r\n</td></tr></table>\r\n\r\n</td></tr></table>'),(5259,327,0.15,'smarty','0','Page created.',1206736331,16,'166.70.24.189','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n\r\n<h3> Here are some great activities that you can do to keep your self in shape and your heart healthy. The activities were taken from the President\'s Council on Physical Fitness and Sports.\r\n</h3>\r\n<table><tr><td>\r\n<table><tr><td>\r\nAerobics\r\n</td></tr><tr><td>\r\nAir Hockey\r\n</td></tr><tr><td>\r\nArchery\r\n</td></tr><tr><td>\r\nAuto repair\r\n</td></tr><tr><td>\r\nBadminton\r\n</td></tr><tr><td>\r\nBaseball\r\n</td></tr><tr><td>\r\nBasketball\r\n</td></tr><tr><td>\r\nBicycling\r\n</td></tr><tr><td>\r\nBilliards\r\n</td></tr><tr><td>\r\nBowling\r\n</td></tr><tr><td>\r\nBoxing/Kick boxing\r\n</td></tr><tr><td>\r\nCabbage ball\r\n</td></tr><tr><td>\r\nCalisthenics\r\n</td></tr><tr><td>\r\nCanoeing\r\n</td></tr><tr><td>\r\nCardio Machines\r\n</td></tr><tr><td>\r\nChildren\'s Games\r\n</td></tr><tr><td>\r\nCircuit Training\r\n</td></tr><tr><td>\r\nCoaching\r\n</td></tr><tr><td>\r\nCricket\r\n</td></tr><tr><td>\r\nCroquet\r\n</td></tr><tr><td>\r\nCurling\r\n</td></tr><tr><td>\r\nDancing\r\n</td></tr><tr><td>\r\nDarts\r\n</td></tr><tr><td>\r\nDiving\r\n</td></tr><tr><td>\r\nFencing\r\n</td></tr><tr><td>\r\nFishing\r\n</td></tr><tr><td>\r\nFoosball\r\n</td></tr><tr><td>\r\nFootball\r\n</td></tr><tr><td>\r\nFrisbee</td></tr><tr><td>\r\nGardening</td></tr><tr><td>\r\nGolf</td></tr><tr><td>\r\nGymnastics</td></tr><tr><td>\r\nHacky Sack</td></tr><tr><td>\r\nHandball</td></tr><tr><td>\r\nHiking/Backpacking</td></tr><tr><td>\r\nHockey</td></tr><tr><td>\r\nHome Repair</td></tr><tr><td>\r\nHorseback Riding</td></tr><tr><td>\r\nHorseshoe Pitching</td></tr><tr><td>\r\nHousehold Tasks</td></tr><tr><td>\r\nHunting</td></tr><tr><td>\r\nInline Skating</td></tr><tr><td>\r\nJuggling</td></tr><tr><td>\r\nKayaking</td></tr><tr><td>\r\nLacrosse</td></tr><tr><td>\r\nLandscaping</td></tr><tr><td>\r\nLawn Bowling</td></tr><tr><td>\r\nLawn mowing</td></tr>\r\n</td></tr></table>\r\n<td><table><td>\r\nLifting/Hauling</td></tr><tr><td>\r\nMarching</td></tr><tr><td>\r\nMartial Arts</td></tr><tr><td>\r\nMountain Biking</td></tr><tr><td>\r\nPaddleball</td></tr><tr><td>\r\nPedometer</td></tr><tr><td>\r\nPilates</td></tr><tr><td>\r\nPing Pong</td></tr><tr><td>\r\nPolo</td></tr><tr><td>\r\nRacquetball</td></tr><tr><td>\r\nRock Climbing</td></tr><tr><td>\r\nRoller Skating</td></tr><tr><td>\r\nRope Jumping</td></tr><tr><td>\r\nRowing</td></tr><tr><td>\r\nRugby</td></tr><tr><td>\r\nRunning</td></tr><tr><td>\r\nScuba diving</td></tr><tr><td>\r\nShuffleboard</td></tr><tr><td>\r\nSkateboarding</td></tr><tr><td>\r\nSkating</td></tr><tr><td>\r\nSnorkeling</td></tr><tr><td>\r\nSoccer</td></tr><tr><td>\r\nSoftball</td></tr><tr><td>\r\nSquash</td></tr><tr><td>\r\nStationary Bike</td></tr><tr><td>\r\nStretching</td></tr><tr><td>\r\nSurfing</td></tr><tr><td>\r\nSwimming</td></tr><tr><td>\r\nTable Tennis</td></tr><tr><td>\r\nTai Chi</td></tr><tr><td>\r\nTennis</td></tr><tr><td>\r\nTrack & Field</td></tr><tr><td>\r\nTrampoline</td></tr><tr><td>\r\nTrap & Skeet</td></tr><tr><td>\r\nVolleyball</td></tr><tr><td>\r\nWake boarding</td></tr><tr><td>\r\nWalking</td></tr><tr><td>\r\nWallyball</td></tr><tr><td>\r\nWater Aerobics</td></tr><tr><td>\r\nWater Jogging</td></tr><tr><td>\r\nWater Polo</td></tr><tr><td>\r\nWater Skiing</td></tr><tr><td>\r\nWeight Training</td></tr><tr><td>\r\nWrestling</td></tr><tr><td>\r\nYoga</td></tr><tr><td>\r\n\r\n</td></tr></table>\r\n\r\n</td></tr></table>'),(5260,327,0.16,'smarty','1','Page created.',1206736452,16,'166.70.24.189','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n\r\n<h3> Here are some great activities that you can do to keep your self in shape and your heart healthy. <br />The activities were taken from the President\'s Council on Physical Fitness and Sports.\r\n</h3>\r\n<table><tr><td>\r\n<table><tr><td>\r\nAerobics\r\n</td></tr><tr><td>\r\nAir Hockey\r\n</td></tr><tr><td>\r\nArchery\r\n</td></tr><tr><td>\r\nAuto repair\r\n</td></tr><tr><td>\r\nBadminton\r\n</td></tr><tr><td>\r\nBaseball\r\n</td></tr><tr><td>\r\nBasketball\r\n</td></tr><tr><td>\r\nBicycling\r\n</td></tr><tr><td>\r\nBilliards\r\n</td></tr><tr><td>\r\nBowling\r\n</td></tr><tr><td>\r\nBoxing/Kick boxing\r\n</td></tr><tr><td>\r\nCabbage ball\r\n</td></tr><tr><td>\r\nCalisthenics\r\n</td></tr><tr><td>\r\nCanoeing\r\n</td></tr><tr><td>\r\nCardio Machines\r\n</td></tr><tr><td>\r\nChildren\'s Games\r\n</td></tr><tr><td>\r\nCircuit Training\r\n</td></tr><tr><td>\r\nCoaching\r\n</td></tr><tr><td>\r\nCricket\r\n</td></tr><tr><td>\r\nCroquet\r\n</td></tr><tr><td>\r\nCurling\r\n</td></tr><tr><td>\r\nDancing\r\n</td></tr><tr><td>\r\nDarts\r\n</td></tr><tr><td>\r\nDiving\r\n</td></tr><tr><td>\r\nFencing\r\n</td></tr><tr><td>\r\nFishing\r\n</td></tr><tr><td>\r\nFoosball\r\n</td></tr><tr><td>\r\nFootball\r\n</td></tr><tr><td>\r\nFrisbee</td></tr><tr><td>\r\nGardening</td></tr><tr><td>\r\nGolf</td></tr><tr><td>\r\nGymnastics</td></tr><tr><td>\r\nHacky Sack</td></tr><tr><td>\r\nHandball</td></tr><tr><td>\r\nHiking/Backpacking</td></tr><tr><td>\r\nHockey</td></tr><tr><td>\r\nHome Repair</td></tr><tr><td>\r\nHorseback Riding</td></tr><tr><td>\r\nHorseshoe Pitching</td></tr><tr><td>\r\nHousehold Tasks</td></tr><tr><td>\r\nHunting</td></tr><tr><td>\r\nInline Skating</td></tr><tr><td>\r\nJuggling</td></tr><tr><td>\r\nKayaking</td></tr><tr><td>\r\nLacrosse</td></tr><tr><td>\r\nLandscaping</td></tr><tr><td>\r\nLawn Bowling</td></tr><tr><td>\r\nLawn mowing</td></tr>\r\n</td></tr></table>\r\n<td><table><td>\r\nLifting/Hauling</td></tr><tr><td>\r\nMarching</td></tr><tr><td>\r\nMartial Arts</td></tr><tr><td>\r\nMountain Biking</td></tr><tr><td>\r\nPaddleball</td></tr><tr><td>\r\nPedometer</td></tr><tr><td>\r\nPilates</td></tr><tr><td>\r\nPing Pong</td></tr><tr><td>\r\nPolo</td></tr><tr><td>\r\nRacquetball</td></tr><tr><td>\r\nRock Climbing</td></tr><tr><td>\r\nRoller Skating</td></tr><tr><td>\r\nRope Jumping</td></tr><tr><td>\r\nRowing</td></tr><tr><td>\r\nRugby</td></tr><tr><td>\r\nRunning</td></tr><tr><td>\r\nScuba diving</td></tr><tr><td>\r\nShuffleboard</td></tr><tr><td>\r\nSkateboarding</td></tr><tr><td>\r\nSkating</td></tr><tr><td>\r\nSnorkeling</td></tr><tr><td>\r\nSoccer</td></tr><tr><td>\r\nSoftball</td></tr><tr><td>\r\nSquash</td></tr><tr><td>\r\nStationary Bike</td></tr><tr><td>\r\nStretching</td></tr><tr><td>\r\nSurfing</td></tr><tr><td>\r\nSwimming</td></tr><tr><td>\r\nTable Tennis</td></tr><tr><td>\r\nTai Chi</td></tr><tr><td>\r\nTennis</td></tr><tr><td>\r\nTrack & Field</td></tr><tr><td>\r\nTrampoline</td></tr><tr><td>\r\nTrap & Skeet</td></tr><tr><td>\r\nVolleyball</td></tr><tr><td>\r\nWake boarding</td></tr><tr><td>\r\nWalking</td></tr><tr><td>\r\nWallyball</td></tr><tr><td>\r\nWater Aerobics</td></tr><tr><td>\r\nWater Jogging</td></tr><tr><td>\r\nWater Polo</td></tr><tr><td>\r\nWater Skiing</td></tr><tr><td>\r\nWeight Training</td></tr><tr><td>\r\nWrestling</td></tr><tr><td>\r\nYoga</td></tr><tr><td>\r\n\r\n</td></tr></table>\r\n\r\n</td></tr></table>'),(5261,113,1.57,'smarty','0','Added maxlength 15 on username.',1207596482,16,'166.70.24.189','{assign var=\"pgLayout\" value=\"layouts/default.tpl\"}\r\n{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n{assign var=\"return\" value=$smarty.request.return|default:$signup.return|default:\"my_competitions/available\"}\r\n<!-- {$return} -->\r\n{if $user->isLoggedIn() and $return neq \"\"}\r\n	{if $return eq \"home\"}\r\n		{message type=\"error\" value=\"You cannot sign up for a membership when you are already logged in.\"}\r\n	{/if}\r\n	{store_messages}\r\n	{redirect href=\"?pg=`$return`\"}\r\n{/if}\r\n{if not $smarty.session.company.id}\r\n	{message type=\"error\" value=\"Unable to determine your company. It is possible you were given an incorrect link. You should go to <b>http://yourcompany.ehealthcompete.com/signup/begin</b> where <b>yourcompany</b> is the name of your company.\"}\r\n	{message type=\"error\" value=\"If you need assistance, please <a href=\\\"?pg=contact\\\">contact us</a>.\"}\r\n	{store_messages}\r\n	{redirect href=\"?pg=`$return`\"}\r\n{/if}\r\n\r\n<h1 class=\"underline\">Sign Up - Step 1</h1>\r\nCreating your <em>FREE</em> membership is simple.  Just fill out the forms below and click Next.<br />\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n	<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n	<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:$signup.returndefault:\"home\"}\" />\r\n	<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n	<h2 class=\"withBG\">Already a Member?</h2>\r\n		<div><a href=\"javascript://\" onclick=\"toggle(\'logInNow\');\">Log in now.</a></div>\r\n		<div id=\"logInNow\" style=\"display:none;\">\r\n		Username: <input type=\"text\" name=\"username\" class=\"textInput\" size=\"12\" /><br />\r\n		Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n		<div class=\"underline\">&nbsp;</div>\r\n		<a href=\"javascript:document.loginForm2.submit();\">Submit</a> | <a href=\"javascript:doForgotPassword();\">Forgot Password?</a>\r\n		</div>\r\n	</form>\r\n</div>\r\n<div class=\"underline\" style=\"clear:left;\"></div>\r\n{toc_next assign=\"next\"}\r\n{toc_prev assign=\"prev\"}\r\n<form name=\"signup\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$next.pageName}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" id=\"signupReturn\" name=\"signup[return]\" value=\"{$return}\">\r\n<input type=\"hidden\" name=\"signup[companyId]\" value=\"{$smarty.session.company.id}\" />\r\n\r\n<table><tr><td>\r\n\r\n<div class=\"chunk300 h150 w300\">\r\n<h2 class=\"withBG\">Create your Membership </h2>\r\n	*First Name:\r\n	<input type=\"text\" name=\"signup[firstName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*Last Name:\r\n	<input type=\"text\" name=\"signup[lastName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*E-mail:\r\n	<input type=\"text\" name=\"signup[email]\" class=\"textInput\" size=\"30\" /><br />\r\n\r\n	*Desired Username:\r\n	<input type=\"text\" name=\"signup[username]\" class=\"textInput\" size=\"12\" maxlength=\"15\"><br />\r\n        <br /><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Password</h2>\r\n{if $signup.password}\r\n	<small>You have already chosen a valid password. If you would like to choose a different one, enter it below and confirm it.</small><br /><br />\r\n{/if}\r\n	*Choose Your Password:\r\n	<input type=\"password\" name=\"signupSecure[password]\" size=\"12\" class=\"textInput\"><br />\r\n	<small>(Password must be at least 8 characters long)</small><br />\r\n\r\n	*Confirm Your Password:\r\n	<input type=\"password\" name=\"signupSecure[passwordConfirm]\" size=\"12\" class=\"textInput\"><br />\r\n</div>\r\n\r\n</td><td valign=\"top\">\r\n\r\n<div class=\"chunk300 w300\">\r\n	<h2 class=\"withBG\">Shipping &amp; Contact Address</h2>\r\n	\r\n	<div id=\"addressInfo\" style=\"display:block; width:auto;\">\r\n	*Address:\r\n	<input type=\"text\" name=\"signup[address1]\" value=\"{$smarty.request.signup.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"signup[address2]\" value=\"{$smarty.request.signup.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*City:\r\n	<input type=\"text\" name=\"signup[city]\" value=\"{$smarty.request.signup.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*State, *Zip:\r\n	<input type=\"text\" name=\"signup[state]\" value=\"{$smarty.request.signup.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"signup[zip]\" value=\"{$smarty.request.signup.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n	<div id=\"signupstate\" style=\"text-align:left; margin-left:200px; position:absolute; background-color:#fff; border:1px solid black;\"></div>\r\n\r\n	*Country:\r\n	<input type=\"text\" name=\"signup[country]\" value=\"{$smarty.request.signup.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /><br />\r\n	<div id=\"signupcountry\" style=\"text-align:left; float:left; margin-left:100px; position:absolute; background-color:#fff; border:1px solid black;\"></div>\r\n\r\n	Phone:\r\n	<input type=\"text\" name=\"signup[phone1]\" value=\"{$smarty.request.signup.phone1}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	Phone 2:\r\n	<input type=\"text\" name=\"signup[phone2]\" value=\"{$smarty.request.signup.phone2}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	</div>\r\n</div>\r\n<div style=\"clear:left;\">* indicates a required field</div>\r\n</td></tr></table>\r\n\r\n{if $modules.spadeAutoComplete2}\r\n	{capture name=\"headAddendum\"}\r\n	<script language=\"javascript\" src=\"{$modules.spadeAutoComplete2}\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_states.js\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_countries.js\"></script>\r\n	{/capture}\r\n	<script language=\"javascript\">\r\n		initAutoComplete(\'signup[state]\', \'signupstate\', states, true);\r\n		initAutoComplete(\'signup[country]\', \'signupcountry\', countries, true);\r\n	</script>\r\n{/if}\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<br />\r\n	{if $prev.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\"><!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;&lt;&lt; Back&nbsp;\" onclick=\"pg.value=\'{$prev.pageName}\';\"> |-->&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\"> <!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;Next &gt;&gt;&nbsp;\"> -->	{/if}\r\n</div>\r\n\r\n{stored_object_fill_form object=$signup name=\"signup\"}\r\n<script language=\"javascript\">document.getElementById(\'signupReturn\').value = \'{$return}\';</script>\r\n\r\n</form>'),(5267,213,0.23,'smarty','0','added image',1219256343,16,'69.42.6.65','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n\r\n\r\n<h1>Healthy Grocery List</h1>\r\n<blockquote>\r\n	<img src=\"{$skinFolder}images/groceryList.jpg\" align=\"right\" height=\"150\" width=\"150\" alt=\"\" class=\"img1\" hspace=\"20\" vspace=\"20\"/><br />\r\n	<div align=\"left\">\r\n	<p>AFTER YOU HAVE READ THE INFORMATION BELOW.<u><a href=\"http://partners.ehealthcompete.com/index.php?pg=my_login\"> CLICK HERE TO GO BACK</a> </u>TO THE ANNOUNCEMENTS PAGE WHERE YOU CAN TAKE THIS WEEKS QUIZ</p>\r\n	<p>Dairy\r\n	<ul>\r\n		<li>Low-fat or Skim Milk\r\n		<li>Low-fat yogurt. (Look for the LIGHT yogurts like the Yoplait blue lids. They have much less sugar)\r\n		<li>Low-fat cheeses: Skim ricotta, string cheese, low-fat cheddar, 1% cottage cheese \r\n	</ul>\r\n	\r\n	</p>\r\n	<p>Produce: \r\n	   Best choice is fresh, then frozen, then canned. \r\n	<ul>\r\n		<li>Fruits: apples, oranges, bananas, strawberries, peaches, pears, melons 	\r\n		<li>Vegetables: tomatoes, carrots, green beans, peas, broccoli, asparagus, green and red peppers, lettuce\r\n	</ul>\r\n	</p>\r\n	\r\n	<p>Meats : \r\n	   Look for LEAN\r\n	<ul>\r\n		<li>Chicken\r\n		<li>Beef\r\n		<li>Pork\r\n		<li>Salmon\r\n		<li>Eggs\r\n	</ul>\r\n	</p>	\r\n	\r\n	<p>Breads, Cereals and Pastas: \r\n	    The key is to look for WHOLE wheat, not just wheat!\r\n	<ul>\r\n		<li>Whole wheat bread\r\n		<li>Whole wheat tortillas, pita bread\r\n		<li>Whole wheat pastas\r\n		<li>Brown Rice\r\n		<li>High-Fiber Cereals: Fiber One, Kashi Good Friends, Kashi Go Lean, Raisin Bran.\r\n		<li>Oatmeal\r\n	</ul>\r\n	</p>	\r\n	\r\n	<p>Snack Foods\r\n	<ul>\r\n		<li>Mixed nuts with no added salt: Almonds, cashews, etc.\r\n		<li>Whole wheat crackers\r\n		<li>String cheese\r\n		<li>Fruit\r\n		<li>Cut up vegetables with low-fat dressings\r\n		<li>Low fat frozen yogurt\r\n		<li>100% juice bars with no added sugar\r\n	</ul>\r\n	</p>\r\n	\r\n	<p>Frozen Foods\r\n	<ul>\r\n		<li>Mixed Vegetables\r\n		<li>Fruit Juice Bars\r\n		<li>Frozen berries\r\n		<li>Boneless, skinless chicken breasts\r\n		<li>Fish fillets and shrimp\r\n	</ul>\r\n	</p>\r\n	\r\n	<p>Canned Foods\r\n	<ul>\r\n		<li>Black beans\r\n		<li>Pinto Beans\r\n		<li>Tuna\r\n		<li>Pineapple\r\n		<li>Marinara Sauce\r\n	</ul>\r\n	</p>\r\n	\r\n	<p>Shopping Tips: \r\n	<ol style=\"a\">\r\n		<li><b>Don’t Go Hungry.</b><br /> \r\n	Make sure you have a snack before you go to the grocery store. Otherwise, your hunger will convince you too buy too many high-calorie, junk foods. </li>\r\n	\r\n		<li><b>Shop the perimeter of the store.</b><br />\r\n	The perimeter of the store has the healthiest foods like breads, produce and dairy products. The junk foods are usually in the aisles, so avoid those aisles.</li>  \r\n	\r\n		<li><b>Have a List…</b><br />\r\n	….and stick to it. Knowing exactly what you need will keep your trip short and efficient. It will also keep you from over-spending and getting foods you don’t need.</li> \r\n	</ol>\r\n	</p>\r\n	</div>\r\n</blockquote>'),(5268,213,0.24,'smarty','1','added image',1221513574,16,'208.53.57.52','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n\r\n\r\n<h1>Healthy Grocery List</h1>\r\n<blockquote>\r\n	<img src=\"{$skinFolder}images/groceryList.jpg\" align=\"right\" height=\"150\" width=\"150\" alt=\"\" class=\"img1\" hspace=\"20\" vspace=\"20\"/><br />\r\n	<div align=\"left\">\r\n	\r\n	<p>Dairy\r\n	<ul>\r\n		<li>Low-fat or Skim Milk\r\n		<li>Low-fat yogurt. (Look for the LIGHT yogurts like the Yoplait blue lids. They have much less sugar)\r\n		<li>Low-fat cheeses: Skim ricotta, string cheese, low-fat cheddar, 1% cottage cheese \r\n	</ul>\r\n	\r\n	</p>\r\n	<p>Produce: \r\n	   Best choice is fresh, then frozen, then canned. \r\n	<ul>\r\n		<li>Fruits: apples, oranges, bananas, strawberries, peaches, pears, melons 	\r\n		<li>Vegetables: tomatoes, carrots, green beans, peas, broccoli, asparagus, green and red peppers, lettuce\r\n	</ul>\r\n	</p>\r\n	\r\n	<p>Meats : \r\n	   Look for LEAN\r\n	<ul>\r\n		<li>Chicken\r\n		<li>Beef\r\n		<li>Pork\r\n		<li>Salmon\r\n		<li>Eggs\r\n	</ul>\r\n	</p>	\r\n	\r\n	<p>Breads, Cereals and Pastas: \r\n	    The key is to look for WHOLE wheat, not just wheat!\r\n	<ul>\r\n		<li>Whole wheat bread\r\n		<li>Whole wheat tortillas, pita bread\r\n		<li>Whole wheat pastas\r\n		<li>Brown Rice\r\n		<li>High-Fiber Cereals: Fiber One, Kashi Good Friends, Kashi Go Lean, Raisin Bran.\r\n		<li>Oatmeal\r\n	</ul>\r\n	</p>	\r\n	\r\n	<p>Snack Foods\r\n	<ul>\r\n		<li>Mixed nuts with no added salt: Almonds, cashews, etc.\r\n		<li>Whole wheat crackers\r\n		<li>String cheese\r\n		<li>Fruit\r\n		<li>Cut up vegetables with low-fat dressings\r\n		<li>Low fat frozen yogurt\r\n		<li>100% juice bars with no added sugar\r\n	</ul>\r\n	</p>\r\n	\r\n	<p>Frozen Foods\r\n	<ul>\r\n		<li>Mixed Vegetables\r\n		<li>Fruit Juice Bars\r\n		<li>Frozen berries\r\n		<li>Boneless, skinless chicken breasts\r\n		<li>Fish fillets and shrimp\r\n	</ul>\r\n	</p>\r\n	\r\n	<p>Canned Foods\r\n	<ul>\r\n		<li>Black beans\r\n		<li>Pinto Beans\r\n		<li>Tuna\r\n		<li>Pineapple\r\n		<li>Marinara Sauce\r\n	</ul>\r\n	</p>\r\n	\r\n	<p>Shopping Tips: \r\n	<ol style=\"a\">\r\n		<li><b>Don’t Go Hungry.</b><br /> \r\n	Make sure you have a snack before you go to the grocery store. Otherwise, your hunger will convince you too buy too many high-calorie, junk foods. </li>\r\n	\r\n		<li><b>Shop the perimeter of the store.</b><br />\r\n	The perimeter of the store has the healthiest foods like breads, produce and dairy products. The junk foods are usually in the aisles, so avoid those aisles.</li>  \r\n	\r\n		<li><b>Have a List…</b><br />\r\n	….and stick to it. Knowing exactly what you need will keep your trip short and efficient. It will also keep you from over-spending and getting foods you don’t need.</li> \r\n	</ol>\r\n	</p>\r\n	</div>\r\n</blockquote>'),(5269,173,0.46,'smarty','1','added $skinFolder path, and fixed filename.',1225489129,16,'208.53.57.52','<h1 class=\"withBG\">Clients</h1>\r\n\r\n<img src=\"/systems/v2_ehc/images/ehc/logos/americanExpress.gif\" vspace=\"10\">\r\n<img src=\"/systems/v2_ehc/images/ehc/logos/westech_logo.gif\" vspace=\"10\">\r\n<img src=\"/systems/v2_ehc/images/ehc/logos/1800_Logo.gif\" vspace=\"10\">\r\n<img src=\"/systems/v2_ehc/images/ehc/logos/byu_small.jpg\" vspace=\"10\">\r\n<img src=\"/systems/v2_ehc/images/ehc/logos/Edwards_global_logo.gif\" vspace=\"10\">\r\n<img src=\"/systems/v2_ehc/images/ehc/logos/myfamilylogo.gif\" vspace=\"10\">\r\n<img src=\"/systems/v2_ehc/images/ehc/logos/nuskinLogo.gif\" vspace=\"10\">\r\n<img src=\"/systems/v2_ehc/images/ehc/logos/pharmanexlogo.gif\" vspace=\"10\">\r\n<img src=\"/systems/v2_ehc/images/ehc/logos/bigPlanet_logo.gif\" vspace=\"10\">\r\n<img src=\"/systems/v2_ehc/images/ehc/logos/usana.gif\" vspace=\"10\">\r\n\r\n\r\n<p>What eHealthCompete is doing with some of our valued Clients</p>\r\n\r\n<img src=\"{$skinFolder}images/myfamilylogo.gif\" vspace=\"10\">\r\n<p>MyFamily.com has chosen\r\neHealthCompete to be their\r\nfirst wellness offering to their\r\nemployees. Over a 12 month\r\nperiod, MyFamily.com implemented\r\n4 custom wellness campaigns created\r\nby eHealthCompete – including a\r\nteam weight loss campaign, 10,000 steps-a-\r\nday walking campaign, and a 5-a-day\r\nnutrition campaign.</p>\r\n\r\n<p>MyFamily.com is offering not only campaigns\r\nbut an enticing incentive program\r\nthrough eHealthCompete. Every employee\r\nis eligible for a year end cash bonus\r\nif they are 90% active in the incentive\r\nprogram over the course of the year. Survey\r\nresults have shown steady increases in\r\nhealthy behavior since the incentive program\r\nbegan.</p>\r\n\r\n<p>Participation rates in their wellness program\r\nstarted with an remarkable 45% of\r\ntheir corporate employees. Over the last 5\r\nmonths participation has climbed to 69%\r\nof all corporate employees.</p>\r\n\r\n\r\n<img src=\"{$skinFolder}images/nuskinLogo.gif\" vspace=\"10\">\r\n<img src=\"{$skinFolder}images/bigPlanet_logo.gif\" vspace=\"10\">\r\n<img src=\"{$skinFolder}images/pharmanexlogo.gif\" vspace=\"10\">\r\n<p>NU SKIN ENTERPRISES and their subsidiaries\r\nBig Planet and Pharmenex.<br />\r\nTo help stop the growth of waist lines over\r\nthe holidays, Nu Skin Enterprises contracted\r\nwith eHealthCompete to create a\r\n“Holiday Weight Loss Challenge.”\r\nThrough this individual campaign Nu\r\nSkin, Big Planet and Pharmenex employees\r\nreceived weekly newsletters for the\r\neHealtCompete staff regarding weight\r\nloss/maintenance and tips on how to compete\r\nsuccessfully.</p>\r\n\r\n<p>At the end of the challenge\r\nthe top 10 winners had an average\r\nweight loss of 8.4% of their body weight\r\nwith the top 3 employees losing 13.46%,\r\n13.41% and 12.34% respectively. In addition\r\nthere were 31,000 minutes exercised\r\nduring the 82 days of competition and over\r\n500 miles covered by the group.</p>\r\n\r\n<p>Nu Skin Enterprises has followed up their\r\nholiday challenge by creating four campaigns including “Shape up for\r\nSummer” team and individual\r\nchallenges in exercise minutes\r\nand % of body weight lost.\r\nParticipation rates in these\r\ncampaigns have seen an 82%\r\nincrease in a 4 month period.</p>\r\n\r\n<p><i>“I loved being able to easily track my\r\nprogress in weight loss and in exercise.\r\nIt was fun to see my name move up on\r\nthe leader’s board. I could hardly wait\r\nfor each Monday to come so I could\r\nrecord my new lower weight. I was able\r\nto continue with my goals using my\r\npersonal page after the competition and\r\nwith the jump start the competition gave\r\nme, I have lost 51 pounds.”\r\n-Janice Walker, Nu Skin Enterprises</i></p>\r\n<p></p>\r\n\r\n\r\n<img src=\"{$skinFolder}images/GoldsGym_Logo.jpg\" height=\"100\" width=\"100\" vspace=\"10\">\r\n<div>Golds Gym of Utah<p>\r\nGolds Gym of Utah has partnered with eHealthCompete in order to offer an entire wellness program to their corporate clients.  Through the services of eHealthCompete and the state-of-the-art facilities of Golds Gym, the ultimate team of wellness has been formed.\r\n</p>\r\n<img src=\"{$skinFolder}images/appleprogram_logo.jpg\" vspace=\"10\">\r\n<p>The Apple Program is a unique disease management firm that offers personal health coaches and a web-based goal creation and tracking program for their clients.  Through their partnership with eHealthCompete the Apple Program has private labeled the wellness services of eHealthCompete.  Now they can provide a full service disease management and wellness program but still focus their resources on their core competency: disease management, while eHealthCompete spends its resources on their core competency: wellness.</p>\r\n\r\n'),(5271,256,0.18,'smarty','0','Attempting to add style for even/odd cell rows.',1250657826,2,'24.10.198.118','{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}\r\n{include_php file=\"shared_handle:estats/userEntry\"}\r\n\r\n{capture name=\"headExtra\"}\r\n<script language=\"javascript\">{literal}\r\nfunction xWindow(name, w, h, x, y, loc, men, res, scr, sta, too)\r\n{\r\n  var f = \'\';\r\n  if (w && h) {\r\n    if (document.layers) f = \'screenX=\' + x + \',screenY=\' + y;\r\n    else f = \'left=\' + x + \',top=\' + y;\r\n    f += \',width=\' + w + \',height=\' + h + \',\';\r\n  }\r\n  f += (\'location=\'+loc+\',menubar=\'+men+\',resizable=\'+res\r\n    +\',scrollbars=\'+scr+\',status=\'+sta+\',toolbar=\'+too);\r\n  this.features = f;\r\n  this.name = name;\r\n  this.load = function(sUrl) {\r\n    if (this.wnd && !this.wnd.closed) this.wnd.location.href = sUrl;\r\n    else this.wnd = window.open(sUrl, this.name, this.features);\r\n    this.wnd.focus();\r\n    return false;\r\n  }\r\n}\r\nwinUpdater = new xWindow(\'nutritionWin\', 750, 500, 10, 10, \'yes\', \'no\', \'yes\', \'yes\', \'yes\', \'no\');\r\n{/literal}</script>\r\n{/capture}\r\n\r\n{if $userInfo.id}\r\n<form name=\"updateForm\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" name=\"start\" value=\"{$smarty.request.start}\">\r\n<input type=\"hidden\" name=\"userId\" value=\"{$smarty.request.userId}\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'statsUpdateTable\', \'\', \'showHide\');updateParentHeight();\"><img id=\"statsUpdateTable_img\" src=\"blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a>\r\n	</div>\r\n	Update Stats{if $userInfo.id neq $user->id} For: {$userInfo.firstName} {$userInfo.lastName} ({$userInfo.username}){/if}\r\n</h2>\r\n<table id=\"statsUpdateTable\" cellpadding=\"2\" cellspacing=\"2\" style=\"display:block;\">\r\n<tr>\r\n	<td colspan=\"4\" align=\"left\"><div>{if $lastWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$lastWeek}&userId={$userInfo.id}\">&lt; Previous Week</a>{/if}</div></td>\r\n	<td colspan=\"4\" align=\"right\"><div>{if $nextWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$nextWeek}&userId={$userInfo.id}\">Next Week &gt;</a>{/if}</div></td>\r\n</tr>\r\n<tr>\r\n	<td class=\"\"><div>&nbsp;</div></td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td width=\"75\" align=\"right\" class=\"datacell\"><b>{$dayInfo.$dayNo.timestamp|date_format2:\"l\"}</b><br />{$dayInfo.$dayNo.timestamp|date_format2:\"n/j/y\"}</td>\r\n	{/section}\r\n</tr>\r\n{assign var=\"columnCounter\" value=0}\r\n{foreach from=$estats item=\"estat\"}\r\n{assign var=\"estatId\" value=$estat.id}\r\n{if $estat.frequency eq \"daily\"}\r\n<tr>	\r\n	<td align=\"right\" class=\"\">\r\n	{if $estat.description}\r\n		<a href=\"javascript://\" onmouseover=\"toggle(\'eStatNote_{$estatId}\');\" onmouseout=\"toggle(\'eStatNote_{$estatId}\');\"><b>{$estat.name|niceText}</b></a><br />\r\n		<div id=\"eStatNote_{$estatId}\" class=\"floatInfoBox\" style=\"display:none;\">&quot;{$estat.description}&quot;{if $estat.groupName}<br /><small><i>Requested By:</i> <b>{$estat.groupDescription}</b></small>{/if}</div>\r\n	{else}\r\n		<b>{$estat.name|niceText}</b><br />\r\n	{/if}\r\n		{if $estat.units}<small class=\"note\">({$estat.units.name|niceText})</small>{/if}</td>\r\n		{section loop=\"7\" name=\"day\"}\r\n			{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n			<td align=\"right\" class=\"datacell\"><input tabindex=\"{$smarty.section.day.iteration*7}\" type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][estats][{$estatId}][value]\" value=\"{if $dayInfo.$dayNo.estats.$estatId.id gt 0}{$dayInfo.$dayNo.estats.$estatId.value}{/if}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][estats][{$estatId}][id]\" value=\"{$dayInfo.$dayNo.estats.$estatId.id}\"></td>\r\n		{/section}\r\n</tr>\r\n{/if}\r\n{/foreach}\r\n\r\n{foreach from=$estats item=\"estat\" name=\"estats_loop\"}\r\n{assign var=\"estatId\" value=$estat.id}\r\n{if $estat.frequency eq \"weekly\"}\r\n{if $columnCounter eq 0 OR !$hasShownWeeklyHeader}<tr>{/if}\r\n	{if $estat.frequency eq \"weekly\" && !$hasShownWeeklyHeader}\r\n		{assign var=\"hasShownWeeklyHeader\" value=1}\r\n		<td>&nbsp;</td>\r\n		<td colspan=\"7\" align=\"center\"><br /><small>The following statistics are entered only once per week.<br /><br /></small></td>\r\n	</tr>\r\n	<tr>\r\n	{/if}	\r\n	<td align=\"right\" class=\"\"{if $columnCounter gt 0} colspan=\"2\"{/if}>\r\n	{if $estat.description}\r\n		<a href=\"javascript://\" onmouseover=\"toggle(\'eStatNote_{$estatId}\');\" onmouseout=\"toggle(\'eStatNote_{$estatId}\');\"><b>{$estat.name|niceText}</b></a><br />\r\n		<div id=\"eStatNote_{$estatId}\" class=\"floatInfoBox\" style=\"display:none;\">&quot;{$estat.description}&quot;{if $estat.groupName}<br /><small><i>Requested By:</i> <b>{$estat.groupDescription}</b></small>{/if}</div>\r\n	{else}\r\n		<b>{$estat.name|niceText}</b><br />\r\n	{/if}\r\n		{if $estat.units}<small class=\"note\">({$estat.units.name|niceText})</small>{/if}</td>\r\n		{assign var=\"columnCounter\" value=$columnCounter|math:\"x+1\"}\r\n		<td align=\"center\" class=\"datacell {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}\"><input type=\"text\" class=\"largeInput\" name=\"day[1][estats][{$estatId}][value]\" value=\"{if $dayInfo.1.estats.$estatId.id gt 0}{$dayInfo.1.estats.$estatId.value}{/if}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][estats][{$estatId}][id]\" value=\"{$dayInfo.1.estats.$estatId.id}\"></td>\r\n{if !$hasShownWeeklyHeader OR $columnCounter eq 3}{assign var=\"columnCounter\" value=0}</tr>{/if}\r\n{/if}\r\n{/foreach}\r\n<tr>\r\n	<td colspan=\"8\" align=\"right\"><br />\r\n		<input type=\"submit\" class=\"button\" value=\"Save Updates!\" />\r\n		<input type=\"button\" value=\"Add a New Tracking Category\" onclick=\"location.replace(\'?pg=eStatWizard\');\" />\r\n	</td>\r\n</tr>\r\n</table>\r\n\r\n</form>\r\n\r\n{if $user->username eq \"trave\"}\r\n{include_php file=\"shared_handle:estats/getEstatsInfo\"}\r\n<div id=\"graphLinksDiv\" style=\"display:none;\">\r\n	<table width=\"100%\">\r\n	<tr>\r\n		<td width=\"100%\" align=\"center\"><small>\r\n		{foreach from=$aEstats item=\"es\" name=\"loopEstats\"}\r\n			<a href=\"?pg=flashgraph-frame&format=small&userIds={$smarty.request.userId|default:$user->id}&esId={$es.id}&type={$es.name|niceText|htmlspecialchars}&precision={$es.units.decimalPlaces|default:1}\" target=\"graphwindow\">{$es.name|niceText|replace:\" \":\"&nbsp;\"}</a> {if !$smarty.foreach.loopEstats.last}|{/if}\r\n		{foreachelse}\r\n			<b>No Available eStat Graphs</b>\r\n		{/foreach}\r\n		</small></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n{/if}\r\n\r\n<span id=\"eStatsSinker\">&nbsp;</span>\r\n{/if}\r\n<script type=\"text/javascript\">{literal}\r\n	function xDef() {\r\n		for(var i=0; i<arguments.length; ++i) {\r\n			if(typeof(arguments[i])==\'undefined\') return false;\r\n		}\r\n		return true;\r\n	}\r\n\r\n	function xPageY(e) {\r\n	  if (!(e=document.getElementById(e))) return 0;\r\n	  var y = 0;\r\n	  while (e) {\r\n	    if (xDef(e.offsetTop)) y += e.offsetTop;\r\n	    e = xDef(e.offsetParent) ? e.offsetParent : null;\r\n	  }\r\n	  return y;\r\n	}\r\n\r\n	parent.xHeight(\'profileUpdateIFrame\', xPageY(\'eStatsSinker\')+30);\r\n	parent.xHeight(\'statsContainer\', xPageY(\'eStatsSinker\')+30);\r\n\r\n	if (e=document.getElementById(\'graphLinksDiv\')) {\r\n		parent.updateGraphLinks(e.innerHTML);\r\n	}\r\n\r\n{/literal}</script>'),(5272,256,0.19,'smarty','0','Attempting to add style for even/odd cell rows.',1250657953,2,'24.10.198.118','{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}\r\n{include_php file=\"shared_handle:estats/userEntry\"}\r\n\r\n{capture name=\"headExtra\"}\r\n<script language=\"javascript\">{literal}\r\nfunction xWindow(name, w, h, x, y, loc, men, res, scr, sta, too)\r\n{\r\n  var f = \'\';\r\n  if (w && h) {\r\n    if (document.layers) f = \'screenX=\' + x + \',screenY=\' + y;\r\n    else f = \'left=\' + x + \',top=\' + y;\r\n    f += \',width=\' + w + \',height=\' + h + \',\';\r\n  }\r\n  f += (\'location=\'+loc+\',menubar=\'+men+\',resizable=\'+res\r\n    +\',scrollbars=\'+scr+\',status=\'+sta+\',toolbar=\'+too);\r\n  this.features = f;\r\n  this.name = name;\r\n  this.load = function(sUrl) {\r\n    if (this.wnd && !this.wnd.closed) this.wnd.location.href = sUrl;\r\n    else this.wnd = window.open(sUrl, this.name, this.features);\r\n    this.wnd.focus();\r\n    return false;\r\n  }\r\n}\r\nwinUpdater = new xWindow(\'nutritionWin\', 750, 500, 10, 10, \'yes\', \'no\', \'yes\', \'yes\', \'yes\', \'no\');\r\n{/literal}</script>\r\n{/capture}\r\n\r\n{if $userInfo.id}\r\n<form name=\"updateForm\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" name=\"start\" value=\"{$smarty.request.start}\">\r\n<input type=\"hidden\" name=\"userId\" value=\"{$smarty.request.userId}\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'statsUpdateTable\', \'\', \'showHide\');updateParentHeight();\"><img id=\"statsUpdateTable_img\" src=\"blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a>\r\n	</div>\r\n	Update Stats{if $userInfo.id neq $user->id} For: {$userInfo.firstName} {$userInfo.lastName} ({$userInfo.username}){/if}\r\n</h2>\r\n<table id=\"statsUpdateTable\" cellpadding=\"2\" cellspacing=\"2\" style=\"display:block;\">\r\n<tr>\r\n	<td colspan=\"4\" align=\"left\"><div>{if $lastWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$lastWeek}&userId={$userInfo.id}\">&lt; Previous Week</a>{/if}</div></td>\r\n	<td colspan=\"4\" align=\"right\"><div>{if $nextWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$nextWeek}&userId={$userInfo.id}\">Next Week &gt;</a>{/if}</div></td>\r\n</tr>\r\n<tr>\r\n	<td class=\"\"><div>&nbsp;</div></td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td width=\"75\" align=\"right\" class=\"datacell\"><b>{$dayInfo.$dayNo.timestamp|date_format2:\"l\"}</b><br />{$dayInfo.$dayNo.timestamp|date_format2:\"n/j/y\"}</td>\r\n	{/section}\r\n</tr>\r\n{assign var=\"columnCounter\" value=0}\r\n{foreach from=$estats item=\"estat\" name=\"estats_loop\"}\r\n{assign var=\"estatId\" value=$estat.id}\r\n{if $estat.frequency eq \"daily\"}\r\n<tr>	\r\n	<td align=\"right\" class=\"\">\r\n	{if $estat.description}\r\n		<a href=\"javascript://\" onmouseover=\"toggle(\'eStatNote_{$estatId}\');\" onmouseout=\"toggle(\'eStatNote_{$estatId}\');\"><b>{$estat.name|niceText}</b></a><br />\r\n		<div id=\"eStatNote_{$estatId}\" class=\"floatInfoBox\" style=\"display:none;\">&quot;{$estat.description}&quot;{if $estat.groupName}<br /><small><i>Requested By:</i> <b>{$estat.groupDescription}</b></small>{/if}</div>\r\n	{else}\r\n		<b>{$estat.name|niceText}</b><br />\r\n	{/if}\r\n		{if $estat.units}<small class=\"note\">({$estat.units.name|niceText})</small>{/if}</td>\r\n		{section loop=\"7\" name=\"day\"}\r\n			{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n			<td align=\"right\" class=\"datacell {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}\"><input tabindex=\"{$smarty.section.day.iteration*7}\" type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][estats][{$estatId}][value]\" value=\"{if $dayInfo.$dayNo.estats.$estatId.id gt 0}{$dayInfo.$dayNo.estats.$estatId.value}{/if}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][estats][{$estatId}][id]\" value=\"{$dayInfo.$dayNo.estats.$estatId.id}\"></td>\r\n		{/section}\r\n</tr>\r\n{/if}\r\n{/foreach}\r\n\r\n{foreach from=$estats item=\"estat\" name=\"estats_loop\"}\r\n{assign var=\"estatId\" value=$estat.id}\r\n{if $estat.frequency eq \"weekly\"}\r\n{if $columnCounter eq 0 OR !$hasShownWeeklyHeader}<tr>{/if}\r\n	{if $estat.frequency eq \"weekly\" && !$hasShownWeeklyHeader}\r\n		{assign var=\"hasShownWeeklyHeader\" value=1}\r\n		<td>&nbsp;</td>\r\n		<td colspan=\"7\" align=\"center\"><br /><small>The following statistics are entered only once per week.<br /><br /></small></td>\r\n	</tr>\r\n	<tr>\r\n	{/if}	\r\n	<td align=\"right\" class=\"\"{if $columnCounter gt 0} colspan=\"2\"{/if}>\r\n	{if $estat.description}\r\n		<a href=\"javascript://\" onmouseover=\"toggle(\'eStatNote_{$estatId}\');\" onmouseout=\"toggle(\'eStatNote_{$estatId}\');\"><b>{$estat.name|niceText}</b></a><br />\r\n		<div id=\"eStatNote_{$estatId}\" class=\"floatInfoBox\" style=\"display:none;\">&quot;{$estat.description}&quot;{if $estat.groupName}<br /><small><i>Requested By:</i> <b>{$estat.groupDescription}</b></small>{/if}</div>\r\n	{else}\r\n		<b>{$estat.name|niceText}</b><br />\r\n	{/if}\r\n		{if $estat.units}<small class=\"note\">({$estat.units.name|niceText})</small>{/if}</td>\r\n		{assign var=\"columnCounter\" value=$columnCounter|math:\"x+1\"}\r\n		<td align=\"center\" class=\"datacell {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}\"><input type=\"text\" class=\"largeInput\" name=\"day[1][estats][{$estatId}][value]\" value=\"{if $dayInfo.1.estats.$estatId.id gt 0}{$dayInfo.1.estats.$estatId.value}{/if}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][estats][{$estatId}][id]\" value=\"{$dayInfo.1.estats.$estatId.id}\"></td>\r\n{if !$hasShownWeeklyHeader OR $columnCounter eq 3}{assign var=\"columnCounter\" value=0}</tr>{/if}\r\n{/if}\r\n{/foreach}\r\n<tr>\r\n	<td colspan=\"8\" align=\"right\"><br />\r\n		<input type=\"submit\" class=\"button\" value=\"Save Updates!\" />\r\n		<input type=\"button\" value=\"Add a New Tracking Category\" onclick=\"location.replace(\'?pg=eStatWizard\');\" />\r\n	</td>\r\n</tr>\r\n</table>\r\n\r\n</form>\r\n\r\n{if $user->username eq \"trave\"}\r\n{include_php file=\"shared_handle:estats/getEstatsInfo\"}\r\n<div id=\"graphLinksDiv\" style=\"display:none;\">\r\n	<table width=\"100%\">\r\n	<tr>\r\n		<td width=\"100%\" align=\"center\"><small>\r\n		{foreach from=$aEstats item=\"es\" name=\"loopEstats\"}\r\n			<a href=\"?pg=flashgraph-frame&format=small&userIds={$smarty.request.userId|default:$user->id}&esId={$es.id}&type={$es.name|niceText|htmlspecialchars}&precision={$es.units.decimalPlaces|default:1}\" target=\"graphwindow\">{$es.name|niceText|replace:\" \":\"&nbsp;\"}</a> {if !$smarty.foreach.loopEstats.last}|{/if}\r\n		{foreachelse}\r\n			<b>No Available eStat Graphs</b>\r\n		{/foreach}\r\n		</small></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n{/if}\r\n\r\n<span id=\"eStatsSinker\">&nbsp;</span>\r\n{/if}\r\n<script type=\"text/javascript\">{literal}\r\n	function xDef() {\r\n		for(var i=0; i<arguments.length; ++i) {\r\n			if(typeof(arguments[i])==\'undefined\') return false;\r\n		}\r\n		return true;\r\n	}\r\n\r\n	function xPageY(e) {\r\n	  if (!(e=document.getElementById(e))) return 0;\r\n	  var y = 0;\r\n	  while (e) {\r\n	    if (xDef(e.offsetTop)) y += e.offsetTop;\r\n	    e = xDef(e.offsetParent) ? e.offsetParent : null;\r\n	  }\r\n	  return y;\r\n	}\r\n\r\n	parent.xHeight(\'profileUpdateIFrame\', xPageY(\'eStatsSinker\')+30);\r\n	parent.xHeight(\'statsContainer\', xPageY(\'eStatsSinker\')+30);\r\n\r\n	if (e=document.getElementById(\'graphLinksDiv\')) {\r\n		parent.updateGraphLinks(e.innerHTML);\r\n	}\r\n\r\n{/literal}</script>'),(5273,256,0.20,'smarty','0','Attempting to add style for even/odd cell rows.',1250658127,2,'24.10.198.118','{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}\r\n{include_php file=\"shared_handle:estats/userEntry\"}\r\n\r\n{capture name=\"headExtra\"}\r\n<script language=\"javascript\">{literal}\r\nfunction xWindow(name, w, h, x, y, loc, men, res, scr, sta, too)\r\n{\r\n  var f = \'\';\r\n  if (w && h) {\r\n    if (document.layers) f = \'screenX=\' + x + \',screenY=\' + y;\r\n    else f = \'left=\' + x + \',top=\' + y;\r\n    f += \',width=\' + w + \',height=\' + h + \',\';\r\n  }\r\n  f += (\'location=\'+loc+\',menubar=\'+men+\',resizable=\'+res\r\n    +\',scrollbars=\'+scr+\',status=\'+sta+\',toolbar=\'+too);\r\n  this.features = f;\r\n  this.name = name;\r\n  this.load = function(sUrl) {\r\n    if (this.wnd && !this.wnd.closed) this.wnd.location.href = sUrl;\r\n    else this.wnd = window.open(sUrl, this.name, this.features);\r\n    this.wnd.focus();\r\n    return false;\r\n  }\r\n}\r\nwinUpdater = new xWindow(\'nutritionWin\', 750, 500, 10, 10, \'yes\', \'no\', \'yes\', \'yes\', \'yes\', \'no\');\r\n{/literal}</script>\r\n{/capture}\r\n\r\n{if $userInfo.id}\r\n<form name=\"updateForm\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" name=\"start\" value=\"{$smarty.request.start}\">\r\n<input type=\"hidden\" name=\"userId\" value=\"{$smarty.request.userId}\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'statsUpdateTable\', \'\', \'showHide\');updateParentHeight();\"><img id=\"statsUpdateTable_img\" src=\"blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a>\r\n	</div>\r\n	Update Stats{if $userInfo.id neq $user->id} For: {$userInfo.firstName} {$userInfo.lastName} ({$userInfo.username}){/if}\r\n</h2>\r\n<table id=\"statsUpdateTable\" cellpadding=\"2\" cellspacing=\"2\" style=\"display:block;\">\r\n<tr>\r\n	<td colspan=\"4\" align=\"left\"><div>{if $lastWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$lastWeek}&userId={$userInfo.id}\">&lt; Previous Week</a>{/if}</div></td>\r\n	<td colspan=\"4\" align=\"right\"><div>{if $nextWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$nextWeek}&userId={$userInfo.id}\">Next Week &gt;</a>{/if}</div></td>\r\n</tr>\r\n<tr>\r\n	<td class=\"\"><div>&nbsp;</div></td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td width=\"75\" align=\"right\" class=\"datacell\"><b>{$dayInfo.$dayNo.timestamp|date_format2:\"l\"}</b><br />{$dayInfo.$dayNo.timestamp|date_format2:\"n/j/y\"}</td>\r\n	{/section}\r\n</tr>\r\n{assign var=\"columnCounter\" value=0}\r\n{foreach from=$estats item=\"estat\" name=\"estats_loop\"}\r\n{assign var=\"estatId\" value=$estat.id}\r\n{if $estat.frequency eq \"daily\"}\r\n<tr>	\r\n	<td align=\"right\" class=\"\">\r\n	{if $estat.description}\r\n		<a href=\"javascript://\" onmouseover=\"toggle(\'eStatNote_{$estatId}\');\" onmouseout=\"toggle(\'eStatNote_{$estatId}\');\"><b>{$estat.name|niceText}</b></a><br />\r\n		<div id=\"eStatNote_{$estatId}\" class=\"floatInfoBox\" style=\"display:none;\">&quot;{$estat.description}&quot;{if $estat.groupName}<br /><small><i>Requested By:</i> <b>{$estat.groupDescription}</b></small>{/if}</div>\r\n	{else}\r\n		<b>{$estat.name|niceText}</b><br />\r\n	{/if}\r\n		{if $estat.units}<small class=\"note\">({$estat.units.name|niceText})</small>{/if}</td>\r\n		{section loop=\"7\" name=\"day\"}\r\n			{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n			<td align=\"right\" class=\"datacell {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\"><input tabindex=\"{$smarty.section.day.iteration*7}\" type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][estats][{$estatId}][value]\" value=\"{if $dayInfo.$dayNo.estats.$estatId.id gt 0}{$dayInfo.$dayNo.estats.$estatId.value}{/if}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][estats][{$estatId}][id]\" value=\"{$dayInfo.$dayNo.estats.$estatId.id}\"></td>\r\n		{/section}\r\n</tr>\r\n{/if}\r\n{/foreach}\r\n\r\n{foreach from=$estats item=\"estat\" name=\"estats_loop\"}\r\n{assign var=\"estatId\" value=$estat.id}\r\n{if $estat.frequency eq \"weekly\"}\r\n{if $columnCounter eq 0 OR !$hasShownWeeklyHeader}<tr>{/if}\r\n	{if $estat.frequency eq \"weekly\" && !$hasShownWeeklyHeader}\r\n		{assign var=\"hasShownWeeklyHeader\" value=1}\r\n		<td>&nbsp;</td>\r\n		<td colspan=\"7\" align=\"center\"><br /><small>The following statistics are entered only once per week.<br /><br /></small></td>\r\n	</tr>\r\n	<tr>\r\n	{/if}	\r\n	<td align=\"right\" class=\"\"{if $columnCounter gt 0} colspan=\"2\"{/if}>\r\n	{if $estat.description}\r\n		<a href=\"javascript://\" onmouseover=\"toggle(\'eStatNote_{$estatId}\');\" onmouseout=\"toggle(\'eStatNote_{$estatId}\');\"><b>{$estat.name|niceText}</b></a><br />\r\n		<div id=\"eStatNote_{$estatId}\" class=\"floatInfoBox\" style=\"display:none;\">&quot;{$estat.description}&quot;{if $estat.groupName}<br /><small><i>Requested By:</i> <b>{$estat.groupDescription}</b></small>{/if}</div>\r\n	{else}\r\n		<b>{$estat.name|niceText}</b><br />\r\n	{/if}\r\n		{if $estat.units}<small class=\"note\">({$estat.units.name|niceText})</small>{/if}</td>\r\n		{assign var=\"columnCounter\" value=$columnCounter|math:\"x+1\"}\r\n		<td align=\"center\" class=\"datacell {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\"><input type=\"text\" class=\"largeInput\" name=\"day[1][estats][{$estatId}][value]\" value=\"{if $dayInfo.1.estats.$estatId.id gt 0}{$dayInfo.1.estats.$estatId.value}{/if}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][estats][{$estatId}][id]\" value=\"{$dayInfo.1.estats.$estatId.id}\"></td>\r\n{if !$hasShownWeeklyHeader OR $columnCounter eq 3}{assign var=\"columnCounter\" value=0}</tr>{/if}\r\n{/if}\r\n{/foreach}\r\n<tr>\r\n	<td colspan=\"8\" align=\"right\"><br />\r\n		<input type=\"submit\" class=\"button\" value=\"Save Updates!\" />\r\n		<input type=\"button\" value=\"Add a New Tracking Category\" onclick=\"location.replace(\'?pg=eStatWizard\');\" />\r\n	</td>\r\n</tr>\r\n</table>\r\n\r\n</form>\r\n\r\n{if $user->username eq \"trave\"}\r\n{include_php file=\"shared_handle:estats/getEstatsInfo\"}\r\n<div id=\"graphLinksDiv\" style=\"display:none;\">\r\n	<table width=\"100%\">\r\n	<tr>\r\n		<td width=\"100%\" align=\"center\"><small>\r\n		{foreach from=$aEstats item=\"es\" name=\"loopEstats\"}\r\n			<a href=\"?pg=flashgraph-frame&format=small&userIds={$smarty.request.userId|default:$user->id}&esId={$es.id}&type={$es.name|niceText|htmlspecialchars}&precision={$es.units.decimalPlaces|default:1}\" target=\"graphwindow\">{$es.name|niceText|replace:\" \":\"&nbsp;\"}</a> {if !$smarty.foreach.loopEstats.last}|{/if}\r\n		{foreachelse}\r\n			<b>No Available eStat Graphs</b>\r\n		{/foreach}\r\n		</small></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n{/if}\r\n\r\n<span id=\"eStatsSinker\">&nbsp;</span>\r\n{/if}\r\n<script type=\"text/javascript\">{literal}\r\n	function xDef() {\r\n		for(var i=0; i<arguments.length; ++i) {\r\n			if(typeof(arguments[i])==\'undefined\') return false;\r\n		}\r\n		return true;\r\n	}\r\n\r\n	function xPageY(e) {\r\n	  if (!(e=document.getElementById(e))) return 0;\r\n	  var y = 0;\r\n	  while (e) {\r\n	    if (xDef(e.offsetTop)) y += e.offsetTop;\r\n	    e = xDef(e.offsetParent) ? e.offsetParent : null;\r\n	  }\r\n	  return y;\r\n	}\r\n\r\n	parent.xHeight(\'profileUpdateIFrame\', xPageY(\'eStatsSinker\')+30);\r\n	parent.xHeight(\'statsContainer\', xPageY(\'eStatsSinker\')+30);\r\n\r\n	if (e=document.getElementById(\'graphLinksDiv\')) {\r\n		parent.updateGraphLinks(e.innerHTML);\r\n	}\r\n\r\n{/literal}</script>'),(5274,256,0.21,'smarty','0','Attempting to add style for even/odd cell rows.',1250658255,2,'24.10.198.118','{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}\r\n{include_php file=\"shared_handle:estats/userEntry\"}\r\n\r\n{capture name=\"headExtra\"}\r\n<script language=\"javascript\">{literal}\r\nfunction xWindow(name, w, h, x, y, loc, men, res, scr, sta, too)\r\n{\r\n  var f = \'\';\r\n  if (w && h) {\r\n    if (document.layers) f = \'screenX=\' + x + \',screenY=\' + y;\r\n    else f = \'left=\' + x + \',top=\' + y;\r\n    f += \',width=\' + w + \',height=\' + h + \',\';\r\n  }\r\n  f += (\'location=\'+loc+\',menubar=\'+men+\',resizable=\'+res\r\n    +\',scrollbars=\'+scr+\',status=\'+sta+\',toolbar=\'+too);\r\n  this.features = f;\r\n  this.name = name;\r\n  this.load = function(sUrl) {\r\n    if (this.wnd && !this.wnd.closed) this.wnd.location.href = sUrl;\r\n    else this.wnd = window.open(sUrl, this.name, this.features);\r\n    this.wnd.focus();\r\n    return false;\r\n  }\r\n}\r\nwinUpdater = new xWindow(\'nutritionWin\', 750, 500, 10, 10, \'yes\', \'no\', \'yes\', \'yes\', \'yes\', \'no\');\r\n{/literal}</script>\r\n{/capture}\r\n\r\n{if $userInfo.id}\r\n<form name=\"updateForm\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" name=\"start\" value=\"{$smarty.request.start}\">\r\n<input type=\"hidden\" name=\"userId\" value=\"{$smarty.request.userId}\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'statsUpdateTable\', \'\', \'showHide\');updateParentHeight();\"><img id=\"statsUpdateTable_img\" src=\"blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a>\r\n	</div>\r\n	Update Stats{if $userInfo.id neq $user->id} For: {$userInfo.firstName} {$userInfo.lastName} ({$userInfo.username}){/if}\r\n</h2>\r\n<table id=\"statsUpdateTable\" cellpadding=\"2\" cellspacing=\"2\" style=\"display:block;\">\r\n<tr>\r\n	<td colspan=\"4\" align=\"left\"><div>{if $lastWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$lastWeek}&userId={$userInfo.id}\">&lt; Previous Week</a>{/if}</div></td>\r\n	<td colspan=\"4\" align=\"right\"><div>{if $nextWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$nextWeek}&userId={$userInfo.id}\">Next Week &gt;</a>{/if}</div></td>\r\n</tr>\r\n<tr>\r\n	<td class=\"\"><div>&nbsp;</div></td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td width=\"75\" align=\"right\" class=\"datacell\"><b>{$dayInfo.$dayNo.timestamp|date_format2:\"l\"}</b><br />{$dayInfo.$dayNo.timestamp|date_format2:\"n/j/y\"}</td>\r\n	{/section}\r\n</tr>\r\n{assign var=\"columnCounter\" value=0}\r\n{foreach from=$estats item=\"estat\" name=\"estats_loop\"}\r\n{assign var=\"estatId\" value=$estat.id}\r\n{if $estat.frequency eq \"daily\"}\r\n<tr>	\r\n	<td align=\"right\" class=\"\">\r\n	{if $estat.description}\r\n		<a href=\"javascript://\" onmouseover=\"toggle(\'eStatNote_{$estatId}\');\" onmouseout=\"toggle(\'eStatNote_{$estatId}\');\"><b>{$estat.name|niceText}</b></a><br />\r\n		<div id=\"eStatNote_{$estatId}\" class=\"floatInfoBox\" style=\"display:none;\">&quot;{$estat.description}&quot;{if $estat.groupName}<br /><small><i>Requested By:</i> <b>{$estat.groupDescription}</b></small>{/if}</div>\r\n	{else}\r\n		<b>{$estat.name|niceText}</b><br />\r\n	{/if}\r\n		{if $estat.units}<small class=\"note\">({$estat.units.name|niceText})</small>{/if}</td>\r\n		{section loop=\"7\" name=\"day\"}\r\n			{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n			<td align=\"right\" class=\"datacell {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\"><input tabindex=\"{$smarty.section.day.iteration*7}\" type=\"text\" class=\"largeInput {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\" name=\"day[{$dayNo}][estats][{$estatId}][value]\" value=\"{if $dayInfo.$dayNo.estats.$estatId.id gt 0}{$dayInfo.$dayNo.estats.$estatId.value}{/if}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][estats][{$estatId}][id]\" value=\"{$dayInfo.$dayNo.estats.$estatId.id}\"></td>\r\n		{/section}\r\n</tr>\r\n{/if}\r\n{/foreach}\r\n\r\n{foreach from=$estats item=\"estat\" name=\"estats_loop\"}\r\n{assign var=\"estatId\" value=$estat.id}\r\n{if $estat.frequency eq \"weekly\"}\r\n{if $columnCounter eq 0 OR !$hasShownWeeklyHeader}<tr>{/if}\r\n	{if $estat.frequency eq \"weekly\" && !$hasShownWeeklyHeader}\r\n		{assign var=\"hasShownWeeklyHeader\" value=1}\r\n		<td>&nbsp;</td>\r\n		<td colspan=\"7\" align=\"center\"><br /><small>The following statistics are entered only once per week.<br /><br /></small></td>\r\n	</tr>\r\n	<tr>\r\n	{/if}	\r\n	<td align=\"right\" class=\"\"{if $columnCounter gt 0} colspan=\"2\"{/if}>\r\n	{if $estat.description}\r\n		<a href=\"javascript://\" onmouseover=\"toggle(\'eStatNote_{$estatId}\');\" onmouseout=\"toggle(\'eStatNote_{$estatId}\');\"><b>{$estat.name|niceText}</b></a><br />\r\n		<div id=\"eStatNote_{$estatId}\" class=\"floatInfoBox\" style=\"display:none;\">&quot;{$estat.description}&quot;{if $estat.groupName}<br /><small><i>Requested By:</i> <b>{$estat.groupDescription}</b></small>{/if}</div>\r\n	{else}\r\n		<b>{$estat.name|niceText}</b><br />\r\n	{/if}\r\n		{if $estat.units}<small class=\"note\">({$estat.units.name|niceText})</small>{/if}</td>\r\n		{assign var=\"columnCounter\" value=$columnCounter|math:\"x+1\"}\r\n		<td align=\"center\" class=\"datacell {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\"><input type=\"text\" class=\"largeInput\" name=\"day[1][estats][{$estatId}][value]\" value=\"{if $dayInfo.1.estats.$estatId.id gt 0}{$dayInfo.1.estats.$estatId.value}{/if}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][estats][{$estatId}][id]\" value=\"{$dayInfo.1.estats.$estatId.id}\"></td>\r\n{if !$hasShownWeeklyHeader OR $columnCounter eq 3}{assign var=\"columnCounter\" value=0}</tr>{/if}\r\n{/if}\r\n{/foreach}\r\n<tr>\r\n	<td colspan=\"8\" align=\"right\"><br />\r\n		<input type=\"submit\" class=\"button\" value=\"Save Updates!\" />\r\n		<input type=\"button\" value=\"Add a New Tracking Category\" onclick=\"location.replace(\'?pg=eStatWizard\');\" />\r\n	</td>\r\n</tr>\r\n</table>\r\n\r\n</form>\r\n\r\n{if $user->username eq \"trave\"}\r\n{include_php file=\"shared_handle:estats/getEstatsInfo\"}\r\n<div id=\"graphLinksDiv\" style=\"display:none;\">\r\n	<table width=\"100%\">\r\n	<tr>\r\n		<td width=\"100%\" align=\"center\"><small>\r\n		{foreach from=$aEstats item=\"es\" name=\"loopEstats\"}\r\n			<a href=\"?pg=flashgraph-frame&format=small&userIds={$smarty.request.userId|default:$user->id}&esId={$es.id}&type={$es.name|niceText|htmlspecialchars}&precision={$es.units.decimalPlaces|default:1}\" target=\"graphwindow\">{$es.name|niceText|replace:\" \":\"&nbsp;\"}</a> {if !$smarty.foreach.loopEstats.last}|{/if}\r\n		{foreachelse}\r\n			<b>No Available eStat Graphs</b>\r\n		{/foreach}\r\n		</small></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n{/if}\r\n\r\n<span id=\"eStatsSinker\">&nbsp;</span>\r\n{/if}\r\n<script type=\"text/javascript\">{literal}\r\n	function xDef() {\r\n		for(var i=0; i<arguments.length; ++i) {\r\n			if(typeof(arguments[i])==\'undefined\') return false;\r\n		}\r\n		return true;\r\n	}\r\n\r\n	function xPageY(e) {\r\n	  if (!(e=document.getElementById(e))) return 0;\r\n	  var y = 0;\r\n	  while (e) {\r\n	    if (xDef(e.offsetTop)) y += e.offsetTop;\r\n	    e = xDef(e.offsetParent) ? e.offsetParent : null;\r\n	  }\r\n	  return y;\r\n	}\r\n\r\n	parent.xHeight(\'profileUpdateIFrame\', xPageY(\'eStatsSinker\')+30);\r\n	parent.xHeight(\'statsContainer\', xPageY(\'eStatsSinker\')+30);\r\n\r\n	if (e=document.getElementById(\'graphLinksDiv\')) {\r\n		parent.updateGraphLinks(e.innerHTML);\r\n	}\r\n\r\n{/literal}</script>'),(5275,256,0.22,'smarty','0','Attempting to add style for even/odd cell rows.',1250658352,2,'24.10.198.118','{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}\r\n{include_php file=\"shared_handle:estats/userEntry\"}\r\n\r\n{capture name=\"headExtra\"}\r\n<script language=\"javascript\">{literal}\r\nfunction xWindow(name, w, h, x, y, loc, men, res, scr, sta, too)\r\n{\r\n  var f = \'\';\r\n  if (w && h) {\r\n    if (document.layers) f = \'screenX=\' + x + \',screenY=\' + y;\r\n    else f = \'left=\' + x + \',top=\' + y;\r\n    f += \',width=\' + w + \',height=\' + h + \',\';\r\n  }\r\n  f += (\'location=\'+loc+\',menubar=\'+men+\',resizable=\'+res\r\n    +\',scrollbars=\'+scr+\',status=\'+sta+\',toolbar=\'+too);\r\n  this.features = f;\r\n  this.name = name;\r\n  this.load = function(sUrl) {\r\n    if (this.wnd && !this.wnd.closed) this.wnd.location.href = sUrl;\r\n    else this.wnd = window.open(sUrl, this.name, this.features);\r\n    this.wnd.focus();\r\n    return false;\r\n  }\r\n}\r\nwinUpdater = new xWindow(\'nutritionWin\', 750, 500, 10, 10, \'yes\', \'no\', \'yes\', \'yes\', \'yes\', \'no\');\r\n{/literal}</script>\r\n{/capture}\r\n\r\n{if $userInfo.id}\r\n<form name=\"updateForm\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" name=\"start\" value=\"{$smarty.request.start}\">\r\n<input type=\"hidden\" name=\"userId\" value=\"{$smarty.request.userId}\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'statsUpdateTable\', \'\', \'showHide\');updateParentHeight();\"><img id=\"statsUpdateTable_img\" src=\"blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a>\r\n	</div>\r\n	Update Stats{if $userInfo.id neq $user->id} For: {$userInfo.firstName} {$userInfo.lastName} ({$userInfo.username}){/if}\r\n</h2>\r\n<table id=\"statsUpdateTable\" cellpadding=\"2\" cellspacing=\"2\" style=\"display:block;\">\r\n<tr>\r\n	<td colspan=\"4\" align=\"left\"><div>{if $lastWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$lastWeek}&userId={$userInfo.id}\">&lt; Previous Week</a>{/if}</div></td>\r\n	<td colspan=\"4\" align=\"right\"><div>{if $nextWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$nextWeek}&userId={$userInfo.id}\">Next Week &gt;</a>{/if}</div></td>\r\n</tr>\r\n<tr>\r\n	<td class=\"\"><div>&nbsp;</div></td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td width=\"75\" align=\"right\" class=\"datacell\"><b>{$dayInfo.$dayNo.timestamp|date_format2:\"l\"}</b><br />{$dayInfo.$dayNo.timestamp|date_format2:\"n/j/y\"}</td>\r\n	{/section}\r\n</tr>\r\n{assign var=\"columnCounter\" value=0}\r\n{foreach from=$estats item=\"estat\" name=\"estats_loop\"}\r\n{assign var=\"estatId\" value=$estat.id}\r\n{if $estat.frequency eq \"daily\"}\r\n<tr>	\r\n	<td align=\"right\" class=\"{if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\">\r\n	{if $estat.description}\r\n		<a href=\"javascript://\" onmouseover=\"toggle(\'eStatNote_{$estatId}\');\" onmouseout=\"toggle(\'eStatNote_{$estatId}\');\"><b>{$estat.name|niceText}</b></a><br />\r\n		<div id=\"eStatNote_{$estatId}\" class=\"floatInfoBox\" style=\"display:none;\">&quot;{$estat.description}&quot;{if $estat.groupName}<br /><small><i>Requested By:</i> <b>{$estat.groupDescription}</b></small>{/if}</div>\r\n	{else}\r\n		<b>{$estat.name|niceText}</b><br />\r\n	{/if}\r\n		{if $estat.units}<small class=\"note\">({$estat.units.name|niceText})</small>{/if}</td>\r\n		{section loop=\"7\" name=\"day\"}\r\n			{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n			<td align=\"right\" class=\"datacell {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\"><input tabindex=\"{$smarty.section.day.iteration*7}\" type=\"text\" class=\"largeInput {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\" name=\"day[{$dayNo}][estats][{$estatId}][value]\" value=\"{if $dayInfo.$dayNo.estats.$estatId.id gt 0}{$dayInfo.$dayNo.estats.$estatId.value}{/if}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][estats][{$estatId}][id]\" value=\"{$dayInfo.$dayNo.estats.$estatId.id}\"></td>\r\n		{/section}\r\n</tr>\r\n{/if}\r\n{/foreach}\r\n\r\n{foreach from=$estats item=\"estat\" name=\"estats_loop\"}\r\n{assign var=\"estatId\" value=$estat.id}\r\n{if $estat.frequency eq \"weekly\"}\r\n{if $columnCounter eq 0 OR !$hasShownWeeklyHeader}<tr>{/if}\r\n	{if $estat.frequency eq \"weekly\" && !$hasShownWeeklyHeader}\r\n		{assign var=\"hasShownWeeklyHeader\" value=1}\r\n		<td>&nbsp;</td>\r\n		<td colspan=\"7\" align=\"center\"><br /><small>The following statistics are entered only once per week.<br /><br /></small></td>\r\n	</tr>\r\n	<tr>\r\n	{/if}	\r\n	<td align=\"right\" class=\"\"{if $columnCounter gt 0} colspan=\"2\"{/if}>\r\n	{if $estat.description}\r\n		<a href=\"javascript://\" onmouseover=\"toggle(\'eStatNote_{$estatId}\');\" onmouseout=\"toggle(\'eStatNote_{$estatId}\');\"><b>{$estat.name|niceText}</b></a><br />\r\n		<div id=\"eStatNote_{$estatId}\" class=\"floatInfoBox\" style=\"display:none;\">&quot;{$estat.description}&quot;{if $estat.groupName}<br /><small><i>Requested By:</i> <b>{$estat.groupDescription}</b></small>{/if}</div>\r\n	{else}\r\n		<b>{$estat.name|niceText}</b><br />\r\n	{/if}\r\n		{if $estat.units}<small class=\"note\">({$estat.units.name|niceText})</small>{/if}</td>\r\n		{assign var=\"columnCounter\" value=$columnCounter|math:\"x+1\"}\r\n		<td align=\"center\" class=\"datacell {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\"><input type=\"text\" class=\"largeInput\" name=\"day[1][estats][{$estatId}][value]\" value=\"{if $dayInfo.1.estats.$estatId.id gt 0}{$dayInfo.1.estats.$estatId.value}{/if}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][estats][{$estatId}][id]\" value=\"{$dayInfo.1.estats.$estatId.id}\"></td>\r\n{if !$hasShownWeeklyHeader OR $columnCounter eq 3}{assign var=\"columnCounter\" value=0}</tr>{/if}\r\n{/if}\r\n{/foreach}\r\n<tr>\r\n	<td colspan=\"8\" align=\"right\"><br />\r\n		<input type=\"submit\" class=\"button\" value=\"Save Updates!\" />\r\n		<input type=\"button\" value=\"Add a New Tracking Category\" onclick=\"location.replace(\'?pg=eStatWizard\');\" />\r\n	</td>\r\n</tr>\r\n</table>\r\n\r\n</form>\r\n\r\n{if $user->username eq \"trave\"}\r\n{include_php file=\"shared_handle:estats/getEstatsInfo\"}\r\n<div id=\"graphLinksDiv\" style=\"display:none;\">\r\n	<table width=\"100%\">\r\n	<tr>\r\n		<td width=\"100%\" align=\"center\"><small>\r\n		{foreach from=$aEstats item=\"es\" name=\"loopEstats\"}\r\n			<a href=\"?pg=flashgraph-frame&format=small&userIds={$smarty.request.userId|default:$user->id}&esId={$es.id}&type={$es.name|niceText|htmlspecialchars}&precision={$es.units.decimalPlaces|default:1}\" target=\"graphwindow\">{$es.name|niceText|replace:\" \":\"&nbsp;\"}</a> {if !$smarty.foreach.loopEstats.last}|{/if}\r\n		{foreachelse}\r\n			<b>No Available eStat Graphs</b>\r\n		{/foreach}\r\n		</small></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n{/if}\r\n\r\n<span id=\"eStatsSinker\">&nbsp;</span>\r\n{/if}\r\n<script type=\"text/javascript\">{literal}\r\n	function xDef() {\r\n		for(var i=0; i<arguments.length; ++i) {\r\n			if(typeof(arguments[i])==\'undefined\') return false;\r\n		}\r\n		return true;\r\n	}\r\n\r\n	function xPageY(e) {\r\n	  if (!(e=document.getElementById(e))) return 0;\r\n	  var y = 0;\r\n	  while (e) {\r\n	    if (xDef(e.offsetTop)) y += e.offsetTop;\r\n	    e = xDef(e.offsetParent) ? e.offsetParent : null;\r\n	  }\r\n	  return y;\r\n	}\r\n\r\n	parent.xHeight(\'profileUpdateIFrame\', xPageY(\'eStatsSinker\')+30);\r\n	parent.xHeight(\'statsContainer\', xPageY(\'eStatsSinker\')+30);\r\n\r\n	if (e=document.getElementById(\'graphLinksDiv\')) {\r\n		parent.updateGraphLinks(e.innerHTML);\r\n	}\r\n\r\n{/literal}</script>'),(5276,256,0.23,'smarty','0','Adding an \'update stats here\' floating div',1250658760,2,'24.10.198.118','{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}\r\n{include_php file=\"shared_handle:estats/userEntry\"}\r\n\r\n{capture name=\"headExtra\"}\r\n<script language=\"javascript\">{literal}\r\nfunction xWindow(name, w, h, x, y, loc, men, res, scr, sta, too)\r\n{\r\n  var f = \'\';\r\n  if (w && h) {\r\n    if (document.layers) f = \'screenX=\' + x + \',screenY=\' + y;\r\n    else f = \'left=\' + x + \',top=\' + y;\r\n    f += \',width=\' + w + \',height=\' + h + \',\';\r\n  }\r\n  f += (\'location=\'+loc+\',menubar=\'+men+\',resizable=\'+res\r\n    +\',scrollbars=\'+scr+\',status=\'+sta+\',toolbar=\'+too);\r\n  this.features = f;\r\n  this.name = name;\r\n  this.load = function(sUrl) {\r\n    if (this.wnd && !this.wnd.closed) this.wnd.location.href = sUrl;\r\n    else this.wnd = window.open(sUrl, this.name, this.features);\r\n    this.wnd.focus();\r\n    return false;\r\n  }\r\n}\r\nwinUpdater = new xWindow(\'nutritionWin\', 750, 500, 10, 10, \'yes\', \'no\', \'yes\', \'yes\', \'yes\', \'no\');\r\n{/literal}</script>\r\n{/capture}\r\n\r\n{if $userInfo.id}\r\n\r\n<div style=\"position:absolute; width:100px; height:100px; left:100px; right:100px; background-color:#FFFF99; font-size:14pt;\" onmouseover=\"this.style.display=\'none\';\">\r\n	Update your stats here!\r\n</div>	\r\n\r\n<form name=\"updateForm\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" name=\"start\" value=\"{$smarty.request.start}\">\r\n<input type=\"hidden\" name=\"userId\" value=\"{$smarty.request.userId}\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'statsUpdateTable\', \'\', \'showHide\');updateParentHeight();\"><img id=\"statsUpdateTable_img\" src=\"blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a>\r\n	</div>\r\n	Update Stats{if $userInfo.id neq $user->id} For: {$userInfo.firstName} {$userInfo.lastName} ({$userInfo.username}){/if}\r\n</h2>\r\n<table id=\"statsUpdateTable\" cellpadding=\"2\" cellspacing=\"2\" style=\"display:block;\">\r\n<tr>\r\n	<td colspan=\"4\" align=\"left\"><div>{if $lastWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$lastWeek}&userId={$userInfo.id}\">&lt; Previous Week</a>{/if}</div></td>\r\n	<td colspan=\"4\" align=\"right\"><div>{if $nextWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$nextWeek}&userId={$userInfo.id}\">Next Week &gt;</a>{/if}</div></td>\r\n</tr>\r\n<tr>\r\n	<td class=\"\"><div>&nbsp;</div></td>\r\n'),(5277,256,0.24,'smarty','0','Adding a \'Update Here\' floating note;',1250658847,2,'24.10.198.118','{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}\r\n{include_php file=\"shared_handle:estats/userEntry\"}\r\n\r\n{capture name=\"headExtra\"}\r\n<script language=\"javascript\">{literal}\r\nfunction xWindow(name, w, h, x, y, loc, men, res, scr, sta, too)\r\n{\r\n  var f = \'\';\r\n  if (w && h) {\r\n    if (document.layers) f = \'screenX=\' + x + \',screenY=\' + y;\r\n    else f = \'left=\' + x + \',top=\' + y;\r\n    f += \',width=\' + w + \',height=\' + h + \',\';\r\n  }\r\n  f += (\'location=\'+loc+\',menubar=\'+men+\',resizable=\'+res\r\n    +\',scrollbars=\'+scr+\',status=\'+sta+\',toolbar=\'+too);\r\n  this.features = f;\r\n  this.name = name;\r\n  this.load = function(sUrl) {\r\n    if (this.wnd && !this.wnd.closed) this.wnd.location.href = sUrl;\r\n    else this.wnd = window.open(sUrl, this.name, this.features);\r\n    this.wnd.focus();\r\n    return false;\r\n  }\r\n}\r\nwinUpdater = new xWindow(\'nutritionWin\', 750, 500, 10, 10, \'yes\', \'no\', \'yes\', \'yes\', \'yes\', \'no\');\r\n{/literal}</script>\r\n{/capture}\r\n\r\n{if $userInfo.id}\r\n\r\n<div style=\"position:absolute; width:100px; height:100px; left:100px; right:100px; background-color:#FFFF99; font-size:14pt;\" onmouseover=\"this.style.display=\'none\';\">\r\n	Update your stats here!\r\n</div>	\r\n\r\n<form name=\"updateForm\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" name=\"start\" value=\"{$smarty.request.start}\">\r\n<input type=\"hidden\" name=\"userId\" value=\"{$smarty.request.userId}\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'statsUpdateTable\', \'\', \'showHide\');updateParentHeight();\"><img id=\"statsUpdateTable_img\" src=\"blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a>\r\n	</div>\r\n	Update Stats{if $userInfo.id neq $user->id} For: {$userInfo.firstName} {$userInfo.lastName} ({$userInfo.username}){/if}\r\n</h2>\r\n<table id=\"statsUpdateTable\" cellpadding=\"2\" cellspacing=\"2\" style=\"display:block;\">\r\n<tr>\r\n	<td colspan=\"4\" align=\"left\"><div>{if $lastWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$lastWeek}&userId={$userInfo.id}\">&lt; Previous Week</a>{/if}</div></td>\r\n	<td colspan=\"4\" align=\"right\"><div>{if $nextWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$nextWeek}&userId={$userInfo.id}\">Next Week &gt;</a>{/if}</div></td>\r\n</tr>\r\n<tr>\r\n	<td class=\"\"><div>&nbsp;</div></td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td width=\"75\" align=\"right\" class=\"datacell\"><b>{$dayInfo.$dayNo.timestamp|date_format2:\"l\"}</b><br />{$dayInfo.$dayNo.timestamp|date_format2:\"n/j/y\"}</td>\r\n	{/section}\r\n</tr>\r\n{assign var=\"columnCounter\" value=0}\r\n{foreach from=$estats item=\"estat\" name=\"estats_loop\"}\r\n{assign var=\"estatId\" value=$estat.id}\r\n{if $estat.frequency eq \"daily\"}\r\n<tr>	\r\n	<td align=\"right\" class=\"{if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\">\r\n	{if $estat.description}\r\n		<a href=\"javascript://\" onmouseover=\"toggle(\'eStatNote_{$estatId}\');\" onmouseout=\"toggle(\'eStatNote_{$estatId}\');\"><b>{$estat.name|niceText}</b></a><br />\r\n		<div id=\"eStatNote_{$estatId}\" class=\"floatInfoBox\" style=\"display:none;\">&quot;{$estat.description}&quot;{if $estat.groupName}<br /><small><i>Requested By:</i> <b>{$estat.groupDescription}</b></small>{/if}</div>\r\n	{else}\r\n		<b>{$estat.name|niceText}</b><br />\r\n	{/if}\r\n		{if $estat.units}<small class=\"note\">({$estat.units.name|niceText})</small>{/if}</td>\r\n		{section loop=\"7\" name=\"day\"}\r\n			{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n			<td align=\"right\" class=\"datacell {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\"><input tabindex=\"{$smarty.section.day.iteration*7}\" type=\"text\" class=\"largeInput {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\" name=\"day[{$dayNo}][estats][{$estatId}][value]\" value=\"{if $dayInfo.$dayNo.estats.$estatId.id gt 0}{$dayInfo.$dayNo.estats.$estatId.value}{/if}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][estats][{$estatId}][id]\" value=\"{$dayInfo.$dayNo.estats.$estatId.id}\"></td>\r\n		{/section}\r\n</tr>\r\n{/if}\r\n{/foreach}\r\n\r\n{foreach from=$estats item=\"estat\" name=\"estats_loop\"}\r\n{assign var=\"estatId\" value=$estat.id}\r\n{if $estat.frequency eq \"weekly\"}\r\n{if $columnCounter eq 0 OR !$hasShownWeeklyHeader}<tr>{/if}\r\n	{if $estat.frequency eq \"weekly\" && !$hasShownWeeklyHeader}\r\n		{assign var=\"hasShownWeeklyHeader\" value=1}\r\n		<td>&nbsp;</td>\r\n		<td colspan=\"7\" align=\"center\"><br /><small>The following statistics are entered only once per week.<br /><br /></small></td>\r\n	</tr>\r\n	<tr>\r\n	{/if}	\r\n	<td align=\"right\" class=\"\"{if $columnCounter gt 0} colspan=\"2\"{/if}>\r\n	{if $estat.description}\r\n		<a href=\"javascript://\" onmouseover=\"toggle(\'eStatNote_{$estatId}\');\" onmouseout=\"toggle(\'eStatNote_{$estatId}\');\"><b>{$estat.name|niceText}</b></a><br />\r\n		<div id=\"eStatNote_{$estatId}\" class=\"floatInfoBox\" style=\"display:none;\">&quot;{$estat.description}&quot;{if $estat.groupName}<br /><small><i>Requested By:</i> <b>{$estat.groupDescription}</b></small>{/if}</div>\r\n	{else}\r\n		<b>{$estat.name|niceText}</b><br />\r\n	{/if}\r\n		{if $estat.units}<small class=\"note\">({$estat.units.name|niceText})</small>{/if}</td>\r\n		{assign var=\"columnCounter\" value=$columnCounter|math:\"x+1\"}\r\n		<td align=\"center\" class=\"datacell {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\"><input type=\"text\" class=\"largeInput\" name=\"day[1][estats][{$estatId}][value]\" value=\"{if $dayInfo.1.estats.$estatId.id gt 0}{$dayInfo.1.estats.$estatId.value}{/if}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][estats][{$estatId}][id]\" value=\"{$dayInfo.1.estats.$estatId.id}\"></td>\r\n{if !$hasShownWeeklyHeader OR $columnCounter eq 3}{assign var=\"columnCounter\" value=0}</tr>{/if}\r\n{/if}\r\n{/foreach}\r\n<tr>\r\n	<td colspan=\"8\" align=\"right\"><br />\r\n		<input type=\"submit\" class=\"button\" value=\"Save Updates!\" />\r\n		<input type=\"button\" value=\"Add a New Tracking Category\" onclick=\"location.replace(\'?pg=eStatWizard\');\" />\r\n	</td>\r\n</tr>\r\n</table>\r\n\r\n</form>\r\n\r\n{if $user->username eq \"trave\"}\r\n{include_php file=\"shared_handle:estats/getEstatsInfo\"}\r\n<div id=\"graphLinksDiv\" style=\"display:none;\">\r\n	<table width=\"100%\">\r\n	<tr>\r\n		<td width=\"100%\" align=\"center\"><small>\r\n		{foreach from=$aEstats item=\"es\" name=\"loopEstats\"}\r\n			<a href=\"?pg=flashgraph-frame&format=small&userIds={$smarty.request.userId|default:$user->id}&esId={$es.id}&type={$es.name|niceText|htmlspecialchars}&precision={$es.units.decimalPlaces|default:1}\" target=\"graphwindow\">{$es.name|niceText|replace:\" \":\"&nbsp;\"}</a> {if !$smarty.foreach.loopEstats.last}|{/if}\r\n		{foreachelse}\r\n			<b>No Available eStat Graphs</b>\r\n		{/foreach}\r\n		</small></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n{/if}\r\n\r\n<span id=\"eStatsSinker\">&nbsp;</span>\r\n{/if}\r\n<script type=\"text/javascript\">{literal}\r\n	function xDef() {\r\n		for(var i=0; i<arguments.length; ++i) {\r\n			if(typeof(arguments[i])==\'undefined\') return false;\r\n		}\r\n		return true;\r\n	}\r\n\r\n	function xPageY(e) {\r\n	  if (!(e=document.getElementById(e))) return 0;\r\n	  var y = 0;\r\n	  while (e) {\r\n	    if (xDef(e.offsetTop)) y += e.offsetTop;\r\n	    e = xDef(e.offsetParent) ? e.offsetParent : null;\r\n	  }\r\n	  return y;\r\n	}\r\n\r\n	parent.xHeight(\'profileUpdateIFrame\', xPageY(\'eStatsSinker\')+30);\r\n	parent.xHeight(\'statsContainer\', xPageY(\'eStatsSinker\')+30);\r\n\r\n	if (e=document.getElementById(\'graphLinksDiv\')) {\r\n		parent.updateGraphLinks(e.innerHTML);\r\n	}\r\n\r\n{/literal}</script>'),(5278,256,0.25,'smarty','0','Adding a \'Update Here\' floating note;',1250658894,2,'24.10.198.118','{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}\r\n{include_php file=\"shared_handle:estats/userEntry\"}\r\n\r\n{capture name=\"headExtra\"}\r\n<script language=\"javascript\">{literal}\r\nfunction xWindow(name, w, h, x, y, loc, men, res, scr, sta, too)\r\n{\r\n  var f = \'\';\r\n  if (w && h) {\r\n    if (document.layers) f = \'screenX=\' + x + \',screenY=\' + y;\r\n    else f = \'left=\' + x + \',top=\' + y;\r\n    f += \',width=\' + w + \',height=\' + h + \',\';\r\n  }\r\n  f += (\'location=\'+loc+\',menubar=\'+men+\',resizable=\'+res\r\n    +\',scrollbars=\'+scr+\',status=\'+sta+\',toolbar=\'+too);\r\n  this.features = f;\r\n  this.name = name;\r\n  this.load = function(sUrl) {\r\n    if (this.wnd && !this.wnd.closed) this.wnd.location.href = sUrl;\r\n    else this.wnd = window.open(sUrl, this.name, this.features);\r\n    this.wnd.focus();\r\n    return false;\r\n  }\r\n}\r\nwinUpdater = new xWindow(\'nutritionWin\', 750, 500, 10, 10, \'yes\', \'no\', \'yes\', \'yes\', \'yes\', \'no\');\r\n{/literal}</script>\r\n{/capture}\r\n\r\n{if $userInfo.id}\r\n\r\n<div style=\"position:absolute; width:300px; height:100px; left:250px; top:80px; text-align:center; margin:20px; background-color:#FFFF99; font-size:14pt;\" onmouseover=\"this.style.display=\'none\';\">\r\n	Update your stats here!\r\n</div>	\r\n\r\n<form name=\"updateForm\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" name=\"start\" value=\"{$smarty.request.start}\">\r\n<input type=\"hidden\" name=\"userId\" value=\"{$smarty.request.userId}\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'statsUpdateTable\', \'\', \'showHide\');updateParentHeight();\"><img id=\"statsUpdateTable_img\" src=\"blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a>\r\n	</div>\r\n	Update Stats{if $userInfo.id neq $user->id} For: {$userInfo.firstName} {$userInfo.lastName} ({$userInfo.username}){/if}\r\n</h2>\r\n<table id=\"statsUpdateTable\" cellpadding=\"2\" cellspacing=\"2\" style=\"display:block;\">\r\n<tr>\r\n	<td colspan=\"4\" align=\"left\"><div>{if $lastWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$lastWeek}&userId={$userInfo.id}\">&lt; Previous Week</a>{/if}</div></td>\r\n	<td colspan=\"4\" align=\"right\"><div>{if $nextWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$nextWeek}&userId={$userInfo.id}\">Next Week &gt;</a>{/if}</div></td>\r\n</tr>\r\n<tr>\r\n	<td class=\"\"><div>&nbsp;</div></td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td width=\"75\" align=\"right\" class=\"datacell\"><b>{$dayInfo.$dayNo.timestamp|date_format2:\"l\"}</b><br />{$dayInfo.$dayNo.timestamp|date_format2:\"n/j/y\"}</td>\r\n	{/section}\r\n</tr>\r\n{assign var=\"columnCounter\" value=0}\r\n{foreach from=$estats item=\"estat\" name=\"estats_loop\"}\r\n{assign var=\"estatId\" value=$estat.id}\r\n{if $estat.frequency eq \"daily\"}\r\n<tr>	\r\n	<td align=\"right\" class=\"{if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\">\r\n	{if $estat.description}\r\n		<a href=\"javascript://\" onmouseover=\"toggle(\'eStatNote_{$estatId}\');\" onmouseout=\"toggle(\'eStatNote_{$estatId}\');\"><b>{$estat.name|niceText}</b></a><br />\r\n		<div id=\"eStatNote_{$estatId}\" class=\"floatInfoBox\" style=\"display:none;\">&quot;{$estat.description}&quot;{if $estat.groupName}<br /><small><i>Requested By:</i> <b>{$estat.groupDescription}</b></small>{/if}</div>\r\n	{else}\r\n		<b>{$estat.name|niceText}</b><br />\r\n	{/if}\r\n		{if $estat.units}<small class=\"note\">({$estat.units.name|niceText})</small>{/if}</td>\r\n		{section loop=\"7\" name=\"day\"}\r\n			{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n			<td align=\"right\" class=\"datacell {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\"><input tabindex=\"{$smarty.section.day.iteration*7}\" type=\"text\" class=\"largeInput {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\" name=\"day[{$dayNo}][estats][{$estatId}][value]\" value=\"{if $dayInfo.$dayNo.estats.$estatId.id gt 0}{$dayInfo.$dayNo.estats.$estatId.value}{/if}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][estats][{$estatId}][id]\" value=\"{$dayInfo.$dayNo.estats.$estatId.id}\"></td>\r\n		{/section}\r\n</tr>\r\n{/if}\r\n{/foreach}\r\n\r\n{foreach from=$estats item=\"estat\" name=\"estats_loop\"}\r\n{assign var=\"estatId\" value=$estat.id}\r\n{if $estat.frequency eq \"weekly\"}\r\n{if $columnCounter eq 0 OR !$hasShownWeeklyHeader}<tr>{/if}\r\n	{if $estat.frequency eq \"weekly\" && !$hasShownWeeklyHeader}\r\n		{assign var=\"hasShownWeeklyHeader\" value=1}\r\n		<td>&nbsp;</td>\r\n		<td colspan=\"7\" align=\"center\"><br /><small>The following statistics are entered only once per week.<br /><br /></small></td>\r\n	</tr>\r\n	<tr>\r\n	{/if}	\r\n	<td align=\"right\" class=\"\"{if $columnCounter gt 0} colspan=\"2\"{/if}>\r\n	{if $estat.description}\r\n		<a href=\"javascript://\" onmouseover=\"toggle(\'eStatNote_{$estatId}\');\" onmouseout=\"toggle(\'eStatNote_{$estatId}\');\"><b>{$estat.name|niceText}</b></a><br />\r\n		<div id=\"eStatNote_{$estatId}\" class=\"floatInfoBox\" style=\"display:none;\">&quot;{$estat.description}&quot;{if $estat.groupName}<br /><small><i>Requested By:</i> <b>{$estat.groupDescription}</b></small>{/if}</div>\r\n	{else}\r\n		<b>{$estat.name|niceText}</b><br />\r\n	{/if}\r\n		{if $estat.units}<small class=\"note\">({$estat.units.name|niceText})</small>{/if}</td>\r\n		{assign var=\"columnCounter\" value=$columnCounter|math:\"x+1\"}\r\n		<td align=\"center\" class=\"datacell {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\"><input type=\"text\" class=\"largeInput\" name=\"day[1][estats][{$estatId}][value]\" value=\"{if $dayInfo.1.estats.$estatId.id gt 0}{$dayInfo.1.estats.$estatId.value}{/if}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][estats][{$estatId}][id]\" value=\"{$dayInfo.1.estats.$estatId.id}\"></td>\r\n{if !$hasShownWeeklyHeader OR $columnCounter eq 3}{assign var=\"columnCounter\" value=0}</tr>{/if}\r\n{/if}\r\n{/foreach}\r\n<tr>\r\n	<td colspan=\"8\" align=\"right\"><br />\r\n		<input type=\"submit\" class=\"button\" value=\"Save Updates!\" />\r\n		<input type=\"button\" value=\"Add a New Tracking Category\" onclick=\"location.replace(\'?pg=eStatWizard\');\" />\r\n	</td>\r\n</tr>\r\n</table>\r\n\r\n</form>\r\n\r\n{if $user->username eq \"trave\"}\r\n{include_php file=\"shared_handle:estats/getEstatsInfo\"}\r\n<div id=\"graphLinksDiv\" style=\"display:none;\">\r\n	<table width=\"100%\">\r\n	<tr>\r\n		<td width=\"100%\" align=\"center\"><small>\r\n		{foreach from=$aEstats item=\"es\" name=\"loopEstats\"}\r\n			<a href=\"?pg=flashgraph-frame&format=small&userIds={$smarty.request.userId|default:$user->id}&esId={$es.id}&type={$es.name|niceText|htmlspecialchars}&precision={$es.units.decimalPlaces|default:1}\" target=\"graphwindow\">{$es.name|niceText|replace:\" \":\"&nbsp;\"}</a> {if !$smarty.foreach.loopEstats.last}|{/if}\r\n		{foreachelse}\r\n			<b>No Available eStat Graphs</b>\r\n		{/foreach}\r\n		</small></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n{/if}\r\n\r\n<span id=\"eStatsSinker\">&nbsp;</span>\r\n{/if}\r\n<script type=\"text/javascript\">{literal}\r\n	function xDef() {\r\n		for(var i=0; i<arguments.length; ++i) {\r\n			if(typeof(arguments[i])==\'undefined\') return false;\r\n		}\r\n		return true;\r\n	}\r\n\r\n	function xPageY(e) {\r\n	  if (!(e=document.getElementById(e))) return 0;\r\n	  var y = 0;\r\n	  while (e) {\r\n	    if (xDef(e.offsetTop)) y += e.offsetTop;\r\n	    e = xDef(e.offsetParent) ? e.offsetParent : null;\r\n	  }\r\n	  return y;\r\n	}\r\n\r\n	parent.xHeight(\'profileUpdateIFrame\', xPageY(\'eStatsSinker\')+30);\r\n	parent.xHeight(\'statsContainer\', xPageY(\'eStatsSinker\')+30);\r\n\r\n	if (e=document.getElementById(\'graphLinksDiv\')) {\r\n		parent.updateGraphLinks(e.innerHTML);\r\n	}\r\n\r\n{/literal}</script>'),(5279,256,0.26,'smarty','0','Adding a \'Update Here\' floating note;',1250658976,2,'24.10.198.118','{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}\r\n{include_php file=\"shared_handle:estats/userEntry\"}\r\n\r\n{capture name=\"headExtra\"}\r\n<script language=\"javascript\">{literal}\r\nfunction xWindow(name, w, h, x, y, loc, men, res, scr, sta, too)\r\n{\r\n  var f = \'\';\r\n  if (w && h) {\r\n    if (document.layers) f = \'screenX=\' + x + \',screenY=\' + y;\r\n    else f = \'left=\' + x + \',top=\' + y;\r\n    f += \',width=\' + w + \',height=\' + h + \',\';\r\n  }\r\n  f += (\'location=\'+loc+\',menubar=\'+men+\',resizable=\'+res\r\n    +\',scrollbars=\'+scr+\',status=\'+sta+\',toolbar=\'+too);\r\n  this.features = f;\r\n  this.name = name;\r\n  this.load = function(sUrl) {\r\n    if (this.wnd && !this.wnd.closed) this.wnd.location.href = sUrl;\r\n    else this.wnd = window.open(sUrl, this.name, this.features);\r\n    this.wnd.focus();\r\n    return false;\r\n  }\r\n}\r\nwinUpdater = new xWindow(\'nutritionWin\', 750, 500, 10, 10, \'yes\', \'no\', \'yes\', \'yes\', \'yes\', \'no\');\r\n{/literal}</script>\r\n{/capture}\r\n\r\n{if $userInfo.id}\r\n\r\n<div style=\"border:2px solid blue; position:absolute; width:300px; height:100px; left:220px; top:80px; text-align:center; text-valign:middle; margin:20px; background-color:#FFFF99; font-size:14pt;\" onmouseover=\"this.style.display=\'none\';\">\r\n	Update your stats in the cells here!\r\n</div>	\r\n\r\n<form name=\"updateForm\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" name=\"start\" value=\"{$smarty.request.start}\">\r\n<input type=\"hidden\" name=\"userId\" value=\"{$smarty.request.userId}\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'statsUpdateTable\', \'\', \'showHide\');updateParentHeight();\"><img id=\"statsUpdateTable_img\" src=\"blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a>\r\n	</div>\r\n	Update Stats{if $userInfo.id neq $user->id} For: {$userInfo.firstName} {$userInfo.lastName} ({$userInfo.username}){/if}\r\n</h2>\r\n<table id=\"statsUpdateTable\" cellpadding=\"2\" cellspacing=\"2\" style=\"display:block;\">\r\n<tr>\r\n	<td colspan=\"4\" align=\"left\"><div>{if $lastWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$lastWeek}&userId={$userInfo.id}\">&lt; Previous Week</a>{/if}</div></td>\r\n	<td colspan=\"4\" align=\"right\"><div>{if $nextWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$nextWeek}&userId={$userInfo.id}\">Next Week &gt;</a>{/if}</div></td>\r\n</tr>\r\n<tr>\r\n	<td class=\"\"><div>&nbsp;</div></td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td width=\"75\" align=\"right\" class=\"datacell\"><b>{$dayInfo.$dayNo.timestamp|date_format2:\"l\"}</b><br />{$dayInfo.$dayNo.timestamp|date_format2:\"n/j/y\"}</td>\r\n	{/section}\r\n</tr>\r\n{assign var=\"columnCounter\" value=0}\r\n{foreach from=$estats item=\"estat\" name=\"estats_loop\"}\r\n{assign var=\"estatId\" value=$estat.id}\r\n{if $estat.frequency eq \"daily\"}\r\n<tr>	\r\n	<td align=\"right\" class=\"{if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\">\r\n	{if $estat.description}\r\n		<a href=\"javascript://\" onmouseover=\"toggle(\'eStatNote_{$estatId}\');\" onmouseout=\"toggle(\'eStatNote_{$estatId}\');\"><b>{$estat.name|niceText}</b></a><br />\r\n		<div id=\"eStatNote_{$estatId}\" class=\"floatInfoBox\" style=\"display:none;\">&quot;{$estat.description}&quot;{if $estat.groupName}<br /><small><i>Requested By:</i> <b>{$estat.groupDescription}</b></small>{/if}</div>\r\n	{else}\r\n		<b>{$estat.name|niceText}</b><br />\r\n	{/if}\r\n		{if $estat.units}<small class=\"note\">({$estat.units.name|niceText})</small>{/if}</td>\r\n		{section loop=\"7\" name=\"day\"}\r\n			{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n			<td align=\"right\" class=\"datacell {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\"><input tabindex=\"{$smarty.section.day.iteration*7}\" type=\"text\" class=\"largeInput {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\" name=\"day[{$dayNo}][estats][{$estatId}][value]\" value=\"{if $dayInfo.$dayNo.estats.$estatId.id gt 0}{$dayInfo.$dayNo.estats.$estatId.value}{/if}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][estats][{$estatId}][id]\" value=\"{$dayInfo.$dayNo.estats.$estatId.id}\"></td>\r\n		{/section}\r\n</tr>\r\n{/if}\r\n{/foreach}\r\n\r\n{foreach from=$estats item=\"estat\" name=\"estats_loop\"}\r\n{assign var=\"estatId\" value=$estat.id}\r\n{if $estat.frequency eq \"weekly\"}\r\n{if $columnCounter eq 0 OR !$hasShownWeeklyHeader}<tr>{/if}\r\n	{if $estat.frequency eq \"weekly\" && !$hasShownWeeklyHeader}\r\n		{assign var=\"hasShownWeeklyHeader\" value=1}\r\n		<td>&nbsp;</td>\r\n		<td colspan=\"7\" align=\"center\"><br /><small>The following statistics are entered only once per week.<br /><br /></small></td>\r\n	</tr>\r\n	<tr>\r\n	{/if}	\r\n	<td align=\"right\" class=\"\"{if $columnCounter gt 0} colspan=\"2\"{/if}>\r\n	{if $estat.description}\r\n		<a href=\"javascript://\" onmouseover=\"toggle(\'eStatNote_{$estatId}\');\" onmouseout=\"toggle(\'eStatNote_{$estatId}\');\"><b>{$estat.name|niceText}</b></a><br />\r\n		<div id=\"eStatNote_{$estatId}\" class=\"floatInfoBox\" style=\"display:none;\">&quot;{$estat.description}&quot;{if $estat.groupName}<br /><small><i>Requested By:</i> <b>{$estat.groupDescription}</b></small>{/if}</div>\r\n	{else}\r\n		<b>{$estat.name|niceText}</b><br />\r\n	{/if}\r\n		{if $estat.units}<small class=\"note\">({$estat.units.name|niceText})</small>{/if}</td>\r\n		{assign var=\"columnCounter\" value=$columnCounter|math:\"x+1\"}\r\n		<td align=\"center\" class=\"datacell {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\"><input type=\"text\" class=\"largeInput\" name=\"day[1][estats][{$estatId}][value]\" value=\"{if $dayInfo.1.estats.$estatId.id gt 0}{$dayInfo.1.estats.$estatId.value}{/if}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][estats][{$estatId}][id]\" value=\"{$dayInfo.1.estats.$estatId.id}\"></td>\r\n{if !$hasShownWeeklyHeader OR $columnCounter eq 3}{assign var=\"columnCounter\" value=0}</tr>{/if}\r\n{/if}\r\n{/foreach}\r\n<tr>\r\n	<td colspan=\"8\" align=\"right\"><br />\r\n		<input type=\"submit\" class=\"button\" value=\"Save Updates!\" />\r\n		<input type=\"button\" value=\"Add a New Tracking Category\" onclick=\"location.replace(\'?pg=eStatWizard\');\" />\r\n	</td>\r\n</tr>\r\n</table>\r\n\r\n</form>\r\n\r\n{if $user->username eq \"trave\"}\r\n{include_php file=\"shared_handle:estats/getEstatsInfo\"}\r\n<div id=\"graphLinksDiv\" style=\"display:none;\">\r\n	<table width=\"100%\">\r\n	<tr>\r\n		<td width=\"100%\" align=\"center\"><small>\r\n		{foreach from=$aEstats item=\"es\" name=\"loopEstats\"}\r\n			<a href=\"?pg=flashgraph-frame&format=small&userIds={$smarty.request.userId|default:$user->id}&esId={$es.id}&type={$es.name|niceText|htmlspecialchars}&precision={$es.units.decimalPlaces|default:1}\" target=\"graphwindow\">{$es.name|niceText|replace:\" \":\"&nbsp;\"}</a> {if !$smarty.foreach.loopEstats.last}|{/if}\r\n		{foreachelse}\r\n			<b>No Available eStat Graphs</b>\r\n		{/foreach}\r\n		</small></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n{/if}\r\n\r\n<span id=\"eStatsSinker\">&nbsp;</span>\r\n{/if}\r\n<script type=\"text/javascript\">{literal}\r\n	function xDef() {\r\n		for(var i=0; i<arguments.length; ++i) {\r\n			if(typeof(arguments[i])==\'undefined\') return false;\r\n		}\r\n		return true;\r\n	}\r\n\r\n	function xPageY(e) {\r\n	  if (!(e=document.getElementById(e))) return 0;\r\n	  var y = 0;\r\n	  while (e) {\r\n	    if (xDef(e.offsetTop)) y += e.offsetTop;\r\n	    e = xDef(e.offsetParent) ? e.offsetParent : null;\r\n	  }\r\n	  return y;\r\n	}\r\n\r\n	parent.xHeight(\'profileUpdateIFrame\', xPageY(\'eStatsSinker\')+30);\r\n	parent.xHeight(\'statsContainer\', xPageY(\'eStatsSinker\')+30);\r\n\r\n	if (e=document.getElementById(\'graphLinksDiv\')) {\r\n		parent.updateGraphLinks(e.innerHTML);\r\n	}\r\n\r\n{/literal}</script>'),(5280,256,0.27,'smarty','0','Adding a \'Update Here\' floating note;',1250658993,2,'24.10.198.118','{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}\r\n{include_php file=\"shared_handle:estats/userEntry\"}\r\n\r\n{capture name=\"headExtra\"}\r\n<script language=\"javascript\">{literal}\r\nfunction xWindow(name, w, h, x, y, loc, men, res, scr, sta, too)\r\n{\r\n  var f = \'\';\r\n  if (w && h) {\r\n    if (document.layers) f = \'screenX=\' + x + \',screenY=\' + y;\r\n    else f = \'left=\' + x + \',top=\' + y;\r\n    f += \',width=\' + w + \',height=\' + h + \',\';\r\n  }\r\n  f += (\'location=\'+loc+\',menubar=\'+men+\',resizable=\'+res\r\n    +\',scrollbars=\'+scr+\',status=\'+sta+\',toolbar=\'+too);\r\n  this.features = f;\r\n  this.name = name;\r\n  this.load = function(sUrl) {\r\n    if (this.wnd && !this.wnd.closed) this.wnd.location.href = sUrl;\r\n    else this.wnd = window.open(sUrl, this.name, this.features);\r\n    this.wnd.focus();\r\n    return false;\r\n  }\r\n}\r\nwinUpdater = new xWindow(\'nutritionWin\', 750, 500, 10, 10, \'yes\', \'no\', \'yes\', \'yes\', \'yes\', \'no\');\r\n{/literal}</script>\r\n{/capture}\r\n\r\n{if $userInfo.id}\r\n\r\n<div style=\"border:2px solid blue; position:absolute; width:300px; height:100px; left:220px; top:80px; text-align:center; text-valign:middle; margin:20px; background-color:#FFFF99; font-size:14pt;\" onmouseover=\"this.style.display=\'none\';\">\r\n	<br />\r\n	Update your stats in the cells here!\r\n</div>	\r\n\r\n<form name=\"updateForm\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" name=\"start\" value=\"{$smarty.request.start}\">\r\n<input type=\"hidden\" name=\"userId\" value=\"{$smarty.request.userId}\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'statsUpdateTable\', \'\', \'showHide\');updateParentHeight();\"><img id=\"statsUpdateTable_img\" src=\"blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a>\r\n	</div>\r\n	Update Stats{if $userInfo.id neq $user->id} For: {$userInfo.firstName} {$userInfo.lastName} ({$userInfo.username}){/if}\r\n</h2>\r\n<table id=\"statsUpdateTable\" cellpadding=\"2\" cellspacing=\"2\" style=\"display:block;\">\r\n<tr>\r\n	<td colspan=\"4\" align=\"left\"><div>{if $lastWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$lastWeek}&userId={$userInfo.id}\">&lt; Previous Week</a>{/if}</div></td>\r\n	<td colspan=\"4\" align=\"right\"><div>{if $nextWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$nextWeek}&userId={$userInfo.id}\">Next Week &gt;</a>{/if}</div></td>\r\n</tr>\r\n<tr>\r\n	<td class=\"\"><div>&nbsp;</div></td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td width=\"75\" align=\"right\" class=\"datacell\"><b>{$dayInfo.$dayNo.timestamp|date_format2:\"l\"}</b><br />{$dayInfo.$dayNo.timestamp|date_format2:\"n/j/y\"}</td>\r\n	{/section}\r\n</tr>\r\n{assign var=\"columnCounter\" value=0}\r\n{foreach from=$estats item=\"estat\" name=\"estats_loop\"}\r\n{assign var=\"estatId\" value=$estat.id}\r\n{if $estat.frequency eq \"daily\"}\r\n<tr>	\r\n	<td align=\"right\" class=\"{if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\">\r\n	{if $estat.description}\r\n		<a href=\"javascript://\" onmouseover=\"toggle(\'eStatNote_{$estatId}\');\" onmouseout=\"toggle(\'eStatNote_{$estatId}\');\"><b>{$estat.name|niceText}</b></a><br />\r\n		<div id=\"eStatNote_{$estatId}\" class=\"floatInfoBox\" style=\"display:none;\">&quot;{$estat.description}&quot;{if $estat.groupName}<br /><small><i>Requested By:</i> <b>{$estat.groupDescription}</b></small>{/if}</div>\r\n	{else}\r\n		<b>{$estat.name|niceText}</b><br />\r\n	{/if}\r\n		{if $estat.units}<small class=\"note\">({$estat.units.name|niceText})</small>{/if}</td>\r\n		{section loop=\"7\" name=\"day\"}\r\n			{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n			<td align=\"right\" class=\"datacell {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\"><input tabindex=\"{$smarty.section.day.iteration*7}\" type=\"text\" class=\"largeInput {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\" name=\"day[{$dayNo}][estats][{$estatId}][value]\" value=\"{if $dayInfo.$dayNo.estats.$estatId.id gt 0}{$dayInfo.$dayNo.estats.$estatId.value}{/if}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][estats][{$estatId}][id]\" value=\"{$dayInfo.$dayNo.estats.$estatId.id}\"></td>\r\n		{/section}\r\n</tr>\r\n{/if}\r\n{/foreach}\r\n\r\n{foreach from=$estats item=\"estat\" name=\"estats_loop\"}\r\n{assign var=\"estatId\" value=$estat.id}\r\n{if $estat.frequency eq \"weekly\"}\r\n{if $columnCounter eq 0 OR !$hasShownWeeklyHeader}<tr>{/if}\r\n	{if $estat.frequency eq \"weekly\" && !$hasShownWeeklyHeader}\r\n		{assign var=\"hasShownWeeklyHeader\" value=1}\r\n		<td>&nbsp;</td>\r\n		<td colspan=\"7\" align=\"center\"><br /><small>The following statistics are entered only once per week.<br /><br /></small></td>\r\n	</tr>\r\n	<tr>\r\n	{/if}	\r\n	<td align=\"right\" class=\"\"{if $columnCounter gt 0} colspan=\"2\"{/if}>\r\n	{if $estat.description}\r\n		<a href=\"javascript://\" onmouseover=\"toggle(\'eStatNote_{$estatId}\');\" onmouseout=\"toggle(\'eStatNote_{$estatId}\');\"><b>{$estat.name|niceText}</b></a><br />\r\n		<div id=\"eStatNote_{$estatId}\" class=\"floatInfoBox\" style=\"display:none;\">&quot;{$estat.description}&quot;{if $estat.groupName}<br /><small><i>Requested By:</i> <b>{$estat.groupDescription}</b></small>{/if}</div>\r\n	{else}\r\n		<b>{$estat.name|niceText}</b><br />\r\n	{/if}\r\n		{if $estat.units}<small class=\"note\">({$estat.units.name|niceText})</small>{/if}</td>\r\n		{assign var=\"columnCounter\" value=$columnCounter|math:\"x+1\"}\r\n		<td align=\"center\" class=\"datacell {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\"><input type=\"text\" class=\"largeInput\" name=\"day[1][estats][{$estatId}][value]\" value=\"{if $dayInfo.1.estats.$estatId.id gt 0}{$dayInfo.1.estats.$estatId.value}{/if}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][estats][{$estatId}][id]\" value=\"{$dayInfo.1.estats.$estatId.id}\"></td>\r\n{if !$hasShownWeeklyHeader OR $columnCounter eq 3}{assign var=\"columnCounter\" value=0}</tr>{/if}\r\n{/if}\r\n{/foreach}\r\n<tr>\r\n	<td colspan=\"8\" align=\"right\"><br />\r\n		<input type=\"submit\" class=\"button\" value=\"Save Updates!\" />\r\n		<input type=\"button\" value=\"Add a New Tracking Category\" onclick=\"location.replace(\'?pg=eStatWizard\');\" />\r\n	</td>\r\n</tr>\r\n</table>\r\n\r\n</form>\r\n\r\n{if $user->username eq \"trave\"}\r\n{include_php file=\"shared_handle:estats/getEstatsInfo\"}\r\n<div id=\"graphLinksDiv\" style=\"display:none;\">\r\n	<table width=\"100%\">\r\n	<tr>\r\n		<td width=\"100%\" align=\"center\"><small>\r\n		{foreach from=$aEstats item=\"es\" name=\"loopEstats\"}\r\n			<a href=\"?pg=flashgraph-frame&format=small&userIds={$smarty.request.userId|default:$user->id}&esId={$es.id}&type={$es.name|niceText|htmlspecialchars}&precision={$es.units.decimalPlaces|default:1}\" target=\"graphwindow\">{$es.name|niceText|replace:\" \":\"&nbsp;\"}</a> {if !$smarty.foreach.loopEstats.last}|{/if}\r\n		{foreachelse}\r\n			<b>No Available eStat Graphs</b>\r\n		{/foreach}\r\n		</small></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n{/if}\r\n\r\n<span id=\"eStatsSinker\">&nbsp;</span>\r\n{/if}\r\n<script type=\"text/javascript\">{literal}\r\n	function xDef() {\r\n		for(var i=0; i<arguments.length; ++i) {\r\n			if(typeof(arguments[i])==\'undefined\') return false;\r\n		}\r\n		return true;\r\n	}\r\n\r\n	function xPageY(e) {\r\n	  if (!(e=document.getElementById(e))) return 0;\r\n	  var y = 0;\r\n	  while (e) {\r\n	    if (xDef(e.offsetTop)) y += e.offsetTop;\r\n	    e = xDef(e.offsetParent) ? e.offsetParent : null;\r\n	  }\r\n	  return y;\r\n	}\r\n\r\n	parent.xHeight(\'profileUpdateIFrame\', xPageY(\'eStatsSinker\')+30);\r\n	parent.xHeight(\'statsContainer\', xPageY(\'eStatsSinker\')+30);\r\n\r\n	if (e=document.getElementById(\'graphLinksDiv\')) {\r\n		parent.updateGraphLinks(e.innerHTML);\r\n	}\r\n\r\n{/literal}</script>'),(5281,256,0.28,'smarty','0','Adding a \'Update Here\' floating note;',1250659316,2,'24.10.198.118','{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}\r\n{include_php file=\"shared_handle:estats/userEntry\"}\r\n\r\n{capture name=\"headExtra\"}\r\n<script language=\"javascript\">{literal}\r\nfunction xWindow(name, w, h, x, y, loc, men, res, scr, sta, too)\r\n{\r\n  var f = \'\';\r\n  if (w && h) {\r\n    if (document.layers) f = \'screenX=\' + x + \',screenY=\' + y;\r\n    else f = \'left=\' + x + \',top=\' + y;\r\n    f += \',width=\' + w + \',height=\' + h + \',\';\r\n  }\r\n  f += (\'location=\'+loc+\',menubar=\'+men+\',resizable=\'+res\r\n    +\',scrollbars=\'+scr+\',status=\'+sta+\',toolbar=\'+too);\r\n  this.features = f;\r\n  this.name = name;\r\n  this.load = function(sUrl) {\r\n    if (this.wnd && !this.wnd.closed) this.wnd.location.href = sUrl;\r\n    else this.wnd = window.open(sUrl, this.name, this.features);\r\n    this.wnd.focus();\r\n    return false;\r\n  }\r\n}\r\nwinUpdater = new xWindow(\'nutritionWin\', 750, 500, 10, 10, \'yes\', \'no\', \'yes\', \'yes\', \'yes\', \'no\');\r\n{/literal}</script>\r\n{/capture}\r\n\r\n{if $userInfo.id}\r\n\r\n<div style=\"border:2px solid blue; position:absolute; width:300px; height:100px; left:220px; top:80px; text-align:center; text-valign:middle; margin:20px; background-color:#FFFF99; font-size:14pt; opacity:0.8; filter:alpha(opacity=80)\" onmouseover=\"this.style.display=\'none\';\">\r\n	<br />\r\n	Update your stats in the cells here!\r\n</div>	\r\n\r\n<form name=\"updateForm\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" name=\"start\" value=\"{$smarty.request.start}\">\r\n<input type=\"hidden\" name=\"userId\" value=\"{$smarty.request.userId}\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'statsUpdateTable\', \'\', \'showHide\');updateParentHeight();\"><img id=\"statsUpdateTable_img\" src=\"blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a>\r\n	</div>\r\n	Update Stats{if $userInfo.id neq $user->id} For: {$userInfo.firstName} {$userInfo.lastName} ({$userInfo.username}){/if}\r\n</h2>\r\n<table id=\"statsUpdateTable\" cellpadding=\"2\" cellspacing=\"2\" style=\"display:block;\">\r\n<tr>\r\n	<td colspan=\"4\" align=\"left\"><div>{if $lastWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$lastWeek}&userId={$userInfo.id}\">&lt; Previous Week</a>{/if}</div></td>\r\n	<td colspan=\"4\" align=\"right\"><div>{if $nextWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$nextWeek}&userId={$userInfo.id}\">Next Week &gt;</a>{/if}</div></td>\r\n</tr>\r\n<tr>\r\n	<td class=\"\"><div>&nbsp;</div></td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td width=\"75\" align=\"right\" class=\"datacell\"><b>{$dayInfo.$dayNo.timestamp|date_format2:\"l\"}</b><br />{$dayInfo.$dayNo.timestamp|date_format2:\"n/j/y\"}</td>\r\n	{/section}\r\n</tr>\r\n{assign var=\"columnCounter\" value=0}\r\n{foreach from=$estats item=\"estat\" name=\"estats_loop\"}\r\n{assign var=\"estatId\" value=$estat.id}\r\n{if $estat.frequency eq \"daily\"}\r\n<tr>	\r\n	<td align=\"right\" class=\"{if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\">\r\n	{if $estat.description}\r\n		<a href=\"javascript://\" onmouseover=\"toggle(\'eStatNote_{$estatId}\');\" onmouseout=\"toggle(\'eStatNote_{$estatId}\');\"><b>{$estat.name|niceText}</b></a><br />\r\n		<div id=\"eStatNote_{$estatId}\" class=\"floatInfoBox\" style=\"display:none;\">&quot;{$estat.description}&quot;{if $estat.groupName}<br /><small><i>Requested By:</i> <b>{$estat.groupDescription}</b></small>{/if}</div>\r\n	{else}\r\n		<b>{$estat.name|niceText}</b><br />\r\n	{/if}\r\n		{if $estat.units}<small class=\"note\">({$estat.units.name|niceText})</small>{/if}</td>\r\n		{section loop=\"7\" name=\"day\"}\r\n			{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n			<td align=\"right\" class=\"datacell {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\"><input tabindex=\"{$smarty.section.day.iteration*7}\" type=\"text\" class=\"largeInput {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\" name=\"day[{$dayNo}][estats][{$estatId}][value]\" value=\"{if $dayInfo.$dayNo.estats.$estatId.id gt 0}{$dayInfo.$dayNo.estats.$estatId.value}{/if}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][estats][{$estatId}][id]\" value=\"{$dayInfo.$dayNo.estats.$estatId.id}\"></td>\r\n		{/section}\r\n</tr>\r\n{/if}\r\n{/foreach}\r\n\r\n{foreach from=$estats item=\"estat\" name=\"estats_loop\"}\r\n{assign var=\"estatId\" value=$estat.id}\r\n{if $estat.frequency eq \"weekly\"}\r\n{if $columnCounter eq 0 OR !$hasShownWeeklyHeader}<tr>{/if}\r\n	{if $estat.frequency eq \"weekly\" && !$hasShownWeeklyHeader}\r\n		{assign var=\"hasShownWeeklyHeader\" value=1}\r\n		<td>&nbsp;</td>\r\n		<td colspan=\"7\" align=\"center\"><br /><small>The following statistics are entered only once per week.<br /><br /></small></td>\r\n	</tr>\r\n	<tr>\r\n	{/if}	\r\n	<td align=\"right\" class=\"\"{if $columnCounter gt 0} colspan=\"2\"{/if}>\r\n	{if $estat.description}\r\n		<a href=\"javascript://\" onmouseover=\"toggle(\'eStatNote_{$estatId}\');\" onmouseout=\"toggle(\'eStatNote_{$estatId}\');\"><b>{$estat.name|niceText}</b></a><br />\r\n		<div id=\"eStatNote_{$estatId}\" class=\"floatInfoBox\" style=\"display:none;\">&quot;{$estat.description}&quot;{if $estat.groupName}<br /><small><i>Requested By:</i> <b>{$estat.groupDescription}</b></small>{/if}</div>\r\n	{else}\r\n		<b>{$estat.name|niceText}</b><br />\r\n	{/if}\r\n		{if $estat.units}<small class=\"note\">({$estat.units.name|niceText})</small>{/if}</td>\r\n		{assign var=\"columnCounter\" value=$columnCounter|math:\"x+1\"}\r\n		<td align=\"center\" class=\"datacell {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\"><input type=\"text\" class=\"largeInput\" name=\"day[1][estats][{$estatId}][value]\" value=\"{if $dayInfo.1.estats.$estatId.id gt 0}{$dayInfo.1.estats.$estatId.value}{/if}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][estats][{$estatId}][id]\" value=\"{$dayInfo.1.estats.$estatId.id}\"></td>\r\n{if !$hasShownWeeklyHeader OR $columnCounter eq 3}{assign var=\"columnCounter\" value=0}</tr>{/if}\r\n{/if}\r\n{/foreach}\r\n<tr>\r\n	<td colspan=\"8\" align=\"right\"><br />\r\n		<input type=\"submit\" class=\"button\" value=\"Save Updates!\" />\r\n		<input type=\"button\" value=\"Add a New Tracking Category\" onclick=\"location.replace(\'?pg=eStatWizard\');\" />\r\n	</td>\r\n</tr>\r\n</table>\r\n\r\n</form>\r\n\r\n{if $user->username eq \"trave\"}\r\n{include_php file=\"shared_handle:estats/getEstatsInfo\"}\r\n<div id=\"graphLinksDiv\" style=\"display:none;\">\r\n	<table width=\"100%\">\r\n	<tr>\r\n		<td width=\"100%\" align=\"center\"><small>\r\n		{foreach from=$aEstats item=\"es\" name=\"loopEstats\"}\r\n			<a href=\"?pg=flashgraph-frame&format=small&userIds={$smarty.request.userId|default:$user->id}&esId={$es.id}&type={$es.name|niceText|htmlspecialchars}&precision={$es.units.decimalPlaces|default:1}\" target=\"graphwindow\">{$es.name|niceText|replace:\" \":\"&nbsp;\"}</a> {if !$smarty.foreach.loopEstats.last}|{/if}\r\n		{foreachelse}\r\n			<b>No Available eStat Graphs</b>\r\n		{/foreach}\r\n		</small></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n{/if}\r\n\r\n<span id=\"eStatsSinker\">&nbsp;</span>\r\n{/if}\r\n<script type=\"text/javascript\">{literal}\r\n	function xDef() {\r\n		for(var i=0; i<arguments.length; ++i) {\r\n			if(typeof(arguments[i])==\'undefined\') return false;\r\n		}\r\n		return true;\r\n	}\r\n\r\n	function xPageY(e) {\r\n	  if (!(e=document.getElementById(e))) return 0;\r\n	  var y = 0;\r\n	  while (e) {\r\n	    if (xDef(e.offsetTop)) y += e.offsetTop;\r\n	    e = xDef(e.offsetParent) ? e.offsetParent : null;\r\n	  }\r\n	  return y;\r\n	}\r\n\r\n	parent.xHeight(\'profileUpdateIFrame\', xPageY(\'eStatsSinker\')+30);\r\n	parent.xHeight(\'statsContainer\', xPageY(\'eStatsSinker\')+30);\r\n\r\n	if (e=document.getElementById(\'graphLinksDiv\')) {\r\n		parent.updateGraphLinks(e.innerHTML);\r\n	}\r\n\r\n{/literal}</script>'),(5282,256,0.29,'smarty','1','Adding a \'Update Here\' floating note;',1250659418,2,'24.10.198.118','{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}\r\n{include_php file=\"shared_handle:estats/userEntry\"}\r\n\r\n{capture name=\"headExtra\"}\r\n<script language=\"javascript\">{literal}\r\nfunction xWindow(name, w, h, x, y, loc, men, res, scr, sta, too)\r\n{\r\n  var f = \'\';\r\n  if (w && h) {\r\n    if (document.layers) f = \'screenX=\' + x + \',screenY=\' + y;\r\n    else f = \'left=\' + x + \',top=\' + y;\r\n    f += \',width=\' + w + \',height=\' + h + \',\';\r\n  }\r\n  f += (\'location=\'+loc+\',menubar=\'+men+\',resizable=\'+res\r\n    +\',scrollbars=\'+scr+\',status=\'+sta+\',toolbar=\'+too);\r\n  this.features = f;\r\n  this.name = name;\r\n  this.load = function(sUrl) {\r\n    if (this.wnd && !this.wnd.closed) this.wnd.location.href = sUrl;\r\n    else this.wnd = window.open(sUrl, this.name, this.features);\r\n    this.wnd.focus();\r\n    return false;\r\n  }\r\n}\r\nwinUpdater = new xWindow(\'nutritionWin\', 750, 500, 10, 10, \'yes\', \'no\', \'yes\', \'yes\', \'yes\', \'no\');\r\n{/literal}</script>\r\n{/capture}\r\n\r\n{if $userInfo.id}\r\n\r\n<div style=\"border:2px solid blue; position:absolute; width:300px; height:100px; left:220px; top:80px; text-align:center; text-valign:middle; margin:20px; background-color:#FFFF99; font-size:14pt; opacity:0.85; filter:alpha(opacity=85)\" onmouseover=\"this.style.display=\'none\';\">\r\n	<br />\r\n	Update your stats in the boxes here!\r\n</div>	\r\n\r\n<form name=\"updateForm\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" name=\"start\" value=\"{$smarty.request.start}\">\r\n<input type=\"hidden\" name=\"userId\" value=\"{$smarty.request.userId}\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'statsUpdateTable\', \'\', \'showHide\');updateParentHeight();\"><img id=\"statsUpdateTable_img\" src=\"blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a>\r\n	</div>\r\n	Update Stats{if $userInfo.id neq $user->id} For: {$userInfo.firstName} {$userInfo.lastName} ({$userInfo.username}){/if}\r\n</h2>\r\n<table id=\"statsUpdateTable\" cellpadding=\"2\" cellspacing=\"2\" style=\"display:block;\">\r\n<tr>\r\n	<td colspan=\"4\" align=\"left\"><div>{if $lastWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$lastWeek}&userId={$userInfo.id}\">&lt; Previous Week</a>{/if}</div></td>\r\n	<td colspan=\"4\" align=\"right\"><div>{if $nextWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$nextWeek}&userId={$userInfo.id}\">Next Week &gt;</a>{/if}</div></td>\r\n</tr>\r\n<tr>\r\n	<td class=\"\"><div>&nbsp;</div></td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td width=\"75\" align=\"right\" class=\"datacell\"><b>{$dayInfo.$dayNo.timestamp|date_format2:\"l\"}</b><br />{$dayInfo.$dayNo.timestamp|date_format2:\"n/j/y\"}</td>\r\n	{/section}\r\n</tr>\r\n{assign var=\"columnCounter\" value=0}\r\n{foreach from=$estats item=\"estat\" name=\"estats_loop\"}\r\n{assign var=\"estatId\" value=$estat.id}\r\n{if $estat.frequency eq \"daily\"}\r\n<tr>	\r\n	<td align=\"right\" class=\"{if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\">\r\n	{if $estat.description}\r\n		<a href=\"javascript://\" onmouseover=\"toggle(\'eStatNote_{$estatId}\');\" onmouseout=\"toggle(\'eStatNote_{$estatId}\');\"><b>{$estat.name|niceText}</b></a><br />\r\n		<div id=\"eStatNote_{$estatId}\" class=\"floatInfoBox\" style=\"display:none;\">&quot;{$estat.description}&quot;{if $estat.groupName}<br /><small><i>Requested By:</i> <b>{$estat.groupDescription}</b></small>{/if}</div>\r\n	{else}\r\n		<b>{$estat.name|niceText}</b><br />\r\n	{/if}\r\n		{if $estat.units}<small class=\"note\">({$estat.units.name|niceText})</small>{/if}</td>\r\n		{section loop=\"7\" name=\"day\"}\r\n			{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n			<td align=\"right\" class=\"datacell {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\"><input tabindex=\"{$smarty.section.day.iteration*7}\" type=\"text\" class=\"largeInput {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\" name=\"day[{$dayNo}][estats][{$estatId}][value]\" value=\"{if $dayInfo.$dayNo.estats.$estatId.id gt 0}{$dayInfo.$dayNo.estats.$estatId.value}{/if}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][estats][{$estatId}][id]\" value=\"{$dayInfo.$dayNo.estats.$estatId.id}\"></td>\r\n		{/section}\r\n</tr>\r\n{/if}\r\n{/foreach}\r\n\r\n{foreach from=$estats item=\"estat\" name=\"estats_loop\"}\r\n{assign var=\"estatId\" value=$estat.id}\r\n{if $estat.frequency eq \"weekly\"}\r\n{if $columnCounter eq 0 OR !$hasShownWeeklyHeader}<tr>{/if}\r\n	{if $estat.frequency eq \"weekly\" && !$hasShownWeeklyHeader}\r\n		{assign var=\"hasShownWeeklyHeader\" value=1}\r\n		<td>&nbsp;</td>\r\n		<td colspan=\"7\" align=\"center\"><br /><small>The following statistics are entered only once per week.<br /><br /></small></td>\r\n	</tr>\r\n	<tr>\r\n	{/if}	\r\n	<td align=\"right\" class=\"\"{if $columnCounter gt 0} colspan=\"2\"{/if}>\r\n	{if $estat.description}\r\n		<a href=\"javascript://\" onmouseover=\"toggle(\'eStatNote_{$estatId}\');\" onmouseout=\"toggle(\'eStatNote_{$estatId}\');\"><b>{$estat.name|niceText}</b></a><br />\r\n		<div id=\"eStatNote_{$estatId}\" class=\"floatInfoBox\" style=\"display:none;\">&quot;{$estat.description}&quot;{if $estat.groupName}<br /><small><i>Requested By:</i> <b>{$estat.groupDescription}</b></small>{/if}</div>\r\n	{else}\r\n		<b>{$estat.name|niceText}</b><br />\r\n	{/if}\r\n		{if $estat.units}<small class=\"note\">({$estat.units.name|niceText})</small>{/if}</td>\r\n		{assign var=\"columnCounter\" value=$columnCounter|math:\"x+1\"}\r\n		<td align=\"center\" class=\"datacell {if $smarty.foreach.estats_loop.iteration%2 eq 0}even{else}odd{/if}_row\"><input type=\"text\" class=\"largeInput\" name=\"day[1][estats][{$estatId}][value]\" value=\"{if $dayInfo.1.estats.$estatId.id gt 0}{$dayInfo.1.estats.$estatId.value}{/if}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][estats][{$estatId}][id]\" value=\"{$dayInfo.1.estats.$estatId.id}\"></td>\r\n{if !$hasShownWeeklyHeader OR $columnCounter eq 3}{assign var=\"columnCounter\" value=0}</tr>{/if}\r\n{/if}\r\n{/foreach}\r\n<tr>\r\n	<td colspan=\"8\" align=\"right\"><br />\r\n		<input type=\"submit\" class=\"button\" value=\"Save Updates!\" />\r\n		<input type=\"button\" value=\"Add a New Tracking Category\" onclick=\"location.replace(\'?pg=eStatWizard\');\" />\r\n	</td>\r\n</tr>\r\n</table>\r\n\r\n</form>\r\n\r\n{if $user->username eq \"trave\"}\r\n{include_php file=\"shared_handle:estats/getEstatsInfo\"}\r\n<div id=\"graphLinksDiv\" style=\"display:none;\">\r\n	<table width=\"100%\">\r\n	<tr>\r\n		<td width=\"100%\" align=\"center\"><small>\r\n		{foreach from=$aEstats item=\"es\" name=\"loopEstats\"}\r\n			<a href=\"?pg=flashgraph-frame&format=small&userIds={$smarty.request.userId|default:$user->id}&esId={$es.id}&type={$es.name|niceText|htmlspecialchars}&precision={$es.units.decimalPlaces|default:1}\" target=\"graphwindow\">{$es.name|niceText|replace:\" \":\"&nbsp;\"}</a> {if !$smarty.foreach.loopEstats.last}|{/if}\r\n		{foreachelse}\r\n			<b>No Available eStat Graphs</b>\r\n		{/foreach}\r\n		</small></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n{/if}\r\n\r\n<span id=\"eStatsSinker\">&nbsp;</span>\r\n{/if}\r\n<script type=\"text/javascript\">{literal}\r\n	function xDef() {\r\n		for(var i=0; i<arguments.length; ++i) {\r\n			if(typeof(arguments[i])==\'undefined\') return false;\r\n		}\r\n		return true;\r\n	}\r\n\r\n	function xPageY(e) {\r\n	  if (!(e=document.getElementById(e))) return 0;\r\n	  var y = 0;\r\n	  while (e) {\r\n	    if (xDef(e.offsetTop)) y += e.offsetTop;\r\n	    e = xDef(e.offsetParent) ? e.offsetParent : null;\r\n	  }\r\n	  return y;\r\n	}\r\n\r\n	parent.xHeight(\'profileUpdateIFrame\', xPageY(\'eStatsSinker\')+30);\r\n	parent.xHeight(\'statsContainer\', xPageY(\'eStatsSinker\')+30);\r\n\r\n	if (e=document.getElementById(\'graphLinksDiv\')) {\r\n		parent.updateGraphLinks(e.innerHTML);\r\n	}\r\n\r\n{/literal}</script>'),(5283,197,0.51,'smarty','0','Adding \'click here!\' links next to competition titles;',1250659999,2,'24.10.198.118','{if $smarty.session.company.preferences.hide_competitions 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{include_php file=\"shared_handle:acceptRejectRequests\"} \r\n{include_php file=\"shared_handle:myHome\"}\r\n<h1>{$page.title}</h1>\r\n\r\n<table width=\"100%\"><tr><td valign=\"top\">\r\n	<img class=\"iconRacers\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" />\r\n</td><td valign=\"top\" width=\"100%\">\r\n	<h2 class=\"withBG\">\r\n		<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'inComps\', \'\', \'showHide\');\"><img id=\"inComps_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n		Competitions I Am In</h2>\r\n	\r\n<div id=\"inComps\" style=\"display:block;\">	\r\n	<div style=\"margin:10px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n	<table cellspacing=\"0\" cellpadding=\"1\" align=\"center\">\r\n	<tr>\r\n		<td class=\"underline2\"><span>&nbsp;<b>ID</b></span></td>\r\n		<td class=\"underline2\" width=\"100%\"><span>&nbsp;<b>Title</b></span></td>\r\n		{*\r\n		<td class=\"underline2\"><span>&nbsp;<b>Type</b></span></td>\r\n		*}\r\n		<td class=\"underline2\"><span>&nbsp;<b>Style</b></span></td>\r\n		{* <td class=\"underline2\"><span>&nbsp;<b>Rank</b></span></td> *}\r\n		{* <td class=\"underline2\" nowrap><span>&nbsp;<b>Time Remaining</b></span></td> *}\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>Ends</b></span></td>\r\n		{* <td class=\"underline2\" nowrap><span>&nbsp;<b>Prize</b></span></td> *}\r\n	</tr>\r\n	{* Set up the warning period... 7 days from now (604800 = 7 days in seconds) *}\r\n	{math assign=\"endsSoon\" equation=\"x + y\" x=$smarty.now y=\"604800\"}\r\n	{foreach from=$competitions item=\"comp\"}\r\n	<tr>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;<a href=\"?pg=my_competition&cid={$comp.id}\">{$comp.id}</a> &nbsp;</small></span></td>\r\n		<td nowrap=\"nowrap\"><span>&nbsp;<a href=\"?pg=my_competition&cid={$comp.id}\"><b>{$comp.title|truncate:35:\"...\"}</b><small> &laquo; Click Here!</small></a> &nbsp;</span></td>\r\n		{*\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;{$comp.type|niceText}</small> &nbsp;</span></td>\r\n		*}\r\n		{*<td nowrap=\"nowrap\"><span><small>&nbsp;{if $comp.style eq \"Group-vs-Group\"}Team{elseif $comp.style eq \"Company-vs-Company\"}Company{else}Individual{/if}</small> &nbsp;</span></td>*}\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;{$comp.style}</small> &nbsp;</span></td>\r\n		{* <td nowrap=\"nowrap\"><span><small>&nbsp;{if $comp.rank ne \"N/A\"}{$comp.rank}/{$comp.rankOutOf}{else}N/A{/if}</small> &nbsp;</span></td> *}\r\n		{* <td nowrap><span><small{if $comp.endDate lt $smarty.now} style=\"font-weight:bold;\"{elseif $comp.endDate lt $endsSoon} style=\"color:#C00;font-weight:bold;\"{/if}>&nbsp;{$comp.timeLeft}</small> &nbsp;</span></td> *}\r\n		<td nowrap=\"nowrap\"><span><small{if $comp.endDate lt $smarty.now} style=\"font-weight:bold;\"{elseif $comp.endDate lt $endsSoon} style=\"color:#C00;font-weight:bold;\"{/if}>&nbsp;{$comp.endDate|date_format2:\"D n/j/y\"}</small> &nbsp;</span></td>\r\n		{* <td nowrap=\"nowrap\" align=\"right\"><span><small>&nbsp;{if not $comp.potAmount and $comp.potDescription}(Special){else}{math assign=\"fontSizeFactor\" equation=\"x / y\" x=$comp.potAmount y=\"100\"}{math assign=\"fontSize\" equation=\"x + y\" x=\"11\" y=$fontSizeFactor|number_format:\"0\"}<span style=\"font-size:{$fontSize}px;\">${$comp.potAmount|number_format:\"0\"}</span>{/if}</small> &nbsp;</span></td> *}\r\n	</tr>\r\n	{foreachelse}\r\n	<tr>\r\n		<td colspan=\"6\"><span><small>You have not joined any competitions.</small></span></td>\r\n	</tr>\r\n	{/foreach}\r\n	</table>\r\n	</div>\r\n	<span style=\"margin-left:65px;\"><small>(NOTE: <b>Bold Date</b> = Ended, <span style=\"color:#C00;\"><b>Red Date</b></span> = Ends Soon)</small></span>\r\n</div>\r\n{if $user->inGroupName(\'coordinators\')}\r\n<br />\r\n<form name=\"requestsForm\" action=\"index.php\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" name=\"acceptReject\" value=\"\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'myComps\', \'\', \'showHide\');\"><img id=\"myComps_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	Competitions I Have Started</h2>\r\n\r\n<div id=\"myComps\" style=\"display:block;\">\r\n{if $myCompetitions|@count gt 0}\r\n	<div style=\"margin:0px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n	<table cellspacing=\"0\" cellpadding=\"1\" align=\"center\">\r\n	<tr>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>ID</b> &nbsp;</span></td>\r\n		<td class=\"underline2\" nowrap width=\"100%\"><span>&nbsp;<b>Title</b> &nbsp;</span></td>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>Type</b> &nbsp;</span></td>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>People wanting to join</b> &nbsp;</span></td>\r\n	</tr>\r\n	{foreach from=$myCompetitions item=\"comp\"}\r\n	<tr>\r\n		<td valign=\"top\"><span>&nbsp;<small><a href=\"?pg=my_competition&cid={$comp.id}\">{$comp.id}</a></small></span></td>\r\n		<td valign=\"top\" nowrap=\"nowrap\" style=\"overflow:hidden;\"><span>&nbsp;<a href=\"?pg=my_competition&cid={$comp.id}\"><b>{$comp.title}</b></a></span></td>\r\n		<td valign=\"top\" nowrap=\"nowrap\">&nbsp;<span><small>{$comp.type}</small></td>\r\n		<td valign=\"top\" style=\"border-left:1px solid #000;\"><span>{if $comp.requests|@count}{assign var=\"isRequests\" value=\"true\"}{/if}{foreach from=$comp.requests item=\"request\"}<div class=\"hangingIndent\"><input type=\"checkbox\" name=\"request[{$comp.id}][]\" value=\"{$request.id}\"><small>({$request.dateAdded|date_format2:\"n/j/y\"}) {$request.name} &lt;{mailto address=$request.email encode=\"javascript\"}&gt;: &quot;<i>{$request.comment|strip_tags}</i>&quot;</small></div>{foreachelse}&nbsp;None right now.{/foreach}</span></td>\r\n	</tr>\r\n	{/foreach}\r\n	{if $isRequests}\r\n	<tr>\r\n		<td colspan=\"4\" align=\"center\">\r\n			<span><br /><a href=\"javascript://\" onclick=\"acceptReject.value=\'accept\';requestsForm.submit();return false;\" class=\"button\">Accept Selected</a>\r\n			<a href=\"javascript://\" onclick=\"acceptReject.value=\'reject\';requestsForm.submit();return false;\" class=\"button\">Reject Selected</a><small><br /><br /></small></span></td>\r\n	</tr>\r\n	{/if}\r\n	</table>\r\n	</div>\r\n{/if}\r\n</div>\r\n</form>\r\n{/if}\r\n</td></tr>\r\n</table>\r\n\r\n<blockquote>\r\n<table width=\"100%\">\r\n<tr><td valign=\"top\" width=\"50%\">\r\n	<a href=\"?pg=my_competitions/available\">\r\n	<img src=\"blank.gif\" width=\"1\" height=\"1\" hspace=\"5\" alt=\"\" border=\"0\" class=\"icoMedal\" style=\"float:left;\" /></a>\r\n	<b>Other Available Competitions:</b><br />\r\n	Click below to join in on any of the competitions specific to {$smarty.session.company.companyName|default:\"your company\"}.\r\n	<ul>\r\n		<li><a href=\"?pg=my_competitions/available\">Show Available Company Competitions</a></li>\r\n	</ul></td>\r\n    <td valign=\"top\" width=\"50%\"></td>\r\n</tr>\r\n</table>\r\n</blockquote>\r\n\r\n</div>'),(5291,202,1.11,'smarty','0','added company forums to this page',1251099042,2,'71.195.230.181','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n\r\n{if $smarty.request.showNewMenu eq \"true\"}\r\n<div class=\"rightSideMenu\">\r\n	<div class=\"rightMenuBox\">\r\n	<h3>EHC News</h3>\r\n		<div class=\"rightMenuItem\">\r\n		<span class=\"floatLeft iconNew\"></span>\r\n		<small><a href=\"#\">Portion Control Article in the nutrition corner. Click here to read</a></small>\r\n		</div>\r\n		<div class=\"rightMenuItem\">\r\n		<small><a href=\"#\">Learn more about carbohydrates and how they affect your body.</a></small>\r\n		</div>	\r\n	</div>\r\n	<div class=\"rightMenuBox\">\r\n	<h3>Product Highlight</h3>\r\n		<div class=\"rightMenuItem\">\r\n		<img src=\"{$skinFolder}images/rypHeartMonitor_small.jpg\" align=\"right\" class=\"img1\" alt=\"\" height=\"120\" width=\"91\" /><br />\r\n		<small><a href=\"#\">Reebok\'s Heart Rate Monitor.  Click here.</a></small>\r\n		</div>\r\n	</div>\r\n	<div class=\"rightMenuBox\">\r\n	<h3>To Do List:</h3>\r\n		<div class=\"rightMenuItem\">\r\n		<small><a href=\"#\">Update your progress</a><br />\r\n		<a href=\"#\">Earn more incentive points</a><br />\r\n		<a href=\"#\">Check out the competition</a><br />\r\n		<a href=\"#\">Read New Articles</a></small>\r\n		</div>\r\n	</div>\r\n</div>\r\n{/if}\r\n\r\n{if $user->isLoggedIn()}\r\n	<img src=\"{if $smarty.session.company.preferences.landing_logo_url}{$smarty.session.company.preferences.landing_logo_url}{else}{$skinFolder}images/ehc/corporateBuilding_sm.jpg{/if}\" style=\"margin-right:10px; float:left; border:#CCC 1px solid;\" />\r\n\r\n	{include_php file=\"shared_handle:company/announcements\"}\r\n	<h2 class=\"uline\">Company Announcements:</h2>\r\n\r\n	<blockquote>\r\n		<dl>\r\n		{foreach from=$announcements item=\"current\"}\r\n			<dt><div style=\"float:right;\"><small><i>{$current.postedDate|date_format2:\"D, M j\"}</i></small></div>\r\n			    {$current.title}</dt>\r\n			<dd>{$current.description}</dd>\r\n		{foreachelse}\r\n			<dt>No announcements at this time</dt>\r\n		{/foreach}\r\n		</dl>\r\n	</blockquote>\r\n       {if $smarty.session.company.preferences.hide_company_forums eq \"no\"}\r\n       <blockquote>\r\n               {include_php file=\"shared_handle:company/forumsList\"}\r\n\r\n                   <h3>Company Forums:</h3>\r\n                   Share your tips and get advice in the forums below!\r\n                   <ul>\r\n                   {foreach from=$companyForums item=\"cForum\"}\r\n                   <li><a href=\"?pg=company_forum&fId={$cForum.id}\">{$cForum.name}</a></li>\r\n                   {/foreach}\r\n                   </ul>\r\n       </blockquote>\r\n       {/if}\r\n	{include_php file=\"shared_handle:company/companySurveyList\"}\r\n	{if $landingSurveyText OR $surveys|@count gt 0}\r\n		<h2 class=\"uline\">Company Surveys:</h2>\r\n		<blockquote>\r\n		{$landingSurveyText}\r\n		{if $surveys|@count gt 0}\r\n			<table>\r\n			<tr><td colspan=\"2\">\r\n				<h3>Available Surveys:</h3></td>\r\n			    <td valign=\"middle\"></td></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=\"icoSurvey\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" /></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=\"icoSurvey\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" /></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		{/if}\r\n		</blockquote>\r\n	{/if}\r\n	{if $smarty.session.company.preferences.hide_shop neq \"yes\"}\r\n		<h2 class=\"uline\">eHealthCompete Highlights:</h2>\r\n		\r\n		<table>\r\n		<tr><td valign=\"middle\">\r\n		<blockquote>\r\n		<dl>	\r\n			<dt>Pedometer Deal</dt>\r\n			<dd>eHealthCompete has just negotiated a great deal on RYP Pedometers.  If you have been looking to purchase a pedometer the eHealthCompete price and quality could be your best bet.  This deal is only available to members of EHC.</dd>\r\n			\r\n		</dl>\r\n		</blockquote></td>\r\n		<td valign=\"top\" align=\"center\">\r\n			<a href=\"?pg=my_shop&sub=&tma=VIEW&eids=9\">\r\n			<img id=\"pedometerDealImg\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" /><br />\r\n			Buy one now</a>\r\n		</td></tr></table>\r\n	{/if}\r\n{else}\r\n	{assign var=\"hideLogin\" value=\"true\"}\r\n		<script language=\"JavaScript\">{literal}\r\n			function doForgotPassword(boxId, formName) {\r\n				if (!formName) formName = \'loginForm\';\r\n				if (!boxId) boxId = \'usernameBox\';\r\n\r\n				var df = document.forms[formName];\r\n				var obj = document.getElementById(boxId);\r\n				df.pg.value = \'forgot_password\';\r\n				df.password.value = \'\';\r\n		\r\n				if (obj.value == \'\') {\r\n					obj.value = prompt(\'Enter your username:\', \'\');\r\n				}\r\n				\r\n				df.forgot_username.value = obj.value;\r\n				obj.value = \'\';\r\n				//df.forgotPassword.value = \'true\';\r\n				df.submit();	\r\n			}\r\n\r\n		{/literal}</script>\r\n	<table align=\"center\" width=\"305\" cellpadding=\"0\" cellspacing=\"0\">\r\n	<tr><td align=\"center\">\r\n		<h2>{$smarty.session.company.companyName}</h2>\r\n	</td></tr>\r\n	<tr><td>\r\n		{if $smarty.session.company.preferences.hide_login eq \"yes\"}\r\n			<p><b>You are not logged in or your session has expired.</b><br /><br />\r\n			If you would like to log in, please follow this link <br /><br /><a href=\"http://www.appleprogram.com/\"><b><u>The Apple Program website</u></b></a>.<br /><br />\r\n			</p>\r\n		{else}\r\n		<div align=\"center\" class=\"chunk300\">\r\n			<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n			<input type=\"hidden\" name=\"pg\" value=\"{$smarty.request.return|default:$signup.return|default:\"my_login\"}\" />\r\n			<input type=\"hidden\" name=\"cid\" value=\"{$smarty.request.cid}\" />\r\n			<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n			<input type=\"hidden\" name=\"no_expire_keep_alive\" value=\"pg cid\" />\r\n			<input type=\"hidden\" name=\"forgotPassword\" value=\"\" />\r\n			<input type=\"hidden\" name=\"forgot_username\" value=\"\" />\r\n		\r\n			<h2 class=\"withBG\">Log In:</h2>\r\n				Username: <input id=\"usernameBox2\" type=\"text\" name=\"username\" value=\"{$smarty.request.username}\" class=\"textInput\" size=\"12\" /><br />\r\n				Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n				<div class=\"underline\">&nbsp;</div>\r\n				<a href=\"javascript:document.forms[\'loginForm2\'].submit();\">Submit</a> | <a href=\"javascript:doForgotPassword(\'usernameBox2\', \'loginForm2\');\">Forgot Password?</a>\r\n				<input type=\"submit\" name=\"loginSubmit\" value=\"Submit\" style=\"position:absolute; top:-300px; left:-300px;\" />\r\n			</form>\r\n			<script language=\"javascript\">\r\n				document.forms.loginForm2.username.focus();\r\n			</script>\r\n		</div>\r\n		{/if}		\r\n	</td></tr>\r\n	<tr><td align=\"right\">\r\n		<br />\r\n		{if $smarty.session.company.companyName and $smarty.session.company.preferences.hide_login neq \"yes\" and $smarty.session.company.preferences.hide_signup_now neq \"yes\"}\r\n			<small>Not registered yet?</small> <a href=\"?pg=signup/begin\">Sign Up Now!</a> &nbsp;\r\n		{else}\r\n			<!-- Place holder for sign up info content. -->\r\n		{/if}\r\n	</td></tr>\r\n	</table>\r\n{/if}'),(5292,328,0.13,'smarty','0','Page created.',1251100222,2,'71.195.230.181','{include_php file=\"shared_handle:forgotPassword\"}\r\n\r\n<h1>Forgot Password</h1>\r\n\r\n{if $smarty.request.temporaryId}\r\n\r\n{else}\r\n	A temporary URI will be e-mailed to the e-mail address we have\r\n	on file for the username you specified [{$account.username}]. \r\n	Click the link inside the e-mail to reset your password.\r\n{/if}'),(5293,328,0.14,'smarty','0','Page created.',1251100709,2,'71.195.230.181','{include_php file=\"shared_handle:forgotPassword\"}\r\n\r\n<h1>Forgot Password</h1>\r\n\r\n{if $smarty.request.temporaryId}\r\n	<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Change Password</h2>\r\n		New Password: <input type=\"password\" class=\"textInput\" name=\"new_password\" value=\"\" /><br />\r\n		Confirm New: <input type=\"password\" class=\"textInput\" name=\"new_password_confirm\" value=\"\" /><br />\r\n	</div>\r\n{else}\r\n	A temporary URI will be e-mailed to the e-mail address we have\r\n	on file for the username you specified [{$account.username}]. \r\n	Click the link inside the e-mail to reset your password.\r\n{/if}'),