// JavaScript Document
function checkboxes(theElement) {
var theForm = theElement.form, z = 0;
for(z=0; z<theForm.length;z++){
if(theForm[z].type == 'checkbox' && theForm[z].name != 'checkall'){
theForm[z].checked = theElement.checked;
}
}
}

//Edit the counter/limiter value as your wish
var count = "1000";   //Example: var count = "175";
function limiter(){
var tex = document.myform.description.value;
var len = tex.length;
if(len > count){
        tex = tex.substring(0,count);
        document.myform.description.value =tex;
        return false;
}
document.myform.limit.value = count-len;
}
function addtofavorites(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}

var MessageText = "Welcome to www.randhawaworld.com. Find Your Business here!!!!"

  var DisplayLength = 130
  var pos = 1 - DisplayLength;
  
  function ScrollInStatusBar(){
        var scroll = "";
        pos++;

        if (pos == MessageText.length) pos = 1 - DisplayLength;
        if (pos < 0)

           {
            for (var i=1; i <= Math.abs(pos); i++)
              scroll = scroll + " ";
              scroll = scroll + MessageText.substring(0, DisplayLength - i + 1);
            }
        else
              scroll = scroll + MessageText.substring(pos, pos + DisplayLength);
              window.status = scroll;
       setTimeout("ScrollInStatusBar()",120);
      }

ScrollInStatusBar()