	function ignoreSpaces(string) {
		var temp = "";
		string = '' + string;
		splitstring = string.split(" ");
		for(i = 0; i < splitstring.length; i++)
		temp += splitstring[i];
	return temp;
	}

	function ShowDir(clubid,DirName,iIndex,PdsNum,cMenuType){
		var linkurl = 'DirView.php?ClubId='+clubid+'&DirName='+DirName+'&iIndex='+iIndex+'&PdsNum='+PdsNum+'&cMenuType='+cMenuType;
		newWindow(linkurl,"detaildir",5,5);
	}
	
	function newWindow(url,name,width,height){
		window.open(url,name,'status=no,toolbar=no,resizable=yes,scrollbars=yes, menubar=no,width='+width+',height='+height+',top=10,left=10');
	}

	function newWindow2(url,name,width,height){
		window.open(url,name,'status=no,toolbar=no,resizable=1,scrollbars=yes, menubar=no,width='+width+',height='+height+',top=10,left=10');
	}

	function ViewMemo(){
		var url = "/MyInfo/Memo/MyMemoList.php";
		newWindow2(url,"memo",750,450);
	}

	function CheckClubId(id){
		var valid = "abcdefghijklmnopqrstuvwxyz0123456789"
		var ok = "yes";
		var temp;
		if(id.length>5 && id.length<21){
			for (var i=0; i<id.length; i++) {
				temp = "" + id.substring(i, i+1);
				if (valid.indexOf(temp) == "-1") ok = "no";
			}
		}else{
			ok = "no";
		}

		if (ok == "no") {
			return false;
		}else{
			return true;
		}
	}

	function numCheck(id){
		var valid = "0123456789"
		var ok = "yes";
		var temp;
		if(id.length>0){
			for (var i=0; i<id.length; i++) {
				temp = "" + id.substring(i, i+1);
				if (valid.indexOf(temp) == "-1") ok = "no";
			}
		}else{
			ok = "no";
		}

		if (ok == "no") {
			return false;
		}else{
			return true;
		}
	}

	function StringPipeCheck(str){
		var pipe="|";

		if (str.indexOf(pipe)==-1 || str.indexOf(pipe)==0){
		   return true
		}
		return false;
	}


