
function newwindow(webaddss) {
window.open(webaddss)
}

 function ActionBoardSearch(strSearch){
	 if(strSearch!="" && strSearch !="Search"){
		window.location.href='webboardnew/community_board_eng.asp?s='+strSearch;
	 }
 }
 
  function ActionBoardSearchFilter(strSearch){
	 if(strSearch!="" && strSearch !="Search"){
		window.location.href='webboardnew/community_board_eng.asp?s='+strSearch+'&filter=1';
	 }
	 else{
	    window.location.href='webboardnew/community_board_eng.asp?filter=1';
	 }
 }

function MM_openBrWindowCenterCustom(theURL,winName,w,h) { //v2.0
tops=(window.screen.availHeight/2)-(h/2)-25
lefts=(window.screen.availWidth/2)-(w/2)
z=window.open(theURL,'_blank',' resizable=yes,scrollbars=yes,location=0,width='+w+',height='+h+',top='+tops+',left='+lefts+',status=1');
return z;
}
function Menu_openBrWindowCenter(theURL) { //v2.0
window.open(theURL,'_blank',' resizable=yes,scrollbars=yes,location=0,status=1');
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_openBrWindowCenterCustomOpenMail(theURL,winName,w,h) { //v2.0
	if (!e){var e=window.event;}
	if (e){e.cancelBubble=true;}
	if(theURL){
		tops=(window.screen.availHeight/2)-(h/2)-25
		lefts=(window.screen.availWidth/2)-(w/2)
		z=window.open(theURL,'_blank',' resizable=yes,scrollbars=yes,location=0,width='+w+',height='+h+',top='+tops+',left='+lefts+',status=1');
		return z;
	}
}

function loginpop()
{	
	var sURL = "webboardnew/login.asp";
	sScreenWidth = screen.availWidth
	sScreenHeight = screen.availHeight
	sWidth =800
	sHeight = 660
	sLeft = (sScreenWidth / 2) - (sWidth / 2)
	sTop = (sScreenHeight / 2) - (sHeight / 2)
	var sFeature = 'height='+sHeight+', width='+sWidth+', top='+sTop+', left='+sLeft+', scrollbars=yes, resizable=no, titlebar=yes, toolbar=0 ,menubar=0' 
	var sName = 'loginpop';
	window.open(sURL,sName,sFeature);	
}

function EventDate(d,m,y,mn){
//    location.href='calendar.asp?edate='+d+'&month='+m+'&year='+y+'&mn='+mn;
	window.open ('activity/calendar.asp?edate='+d+'&month='+m+'&year='+y+'&mn='+mn);
}
function AddEventPop(){
//    location.href='calendar.asp?edate='+d+'&month='+m+'&year='+y+'&mn='+mn;
	window.open ('activity/requestaddevent.asp');
}


function Search4(){
 		if (document.form4.keywords4.value=="" ){
			alert('Please Key Words To Search');
			document.form4.keywords4.focus();
			return false;
		}
 form4.submit();
 }
 

function Search5(){
 		if (document.form5.keywords5.value=="" ){
			alert('Please Key Words To Search');
			document.form5.keywords5.focus();
			return false;
		}
 form5.submit();
 }
 

function Search6(){
 		if (document.form6.keywords6.value=="" ){
			alert('Please Key Words To Search');
			document.form6.keywords6.focus();
			return false;
		}
 form6.submit();
 }
 
