function fnStatDisp(vrVal)
{
	if(vrVal == "N")
	{
		document.writeln("Not paid");
	}
	else if(vrVal == "R")
	{
		document.writeln("On Request");
	}
	if(vrVal == "P")
	{
		document.writeln("Paid");
	}
}

// JavaScript Document
function header(vrVal,vrVal1) {
	var vrUrl;
	if(vrVal1 == "DM")	//if data mining
	{
		vrUrl = "home-dm.php";
	}
	else if(vrVal1 == "E")	//if email referral
	{
		vrUrl = "home-email.php";
	}
	else if(vrVal1 == "AS" || vrVal1 == "AG")	//if Adv.posting Silver/gold plan
	{
		vrUrl = "home-ap.php";
	}
	else
	{
		vrUrl = "home.php";
	}

	if(vrVal)
	{
		document.write('<table width=\"780\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">	  <tr>		<td width=\"302\" height=\"111\" valign=\"middle\" class=\"header\"><img src=\"images/logo.gif\" alt=\"TheDataEntry.net\" width=\"302\" height=\"38\" /></td>	    <td class=\"header\">&nbsp;</td>	  </tr>	</table>	<!-- HEADER1 STARTS -->	<!-- HEADER 2 STARTS -->	<table width=\"780\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">      <tr>        <td width=\"561\" style=\"padding-top:5px;\"><img src=\"images/header.gif\" alt=\"TheDataEntry.net\" width=\"561\" height=\"207\" /></td>        <td width=\"201\" style=\"padding-top:5px;\"><img src=\"images/computer.gif\" alt=\"TheDataEntry.net\" width=\"201\" height=\"207\" /></td>        <td bgcolor=\"#8BCEEB\" style=\"padding-top:5px;\">&nbsp;</td>      </tr>    </table>	<!-- HEADER2 ENDS -->	<!-- MENU STARTS -->	<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">      <tr>        <td width=\"90\" class=\"homemenu\"><img src=\"images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"index.php\">Home</a></td>        <td width=\"110\" class=\"homemenu\"><img src=\"images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"aboutus.php\">About Us</a> </td>        <td width=\"110\" class=\"homemenu\"><img src=\"images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"contactus.php\">Contact Us </a></td>        <!--td width=\"90\" class=\"homemenu\"><img src=\"images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"join.php\">Join  </a></td--><td width=\"140\" class=\"homemenu\"><img src=\"images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"clients.php\">Our Clients  </a></td>        <td class=\"homemenu\"> Welcome: <font color=red>' + vrVal + '</td>      </tr>    </table>')
	}
	else
	{
		document.write('<table width=\"780\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">	  <tr>		<td width=\"302\" height=\"111\" valign=\"middle\" class=\"header\"><img src=\"images/logo.gif\" alt=\"TheDataEntry.net\" width=\"302\" height=\"38\" /></td>	    <td class=\"header\">&nbsp;</td>	  </tr>	</table>	<!-- HEADER1 STARTS -->	<!-- HEADER 2 STARTS -->	<table width=\"780\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">      <tr>        <td width=\"561\" style=\"padding-top:5px;\"><img src=\"images/header.gif\" alt=\"TheDataEntry.net\" width=\"561\" height=\"207\" /></td>        <td width=\"201\" style=\"padding-top:5px;\"><img src=\"images/computer.gif\" alt=\"TheDataEntry.net\" width=\"201\" height=\"207\" /></td>        <td bgcolor=\"#8BCEEB\" style=\"padding-top:5px;\">&nbsp;</td>      </tr>    </table>	<!-- HEADER2 ENDS -->	<!-- MENU STARTS -->	<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">      <tr>        <td width=\"90\" class=\"homemenu\"><img src=\"images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"index.php\">Home</a></td>        <td width=\"110\" class=\"homemenu\"><img src=\"images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"aboutus.php\">About Us</a> </td>        <td width=\"110\" class=\"homemenu\"><img src=\"images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"contactus.php\">Contact Us </a></td>        <!--td width=\"90\" class=\"homemenu\"><img src=\"images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"join.php\">Join  </a></td-->    <td width=\"140\" class=\"homemenu\"><img src=\"images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"clients.php\">Our Clients  </a></td>    <td  class=\"homemenu\"><a href=' + vrUrl + '><font color=red> Existing user click here</font></a> </td>      </tr>    </table>')
	}
}

