function cookieObject(name, expires, accessPath) {
var i, j
this.name = name
this.fieldSeparator = "#"
this.found = false
this.expires = expires
this.accessPath = accessPath
this.rawValue = ""
this.fields = new Array()
this.fieldnames = new Array() 
if (arguments.length > 3) { // field name(s) specified
  j = 0
  for (i = 3; i < arguments.length; i++) {
    this.fieldnames[j] = arguments[i]    
    j++
  }
  this.fields.length = this.fieldnames.length 
}
this.read = ucRead

this.write = ucWrite

this.remove = ucDelete
this.get = ucFieldGet
this.put = ucFieldPut
this.namepos = ucNamePos
this.read()
}


function ucFieldGet(fieldname) {
var i = this.namepos(fieldname)
if (i >=0) {
  return this.fields[i]
} else {
  return "BadFieldName!"
}
}

function ucFieldPut (fieldname, fieldval) {
var i = this.namepos(fieldname)
if (i >=0) {
  this.fields[i] = fieldval
  return true
} else {
  return false
}
}

function ucNamePos(fieldname) {
var i 
for (i = 0; i < this.fieldnames.length; i++) {
  if (fieldname == this.fieldnames[i]) {
    return i
  }
}
return -1
}


function ucWrite() {      
  var cookietext = this.name + "=" 

// concatenate array elements into cookie string

// Special case - single-field cookie, so write without # terminator
if (this.fields.length == 1) {
  cookietext += escape(this.fields[0])
  } else { // multi-field cookie
    for (i= 0; i < this.fields.length; i++) {
      cookietext += escape(this.fields[i]) + this.fieldSeparator }
  }


// Set expiry parameter, if specified
    if (this.expires != null) {  
      if (typeof(this.expires) == "number") { // Expiry period in days specified  
        var today=new Date()     
        var expiredate = new Date()      
        expiredate.setTime(today.getTime() + 1000*60*60*24*this.expires)
        cookietext += "; expires=" + expiredate.toGMTString()
      } else { // assume it's a date object
        cookietext +=  "; expires=" + this.expires.toGMTString()
      } // end of typeof(this.expires) if
    } // end of this.expires != null if 
   
// add path, if specified
   if (this.accessPath != null) {
   cookietext += "; PATH="+this.accessPath }

// write cookie
   // alert("writing "+cookietext)
   document.cookie = cookietext 
   return null  
}


function ucRead() {
  var search = this.name + "="                       
  var CookieString = document.cookie            
  this.rawValue = null
  this.found = false     
  if (CookieString.length > 0) {                
    offset = CookieString.indexOf(search)       
    if (offset != -1) {                         
      offset += search.length                   
      end = CookieString.indexOf(";", offset)   
      if (end == -1) {  // cookie is last item in the string, so no terminator                        
       end = CookieString.length }              
      this.rawValue = CookieString.substring(offset, end)                                   
      this.found = true 
      } 
    }
   
if (this.rawValue != null) { // unpack into fields

  var sl = this.rawValue.length
  var startidx = 0
  var endidx = 0
  var i = 0

// Special case - single-field cookies written by other functions,
// so without a '#' terminator

if (this.rawValue.substr(sl-1, 1) != this.fieldSeparator) {
  this.fields[0] = unescape(this.rawValue)
  } else { // separate fields

  do  
  {
   endidx = this.rawValue.indexOf(this.fieldSeparator, startidx)
   if (endidx !=-1) {
     this.fields[i] = unescape(this.rawValue.substring(startidx, endidx))
     i++
     startidx = endidx + 1}
  }
  while (endidx !=-1 & endidx != (this.rawValue.length -1));
}
} // end of unpack into fields if block
  return this.found
} // end of function


function ucDelete() {
  this.expires = -10
  this.write()
  return this.read()
}

function subsc(){
window.open('http://www.womenfitness.net/subscribe.htm','subsc','width=470,height=265,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no');
}
function winopn1(option){
var dmurl = "";
window1 = window.open(dmurl,'emailfriend','width=470,height=290,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no');
document.tmail.target="emailfriend";
document.tmail.submit();
return false;
}

function tour() {
popupWin = window.open('../tour2.html','windowName','toolbar=no,location=no,resizeable=no,status=no,menubar=no,scrollbars=no,resizable=no,width=700,height=440')
}




