//Popup Center Function
function set_center(width,height,type)
{
	nWidth = width;
	nHeight = height;
	nLeft = (window.screen.width - nWidth ) / 2;
	nTop  = (window.screen.height- nHeight) / 2;
	sF = "";

	if(type=="1") sF += "toolbar=no,location=no,menubar=no,status=no,directories=no,resizable=no,scrollbars=no";
	else sF += "toolbar=no,location=no,menubar=no,status=no,directories=no,resizable=no,scrollbars=yes";

	sF += ",left=" + nLeft;
	sF += ",top=" + nTop;
	sF += ",width=" +  nWidth;
	sF += ",height=" + nHeight;

	return sF;
}
function set_center1(width,height,type)
{
	nWidth = width;
	nHeight = height;
	nLeft = (window.screen.width - nWidth ) / 2;
	nTop  = (window.screen.height- nHeight) / 2;
	sF = "";

	if(type=="1") sF += "toolbar=no,location=no,menubar=no,status=no,directories=no,resizable=yes,scrollbars=no";
	else sF += "toolbar=no,location=no,menubar=no,status=no,directories=no,resizable=yes,scrollbars=yes";

	sF += ",left=" + nLeft;
	sF += ",top=" + nTop;
	sF += ",width=" +  nWidth;
	sF += ",height=" + nHeight;

	return sF;
}

  /// ID check
  function check_ID(value){
    
    var comp="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
    var len=value.length;
    for(i=0;i<len;i++) {
      if(comp.indexOf(value.substring(i,i+1))<0) {
        return false;
    	}
    }
  }

  /// Name Check
  function check_Name(value){
    
    var comp="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
    var len=value.length;
    for(i=0;i<len;i++) {
      if(comp.indexOf(value.substring(i,i+1))<0) {
        return false;
    	}
    }
  }

  function check_Tel(value){
    
    var comp="0123456789+-";
    var len=value.length;
    for(i=0;i<len;i++) {
      if(comp.indexOf(value.substring(i,i+1))<0) {
        return false;
    	}
    }
  }