function login() {

//	document.write('<table width="202" border="0" cellspacing="0" cellpadding="0">          <tr>            <td colspan="2" class="menubg"><img src="images/loginstrip.gif" alt="Login" width="202" height="41"  /></a></td>          </tr>          <tr>            <td colspan="2" class="username" style="color:#999999; height:20px;">Login details are case sensitive </td>          </tr>          <tr>            <td width="87" class="username">User name </td>            <td width="115" class="login"><input type="text" name="txtUserNm" maxlength=20 /></td>          </tr>          <tr>            <td class="username">Password </td>            <td class="login"><input type="password" name="txtPwd" maxlength=15 /></td>          </tr>          <tr>            <td colspan="2" class="username"><a href="javascript: goChkAvl();"><img src="images/login.gif" border=0 /></a></td>          </tr>        <tr>            <td colspan="2" class="username"><a href="forgetpass.php">Forgot Password?</a> | <a href="join.php">Join Now</a> </td>    <tr>   <tr><td colspan="2" class="space"></td></tr>  <tr>            <td colspan="2" valign="top" class="username" style="padding-left:50px; padding-top:20px"> <!--img src="http://www.noa-soft.com/IsSupportOnline.php?ClientID=S2G82A3DFUEWA2&ImageIdx=14" style="cursor:hand" onClick= "javascript:LoadChat();"--><script type="text/javascript" src="http://www.liveleader.com/a/Hello?cid=c9a29521-f71e-472e-8663-a7f2745a8149;v=1;w=2"></script><div align=left><a id="LiveLeaderLink" href="http://www.liveleader.com/" target="_blank"><img src="https://www.liveleader.com/a/gfx/badge2.gif" alt="Live support, Live help, Live chat solutions" style="border:0"/></a></div></td></tr><tr><td height="185" colspan="2" valign="top" class="username">&nbsp;</td>          </tr></table>') //recent

	document.write('<table width="202" border="0" cellspacing="0" cellpadding="0">  <tr> <td colspan="2"><!--tr>            <td colspan="2" class="username" style="text-align:center"><b>Refer & Win Rs.200/- per application</b></td></tr-->        <tr>  <td colspan="2" valign="top" class="username" style="padding-left:10px; padding-top:20px; text-align: center">  <script type="text/javascript" src="http://cdn.socialtwist.com/2009031512587/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009031512587/button.png"onmouseout="hideHoverMap(this)" onmouseover="showHoverMap(this, 2009031512587, window.location, document.title)" onclick="cw(this, {id:2009031512587, link: window.location, title: document.title });"/></a> </td></tr><tr><td colspan="2" valign="top" class="username">&nbsp;</td>          </tr>   <tr><td colspan="2" class="space"></td></tr>          <!--tr><td colspan="2" class="lable" style="color: #0000ff;text-align:left;font-size:8pt;"><marquee direction="up" scrollamount="2" height="80px" onmouseover="Javascript: this.stop();" onmouseout="Javascript: this.start();">Wanted Tamil data entry operators-Freshers/Experienced, immediate. <br><br>Contact Mr.Shiva @ 9884487872</marquee></td></tr-->          <tr><td colspan="2" class="space"></td></tr>       <tr>            <td colspan="2" class="menubg"><img src="images/loginstrip.gif" alt="Login" width="202" height="41"  /></a></td>          </tr>          <tr>            <td colspan="2" class="username" style="color:#999999; height:20px;">Login details are case sensitive </td>          </tr>          <tr>            <td width="87" class="username">User name </td>            <td width="115" class="login"><input type="text" name="txtUserNm" maxlength=20 /></td>          </tr>          <tr>            <td class="username">Password </td>            <td class="login"><input type="password" name="txtPwd" maxlength=15 /></td>          </tr>          <tr>            <td colspan="2" class="username"><a href="javascript: goChkAvl();"><img src="images/login.gif" border=0 /></a></td>          </tr>        <tr>            <td colspan="2" class="username"><a href="forgetpass.php">Forgot Password?</a> <!--| <a href="join.php">Join Now</a> --></td>    <tr>  <tr><td colspan=2 height=20></td></tr>  <tr>            <td colspan="2" class="username" style="color:red; font-weight: bold; text-align: left">Dear Customers, hereafter for all your payments & refunds, there will be a deduction of TDS + Service Charges.</td>    <tr>  </table>')


//	document.write('<table width="202" border="0" cellspacing="0" cellpadding="0">          <tr>            <td colspan="2" class="menubg"><img src="images/loginstrip.gif" alt="Login" width="202" height="41"  /></a></td>          </tr>          <tr>            <td colspan="2" class="username" style="color:#999999; height:20px;">Login details are case sensitive </td>          </tr>          <tr>            <td width="87" class="username">User name </td>            <td width="115" class="login"><input type="text" name="txtUserNm" maxlength=20 /></td>          </tr>          <tr>            <td class="username">Password </td>            <td class="login"><input type="password" name="txtPwd" maxlength=15 /></td>          </tr>          <tr>            <td colspan="2" class="username"><a href="javascript: fnValid();"><img src="images/login.gif" border=0 /></a></td>          </tr>          <tr>            <td colspan="2" class="username"><a href="forgetpass.php">Forgot Password?</a> | <a href="join.php">Join Now</a> </td>    <tr>            <td colspan="2" valign="top" class="username"><img src="</td>          </tr>      <tr>            <td height="205" colspan="2" valign="top" class="username">&nbsp;</td>          </tr></table>')
};

