/*var inline_ad=new Array("&lt;br&gt;","</p>")
var tot, b, c;
//document.writeln('<link href="http://www.cleantick.com/banner/css/cleantech_bnr_css.css" rel="stylesheet" type="text/css" />');

function doHighlight_inline(bodyText, searchTerm, highlightStartTag, highlightEndTag,index)
{
  // the highlightStartTag and highlightEndTag parameters are optionalBiodiesel - Definition, Glossary, Details
  //alert(index);
  
  var newText = "";
  var i = -1;  
  var lcSearchTerm = searchTerm.toLowerCase();
  var lcBodyText = bodyText.toLowerCase();
  var alm, almm, leng, ll, lll;
  var found=0;
  var no_fd;
  //alert(bodyText.length);
 		 if(bodyText.length < 2000)
  		{
			no_fd = 1;  
  		}
    	else if(bodyText.length > 2000 && bodyText.length < 4000)
				   {
					   no_fd = 2;
				   } else if(bodyText.length > 4000 && bodyText.length < 8000) {
					   no_fd = 3;
				   } else {
					   no_fd = 3;
				   }
  while (bodyText.length > 0) {
	//alert(i);
	i = lcBodyText.indexOf(lcSearchTerm, i+1);
	
	if (i < 0) {
	  newText += bodyText;
	  bodyText = "";
	} else {
		   if (bodyText.lastIndexOf("/a>", i) >= bodyText.lastIndexOf("<a", i)) {
			    //stip anything inside an table tag
			    if (lcBodyText.lastIndexOf("/table>", i) >= lcBodyText.lastIndexOf("<table", i)) {
		// skip anything inside a <script> block
		if (lcBodyText.lastIndexOf("/script>", i) >= lcBodyText.lastIndexOf("<script", i)) {
				alm = bodyText.substr(i-1, searchTerm.length);
				almm = bodyText.substr(i+1, searchTerm.length);
				//var nmm = bodyText.substring(0, i);
				leng = alm.length;
				//alert(leng);
				ll = alm.charAt(0);
				lll = almm.charAt(leng-1);						   
		  //alert(lll);
		  var txt = bodyText.substring(0, i);
		  var tot_midl_worda = txt.length;
		 //alert(tot_midl_worda);
		  if((found < no_fd) && tot_midl_worda > 2000)
		  {
			  
		if(found == 0)
		{
			highlightStartTag = "";
			highlightEndTag = "";
		}
	  
	  else if(found == 1)
	   {
			highlightStartTag = "<div id='CT_reg_form' class='bg_1'><div class='form'><table class='ct_table'><tr><td><input type='text' name='email' value='Enter your Email ID' id='email' onClick='Empty_this(this);'></td><td><input type='button' name='reg_btn' value='JOIN'  id='join_btn' onClick='reg_CT();'></td></tr></table><p class='one_stp_reg'>* One step registration</p></div><a href='http://www.cleantick.com/register/em' class='CT_link'><img src='http://www.oilgae.com/adv/Cleantick_gif_link.gif' id='CT_logo'/></a></div>";
			highlightEndTag = "<br/>";
	   } else if(found == 2) {
			highlightStartTag = "";
                        highlightEndTag = "";
	   } else if(found == 3) {
			highlightStartTag = "<div id='CT_reg_form' class='bg_2'><div class='form'><table class='ct_table'><tr><td><input type='text' name='email' value='Enter your Email ID' id='email' onClick='Empty_this(this);'></td><td><input type='button' name='reg_btn' value='JOIN'  id='join_btn' onClick='reg_CT();'></td></tr></table><p class='one_stp_reg'>* One step registration</p></div><a href='http://www.cleantick.com/register/em' class='CT_link'><img src='http://www.oilgae.com/adv/Cleantick_gif_link.gif' id='CT_logo'/></a></div>";
			highlightEndTag = "<br/>";
	   }
		   
   //alert(found);
				newText += bodyText.substring(0, i) + bodyText.substr(i, searchTerm.length)+ highlightStartTag + highlightEndTag;  
				bodyText = bodyText.substr(i + searchTerm.length);
				lcBodyText = bodyText.toLowerCase();
				//alert(i);
				i = -1;
				found++;
				//alert(found);&& (found < 5) && (tot_link < 50)
		  }
		 
		}
		   }
	   }
	}
  }
  return newText;
}
function highlightSearchTerms_inline(warnOnFailure, highlightStartTag, highlightEndTag)
{
	//alert(warnOnFailure);
 if (!document.body || typeof(document.body.innerHTML) == "undefined") {
	  //alert(searchText);
    if (warnOnFailure) {
      alert("Sorry, for some reason the text of this page is unavailable. Searching will not work.");
    }
    //return false;
  }
 
  //var bodyText = document.body.innerHTML;
  var bodyText = document.getElementById('entry-content-single').innerHTML;
 
  for (var i = 1; i < inline_ad.length; i++) {
    bodyText = doHighlight_inline(bodyText, inline_ad[i], highlightStartTag, highlightEndTag,i);
  }
  document.getElementById('entry-content-single').innerHTML = bodyText;
  return true;
}

function notspace(e)
{
		var unicode=e.charCode? e.charCode : e.keyCode
		if (unicode==32){
			//alert("Spaces are not allowed"); //if the key is the space key 
			return false //disable key press
		}
}

highlightSearchTerms_inline(false);
*/