function leftbar()
{
document.write("<iframe name=\"I6\" src=\"http://www.womenfitness.net/toolbar_left.htm\" marginwidth=\"0\" marginheight=\"0\" height=\"2450\" width=\"150\" scrolling=\"no\" border=\"0\" frameborder=\"0\">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>");
}




function basebar(){

a_str='<div align="center"><center><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="25%" id="AutoNumber2"><tr><td width="100%" style="border-style: none; border-width: medium"><NOLAYER><IFRAME SRC="http://www.womenfitness.net/toolbar/bottomtxt.php" WIDTH="980" HEIGHT="130" FRAMEBORDER="no" BORDER="0"  MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no"></IFRAME></NOLAYER></td></tr></table></center></div>'
document.write(a_str)

var tarray = new Array();
titleCookie = new cookieObject("titledata",null, null)
for (i = 0; i < titleCookie.fields.length; i++) 
	tarray.push(titleCookie.fields[i]);

var uarray = new Array();
urlCookie = new cookieObject("urldata",null, null)
for (i = 0; i < urlCookie.fields.length; i++) 
	uarray.push(urlCookie.fields[i]);

document.write ("<div align='left'><table border='1' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#C8E0A0' width='100%' id='AutoNumber1' bgcolor='#F7FBF0'><tr><td width='100%'><p style='margin-left: 10; margin-right: 10; margin-top: 0; margin-bottom: 4'><b><font face='Verdana' size='2' color='#43591E'>Your Recent History</font></b><font face='Verdana' size='1'>&nbsp;&nbsp;..quick links back to the pages of your interest.</font></p><div align='center'><center><table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' width='95%' id='AutoNumber2'>");
for (var i=0; i<tarray.length; i++)
document.write ("<tr><td width='3%' valign='top'><p align='center' style='margin-top: 1; margin-bottom: 1'><font size='1' face='Verdana'><img border='0' src='http://www.womenfitness.net/wfimgank4/bullet_beauty_sqr.gif' width='13' height='13'></font></td><td width='97%'><font face='Verdana' size='1' color='#698C2F'><a href='" + uarray[i] + "' style='text-decoration: none'><font color='#698C2F'>" + tarray[i] + "</font></a></font></td></tr>");
document.write ("</table></center></div><p style='margin: 0 10'>&nbsp;</td></tr></table></div>");

tarray.push(document.title);
for (var i=0; i<tarray.length; i++)
	titleCookie.fields[i]=tarray[i];
titleCookie.write()

uarray.push(document.location);
for (var i=0; i<uarray.length; i++)
	urlCookie.fields[i]=uarray[i];
urlCookie.write()

m_str='<iframe name="I6" src="http://www.womenfitness.net/toolbar_bottom_11-09-2007.htm" marginwidth="0" marginheight="0" height="500" width="980" scrolling="no" border="0" frameborder="0">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>'
m_str=m_str+'<!-- Kontera ContentLink --><script type="text/javascript">var dc_UnitID = 14;var dc_PublisherID = 34704;var dc_AdLinkColor = \'blue\';var dc_isBoldActive= \'yes\';var dc_adprod=\'ADL\';var dc_open_new_win = \'yes\';</script><script type="text/javascript" SRC="http://kona.kontera.com/javascript/lib/KonaLibInline.js"></script><!-- Kontera ContentLink -->'
document.write(m_str)
}





function cpc_bottom() {
adst = new Array()
adst[1]="cpc_bottom_1()"
adst[2]="cpc_bottom_2()"
adst[3]="cpc_bottom_3()"
adst[4]="cpc_bottom_4()"
adst[5]="cpc_bottom_5()"
adst[6]="cpc_bottom_6()"

var n = Math.random() + ''
n = parseInt(n.charAt(6))
if(n >6) {
        n = n - 6
}
else if(n==0) {
        n = n + 6
}
document.write("<script>");
document.write(adst[n]);
document.write("</script>");
}


