function makeactive(tab) {
	document.getElementById("tab1").className = "";
	document.getElementById("tab2").className = "";
	document.getElementById("tab3").className = "";
	document.getElementById("tab4").className = "";
	document.getElementById("tab5").className = "";
	document.getElementById("tab6").className = "";
	document.getElementById("tab"+tab).className = "active";
	callAHAH('pscript/search.php?search='+document.getElementById("mysearch").value+'&content= '+tab, 'content','Getting content for tab '+tab+'. Wait...', 'Error');
}

function CreateBookmarkLink() {
	title = "LastIndex";
	url = "http://www.lastindex.com";
	if (window.sidebar) {
		window.sidebar.addPanel(title, url,"");
	} else if( window.external ) {
		window.external.AddFavorite( url, title);
	} else if(window.opera && window.print) {
		return true;
	}
}
			
function resize_iframe() {

	var height=window.innerWidth;//Firefox
	if (document.body.clientHeight) {
		height=document.body.clientHeight;//IE
	}
	document.getElementById("search").style.height=parseInt(height-
	document.getElementById("search").offsetTop-8)+"px";
}

window.onresize=resize_iframe;
//Instead of using this you can use: <body onresize="resize_iframe()">