function top_header_template(){
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/template_header.htm" WIDTH="980" HEIGHT="128" FRAMEBORDER="no" BORDER="0"  MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no"></IFRAME></NOLAYER></td></tr></table></center></div>'
document.write(a_str)
}



function top_header_template2(){
b_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/template_header.htm" WIDTH="980" HEIGHT="128" FRAMEBORDER="no" BORDER="0"  MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no"></IFRAME></NOLAYER></td></tr></table></center></div>'
document.write(b_str)
}




//-------------------------------------------------------------------




function popitup(url,feature) {
	newwindow=window.open(url,'name',feature);
	if (window.focus) {newwindow.focus()}
	return false;
}




function adbar_top_template_removed(){
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/topb.php" WIDTH="900" HEIGHT="100" FRAMEBORDER="no" BORDER="0"  MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no"></IFRAME></NOLAYER></td></tr></table></center></div>'
document.write(a_str)
}

function adbar_top_template(){
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/blank_wf_ad.htm" WIDTH="900" HEIGHT="100" FRAMEBORDER="no" BORDER="0"  MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no"></IFRAME></NOLAYER></td></tr></table></center></div>'
document.write(a_str)
}





//-------------------------------------------------------------------




function toolbar_side_template_verisign()
{
document.write("<iframe name=\"I6\" src=\"http://www.womenfitness.net/toolbar_left_template_verisign.htm\" marginwidth=\"0\" marginheight=\"0\" height=\"3000\" 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 toolbar_side_template()
{
document.write("<iframe name=\"I6\" src=\"http://www.womenfitness.net/toolbar_left_template.htm\" marginwidth=\"0\" marginheight=\"0\" height=\"3000\" 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>");
}

//--- Country edition dropdown


function toolbar_side_template_test()
{
document.write("<iframe name=\"I6\" src=\"toolbar_left_template_countrylist.htm\" marginwidth=\"0\" marginheight=\"0\" height=\"3000\" 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>");
}

//--- dropdown finish
function toolbar_side_template_quiz()
{
document.write("<iframe name=\"I7\" src=\"http://www.womenfitness.net/toolbar_left_template.htm\" marginwidth=\"0\" marginheight=\"0\" height=\"3000\" 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 adbar_inline_template_removed(){
a_str='<br><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/box.php" WIDTH="625" HEIGHT="280" FRAMEBORDER="no" BORDER="0"  MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no"></IFRAME></NOLAYER></td></tr></table></center></div>'
a_str=a_str+'<br><br><div align="center"><div align="center" class="addthis_toolbox addthis_default_style"><a href="http://www.addthis.com/bookmark.php?v=250&amp;username=xa-4b7a5bbd6c62c03b" class="addthis_button_compact">Share</a><span class="addthis_separator">|</span><a class="addthis_button_facebook"></a><a class="addthis_button_myspace"></a><a class="addthis_button_google"></a><a class="addthis_button_twitter"></a></div><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4b7a5bbd6c62c03b"></script></div>'
document.write(a_str)
}

function adbar_inline_template(){
a_str='<br><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/boxwf.htm" WIDTH="625" HEIGHT="280" FRAMEBORDER="no" BORDER="0"  MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no"></IFRAME></NOLAYER></td></tr></table></center></div>'
a_str=a_str+'<br><br><div align="center"><div align="center" class="addthis_toolbox addthis_default_style"><a href="http://www.addthis.com/bookmark.php?v=250&amp;username=xa-4b7a5bbd6c62c03b" class="addthis_button_compact">Share</a><span class="addthis_separator">|</span><a class="addthis_button_facebook"></a><a class="addthis_button_myspace"></a><a class="addthis_button_google"></a><a class="addthis_button_twitter"></a></div><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4b7a5bbd6c62c03b"></script></div>'
document.write(a_str)
}





//------------------------------------------------------------------




function adbar_inline_template1(){
a_str='<script type="text/javascript">addthis_url=location.href;addthis_title=document.title;addthis_pub="womenfitness";</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12"></script>'
document.write(a_str)
}




//-------------------------------------------------------------------



function adbar_side_template_removed() 
{
document.write("<iframe name=\"I6\" src=\"http://www.womenfitness.net/toolbar/sidebar.php\" marginwidth=\"0\" marginheight=\"0\" height=\"2950\" width=\"160\" allowtranparency=\"true\" scrolling=\"no\" border=\"0\" frameborder=\"0\">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>");
}


function adbar_side_template() 
{
document.write("<iframe name=\"I6\" src=\"http://www.womenfitness.net/adbar_template.htm\" marginwidth=\"0\" marginheight=\"0\" height=\"2950\" width=\"160\" allowtranparency=\"true\" scrolling=\"no\" border=\"0\" frameborder=\"0\">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>");
}

function adbar_side_template_a() 
{
document.write("<iframe name=\"I6\" src=\"http://www.womenfitness.net/toolbar/sidebar.php\" marginwidth=\"0\" marginheight=\"0\" height=\"2525\" width=\"160\" allowtranparency=\"true\" scrolling=\"no\" border=\"0\" frameborder=\"0\">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>");
}


function adbar_side_template_quiz() 
{
document.write("<iframe name=\"I7\" src=\"http://www.womenfitness.net/adbar_fitness_banner.htm\" marginwidth=\"0\" marginheight=\"0\" height=\"1690\" 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>");
}

//-------------- for sample test
function adbar_side_template_test() 
{
document.write("<iframe name=\"I88\" src=\"http://www.womenfitness.net/adbar_template_sample.htm\" marginwidth=\"0\" marginheight=\"0\" height=\"4220\" width=\"150\" allowtranparency=\"true\" scrolling=\"no\" border=\"0\" frameborder=\"0\">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>");
}


//-------------------------------------------------------------------





function adbar_bottom_template_removed(){
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="900"  FRAMEBORDER="no" BORDER="0"  MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no"></IFRAME></NOLAYER></td></tr></table></center></div>'
document.write(a_str)
}

function adbar_bottom_template(){
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/adsonar_24-09-2007.htm" WIDTH="900" HEIGHT="175"  FRAMEBORDER="no" BORDER="0"  MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no"></IFRAME></NOLAYER></td></tr></table></center></div>'
document.write(a_str)
}

//-------------------------------------------------------------------




function search_bottom_template_removed(){
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/bottomsearchbar.php" WIDTH="750" HEIGHT="90" FRAMEBORDER="no" BORDER="0"  MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no"></IFRAME></NOLAYER></td></tr></table></center></div>'
document.write(a_str)
}

function search_bottom_template(){
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/search_wf.htm" WIDTH="750" HEIGHT="90" FRAMEBORDER="no" BORDER="0"  MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no"></IFRAME></NOLAYER></td></tr></table></center></div>'
document.write(a_str)
}

//-------------------------------------------------------------------





function basebar_template(){

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="580" width="100%" scrolling="no" border="0" frameborder="0">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>'
m_str1='<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table4"><tr><td width="44%"><p align="right" style="margin-left: 10px; margin-right: 10px"><font face="Verdana" size="1" color="#000000">Translate this page in other languages:</font></td><td><div id="google_translate_element"></div><script>function googleTranslateElementInit() {  new google.translate.TranslateElement({    pageLanguage: "en",    layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL  }, "google_translate_element");}</script><script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script></td><td width="22%">&nbsp;</td><td>&nbsp;</td></tr></table>'
document.write(m_str+m_str1)

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
try {
var pageTracker = _gat._getTracker("UA-110069-1");
pageTracker._trackPageview();
} catch(err) {}

document.write ("<script type='text/javascript'>var dc_AdLinkColor = 'blue';var dc_PublisherID = 34704;</script><script type='text/javascript' src='http://kona.kontera.com/javascript/lib/KonaLibInline.js'></script>");
}


function basebar_template_withoutkontera(){

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="580" width="100%" scrolling="no" border="0" frameborder="0">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>'
m_str1='<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table4"><tr><td width="44%"><p align="right" style="margin-left: 10px; margin-right: 10px"><font face="Verdana" size="1" color="#000000">Translate this page in other languages:</font></td><td><div id="google_translate_element"></div><script>function googleTranslateElementInit() {  new google.translate.TranslateElement({    pageLanguage: "en",    layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL  }, "google_translate_element");}</script><script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script></td><td width="22%">&nbsp;</td><td>&nbsp;</td></tr></table>'
document.write(m_str+m_str1)

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
try {
var pageTracker = _gat._getTracker("UA-110069-1");
pageTracker._trackPageview();
} catch(err) {}

}


//-------------------------------------------------------------------



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%" style="border-style: none; border-width: medium"><NOLAYER><IFRAME SRC="http://www.womenfitness.net/adsonar_skin.htm" WIDTH="625" HEIGHT="300" FRAMEBORDER="no" BORDER="0"  MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no" target="_blank"></IFRAME></NOLAYER></td></tr></table></center></div>'
document.write(m_str)
}

function ad_article2() {
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%" style="border-style: none; border-width: medium"><NOLAYER><IFRAME SRC="http://www.womenfitness.net/adsonar_skin2.htm" WIDTH="625" HEIGHT="300" FRAMEBORDER="no" BORDER="0"  MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no" target="_blank"></IFRAME></NOLAYER></td></tr></table></center></div>'
document.write(m_str)
}



function ad_article_t() {
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="270" FRAMEBORDER="no" BORDER="0"  MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no"></IFRAME></NOLAYER></td></tr></table></center></div>'
document.write(m_str)
}



function kontera() {
document.write ("<script type='text/javascript'>var dc_AdLinkColor = 'blue';var dc_PublisherID = 34704;</script><script type='text/javascript' src='http://kona.kontera.com/javascript/lib/KonaLibInline.js'></script>");
}



//-------------------------------------------------------------------



function links_removed() {
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%" style="border-style: none; border-width: medium"><NOLAYER><IFRAME SRC="http://www.womenfitness.net/toolbar/links.php" WIDTH="625" HEIGHT="300" FRAMEBORDER="no" BORDER="0"  MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no" target="_blank"></IFRAME></NOLAYER></td></tr></table></center></div>'
document.write(m_str)
}


function links() {
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%" style="border-style: none; border-width: medium"><NOLAYER><IFRAME SRC="http://www.womenfitness.net/toolbar/emptybox.htm" WIDTH="625" HEIGHT="300" FRAMEBORDER="no" BORDER="0"  MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no" target="_blank"></IFRAME></NOLAYER></td></tr></table></center></div>'
document.write(m_str)
}


//-------------------------------------------------------------------



function links1_removed() {
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%" style="border-style: none; border-width: medium"><NOLAYER><IFRAME SRC="http://www.womenfitness.net/toolbar/links1.php" WIDTH="625" HEIGHT="300" FRAMEBORDER="no" BORDER="0"  MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no" target="_blank"></IFRAME></NOLAYER></td></tr></table></center></div>'
document.write(m_str)

}
function links1() {
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%" style="border-style: none; border-width: medium"><NOLAYER><IFRAME SRC="http://www.womenfitness.net/toolbar/emptybox2.htm" WIDTH="625" HEIGHT="300" FRAMEBORDER="no" BORDER="0"  MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no" target="_blank"></IFRAME></NOLAYER></td></tr></table></center></div>'
document.write(m_str)

}


//-------------------------------------------------------------------



function increaseFontSize()
{
var min=8;
var max=18;
 {
   var p = document.getElementsByTagName('h3');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      }
      p[i].style.fontSize = s+"px"
   }
}
}

