function addBookmark(title, url) {
       if (window.sidebar) { // firefox
             window.sidebar.addPanel(title, url,"");
       } else if( document.all ) { //MSIE
               window.external.AddFavorite( url, title);
       } else {
              alert("Sorry, your browser doesn't support this");
       }
}

function onFocusChange(t, v) {
	if(t.value == v) {
		t.value='';
	}	
}

function onBlurChange(t, v) {
	if(t.value == '') {
			t.value = v;
		}	
}


var firstClick = new Array(100);

function firstRemove(x) {
	for (i=1; i<firstClick.length; i++)
		if (firstClick[i]==x) return;
	firstClick[firstClick.length]=x;
	x.value='';
 }

function setCookie(cookieName,cookieValue,nDays) {
	var today = new Date();
	var expire = new Date();
	if (nDays==null || nDays==0) { nDays=30 };
	expire.setTime(today.getTime() + 3600000*24*nDays);
	document.cookie = cookieName + "=" + escape(cookieValue) + ";expires=" + expire.toGMTString();
}