function add_bookmark(){
   var url='http://' + document.location.hostname;
   var title="The Best Of Rebates"
   if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)){
      if (confirm('Would you like to add MoreRebates to your Favorites?')){
         window.external.AddFavorite (url,title);
      }
   }
   else{
      var msg = "Sorry. The automatic creation of bookmarks does not work.";
      if (navigator.appName == "Netscape") msg += " (Press <CTRL+D>)";
      alert(msg);
   }
}


function getCookie(name){
   var result = null;
   var myCookie = " " + document.cookie + ";";
   var searchName = " " + name + "=";
   var startOfCookie = myCookie.indexOf(searchName);
   var endOfCookie;

   if (startOfCookie != -1){
      startOfCookie += searchName.length;
      endOfCookie = myCookie.indexOf(";",startOfCookie);
      result = unescape(myCookie.substring(startOfCookie,endOfCookie));
   }
   return result;
}


function setCookie(name,value,path,domain,expires,secure){
   var expString  = ((expires == null) ? "" : ("; expires=" + expires.toGMTString()));
   var pathString  = ((path == null) ? "" : ("; path=" + path));
   var domainString = ((domain == null) ? "" : ("; domain=" + domain));
   var secureString = ((secure == true) ? "; secure" : "");
   document.cookie = name + "=" + escape(value) + expString + pathString + domainString + secureString;
}




function todayDate(){
   var today = new Date();
   return getMonthName(today) + ' ' + today.getDate() + ', ' + today.getFullYear();
}

function getMonthName(dat){
   var m = new Array(12);
   m[0] = "January";
   m[1] = "February";
   m[2] = "March";
   m[3] = "April";
   m[4] = "May";
   m[5] = "June";
   m[6] = "July";
   m[7] = "August";
   m[8] = "September";
   m[9] = "October";
   m[10] = "November";
   m[11] = "December";
   return m[dat.getMonth()];
}
function check_mail(vemail){
   if (vemail.value == ""){
      alert("Please enter email address");
      return false;
   }
   else{
      var gem = vemail.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
      if (!gem){
         alert("Please enter a valid email address");
         vemail.focus();
         vemail.select();
         return false;
      }
      else{
         return true;
      }
   }
}
function MM_preloadImages() { //v3.0
   var d = document;
   if ( d.images ){
      if ( !d.MM_p ) d.MM_p = new Array();
      var i, j = d.MM_p.length, a = MM_preloadImages.arguments;
      for ( i=0; i < a.length; i++ ){
         if ( a[i].indexOf( "#" ) !=0 ) {
            d.MM_p[j] = new Image;
            d.MM_p[j++].src=a[i];
         }
      }
   }
}

function changeImageState(img_name,img_path,state,tp) {
   if (document.images) {
      //document.images[img].src = 'images/menu/'+img + state +'.gif';
      document.images[img_name].src = img_path + img_name + state + '.' + tp;
   }
}

/*
function show_restriction(text){
   if ( text == "" ){
      text = 'No restriction';
   }
   rwin = window.open('','','scrolbars=no,resizable=no,width=250,height=150');
   rwin.document.write('<html><head><title>Coupon restriction</title></head><body bgcolor="#6666CC"><table height="100%" width="100%"><tr><td style="font-family:Arial,Helvetica,sans-serif; font-size:9pt;color:#FFFFFF;">' + text + '</td></tr><tr><td>&nbsp;</td></tr><tr><td align="center"><a style="font-family:Arial,Helvetica,sans-serif; font-size:9pt; color:#000000;" href="JavaScript:self.close();">Close</a></td></tr></table></body></html>');
}
*/

function gopage(form_name,pagelist,pagenum){
   eval("pagecount=window.document.forms['" + form_name + "']." + pagelist + ".length");
   if (pagenum > 0 && pagenum<=pagecount){
      window.document.forms[form_name].page.value = pagenum;
      window.document.forms[form_name].action.value = 'page';
      window.document.forms[form_name].submit();
   }
}