function decreaseFontSize()
 {
 var min=8;
var max=18;
   var p = document.getElementsByTagName('h3');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }   
}








//-------------------------------------------------------------------



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 showToolTip(e,text){
	if(document.all)e = event;
	
	var obj = document.getElementById('bubble_tooltip');
	var obj2 = document.getElementById('bubble_tooltip_content');
	obj2.innerHTML = text;
	obj.style.display = 'block';
	var st = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
	if(navigator.userAgent.toLowerCase().indexOf('safari')>=0)st=0; 
	var leftPos = e.clientX - 100;
	if(leftPos<0)leftPos = 0;
	obj.style.left = leftPos + 'px';
	obj.style.top = e.clientY - obj.offsetHeight -1 + st + 'px';
}	

function hideToolTip()
{
	document.getElementById('bubble_tooltip').style.display = 'none';
	
}


//validation form for emag subscription
function validate()
{
    valid = true;
var x=document.forms["form1"]["email"].value
var atpos=x.indexOf("@");
var dotpos=x.lastIndexOf(".");

   if (document.form1.name.value == "" )
    {
        alert ( "Please Enter Your Name." );
        valid = false;
   

    return valid;
	}
	else if(isNaN(document.form1.name.value)==false)
{
alert("Please Enter Characters Only in Name field.");
valid=false;
return valid;
}
else if (document.form1.email.value == "" )
    {
        alert ( "Please Enter Your Email ID." );
        valid = false;
   

    return valid;
	}
	
else if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length)
  {
  alert("Not a valid e-mail address");
  valid = false;
   

    return valid;
  }
	
