// JavaScript Document
// Copyright (c)2007 S J Roberts, sr-images.co.uk
function reset_form() {
	sURL = window.location.pathname; //strips out the path without existing gets
	window.location.replace( sURL+"?rs=true" );
	//window.location.reload( true );
	//history.go(0);
	}
			
function webmaster(){
	// idea is to avoid e-mail harvesting by robots
	// as the address is not generated until the user clicks
	// usage <a href="javascript:webmaster()">
	var name = "webmaster"; 
	var domain = "planthealth.co.uk"; 
	var y = "mailto:"+ name + "@" + domain ; 
	location.href=y ;
	}

// function to bookmark the current page
// usage <a href="javascript:bookmark('http://www.sr-images.co.uk', 'steve roberts - images')>bookmark this page</a>
										
function bookmark(){
	if ( navigator.appName == 'Microsoft Internet Explorer' ) {//&& ( parsint(navigator.appVersion) >= 4 {
		window.external.AddFavorite(self.location, document.title); 
	} else if (window.sidebar) {    //firefox
	   	alert("Press CTRL-D to bookmark this page") ;
		//window.sidebar.addPanel(document.title, self.location,""); }
	}else {
    	//alert("Press CTRL-D (Firefox or Netscape) or CTRL-T (Opera) to bookmark");
	//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();
	}
}

			
