function openWindow(url,title) {
	// slightly odd way of doing things due to weird bug in Safari 3 where it does nothing if you declare a url in the window.open method
	// if you open the window without a url then change it's location this works
	// http://aarongough.com/content/view/29/ 
	var height = screen.height * 0.9;
	//var options = 'width=630,height=650,resizable=no,scrollbars=no,location=no,toolbar=no,directories=no';
	var options = 'width=630,height='+ height +',resizable=no,scrollbars=no,location=no,toolbar=no,directories=no';
	var newWin = window.open(url, title, options);
	if(!newWin) {
		newWin = window.open('',title, options);
		newWin.location.href = url;
	}
	return false;
}

function loadTip(page) {
	//alert(page);
	document.location = page;
}

function form_validate(form,fields) {
	var bad=false;
	for (var i in fields) {
		if (form.elements[fields[i]].value=='') bad=true;
	}
	if (bad) window.alert('Please fill in all required fields on the form.');
	return !bad;
}

function doPrint() {
	window.print();
	if (window.event) window.event.cancelBubble = true;
	return false;
}