else
{
valid = true; 
return valid;
}
	}
	
	
// emag unsubscribe validation

function validateunsub()

{
    valid = true;
var x=document.forms["form1"]["email"].value
var atpos=x.indexOf("@");
var dotpos=x.lastIndexOf(".");

   if (document.form1.email.value == "" )
    {
        alert ( "Please Enter Your Email ID." );
        valid = false;
   

    return valid;
	}
	
else if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length)
  {
  alert("Not a valid e-mail address");
  valid = false;
   

    return valid;
  }
	
else
{
valid = true; 
return valid;
}
	}



// recipe Side bar links

function recipe_links(){
document.write("<iframe name=\"I10237\" src=\"http://www.womenfitness.net/toolbar/toolbar_recipe_inner.htm\" marginwidth=\"0\" marginheight=\"0\" height=\"450\" width=\"178\" scrolling=\"no\" border=\"0\" frameborder=\"0\">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>");
}

function recipe_links_ad(){
document.write("<iframe name=\"I1075\" src=\"http://www.womenfitness.net/toolbar/toolbar_recipe_ad.htm\" marginwidth=\"0\" marginheight=\"0\" height=\"1780\" width=\"178\" scrolling=\"no\" border=\"0\" frameborder=\"0\">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>");
}

function recipe_links_index(){
document.write("<iframe name=\"I1045\" src=\"http://www.womenfitness.net/toolbar/toolbar_recipe_index.htm\" marginwidth=\"0\" marginheight=\"0\" height=\"790\" width=\"178\" scrolling=\"no\" border=\"0\" frameborder=\"0\">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>");
}