function addm(form_name,listto,listfrom){
   var tmpValue;
   var selValue;
   var selText;
   var fromlen;
   var selitem;
   var len;
   eval("fromlen=window.document.forms['" + form_name + "']." + listfrom + ".length");
   for (var j=0; j<fromlen; j++){
      eval("selitem=window.document.forms['" + form_name + "']." + listfrom + "[" + j + "].selected");
      if (selitem){
         selIndex = j;
         eval("selValue=window.document.forms['" + form_name + "']." + listfrom + ".options[" + selIndex + "].value");
         eval("selText=window.document.forms['" + form_name + "']." + listfrom + ".options[" + selIndex + "].text");
         eval("len=window.document.forms['" + form_name + "']." + listto + ".length");
         for (var i=0; i < len; i++){
            eval("tmpValue=window.document.forms['" + form_name + "']." + listto + ".options[" + i + "].value");
            if ( tmpValue == selValue ){
               break;
            }
         }
         if ( tmpValue != selValue ){
            var opt = new Option(selText,selValue);
            eval("window.document.forms['" + form_name + "']." + listto + ".options[" + "window.document.forms['" + form_name + "']." + listto + ".length]=opt");
         }
      }
   }
}

function add(form_name,listto,listfrom){
   eval("selIndex=window.document.forms['" + form_name + "']." + listfrom + ".selectedIndex");
   if ( selIndex < 0 ) return;
   eval("selValue=window.document.forms['" + form_name + "']." + listfrom + ".options[" + selIndex + "].value");
   eval("selText=window.document.forms['" + form_name + "']." + listfrom + ".options[" + selIndex + "].text");
   eval("len=window.document.forms['" + form_name + "']." + listto + ".length");
   for (i=0; i < len; i++){
      eval("tmpValue=window.document.forms['" + form_name + "']." + listto + ".options[" + i + "].value");
      if ( tmpValue == selValue ) return;
   }
   var opt = new Option(selText,selValue);
   eval("window.document.forms['" + form_name + "']." + listto + ".options[" + "window.document.forms['" + form_name + "']." + listto + ".length]=opt");
}

function remove(form_name,listfrom){
   eval("selIndex=window.document.forms['" + form_name + "']." + listfrom + ".selectedIndex");
   if ( selIndex < 0 ) return;
   eval("selIndex=window.document.forms['" + form_name + "']." + listfrom + ".options[" + selIndex + "] = null");
}

function removem(form_name,listfrom){
   var arrstr = "0";
   eval("fromlen=window.document.forms['" + form_name + "']." + listfrom + ".length");
   for (var j=0; j<fromlen; j++){
      eval("selitem=window.document.forms['" + form_name + "']." + listfrom + "[" + j + "].selected");
      if (selitem){
         selIndex = j;
         eval("selValue=window.document.forms['" + form_name + "']." + listfrom + ".options[" + selIndex + "].value");
         arrstr = arrstr + ',' + selValue;
      }
   }
   eval("selItem=new Array(" + arrstr + ")");
   for (var j=0; j<selItem.length; j++){
      eval("len=window.document.forms['" + form_name + "']." + listfrom + ".length");
      for (var i=0; i < len; i++){
         eval("tmpValue=window.document.forms['" + form_name + "']." + listfrom + ".options[" + i + "].value");
         if ( selItem[j] == tmpValue ){
            eval("window.document.forms['" + form_name + "']." + listfrom + ".options[" + i + "] = null");
            break;
         }
      }
   }
}

function list2str(form_name,listfrom,strto){
   var result = "";
   var tmpValue = "";
   eval("len=window.document.forms['" + form_name + "']." + listfrom + ".length");
   for (i=0; i < len; i++){
      eval("tmpValue=window.document.forms['" + form_name + "']." + listfrom + ".options[" + i + "].value");
      result = result + tmpValue + ";";
   }
   eval("window.document.forms['" + form_name + "']." + strto + ".value='" + result + "'");
}

