function bookmark(title,link)
{
	if(window.sidebar)
	{
		//firefox
		window.sidebar.addPanel(title, link, "");
	}
	else
	{
		//opera
		if(window.opera && window.print)
		{
			var elem = document.createElement('a');
			elem.setAttribute('href',link);
			elem.setAttribute('title',title);
			elem.setAttribute('rel','sidebar');
			elem.click();
		} 
		else
		{
			//internet explorer
			if(document.all)
			{
				window.external.AddFavorite(link, title);
			}
		}
	}
}
function getdate()
{
	today = new Date();
	year = today.getYear();
	month = today.getMonth();
	day = today.getDate();	
	seconds = today.getSeconds();
	minutes = today.getMinutes();
	hours = today.getHours();	
	if(year<200){year+=1900;}
	switch(month)
	{
		case 0:  month = "Jan";   break;
		case 1:  month = "Feb";  break;
		case 2:  month = "Mar";     break;
		case 3:  month = "Apr";    break;
		case 4:  month = "Ma";        break;
		case 5:  month = "Jun";      break;
		case 6:  month = "Jul";      break;
		case 7:  month = "Aug";     break;
		case 8:  month = "Sep"; break;
		case 9:  month = "Oct";  break;
		case 10: month = "Nov";  break;
		case 11: month = "Dec";  break;
	}
	if(day<=9)     {day = "0" + day;}
	if(hours<=9)   {hours = "0" + hours;}
	if(minutes<=9) {minutes = "0" + minutes;}
	if(seconds<=9) {seconds = "0" + seconds;}
	return  day+" "+month+" "+year+", "+hours+":"+minutes+":"+seconds;
}

function clock()
{	
	document.getElementById("clockdiv").value = getdate();
	setTimeout('clock()',1000);
}