function cpc_bottom_1(){
m_str='<div align="center"><center><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111"><tr><td><form method="POST" action="http://www.womenfitness.net/cgi-bin/adwithus-cpc.pl" style="margin-top: 0; margin-bottom: 0" target="_blank"><input type="hidden" name="rdrt" value="http://www.pharmacypills.us/index2.html"><input type="hidden" name="wfid" value="ppharma"><IFRAME align="left" src="http://www.womenfitness.net/cgi-bin/client_appr.pl?wfid=ppharma" frameBorder=0 scrolling=no width=0 height=0 marginHeight=0 marginWidth=0 hspace=0 vspace=0 name="I5"></IFRAME><input border="0" src="http://www.womenfitness.net/wfimgank4/phen15kus.gif" name="I1" type="image" onmouseover="window.status=\'Weight Loss Pills from PharmacyPills.us\';return true;" onmouseout="window.status=\' \';return true;" width="468" height="60" alt="ERRX LLC"></form></td></tr></table></center></div>'
document.write(m_str)
}



function cpc_bottom_2(){
m_str='<div align="center"><center><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111"><tr><td><form method="POST" action="http://www.womenfitness.net/cgi-bin/adwithus-cpc.pl" style="margin-top: 0; margin-bottom: 0" target="_blank"><input type="hidden" name="rdrt" value="http://www.pharmacypills.us/index2.html"><input type="hidden" name="wfid" value="ppharma"><IFRAME align="left" src="http://www.womenfitness.net/cgi-bin/client_appr.pl?wfid=ppharma" frameBorder=0 scrolling=no width=0 height=0 marginHeight=0 marginWidth=0 hspace=0 vspace=0 name="I5"></IFRAME><input border="0" src="http://www.womenfitness.net/wfimgank4/phen15kus.gif" name="I1" type="image" onmouseover="window.status=\'Weight Loss Pills from PharmacyPills.us\';return true;" onmouseout="window.status=\' \';return true;" width="468" height="60" alt="ERRX LLC"></form></td></tr></table></center></div>'
document.write(m_str)
}


function cpc_bottom_3(){
m_str='<div align="center"><center><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111"><tr><td><form method="POST" action="http://www.womenfitness.net/cgi-bin/adwithus-cpc.pl" style="margin-top: 0; margin-bottom: 0" target="_blank"><input type="hidden" name="rdrt" value="http://www.pharmacypills.us/index2.html"><input type="hidden" name="wfid" value="ppharma"><IFRAME align="left" src="http://www.womenfitness.net/cgi-bin/client_appr.pl?wfid=ppharma" frameBorder=0 scrolling=no width=0 height=0 marginHeight=0 marginWidth=0 hspace=0 vspace=0 name="I5"></IFRAME><input border="0" src="http://www.womenfitness.net/wfimgank4/phen15kus.gif" name="I1" type="image" onmouseover="window.status=\'Weight Loss Pills from PharmacyPills.us\';return true;" onmouseout="window.status=\' \';return true;" width="468" height="60" alt="ERRX LLC"></form></td></tr></table></center></div>'
document.write(m_str)
}


function cpc_bottom_4(){
m_str='<div align="center"><center><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111"><tr><td><form method="POST" action="http://www.womenfitness.net/cgi-bin/adwithus-cpc.pl" style="margin-top: 0; margin-bottom: 0" target="_blank"><input type="hidden" name="rdrt" value="http://www.pharmacypills.us/index2.html"><input type="hidden" name="wfid" value="ppharma"><IFRAME align="left" src="http://www.womenfitness.net/cgi-bin/client_appr.pl?wfid=ppharma" frameBorder=0 scrolling=no width=0 height=0 marginHeight=0 marginWidth=0 hspace=0 vspace=0 name="I5"></IFRAME><input border="0" src="http://www.womenfitness.net/wfimgank4/phen15kus.gif" name="I1" type="image" onmouseover="window.status=\'Weight Loss Pills from PharmacyPills.us\';return true;" onmouseout="window.status=\' \';return true;" width="468" height="60" alt="ERRX LLC"></form></td></tr></table></center></div>'
document.write(m_str)
}


