
  function openclub(url,size){ 
						var size =size+'toolbar=0,status=no,menubar=no,scrollbars=yes,resizable=yes'; 
						var n=open(url,'club_pop',size); 
						n.focus(); 						
						} 

  function openclub1(url,size){ 
						var size =size+'toolbar=0,status=no,menubar=no,scrollbars=yes,resizable=yes,location=yes'; 
						var n=open(url,'club_pop1',size); 
						n.focus(); 						

						} 

  function openclub2(url,size,name){ 
						var size =size+'toolbar=0,status=no,menubar=no,scrollbars=yes,resizable=yes,location=yes'; 
						var n=open(url,name,size); 
						n.focus(); 						
						}
						
  function close_club(url){ 
                              
						 opener.location.reload();						 
   				                     self.close();    		
		               }							
							

  function opener_club(str){ 
                              
						 window.opener.location.href = str ;
		               }	

 function chr_addtag(str,field) { 
	                              field.value+=str; 
               			    }
							


function myconfirm (mystr,mystr2) {

                                   if(!mystr2) mystr2="¸Â½À´Ï±î?";								    

										f=confirm(mystr2);

									   if (f) {   	window.location=mystr;								                       													      
									                return;
												 }                                                                                
                                 }


function myconfirm2 (mystr) {
										f=confirm("¸Â½À´Ï±î?");

									   if (f) {  f2=confirm("Á¤¸» ¸Â½À´Ï±î?");
                                                   if(f2) {  f3=prompt("¾ÏÈ£¸¦ ÀÔ·ÂÇÏ½Ã¸é »èÁ¦°¡ ¿Ï·áµË´Ï´Ù.",'°ü¸®ÀÚ¾ÏÈ£'); 
												             if(f3=='bobos') window.location=mystr; else alert('¾ÏÈ£¸¦ È®ÀÎÇØÁÖ½Ã±â ¹Ù¶ø´Ï´Ù');
												   }        
									                return;
												 }                                                                                
                                 }


function Make_JS_Cookie(cookie_name,cookie_val) {
 
 document.cookie =cookie_name+"="+cookie_val;

//var allcookies = document.cookie;
//alert(allcookies);

}


function clearField(field){
		if (field.value == field.defaultValue) {
			field.value = "";
		}
	}

	function checkField(field){
		if (field.value == "") {
			field.value = field.defaultValue;
		}
    }






function saveCurrentPos (objTextArea) {
   if (objTextArea.createTextRange) 
         objTextArea.currentPos = document.selection.createRange().duplicate();
}

function insertText (text,objTextArea) {
   if (objTextArea.createTextRange && objTextArea.currentPos) {
         var currentPos = objTextArea.currentPos;
         currentPos.text =
           currentPos.text.charAt(currentPos.text.length - 1) == ' ' ?
             text + ' ' : text;
   }
   else
         objTextArea.value  = text;
}

  	function chkBox(bool,val) { // ÀüÃ¼¼±ÅÃ/ÇØÁ¦            		
 
				var obj = document.getElementsByName(val); 
						 
				for (var i=0; i<obj.length; i++) obj[i].checked = bool; 
			} 



function copyclipboard(intext) {

  window.clipboardData.setData("Text", intext);
   return true;     
 }
