// JavaScript Document
function textCounter(field, countfield, maxlimit) {
	if (field.value.length > maxlimit) // if too long...trim it!
	field.value = field.value.substring(0, maxlimit);
	// otherwise, update 'characters left' counter
	else 
	countfield.value = maxlimit - field.value.length;
	}
	//remove yellow fields of google autofill
	  if(window.attachEvent)
    window.attachEvent("onload",setListeners);
 function setListeners(){
    inputList = document.getElementsByTagName("INPUT");
    for(i=0;i<inputList.length;i++)
      inputList[i].attachEvent("onpropertychange",restoreStyles);
    selectList = document.getElementsByTagName("SELECT");
    for(i=0;i<selectList.length;i++)
      selectList[i].attachEvent("onpropertychange",restoreStyles);
  }
   function restoreStyles(){
    if(event.srcElement.style.backgroundColor != "")
      event.srcElement.style.backgroundColor = "";
  }//end yellow fields
function AddBookmark()
{
	title="WeSweatYouShop -  All urban links";
	url="http://www.wesweatyoushop.com";

	if (window.sidebar)
	{
		window.sidebar.addPanel(title, url,"");
	}
	else if( window.external )
	{
		window.external.AddFavorite( url, title);
	}
	else if(window.opera && window.print)
	{
		return true;
	}
}