function regheader() {document.write('<table width="780" border="0" cellspacing="0" cellpadding="0">	  <tr>		<td width="302" height="111" valign="middle" class="header"><img src="../images/logo.gif" alt="TheDataEntry.net" width="302" height="38" /></td>	    <td class="header">&nbsp;</td>	  </tr>	</table>	<!-- HEADER1 STARTS -->	<!-- HEADER 2 STARTS -->	<table width="780" border="0" cellspacing="0" cellpadding="0">      <tr>        <td width="561" style="padding-top:5px;"><img src="../images/header.gif" alt="TheDataEntry.net" width="561" height="207" /></td>        <td width="201" style="padding-top:5px;"><img src="../images/computer.gif" alt="TheDataEntry.net" width="201" height="207" /></td>        <td bgcolor="#8BCEEB" style="padding-top:5px;">&nbsp;</td>      </tr>    </table>	<!-- HEADER2 ENDS -->	<!-- USER NAME STARTS -->	<table width="100%" border="0" cellspacing="0" cellpadding="0">	  <tr>		<td class="logout">		<img src="../images/menu-bullet.gif" width="12" height="11" />&nbsp;		Welcome Kingsley | <a href="#">Logout</a> </td>	    </tr>	</table>	<!-- USER NAME ENDS -->')};

function regmenu() {document.write('<table width=\"205\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">          <tr>            <td width=\"202\" class=\"menu\"><a href=\"home.php\">HOME</a></td>          </tr>          <tr>            <td class=\"menu\"><a href=\"earningarea.php\">WORK LOAD</a> </td>          </tr>          <tr>            <td class=\"menu\"><a href=\"myearning.php\">QC REPORT</a> </td>          </tr>          <tr>            <td class=\"menu\"><a href=\"myprofile.php\">MY PROFILE</a> </td>          </tr>          <tr>            <td class=\"menu\"><a href=\"referrals.php\">REFERRALS</a></td>          </tr>          <!--tr>            <td class=\"menu\"><a href=\"upload.html\">UPLOAD / FTP</a> </td>          </tr-->          <tr>            <td class=\"menu\"><a href=\"software.php\">SOFTWARE</a></td>          </tr>          <tr>            <td class=\"menu\"><a href=\"#\">TRAINING DETAILS</a> </td>          </tr>          <tr>            <td class=\"menu\"><a href=\"payhistory.php\">PAYMENTS HISTORY</a> </td>          </tr>    <!--tr>	<td class=\"menu\"><a href=\"testimony.php\">TESTIMONY</a> </td>	</tr-->      <tr>            <td class=\"menu\"><a href=\"#\">FAQ</a></td>          </tr>	<tr>            <!--td class=\"menu\"><a href=\"#\">CONTACT US</a> </td-->          </tr>          <tr>            <td class=\"menu\"><a href=\"logout.php\">LOGOUT</a></td>          </tr>        </table>')};

