
	function popup_image(image_url, title) {
		var winl = (screen.width - 200)/2;
		var wint = (screen.height - 300)/2;
		var settings ='top='+wint+',';
			settings +='left='+winl+',';
			settings +='width=200, ';
			settings +='height=300, ';
			settings +='scrollbars=no,';
			settings +='resizable=yes';

		title = title.replace(/\s/g, '%20');

		win=window.open('image_popup.php?image_url='+image_url+'&title='+title, 'image',settings);

		if(parseInt(navigator.appVersion) >= 4) {
		win.window.focus();
		}
	}

	function Popup(w, h, page, resize) {
		var winl = (screen.width-w)/2;
		var wint = (screen.height-h)/2;
		var settings  ='height='+h+',';
			settings +='width='+w+',';
			settings +='top='+wint+',';
			settings +='left='+winl+',';
			settings +='scrollbars=no,';
			settings +='resizable='+resize+'';

		win=window.open(page,'popup',settings);

		if(parseInt(navigator.appVersion) >= 4) {
			win.window.focus();
		}
	}

	function validateSearch() {

		if (document.forms.search.searchstr.value.length < 2 ||
			document.forms.search.searchstr.value == 'search site here') {

			alert('Please enter a keyword to search for');
			document.forms.search.searchstr.focus();
			return(false);
		}

		return(true);
	}