
if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return};
function HM_f_PopDown(){return};
	popUp = HM_f_PopUp;
	popDown = HM_f_PopDown;

function help() {	
remote=window.open("","remotewin","width=650,height=500,scrollbars=yes");
remote.focus();
remote.location.href='/help/member_help.cfm';
}

function CkLoginField(F){
	var msg = '';
	var return_flag = false;
	if(F.ID.value == '') msg += 'Please enter your ID.\n';
	if(F.PASSWD.value == '') msg += 'Please enter the Password.\n';
	if(msg != '')
		alert(msg);
	else
		return_flag = true;
	return return_flag;
}

function FrmBoth_validate(F){		
	return further_v(F);
}
function further_v(F){
	var keywords = F.Search_in.value.toUpperCase();
	var msg;
	if(F.type_i[2].checked)
		return true;
	else{			
		if(keywords.indexOf(' AND ') == -1 && keywords.indexOf(' OR ') == -1)
			return true;
		else{
			msg = 'You have put a Boolean operator in your search string, but you have selected an AND/OR search.\n If you meant to submit a Boolean query, please click Cancel and select the Boolean Search radio button;\n otherwise, click Okay.';
			return confirm(msg);
		}			
	}
	return true;		
}
