// JavaScript Document


function writeCalulator(affclickid)
{
	
	caltable ='<link href="http://www.cashsurveysonly.com/css/style.css" rel="stylesheet" type="text/css" /><script language="javascript" src="http://www.cashsurveysonly.com/js/inclu.js" type="text/javascript"></script><script language="javascript" src="http://www.cashsurveysonly.com/js/affcalk.js" type="text/javascript"></script>';

caltable +='<div id="calculator" align="center"><table width="300" border="0" cellspacing="0" cellpadding="0"><tr>  <td width="15" height="15" ><img src="http://www.cashsurveysonly.com/images/calkcurv/top_left.png" width="15" height="15" /></td><td bgcolor="#FFD078"  height="15" ></td><td width="15" height="15" ><img src="http://www.cashsurveysonly.com/images/calkcurv/top_right.png" width="15" height="15" /></td></tr><tr><td width="15" bgcolor="#FFD078">&nbsp;</td><td><table width="300" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFD078"><form action="" method="post" name="frmCal"><tr><td ><table width="300" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td colspan="3" align="left"><p class="text"><strong>Use  this sample calculator below and get an estimate your potential income*:</strong></p></td></tr>';

caltable +='<tr><td colspan="3"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td colspan="2" align="left" class="simtext"><strong>How many surveys will you do a day?</strong></td><td  align="right"><select name="surveys_day123" id="surveys_day123" style="width:60px"><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option><option value="24">24</option><option value="25">25</option><option value="26">26</option><option value="27">27</option><option value="28">28</option><option value="29">29</option><option value="30">30</option></select></td></tr><tr><td colspan="2" align="left" class="simtext"><strong> Average money earned for each Survey?</strong></td><td align="right"><select id="surveys_pay123" name="surveys_pay123" style="width:60px"><option value="1">$1</option><option value="2">$2</option><option value="3">$3</option><option value="4">$4</option><option value="5" selected>$5</option><option value="6">$6</option><option value="7">$7</option><option value="8">$8</option><option value="9">$9</option><option value="10">$10</option><option value="11">$11</option><option value="12">$12</option><option value="13">$13</option><option value="14">$14</option><option value="15">$15</option><option value="16">$16</option><option value="17">$17</option><option value="18">$18</option><option value="19">$19</option><option value="20">$20</option><option value="21">$21</option><option value="22">$22</option><option value="23">$23</option><option value="24">$24</option><option value="25">$25</option><option value="26">$26</option><option value="27">$27</option><option value="28">$28</option><option value="29">$29</option><option value="30">$30</option><option value="31">$31</option><option value="32">$32</option><option value="33">$33</option><option value="34">$34</option><option value="35">$35</option><option value="36">$36</option><option value="37">$37</option><option value="38">$38</option><option value="39">$39</option><option value="40">$40</option><option value="41">$41</option><option value="42">$42</option><option value="43">$43</option><option value="44">$44</option><option value="45">$45</option><option value="46">$46</option><option value="47">$47</option><option value="48">$48</option><option value="49">$49</option><option value="50">$50</option></select></td></tr><tr><td colspan="2" align="left" class="simtext"><strong> How many days a week are you going to fill out Surveys?</strong></td><td align="right"><select id="surveys_unitval123" name="surveys_unitval123" style="width:60px"><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option></select></td></tr></table></td></tr>';

   caltable +='<tr><td colspan="3" style="padding-top:3px;padding-bottom:3px"><div align="center"><input name="submit" type="button"  onclick="showDiv(\'calk\');calculateValues();" value="" class="btnCalc"/></div></td></tr><tr><td colspan="2"></td><td></td></tr><tr><td colspan="3"><table width="100%" border="0" cellspacing="0" cellpadding="0">  <tr>    <td width="23" height="30" align="right" class="text"></td>    <td width="1" height="30" align="right" background="http://www.cashsurveysonly.com/images//left.jpg" style="background-repeat:repeat-x"></td><td width="142" height="30" align="right" valign="top" background="http://www.cashsurveysonly.com/images//textcenter.jpg"  class="redTxt" style="background-repeat:repeat-x; font-weight: bold;padding-top:7px">Weekly Income:</td><td width="92" height="30" align="center" valign="top" background="http://www.cashsurveysonly.com/images//textcenter.jpg" style="background-repeat:repeat-x;padding-top:4px"> <input name="week" type="text" class="redTxt"   id="week" style="background-color:#FFFFFF;border:0px;"  value="" size="11" readonly="" /></td><td width="1" height="30" align="right" background="http://www.cashsurveysonly.com/images//right.jpg" style="background-repeat:repeat-x"></td>   <td width="22" >&nbsp;</td>   <td width="19" >&nbsp;</td></tr><tr><td height="30" align="right" class="text">&nbsp;</td><td width="1" height="30" align="right" background="http://www.cashsurveysonly.com/images//left.jpg" style="background-repeat:repeat-x"></td><td height="30" align="right" valign="top" background="http://www.cashsurveysonly.com/images//textcenter.jpg" class="redTxt" style="background-repeat:repeat-x; font-weight: bold;padding-top:7px"> Monthly Income: </td><td height="30" align="center" valign="top" background="http://www.cashsurveysonly.com/images//textcenter.jpg" style="background-repeat:repeat-x;padding-top:4px">  <input name="month" type="text" class="redTxt"  id="month" style="background-color:#FFFFFF;border:0px;height:15px"  value="" size="11" readonly=""/></td><td width="1" height="30" align="right" background="http://www.cashsurveysonly.com/images//right.jpg" style="background-repeat:repeat-x"></td>   <td class="text">&nbsp;</td><td class="text">&nbsp;</td></tr><tr><td height="30" align="right" class="text">&nbsp;</td><td width="1" height="30" align="right" background="http://www.cashsurveysonly.com/images//left.jpg" style="background-repeat:repeat-x"></td><td height="30" align="right" valign="top" background="http://www.cashsurveysonly.com/images//textcenter.jpg" class="redTxt" style="background-repeat:repeat-x; font-weight: bold;padding-top:7px"> Yearly Income: </td><td height="30" align="center" valign="top" background="http://www.cashsurveysonly.com/images//textcenter.jpg" style="background-repeat:repeat-x;padding-top:4px"> <input name="year" type="text" class="redTxt"  id="year"  style="background-color:#FFFFFF;border:0px;"  value="" size="11" readonly=""/></td><td width="1" height="30" align="right" background="http://www.cashsurveysonly.com/images//right.jpg" style="background-repeat:repeat-x"></td>   <td class="text">&nbsp;</td><td class="text">&nbsp;</td></tr></table></td></tr>  <tr><td colspan="3" align="center" ><div id="calk" style="display:none;"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="50%" align="right" class="text">you can make</td><td width="50%" ><div id="totoincome" style="float:left;height:25px;vertical-align:middle;" class="text"></div></td></tr><tr><td colspan="2" align="center" class="text">start your membership Today </td></tr><tr><td colspan="2" align="center"><a href="http://'+ affclickid+'.cashso.hop.clickbank.net/"><img src="http://www.cashsurveysonly.com/images/sign-up-now.png" border="0"/></a></td></tr></table></div></td></tr></table></td></tr></form></table></td><td width="15" bgcolor="#FFD078">&nbsp;</td></tr><tr><td width="15" height="16" valign="top"><img src="http://www.cashsurveysonly.com/images/calkcurv/bottom_left.png" width="15" height="15" /></td><td height="15" bgcolor="#FFD078"></td><td width="15" height="16" valign="top"><img src="http://www.cashsurveysonly.com/images/calkcurv/bottom_right.png" width="15" height="16" /></td></tr></table></div>';	

return caltable;
}