function recipe_links_snacks(){
document.write("<iframe name=\"I1035\" src=\"http://www.womenfitness.net/toolbar/toolbar_recipe_snacks.htm\" marginwidth=\"0\" marginheight=\"0\" height=\"790\" width=\"178\" scrolling=\"no\" border=\"0\" frameborder=\"0\">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>");
}

function recipe_links_appj(){
document.write("<iframe name=\"I1036\" src=\"http://www.womenfitness.net/toolbar/toolbar_recipe_appj.htm\" marginwidth=\"0\" marginheight=\"0\" height=\"790\" width=\"178\" scrolling=\"no\" border=\"0\" frameborder=\"0\">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>");
}

function recipe_links_soup(){
document.write("<iframe name=\"I1036\" src=\"http://www.womenfitness.net/toolbar/toolbar_recipe_soup.htm\" marginwidth=\"0\" marginheight=\"0\" height=\"790\" width=\"178\" scrolling=\"no\" border=\"0\" frameborder=\"0\">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>");
}

function recipe_links_desserts(){
document.write("<iframe name=\"I1036\" src=\"http://www.womenfitness.net/toolbar/toolbar_recipe_desserts.htm\" marginwidth=\"0\" marginheight=\"0\" height=\"790\" width=\"178\" scrolling=\"no\" border=\"0\" frameborder=\"0\">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>");
}

function recipe_links_veg(){
document.write("<iframe name=\"I1036\" src=\"http://www.womenfitness.net/toolbar/toolbar_recipe_veg.htm\" marginwidth=\"0\" marginheight=\"0\" height=\"790\" width=\"178\" scrolling=\"no\" border=\"0\" frameborder=\"0\">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>");
}

function recipe_links_nonveg(){
document.write("<iframe name=\"I1036\" src=\"http://www.womenfitness.net/toolbar/toolbar_recipe_nonveg.htm\" marginwidth=\"0\" marginheight=\"0\" height=\"790\" width=\"178\" scrolling=\"no\" border=\"0\" frameborder=\"0\">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>");
}

function program_toolbar(){
a_str=('<a href="http://womenfitness.net/wf4months.htm"><img border="0" src="http://www.womenfitness.net/img2011_2mar/toolbar/programs.jpg"></a>')
document.write(a_str)
}

function country_list(){
b_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/countrylist.htm" WIDTH="150" HEIGHT="50" FRAMEBORDER="no" BORDER="0"  MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no"></IFRAME></NOLAYER></td></tr></table></center></div>'
document.write(b_str)
}


//--- article end buttons --//

function wfteam(){
b_str='<p class="artfrom" align="left" ><br>- <a href="https://plus.google.com/u/0/112987714531678570924"> Namita Nayyar (WF Team)</a><br></p>'
document.write(b_str)
}

function plusone(){
b_str="<g:plusone ></g:plusone><script type='text/javascript' src='https://apis.google.com/js/plusone.js'>English (US)</script>"
document.write(b_str)
}



