function search_box_handler(){
	var obj = document.sform1;
	var q = obj.q.value;
	var search_type = obj.search_type.options[obj.search_type.selectedIndex].value;
	if(search_type == 'archives'){
		return true;
	}else if(search_type == 'web'){
		parent.location.href='/web_search/?query=' + escape(q) + '&start=0';
		return false;
	}else if(search_type == 'automotive'){
		parent.location.href='http://www.coastautofinder.com/results.php?oby=price&odir=desc&eqstatus=&eqmakeid=&eqmodelid=&geprice=&leprice=&geyear=&leyear=&gemiles=&lemiles=&pxdist=50&pxzip=97420&days-ago=&eqdealerid=&lkhidden=' + escape(q);
		return false;
	}else if(search_type == 'homes'){
		parent.location.href='http://focus.pulseresearch.com/homeseller/site/OR/CoosBay/search.html?minprice=all&maxprice=all&bathrooms=all&bedrooms=all&city=all&type=all&acreage=all&date=all&aa_id=all&keywords=' + escape(q) + '&search=Submit+Query';
		return false;
	}else if(search_type == 'rentals'){
		parent.location.href='/admarket/rentals/?query=' + escape(q);
		return false;
	}else if(search_type == 'pets'){
		parent.location.href='/admarket/pets_and_animals/?query=' + escape(q);
		return false;
	}else if(search_type == 'merchandise'){
		parent.location.href='/admarket/merchandise/?query=' + escape(q);
		return false;
	}else if(search_type == 'marketplace'){
		parent.location.href='http://marketplace.theworldlink.com/Shared/Search.aspx?advid=0&loc=0&s=' + escape(q) + '&submit.x=21&submit.y=18';
		return false;
	}
}

if(document.createStyleSheet) {
	document.createStyleSheet('http://www1.theworldlink.com/includes/search/style.css');
}else{
	var styles = "@import url('http://www1.theworldlink.com/includes/search/style.css');";
	var newSS=document.createElement('link');
	newSS.rel='stylesheet';
	newSS.href='data:text/css,'+escape(styles);
	document.getElementsByTagName("head")[0].appendChild(newSS);
}