function mouseover(rt,id,tp){
//   if ( !isLoadedPage ) return;
//   if ( !self.document.all ) return;
//   self.document.all['menu1_' + id].background = rt + 'images/' + tp + '_bg_on.gif';
//   self.document.all['menu2_' + id].background = rt + 'images/' + tp + '_bg_on.gif';
//   self.document.all['menu3_' + id].background = rt + 'images/' + tp + '_arrow_on.gif';
}

function mouseout(rt,id,tp,status){
//   if ( !isLoadedPage ) return;
//   if ( !self.document.all ) return;
//   if ( status && status != 'on' ){
//      self.document.all['menu1_' + id].background = rt + 'images/' + tp + '_bg_off.gif';
//      self.document.all['menu2_' + id].background = rt + 'images/' + tp + '_bg_off.gif';
//      self.document.all['menu3_' + id].background = rt + 'images/' + tp + '_arrow_off.gif';
//   }
}

function mouseclick(rt,url,id){
   if ( !isLoadedPage ) return;
   if ( !self.document.all ) return;
   top.document.location.href = rt + url;
}

function put_left_menu(id,name,url,state,type,root,width){
   width = !width ? 148 : width;
   id1 = Math.round(Math.random()*100000000);
   document.write('<tr>');
   document.write('<td width="15" height="18" id="menu1_' + id1 + '"><div style="width:15px;height=18px;" onMouseOver="mouseover(\'' + root + '\',' + id1 + ',\'t' + type + '\');void(0);" onMouseOut="mouseout(\'' + root + '\',' + id1 + ',\'t' + type + '\',\'' + state + '\');void(0);" onMouseUp="mouseclick(\'' + root + '\',\'' + escape(url) + '\',' + id1 + ');void(0);"><img border="0" width="15" height="18" src="' + root + 'images/bgim.gif" alt="' + name + '"></div></td>');
//   alert('<td valign="middle" width="' + width + '" height="18" id="menu2_' + id1 + '" background="' + root + 'images/t' + type + '_bg_' + state + '.gif" class="leftMenu' + type + '"><div valign="middle" class="leftMenu' + type + '" style="width:' + width + ';height=18;" onMouseOver="mouseover(\'' + root + '\',' + id1 + ',\'t' + type + '\');void(0);" onMouseOut="mouseout(\'' + root + '\',' + id1 + ',\'t' + type + '\',\'' + state + '\');void(0);" onMouseUp="mouseclick(\'' + root + '\',\'' + escape(url) + '\',' + id1 + ');void(0);"><a class="leftMenu' + type + '" href="' + root + url + '">' + name + '</a></div></td>');
   document.write('<td width="' + width + '" height="18" id="menu2_' + id1 + '" class="leftMenu' + type + '"><div class="leftMenu' + type + '" style="width:' + width + ';height=18;" onMouseOver="mouseover(\'' + root + '\',' + id1 + ',\'t' + type + '\');void(0);" onMouseOut="mouseout(\'' + root + '\',' + id1 + ',\'t' + type + '\',\'' + state + '\');void(0);" onMouseUp="mouseclick(\'' + root + '\',\'' + escape(url) + '\',' + id1 + ');void(0);"><a class="leftMenu' + type + '" href="' + root + url + '">' + name + '</a></div></td>');
   document.write('<td width="16" height="18" id="menu3_' + id1 + '"><div style="width:16px;height=18px;" onMouseOver="mouseover(\'' + root + '\',' + id1 + ',\'t' + type + '\');void(0);" onMouseOut="mouseout(\'' + root + '\',' + id1 + ',\'t' + type + '\',\'' + state + '\');void(0);" onMouseUp="mouseclick(\'' + root + '\',\'' + escape(url) + '\',' + id1 + ');void(0);"><img border="0" width="16" height="18" src="' + root + 'images/bgim.gif" alt="' + name + '"></div></td>');
   document.write('</tr>');
}