function regmenuEmail() {document.write('<table width=\"205\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">          <tr>            <td width=\"202\" class=\"menu\"><a href=\"home-email.php\">HOME</a></td>          </tr>          <tr>            <td class=\"menu\"><a href=\"refmail.php\">ADD EMAIL-ID</a> </td>          </tr>          <tr>            <td class=\"menu\"><a href=\"myprofile.php\">MY PROFILE</a> </td>          </tr>          <tr>            <td class=\"menu\"><a href=\"refpay.php\">PAYMENT HISTORY</a></td>          </tr>       <tr>            <td width=\"202\" class=\"menu\"><a href=\"bestperform.php\">BEST PERFORMERS</a></td>          </tr>     <tr>            <td class=\"menu\"><a href=\"logout.php\">LOGOUT</a></td>          </tr>    <tr>            <td width=\"202\" class=\"space\" style=\"height:25px; border-left: 1px solid #D7D7D7;\"></td>          </tr>    </table>')};

function regmenuDM() {document.write('<table width=\"205\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">          <tr>            <td width=\"202\" class=\"menu\"><a href=\"home-dm.php\">HOME</a></td>          </tr>          <tr>            <td class=\"menu\"><a href=\"datacol.php\">DATA COLLECTION</a> </td>          </tr>          <tr>            <td class=\"menu\"><a href=\"myprofile.php\">MY PROFILE</a> </td>          </tr>          <tr>            <td class=\"menu\"><a href=\"rptdmearn.php\">PAYMENT HISTORY</a></td>          </tr>       <tr>            <td class=\"menu\"><a href=\"dmentuplogout.php\">LOGOUT</a></td>          </tr>    <tr>            <td width=\"202\" class=\"space\" style=\"height:25px; border-left: 1px solid #D7D7D7;\"></td>          </tr>    </table>')};

function regmenuAdv() {document.write('<table width=\"205\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">          <tr>            <td width=\"202\" class=\"menu\"><a href=\"home-ap.php\">HOME</a></td>          </tr>          <tr>            <td class=\"menu\"><a href=\"posturl.php\">ADV. POSTING</a> </td>          </tr>      <tr>            <td class=\"menu\"><a href=\"poststat.php\">ADV. POSTING STATUS</a> </td>          </tr>  <tr>            <td class=\"menu\"><a href=\"advpay.php\">PAYMENT HISTORY</a> </td>          </tr>        <tr>            <td class=\"menu\"><a href=\"myprofile.php\">MY PROFILE</a> </td>          </tr>          <tr>            <td class=\"menu\"><a href=\"logout.php\">LOGOUT</a></td>          </tr>    <tr>            <td width=\"202\" class=\"space\" style=\"height:25px; border-left: 1px solid #D7D7D7;\"></td>          </tr>    </table>')};

function fnGglAdv()
{
	google_ad_client = "pub-3070113099847400";
	google_ad_width = 160;
	google_ad_height = 600;
	google_ad_format = "160x600_as";
	google_ad_type = "text_image";
	//2007-03-01: data entry, home based earing, free ads, home business, online money making, online jobs
	google_ad_channel = "9171542874+6687218942+1257084670+5446393513+9740233165";

	document.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
	
//-recentdocument.write('<!-- CBDArts.com Tracker --><script type="text/javascript" language="javascript" src="http://cbdarts.com/t.aspx?ad=23"></script><!-- CBDArts.com Tracker -->');

//document.write('<script type="text/javascript"><!--google_ad_client = "pub-3070113099847400";google_ad_width = 160;google_ad_height = 600;google_ad_format = "160x600_as";google_ad_type = "text_image";google_ad_channel = "9171542874+6687218942+1257084670+5446393513+9740233165";//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
}

