
function clear_textbox()
{
if (document.search_form.query.value == " Search all listings ")
document.search_form.query.value = "";
} 

locazione=''
var bookmarkurl="http://www.ronsusser.com/"
var bookmarktitle="RonSusser.com - Auction Specialist"
var NetscapeNavigator=navigator.appName.indexOf("Netscape")!=-1;
var browserVer=parseInt(navigator.appVersion);

function addbookmark(){
	if (NetscapeNavigator) {
		alert("To bookmark this page, hit CTRL-D")
	} else {
   		if (document.all) window.external.AddFavorite(bookmarkurl,bookmarktitle)}
   	}

function homepage() {
	if (NetscapeNavigator) {
		alert("To bookmark this page, hit CTRL-D")
		return;
	}
	if(document.all) {
		document.body.style.behavior='url(#default#homepage)';
		document.body.setHomePage('http://www.ronsusser.com');
	}
}

function validate(myForm) {
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.Email.value)){
	return (true)
	}
	alert("Invalid e-mail address.  Please type your correct e-mail.")
	return (false)
}

/*
function right(e) {
	if (navigator.appName == 'Netscape' && 
	(e.which == 3 || e.which == 2))
	return false;
	else if (navigator.appName == 'Microsoft Internet Explorer' && 
	(event.button == 2 || event.button == 3)) {
	alert("Please contact Ron Susser (ron@ronsusser.com) for more information");
	return false;
	}
	return true;
	}

	document.onmousedown=right;
	document.onmouseup=right;
	if (document.layers) window.captureEvents(Event.MOUSEDOWN);
	if (document.layers) window.captureEvents(Event.MOUSEUP);
	window.onmousedown=right;
	window.onmouseup=right;
*/