function setReferrerKeyword(){
   var today = new Date();
   var referrer;
   var keyword;
   var host;
   var source;


   if ( getCookie('REFERRER') ){
      if ( getCookie('REFERRER') != ' ' ){
         return;
      }
   }

   referrer = top.document.referrer;

   if ( referrer.indexOf('//') >= 0 ){
      referrer = referrer.substr(referrer.indexOf('//')+2);
   }
   if ( referrer.indexOf('/') >= 0 ){
      referrer = referrer.substr(0,referrer.indexOf('/'));
   }
   
   if( referrer.indexOf('www') >=0 ){
      referrer = referrer.substr(referrer.indexOf('www')+4);
   }
   
   if( referrer.indexOf('.') >=0){
      referrer = referrer.substr(0,referrer.indexOf('.'));
   }
   if ( referrer.indexOf('?') >= 0 ){
      referrer = referrer.substr(0,referrer.indexOf('?'));
   }
   if ( referrer.indexOf(':') >= 0 ){
      referrer = referrer.substr(0,referrer.indexOf(':'));
   }


//   host=top.window.document.URL;
     host=document.location.hostname;


   if ( host.indexOf('www')>0){
      host = host.substr(host.indexOf('.')+1);
   }
   if (host.indexOf('/')>0){
      host = host.substr(0,host.indexOf('/'));
   }

   if ( referrer && (referrer != host ) ){
      referrer = escape(referrer);
      if ( top.document.referrer.indexOf("?") >= 0 ){
         keyword = escape(top.document.referrer.substr(top.document.referrer.indexOf("?")+1));
      }
      else{
         keyword = 'Unknown';
      }
   }
   else{
      referrer = 'Unknown';
      keyword  = 'Unknown';
   }

    source=top.document.URL;
    source=source.toLowerCase();
    if (source.indexOf('source=')>=0){
        source=source.substr(source.indexOf('source=')+7, source.length);

        if ((source.indexOf("\'")==0)||(source.indexOf('\"')==0)) {
            source=source.substr(1, source.length);
        }
        if (source.indexOf('\&')>=0){
            if ((source.lastIndexOf("\'")>=0)||(source.lastIndexOf('\"')>=0)) {
                source=source.substr(0, source.indexOf('\&')-1);
            }
            else{
                source=source.substr(0,source.indexOf('\&'));
            }
        }
    }
    else{
       source = 'Unknown';
    }

   if ( referrer == 'Unknown' ){
      if ( getCookie('REFERRER') ){
         referrer= getCookie('REFERRER');
         keyword = getCookie('KEYWORD');
      }
   }

   if ( source == 'Unknown' ){
      if ( getCookie('SOURCE') ){
//         source = getCookie('SOURCE');
         source = set_source();

      }
   }
   
  // setCookie('REFERRER',referrer,'/',".smarter.com",new Date(today.getTime() + 604800000000));
  // setCookie('KEYWORD',keyword,'/',".smarter.com",new Date(today.getTime() + 604800000000));
  // setCookie('SOURCE',source,'/',".smarter.com",new Date(today.getTime() + 604800000000));
  // setCookie('SET','Set','/',".smarter.com",new Date(today.getTime() + 604800000000)); 
   setCookie('REFERRER',referrer,'/',".smarter.com");
   setCookie('KEYWORD',keyword,'/',".smarter.com");
   setCookie('SOURCE',source,'/',".smarter.com")
   setCookie('SET','Set','/',".smarter.com");  
   //,new Date(today.getTime() + 60*1000*15)
}

function getReferrer(){
   if ( getCookie('REFERRER') ){
      return getCookie('REFERRER');
   }
   return 'Unknown';
}

function getKeyword(){
   if ( getCookie('KEYWORD') ){
      return getCookie('KEYWORD');
   }
   return 'Unknown';
}


function getSource(){
   if (getCookie('SOURCE')){
      return getCookie('SOURCE');
   }
   return 'Unknown';
}