function cpc_bottom_5(){
m_str='<div align="center"><center><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111"><tr><td><form method="POST" action="http://www.womenfitness.net/cgi-bin/adwithus-cpc.pl" style="margin-top: 0; margin-bottom: 0" target="_blank"><input type="hidden" name="rdrt" value="http://www.pharmacypills.us/index2.html"><input type="hidden" name="wfid" value="ppharma"><IFRAME align="left" src="http://www.womenfitness.net/cgi-bin/client_appr.pl?wfid=ppharma" frameBorder=0 scrolling=no width=0 height=0 marginHeight=0 marginWidth=0 hspace=0 vspace=0 name="I5"></IFRAME><input border="0" src="http://www.womenfitness.net/wfimgank4/phen15kus.gif" name="I1" type="image" onmouseover="window.status=\'Weight Loss Pills from PharmacyPills.us\';return true;" onmouseout="window.status=\' \';return true;" width="468" height="60" alt="ERRX LLC"></form></td></tr></table></center></div>'
document.write(m_str)
}


function cpc_bottom_6(){
m_str='<div align="center"><center><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111"><tr><td><form method="POST" action="http://www.womenfitness.net/cgi-bin/adwithus-cpc.pl" style="margin-top: 0; margin-bottom: 0" target="_blank"><input type="hidden" name="rdrt" value="http://www.pharmacypills.us/index2.html"><input type="hidden" name="wfid" value="ppharma"><IFRAME align="left" src="http://www.womenfitness.net/cgi-bin/client_appr.pl?wfid=ppharma" frameBorder=0 scrolling=no width=0 height=0 marginHeight=0 marginWidth=0 hspace=0 vspace=0 name="I5"></IFRAME><input border="0" src="http://www.womenfitness.net/wfimgank4/phen15kus.gif" name="I1" type="image" onmouseover="window.status=\'Weight Loss Pills from PharmacyPills.us\';return true;" onmouseout="window.status=\' \';return true;" width="468" height="60" alt="ERRX LLC"></form></td></tr></table></center></div>'
document.write(m_str)
}


function inline() {
m_str='<div align="center"><center><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="25%" id="AutoNumber2"><tr><td width="100%" height="14"align="center"><font face="Verdana,arial,Tahoma" size="1" color="#C0C0C0"><a href="http://www.womenfitness.net/pay4clicks_final.htm">Advertise Here</a></font></td></tr><tr><td width="100%" style="border-style: none; border-width: medium"><NOLAYER><IFRAME SRC="http://www.womenfitness.net/toolbar/inline.php" WIDTH="550" HEIGHT="250" FRAMEBORDER="no" BORDER="0"  MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no"></IFRAME></NOLAYER></td></tr></table></center></div>'
document.write(m_str)
}








function ad_article() {
m_str='<div align="center"><center><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="25%" id="AutoNumber2"><tr><td width="100%" height="14"align="center"><font face="Verdana,arial,Tahoma" size="1" color="#C0C0C0"><a href="http://www.womenfitness.net/pay4clicks_final.htm">Advertise Here</a></font></td></tr><tr><td width="100%" style="border-style: none; border-width: medium"><NOLAYER><IFRAME SRC="http://www.womenfitness.net/toolbar/inline.php" WIDTH="625" HEIGHT="250" FRAMEBORDER="no" BORDER="0"  MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no"></IFRAME></NOLAYER></td></tr></table></center></div>'
document.write(m_str)
}






function topw(){
document.write("<map name='FPMap10'><area href='../index.htm' shape='rect' coords='44, 0, 97, 15'><area href='../qustnare.htm' shape='rect' coords='99, 0, 198, 15'><area href='../programs/index.htm' shape='rect' coords='200, 0, 296, 15'><area coords='298, 0, 368, 15' shape='rect' href='javascript:tour();'><area href='../wf4months.htm' shape='rect' coords='369, 0, 428, 15'><area href='../wfmember/index.htm' shape='rect' coords='430, 0, 531, 15'></map><img border='0' src='../wfimgank2/herbs_08.jpg' width='532' height='16' usemap='#FPMap10'><br><br>");
}

function ad(){
m_str='<div align="center"><center><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="25%" id="AutoNumber2"><tr><td width="100%" height="14"align="center"><font face="Verdana,arial,Tahoma" size="1" color="#C0C0C0"><a href="http://www.womenfitness.net/pay4clicks_final.htm">Advertise Here</a></font></td></tr><tr><td width="100%" style="border-style: none; border-width: medium"><NOLAYER><IFRAME SRC="http://www.womenfitness.net/toolbar/inline.php" WIDTH="550" HEIGHT="250" FRAMEBORDER="no" BORDER="0"  MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no"></IFRAME></NOLAYER></td></tr></table></center></div>'
document.write(m_str)
}