function fnGglImgAdv()
{
	google_ad_client = "pub-3070113099847400";
	/* 300x250, created 1/7/10 */
	google_ad_slot = "8505801787";
	google_ad_width = 300;
	google_ad_height = 250;

	document.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
}

function fnGglImgAdvWide()
{
google_ad_client = "pub-3070113099847400";
/* 728x90, created 1/7/10 */
google_ad_slot = "6335583963";
google_ad_width = 728;
google_ad_height = 90;


document.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
}

function fnGglImgAd336()
{
google_ad_client = "pub-3070113099847400";
/* 336x280, created 1/7/10 */
google_ad_slot = "0795559016";
google_ad_width = 336;
google_ad_height = 280;

document.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
}

function fnDet(vrVal)
{
	window.open("viewuserdet.php?vrVar1=" + vrVal,null,style="width=600,height=550,top=130,left=200");
}

String.prototype.trim = function() {

return this.replace(/(?:(?:^|\n)\s+|\s+(?:$|\n))/g,"");

}

String.prototype.fulltrim = function() {

return this.replace(/(?:(?:^|\n)\s+|\s+(?:$|\n))/g,"").replace(/\s+/g," ");

}

function IsNumeric(strString)
   //  check for valid numeric strings	
   {
 //  var strValidChars = "0123456789.-";
   var strValidChars = "0123456789";
   var strChar;
   var blnResult = true;

   if (strString.length == 0) return false;

   //  test strString consists of valid characters listed above
   for (i = 0; i < strString.length && blnResult == true; i++)
      {
      strChar = strString.charAt(i);
      if (strValidChars.indexOf(strChar) == -1)
         {
         blnResult = false;
         }
      }
   return blnResult;
   }

/*function header_email(vrVal) {
	var vrUrl;
	vrUrl = "home-email.php";

	if(vrVal)
	{
		document.write('<table width=\"780\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">	  <tr>		<td width=\"302\" height=\"111\" valign=\"middle\" class=\"header\"><img src=\"../images/logo.gif\" alt=\"TheDataEntry.net\" width=\"302\" height=\"38\" /></td>	    <td class=\"header\">&nbsp;</td>	  </tr>	</table>	<!-- HEADER1 STARTS -->	<!-- HEADER 2 STARTS -->	<table width=\"780\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">      <!--tr>        <td width=\"561\" style=\"padding-top:5px;\"><img src=\"../images/header.gif\" alt=\"TheDataEntry.net\" width=\"561\" height=\"207\" /></td>        <td width=\"201\" style=\"padding-top:5px;\"><img src=\"../images/computer.gif\" alt=\"TheDataEntry.net\" width=\"201\" height=\"207\" /></td>        <td bgcolor=\"#8BCEEB\" style=\"padding-top:5px;\">&nbsp;</td>      </tr-->    </table>	<!-- HEADER2 ENDS -->	<!-- MENU STARTS -->	<!--table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">      <tr>        <td width=\"90\" class=\"homemenu\"><img src=\"../images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"index.php\">Home</a></td>        <td width=\"110\" class=\"homemenu\"><img src=\"../images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"aboutus.php\">About Us</a> </td>        <td width=\"110\" class=\"homemenu\"><img src=\"../images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"contactus.php\">Contact Us </a></td>        <!--td width=\"90\" class=\"homemenu\"><img src=\"../images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"join.php\">Join  </a></td--><td width=\"140\" class=\"homemenu\"><img src=\"../images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"clients.php\">Our Clients  </a></td>        <td class=\"homemenu\"> Welcome: <font color=red>' + vrVal + '</td>      </tr>    </table-->')
	}
	else
	{
		document.write('<table width=\"780\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">	  <tr>		<td width=\"302\" height=\"111\" valign=\"middle\" class=\"header\"><img src=\"../images/logo.gif\" alt=\"TheDataEntry.net\" width=\"302\" height=\"38\" /></td>	    <td class=\"header\">&nbsp;</td>	  </tr>	</table>	<!-- HEADER1 STARTS -->	<!-- HEADER 2 STARTS -->	<table width=\"780\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">      <!--tr>        <td width=\"561\" style=\"padding-top:5px;\"><img src=\"../images/header.gif\" alt=\"TheDataEntry.net\" width=\"561\" height=\"207\" /></td>        <td width=\"201\" style=\"padding-top:5px;\"><img src=\"../images/computer.gif\" alt=\"TheDataEntry.net\" width=\"201\" height=\"207\" /></td>        <td bgcolor=\"#8BCEEB\" style=\"padding-top:5px;\">&nbsp;</td>      </tr-->    </table>	<!-- HEADER2 ENDS -->	<!-- MENU STARTS -->	<!--table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">      <tr>        <td width=\"90\" class=\"homemenu\"><img src=\"../images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"index.php\">Home</a></td>        <td width=\"110\" class=\"homemenu\"><img src=\"../images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"aboutus.php\">About Us</a> </td>        <td width=\"110\" class=\"homemenu\"><img src=\"../images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"contactus.php\">Contact Us </a></td>        <td width=\"90\" class=\"homemenu\"><img src=\"../images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"join.php\">Join  </a></td>    <td width=\"140\" class=\"homemenu\"><img src=\"../images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"clients.php\">Our Clients  </a></td>    <td  class=\"homemenu\"><a href=' + vrUrl + '><font color=red> Existing user click here</font></a> </td>      </tr>    </table-->')
	}
}*/