//function make_stat(merchant, product, coupon, is_frame){
function make_stat(is_frame){
   var today = new Date();
   var newsess = 1;
   var referer;
   var keyword;
   var source;
   var CSession;
   var CStat;
   var host ;

   host=top.window.document.URL;
   if ( host.indexOf('www')>0){
      host = host.substr(host.indexOf('.')+1);
   }
   if (host.indexOf('/')>0){
      host = host.substr(0,host.indexOf('/'));
   }

  // CID = getCookie("ID");
  // if (!CID){
    //  setCookie("MAKE_STAT","1","/","."+host, new Date(today.getTime()+86400000));
  //    document.write('<img width="1" height="1" src="http://' + host + '/customer.php">');
  // }

   CSession = getCookie("SESSION");

   if (!CSession){
      newsess = 2;
      setCookie("=SESSION","2","/","morerebates.com",new Date(today.getTime()+86400000));
   }
   source=getSource();
   referer=getReferrer();
   keyword=getKeyword();
//   document.write('<img width="1" height="1" src="http://' + window.location.hostname + '/stat.php?newvisit=' + newsess + '&merch=' + merchant + '&prod=' + product + '&coupon=' + coupon +'&referer=' + referer + '&keyword=' + keyword + '&source=' + source + '&is_frame=' + is_frame + '">');

   CStat = getCookie("MAKE_STAT");
   if (!CStat){
      setCookie("MAKE_STAT","1","/","morerebates.com", new Date(today.getTime()+86400000));
      document.write('<img width="1" height="1" src="stat.php?newvisit=' + newsess + '&referer=' + referer + '&keyword=' + keyword + '&source=' + source + '&is_frame=' + is_frame + '">');
   }

}



function ChekUser(LINK_ROOT){
   if (!getCookie('DIU')){
      put_left_menu(1,'Login','join.php','off','1',LINK_ROOT);
   }
   else{
      put_left_menu(1,'View Account Summary','account_summary.php','off','1',LINK_ROOT);
      put_left_menu(2,'Change Account Info','join.php?action=modify','off','1',LINK_ROOT);
      put_left_menu(3,'My Favorites','myfavorites.php','off','1',LINK_ROOT);
      put_left_menu(4,'Log Out','join.php?action=logout','off','1',LINK_ROOT);

   }

}


function ChekUserTitle(LINK_ROOT){
  if (getCookie('DIU')){
    document.write('Welcome<br>');
    document.write(getCookie('MMAIL'));
  }
  else{
     document.write("Unregistered<br>");
  }
}

function mass_delete(form_name,user_action,type){
   if (user_action!='set_add'){
     if ( confirm('Are you sure to delete all selected ' + type + '?') ){
        user_set(form_name,user_action);
     }
   }
   else{
     if ( confirm('Are you sure to Add all selected ' + type + '?') ){
        user_set(form_name,user_action);
     }
   }
}

function user_set(form_name,user_action,id,direct){
   window.document.forms[form_name].action.value = user_action;
   if ('order' == user_action){
      if (window.document.forms[form_name].order){
         window.document.forms[form_name].order.value = id;
      }
   }
   else{
      window.document.forms[form_name].id.value = id;
   }
   if (window.document.forms[form_name].direction && direct ){
      window.document.forms[form_name].direction.value = direct;
   }
   window.document.forms[form_name].submit();
}



function showIE6Popup()
{
    if(isIE6() == false)
    {
        return ;
    }
    //alert("getCookie('HideIE6Msg'):" + getCookie('HideIE6Msg'));
    if(getCookie('HideIE6Msg') == 'true')
        return;
    var wc = 'scrollbars=0,status=0,resizable=0,width=270,height=285';
    window.open("/DetectIE6.php", "IE6popup",  wc);
}


function isIE6() {
    var ua = window.navigator.userAgent;
    var pattern = /([^\s\S]*)MSIE\s*([\d]+)\.([\d]*)/;
    var major = 0;
    var mresult = ua.match(pattern);
    if(mresult != null && mresult.length > 1)
       major = mresult[2];
    if (major >= 6)
       return true;
    else
       return false;
}


