
function ShowSearchWindow(){
	win = new Window({className: "dialog", title: "Member Search", width:280, height:130, destroyOnClose: true, recenterAuto:false, resizable: false, minimizable: false,  maximizable: false});
	win.setAjaxContent("SearchPanel.htm", {method: 'get'}, false, false)
	win.showCenter(false,20);
}

function ShowQAAlert(){
if(document.URL.indexOf('fromLogin') != -1){
	win = new Window({className: "dialog", title: "Provide Secret Q & A", width:300, height:100, destroyOnClose: true, recenterAuto:false, resizable: false, minimizable: false,  maximizable: false});
	win.setHTMLContent("<p style='color:#000000;font-size:11px;'>You are logged in but until you fill in the requested secret question and answer you will"
	+" be prompted for it every time you login. Should you ever forget your password you will not be able to retrieve "
	+"it without having the secret Q & A in our files and your exchange owner does not have access to your"
	+" password.</p>");
	win.showCenter(false,200,500);
}
}

function SearchMember(tb){
	if(tb.length>0){
		//var i = tb.toUpperCase().charCodeAt(0)-64;
		var WW="";
		if($('SearchWorldWide') != null){
		if($('SearchWorldWide').checked)
			WW = "&WW=1";
		}
		window.location.href='FullUsersList.aspx?KW='+escape(tb)+'&GB=0'+WW;
	}
	else{
		$('SearchPanelError').update('Please enter a name');
	}
}
function SearchMemberByCat(tb){
	if(tb.length>0){
		//var i = tb.toUpperCase().charCodeAt(0)-64;
		var WW="";
		if($('SearchWorldWide') != null){
		if($('SearchWorldWide').checked)
			WW = "&WW=1";
		}
		window.location.href='FullUsersList.aspx?CKW='+escape(tb)+'&GB=0'+WW;
	}
	else{
		$('SearchPanelError').update('Please enter a name');
	}
}
function SearchMemberByZip(tb){
	//validate we have a zip
	if(tb.match(/[0-9]{5}/)){
		window.location.href='MemberByZip.aspx?ZIP='+escape(tb);
	}
	else{
		$('SearchPanelError').update('Please enter a valid ZIP');
	}
}