function header_email(vrVal) {
	var vrUrl;
	vrUrl = "home-email.php";

	if(vrVal)
	{
		document.write('<table width=\"780\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">	  <tr>		<td width=\"302\" height=\"111\" valign=\"middle\" class=\"header\"><img src=\"../images/logo.gif\" alt=\"TheDataEntry.net\" width=\"302\" height=\"38\" /></td>	    <td class=\"header\">&nbsp;</td>	  </tr>	</table>	<!-- HEADER1 STARTS -->	<!-- HEADER 2 STARTS -->	<!--table width=\"780\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">      <tr>        <td width=\"561\" style=\"padding-top:5px;\"><img src=\"images/header.gif\" alt=\"TheDataEntry.net\" width=\"561\" height=\"207\" /></td>        <td width=\"201\" style=\"padding-top:5px;\"><img src=\"images/computer.gif\" alt=\"TheDataEntry.net\" width=\"201\" height=\"207\" /></td>        <td bgcolor=\"#8BCEEB\" style=\"padding-top:5px;\">&nbsp;</td>      </tr>    </table-->	<!-- HEADER2 ENDS -->	<!-- MENU STARTS -->	<!--table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">      <tr>        <td width=\"90\" class=\"homemenu\"><img src=\"images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"index.php\">Home</a></td>        <td width=\"110\" class=\"homemenu\"><img src=\"images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"aboutus.php\">About Us</a> </td>        <td width=\"110\" class=\"homemenu\"><img src=\"images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"contactus.php\">Contact Us </a></td>        <td width=\"90\" class=\"homemenu\"><img src=\"images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"join.php\">Join  </a></td><td width=\"140\" class=\"homemenu\"><img src=\"images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"clients.php\">Our Clients  </a></td>        <td class=\"homemenu\"> Welcome: <font color=red>' + vrVal + '</td>      </tr>    </table-->')
	}
	else
	{
		document.write('<table width=\"780\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">	  <tr>		<td width=\"302\" height=\"111\" valign=\"middle\" class=\"header\"><img src=\"../images/logo.gif\" alt=\"TheDataEntry.net\" width=\"302\" height=\"38\" /></td>	    <td class=\"header\">&nbsp;</td>	  </tr>	</table>	<!-- HEADER1 STARTS -->	<!-- HEADER 2 STARTS -->	<!--table width=\"780\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">      <tr>        <td width=\"561\" style=\"padding-top:5px;\"><img src=\"images/header.gif\" alt=\"TheDataEntry.net\" width=\"561\" height=\"207\" /></td>        <td width=\"201\" style=\"padding-top:5px;\"><img src=\"images/computer.gif\" alt=\"TheDataEntry.net\" width=\"201\" height=\"207\" /></td>        <td bgcolor=\"#8BCEEB\" style=\"padding-top:5px;\">&nbsp;</td>      </tr>    </table-->	<!-- HEADER2 ENDS -->	<!-- MENU STARTS -->	<!--table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">      <tr>        <td width=\"90\" class=\"homemenu\"><img src=\"images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"index.php\">Home</a></td>        <td width=\"110\" class=\"homemenu\"><img src=\"images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"aboutus.php\">About Us</a> </td>        <td width=\"110\" class=\"homemenu\"><img src=\"images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"contactus.php\">Contact Us </a></td>        <td width=\"90\" class=\"homemenu\"><img src=\"images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"join.php\">Join  </a></td>    <td width=\"140\" class=\"homemenu\"><img src=\"images/menu-bullet.gif\" width=\"12\" height=\"11\" />&nbsp;<a href=\"clients.php\">Our Clients  </a></td>    <td  class=\"homemenu\"><a href=' + vrUrl + '><font color=red> Existing user click here</font></a> </td>      </tr>    </table-->')
	}
}