function set_source() {
   var today       = new Date();
   var source      = 'Unknown';
   var sourceGroup = 'Unknown';

   source = find_source();

   if( source.indexOf("_") > 0 ) {
       sourceGroup = source.substr(0, source.indexOf("_"));
   }
   else {
       if( !isNaN(source) ) {
           sourceGroup = 'affiliate';
       }
       else {
           sourceGroup = source;
       }
   }

   setCookie('SOURCE',source,"/",".smarter.com",new Date(today.getTime() + 2592000000));
   setCookie('SOURCEGROUP',sourceGroup,"/",".smarter.com",new Date(today.getTime() + 2592000000));

   return source;

}

function find_source() {
   var source = 'Unknown';

   var aff = getSearchInfo('afid=');
   if( aff != 'unset' ) {
       return aff;
   }

   if ( document.location.search.indexOf('source=') > 0 ){
      source = document.location.search.substr(top.document.location.search.indexOf('source=')+7);
      if ( source.indexOf('&') > 0 ){
         source = source.substr(0,source.indexOf('&'));
      }
      source = escape(source);
   }
   else{
      source = 'Unknown';
   }

   if ( source == 'Unknown' ){

      var regExpObj1  = /^\/([^\/]+)\/([^\/]+)\/$/;
      var regExpObj2  = /^\/([^\/]+)\/([^\/]+)\/([^\/]+)\/$/;

      var url  = document.location.pathname;
      if ( regExpObj1.exec(url) ){
         source   = regExpObj1.exec(url)[2];
      }
      if ( regExpObj2.exec(url) ){
         source   = regExpObj2.exec(url)[3];
      }
   }

   if ( source == 'Unknown' ){
      if ( getCookie('SOURCE') ){
         source = getCookie('SOURCE');
      }
   }

   return source;
}


// @author Kaluk Lee
// return value of a parameter in the URL.
function getSearchInfo(key) {
   var value = 'unset';

      if ( document.location.search.indexOf(key) > 0 ) {
         value = top.document.location.search.substr(top.document.location.search.indexOf(key)+key.length);
         if ( value.indexOf('=') > 0 ) {
             // I believe we need to handle the case the char & is used for the source.
             // For example, overture_flowers_&_gifts

             value = value.substr(0, value.indexOf('='));
             value = value.substr(0, value.lastIndexOf('&'));
         }
         value = escape(value);
      }

   return value;
}



function make_frame(page, redir, frm) {
    // Call function set_source to set the cookies SOURCE and SOURCEGROUP.
    // hidden.php should be able to get the cookie values for SOURCE and SOURCEGROUP.
    // If we can't rely on cookies, we need to pass SOURCE and/or SOURCEGROUP to hidden.php
    // as request parameters.
    set_source();

    document.write('<frameset rows="*,0" frameborder="NO" border="0" framespacing="0">');
    document.write('<frame border="0" src="' + page + '">');
    document.write('<frame name="dropdown" border="0" scrolling="NO" noresize src="/hidden.php?redir='+redir+'&frm='+frm+'">');
    document.write('</frameset>');

}



