/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
* javascript:bookmarkthissite('title_of_site', 'url_of_site')
* Here's an example:
* <a href="javascript:bookmarkthissite('Dynamic Drive', 'http://www.dynamicdrive.com')">Bookmark this site!</a>
* Remember, if your site's title contains apostrophes, they need to be backslashed when entered:
* <a href="javascript:bookmarkthissite('Mike\'s Place', 'http://www.google.com')">Bookmark this site!</a>
***********************************************/

function bookmarkthissite (title,url){

		var stringvalue = navigator.userAgent;

		var firefoxval = stringvalue.match("Firefox");
		var msieval = stringvalue.match("MSIE");
		var operaval = stringvalue.match("Opera");
		var chromeval = stringvalue.match("Chrome");
		var safarival = stringvalue.match("Safari");

		if (firefoxval != null){
			window.sidebar.addPanel(title, url, "");
		}

		else if (msieval != null){
			window.external.AddFavorite(url, title);
		}

		else if (operaval != null){
			var elem = document.createElement('a');
			elem.setAttribute('href',url);
			elem.setAttribute('title',title);
			elem.setAttribute('rel','sidebar');
			elem.click();
		}

		else if (chromeval != null){
			alert("Use ShortCut --> Ctrl+Shift+B --> Click Organise --> Add Page --> Edit Bookmark");
		}
		
		else if (safarival != null){
			alert("From the browser menu, Select Edit --> Preferences --> General tab's under Home Page entry box, type www.astrolife.com and click OK");
		}

		return false;
	}
	
function showdiv () {
	var showindex = document.newtopicfrm.topicat.selectedIndex;
	var showval = document.newtopicfrm.topicat[showindex].value;
	if (showval=="other"){
		document.getElementById("categoryOther").style.display="block";
	}
	else{
		document.getElementById("categoryOther").style.display="none";
	}	
}