function login_email() {

	document.write('<table width="202" border="0" cellspacing="0" cellpadding="0">  <tr>    <td colspan="2" class="menubg"><img src="../images/loginstrip.gif" alt="Login" width="202" height="41"  /></a></td>          </tr>          <tr>            <td colspan="2" class="username" style="color:#999999; height:20px;">Login details are case sensitive </td>          </tr>          <tr>            <td width="87" class="username">User name </td>            <td width="115" class="login"><input type="text" name="txtUserNm" maxlength=20 /></td>          </tr>          <tr>            <td class="username">Password </td>            <td class="login"><input type="password" name="txtPwd" maxlength=15 /></td>          </tr>          <tr>            <td colspan="2" class="username"><a href="javascript: goChkAvl();"><img src="../images/login.gif" border=0 /></a></td>          </tr>        <tr>            <td colspan="2" class="username"><a href="forgetpass.php">Forgot Password?</a> </td>    </table>');

}


var today=new Date();

function populatedropdown(dayfield, monthfield, yearfield,st,curdtst){

	var vrDayfield=document.getElementById(dayfield)
	var vrMonthfield=document.getElementById(monthfield)
	var vrYearfield=document.getElementById(yearfield)

	var thisyear=today.getFullYear()

//	vrYearfield.options[0]=new Option("YY", 0)
	for (var y=1; y<=100; y++){
		vrYearfield.options[y-1]=new Option(thisyear, thisyear)
		if(st == 1)					//for future years
		{
			thisyear+=1
		}
		else if(st == 0)			// for yester years (d.o.b.)
		{
			thisyear-=1
		}
	}


	for (var m=1; m<=12; m++)
	{
		/*if(m==0){
			vrMonthfield.options[0]=new Option("MM", 0);
		}
		else
		{*/
			vrMonthfield.options[m-1]=new Option(m, m);
		//}
	}


	//display day
	//------------

	for (var d=1; d<=31; d++)
	{
		/*if(d==0){
			vrDayfield.options[0]=new Option("--Day--", 0);
		}
		else
		{*/
			vrDayfield.options[d-1]=new Option(d, d);
		//}
	}

	//dayDisp(dayfield,monthfield,yearfield);
	
	
	if(curdtst == 1)
	{
		vrYearfield.value = today.getFullYear();
		vrMonthfield.value = (today.getMonth()+1);
		vrDayfield.value = today.getDate();
	}
}