function OnHelp() {
	var width, height, left, top;
	width=400; height=400;
	left=(screen.width-width)/2;
	top=((screen.height-50)-height)/2;
	window.open(var_searchhelpurl, 'win', 'width=' + width + ',height=' + height + ',alwaysLowered=1,alwaysRaised=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=0,location=0,menubar=0,resizable=0,scrollbars=1,status=0,titlebar=0,toolbar=0,left=' + left + ',top=' + top + ',z-lock=0');
	return false;
}
function OnSearch(form) {
	var ok;
	ok = true;
	if(form.yider.value.length == 0) {
		alert('You must enter some text to search for!');
		form.yider.focus();
		ok = false;
	} else if(form.yider.value.search(/\*/) != -1 && form.yider.value.search(/\s/) != -1) {
		alert('If you are using the * to generalise your search, you can only search for one word at a time!');
		form.yider.focus();
		ok = false;
	} else if(form.yider.value.search(/^\S+\*\S+$/) != -1) {
		alert('You can only use the * at the beginning or end of your search term');
		form.yider.focus();
	ok = false;
	} else if(form.yider.value == '*') {
		alert('You cannot search for a general * character!\nSee the search Help');
		form.yider.focus();
		ok = false;
	}
	if(ok){
		form.action = var_searchurl;
		form.submit();
	} else {
		return false;
	}
}