/*
function make_frame(page, redir, frm) {
    document.write('<frameset rows="*,0" frameborder="NO" border="0" framespacing="0">');
    document.write('<frame border="0" src="' + page + '">');
    if (frm){
      document.write('<frame name="dropdown" border="0" scrolling="NO" noresize src="/hidden.php?page='+page+'&redir='+redir+'&frm='+frm+'">');
    }
    else{
      document.write('<frame name="dropdown" border="0" scrolling="NO" noresize src="">');
    }
    document.write('</frameset>');
}
*/
function how_it_works(TPL_MYACCOUNT_SYGNUP_BOTTOM1, TPL_MYACCOUNT_SYGNUP_BOTTOM2,
                      TPL_MYACCOUNT_SYGNUP_BOTTOM3, TPL_MYACCOUNT_SYGNUP_BOTTOM4, REBATE){
   if ((REBATE>0)&&(!getCookie('MMAIL'))){
      document.write('<table border=0   cellpadding="0" cellspacing="0"  width="100%" >');
      document.write('<tr>');
      document.write('   <td>');
      document.write('      <table border="0" cellspacing="0" cellpadding="0">');
      document.write('         <tr>');
      document.write('            <td><img src="/images/bgim.gif" width="0" height="10" border="0"></td>');
      document.write('         </tr>');
      document.write('         <tr>');
      document.write('            <td><img src="/images/mr_home_howitworks.gif" width="130" height="15" border="0"></td>');
      document.write('         </tr>');
      document.write('         <tr>');
      document.write('            <td><img src="/images/bgim.gif" width="0" height="10" border="0"></td>');
      document.write('         </tr>');
      document.write('      </table>');
      document.write('   </td>');
      document.write('</tr>');
      document.write('<tr>');
      document.write('   <td>');
      document.write('      <table border="0" cellspacing="0" cellpadding="0">');
      document.write('         <tr>');
      document.write('            <td width="137" class="maintext" VALIGN="TOP">');
      document.write('               <img src="/images/s1.gif" width="136" height="118">');
      document.write('            </td>');
      document.write('            <td width="137" class="maintext" VALIGN="TOP">');
      document.write('               <img src="/images/s2.gif" width="136" height="118">');
      document.write('            </td>');
      document.write('            <td width="137" class="maintext" VALIGN="TOP">');
      document.write('               <img src="/images/s3.gif" width="136" height="118">');
      document.write('            </td>');
      document.write('            <td width="137" class="maintext" VALIGN="TOP">');
      document.write('               <img src="/images/s4.gif" width="136" height="118">');
      document.write('            </td>');
      document.write('         </tr>');
      document.write('      </table>');
      document.write('   </td>');
      document.write('</tr>');
      document.write('<tr>');
      document.write('   <td>');
      document.write('      <table border="0" cellspacing="0" cellpadding="1">');
      document.write('         <tr>');
      document.write('            <td width="137" class="maintext_10" VALIGN="TOP" >');
      document.write('<table border="0" cellspacing="0" cellpadding="1"><tr><td class="maintext_10" VALIGN="TOP">&nbsp;1.</td><td class="maintext_10" VALIGN="TOP">'+TPL_MYACCOUNT_SYGNUP_BOTTOM1+'</td></tr></table>');
      document.write('            </td>');
      document.write('            <td width="137" class="maintext_10" VALIGN="TOP" >');
      document.write('<table border="0" cellspacing="0" cellpadding="1"><tr><td class="maintext_10" VALIGN="TOP">2.</td><td class="maintext_10" VALIGN="TOP">'+TPL_MYACCOUNT_SYGNUP_BOTTOM2+'</td></tr></table>');
      document.write('            </td>');
      document.write('            <td width="137" class="maintext_10" VALIGN="TOP" >');
      document.write('<table border="0" cellspacing="0" cellpadding="1"><tr><td class="maintext_10" VALIGN="TOP">&nbsp;3.</td><td class="maintext_10" VALIGN="TOP">'+TPL_MYACCOUNT_SYGNUP_BOTTOM3+'</td></tr></table>');
      document.write('            </td>');
      document.write('            <td width="137" class="maintext_10" VALIGN="TOP" >');
      document.write('<table border="0" cellspacing="0" cellpadding="1"><tr><td class="maintext_10" VALIGN="TOP">&nbsp;4.</td><td class="maintext_10" VALIGN="TOP">'+TPL_MYACCOUNT_SYGNUP_BOTTOM4+'</td></tr></table>');
      document.write('            </td>');
      document.write('         </tr>');
      document.write('      </table>');
      document.write('   </td>');
      document.write('</tr>');
      document.write('</table>');
   }
}