function mainsearchFocus(){
	box=document.getElementById('main_searchbox');
	if(box.className!='active'){
		mainsearchOldValue=box.value;box.value='';
		box.className='active';
	}
	else{
		box.select();
	}
}

function mainsearchBlur(){
	box=document.getElementById('main_searchbox');
	if(box.value==''){
		box.value=mainsearchOldValue;box.className='inactive';
	}
}

function show_0(t){
	var s=document.getElementsByTagName("div");
	with(s){
		for(var i=0;i<length;i++){
			if(s[i].id==t){
				s[i].style.display='block';
			}
		}
	}
}

function hide_0(t){
	var s=document.getElementsByTagName("div");
	with(s){
		for(var i=0;i<length;i++){
			if(s[i].id==t){
				s[i].style.display='none';
			}
		}
	}
}

function popup(url) {
	newwindow=window.open(url, 'name', 'height=550, width=550');
	if (window.focus) {
		newwindow.focus()
	}
}

function info(url) {
	newwindow=window.open(url, 'name', 'height=300, width=440');
	if (window.focus) {
		newwindow.focus()
	}
}
