// ¹®ÀÚ¿­ Ã¼Å©, °¡ÀÔÆûµî¿¡¼­ »ç¿ë
function beAllowStr(str, allowStr) {
    var i;
    var ch;
    for (i=0;i<str.length;i++) {
        ch = str.charAt(i);
        if (allowStr.indexOf(ch) < 0) {
            return false;
        }
    }
    return true;
}

function Confirm_yesorno(msg,url) {
  var Message = msg;
  if(confirm(Message)=='1') {
    location.href = url;
  }
}
function Confirm_yesorno_popup(msg,url) {
  var Message = msg;
  if(confirm(Message)=='1') {
    window.open(url, "", 'top=1,left=1,width=1,height=1,status=no,scrollbars=no,fullscreen=no,toolbar=0,location=0,directories=0,status=1,menubar=0,resizable=yes');
  }
}

function move_url(url) { 
  location.href = url;
} 

function profileWindow(url) {
  var window_left = (screen.width-700)/2;
  var window_top = (screen.height-500)/2;
  window.open(url, "", 'top=50,left=50,width=700,height=500,status=no,scrollbars=yes,fullscreen=no,toolbar=0,location=0,directories=0,status=1,menubar=0,resizable=yes');

}

function Window_StreamingPlayer(ref) {
  var window_left = (screen.width-800)/2;
  var window_top = (screen.height-600)/2;
  window.open(ref,"StreamingPlayer",'width=480,height=500,status=no,scrollbars=no,top=' + window_top + ',left=' + window_left + '');
}

function messageWindow(ref) {
  var window_left = (screen.width-700)/2;
  var window_top = (screen.height-500)/2;
  window.open(ref,"",'width=400,height=400,status=no,scrollbars=yes,top=' + window_top + ',left=' + window_left + '');
}


function NotHan2(frmvalue, msg) {

	a=0;
	b=0;
	var data = frmvalue.value;		
	var alpha = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';	
	var numeric = '1234567890';
	var text = alpha + numeric;	
	for (var i=0;i<data.length;i++) {
		if (text.indexOf(data.substring(i,i+1))<=-1) break;		
	}	
	if (i!=data.length) { a=1; }
	
	
	var numberis = '0123456789';	
	var data = frmvalue.value;	
	for (i=0; i<data.length; i++) 	if ( numberis.indexOf(data.substring(i,i+1))<0) {	break ;}
	if ( i !=data.length ) {	b=1;	}		
	
	if (a==1&& b==1) return false;
	else { alert(msg); frmvalue.select(); return true; }
}