var popwin
var searchwindow
function search_submit(){
	

	if(typeof document.forms["search_form"]=="undefined"){
	//PROBABLY NS
		search_term=document.searchlayer.document.searchform.elements["search_box"].value
	}else{
		search_term=document.forms["search_form"].elements["search_box"].value
	}
	
	thispath=(pthstr+"search/search.asp?search_box="+search_term)
	
	//SET WINDOW POSITION
	if(typeof window.screenX =="undefined"){
		if(typeof window.screenTop !="undefined"){
		
			tp=window.screenTop
			lf=window.screenLeft
			pos=1
		}
	}else{
		tp=window.screenY
		lf=window.screenX
		pos=1
	}
	
	features=",top="+tp+",left="+lf
	
	//END  OF SET WINDOW POSITION
	
	 popwin=window.open(thispath,"search","status=yes,scrollbars=yes,resizable=yes,width=780,height=580"+features)
	 popwin.focus()
	searchwindow=popwin
	searchwindow.myopener=window

}

function gt_remove(){
	if(document.forms[0].elements["search_box"].value=="Search the site..."){
		document.forms[0].elements["search_box"].value=""
	}
}
function show_search2(thispath){
	
	if(thispath.indexOf("_float/")==-1){
	//alert("noframe_index.asp?pg="+thispath)
		//alert(parent.parent.document.location)//="noframe_index.asp?pg="+thispath
		//parent.parent.document.location="noframe_index.asp?pg="+thispath
		parent.parent.document.location="<% =pthstr %>"+thispath
		
	}else{
		//MM_openBrWindow(thispath,"floater","status=yes,scrollbars=yes,resizable=yes,width=442,height=442")
	}
}

