var rapidSearchesOn = true;

function showHideRapidSearches() {
	if (rapidSearchesOn) {
		rapidSearchesOn = false;
		
		document.getElementById("rapidsearches_horizontal").style.top = '-135px';
		frames['iframe'].document.getElementById("rslogo").style.height = '20px';
			
	} else {
		rapidSearchesOn = true;
		
		document.getElementById("rapidsearches_horizontal").style.top = '0px';
		frames['iframe'].document.getElementById("rslogo").style.height = '155px';
	}
}

function resize_iframe()
{
	var height=window.innerWidth;//Firefox
	if (document.body.clientHeight)
	{
		height=document.body.clientHeight;//IE
	}
	//resize the iframe according to the size of the
	//window (all these should be on the same line)
	document.getElementById("iframe").style.height=parseInt(height-
	document.getElementById("iframe").offsetTop)+"px";
}

// this will resize the iframe every
// time you change the size of the window.
window.onresize=resize_iframe; 

function CreateBookmarkLink(url, title) {
	if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	} else if( window.external ) { // IE Favorite
		window.external.AddFavorite( url, title); }
	else if(window.opera && window.print) { // Opera Hotlist
		return true; }
}
 
/* Check and Uncheck all checkboxes */
function checkUncheckBoxes(form, check) {
	x = document.getElementById(form);
	for(var i=0,l=x.length; i<l; i++)
		if(x[i].type == 'checkbox')
			x[i].checked=check;
}
