function BeforeDel(){
	deleteitem('<%=thispage%>');
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function appendSpace(str){
  var result = str.charAt(0);
  for (i=1; i<str.length; i++)
  {
    ch0 = str.charAt(i-1);
	ch1 = str.charAt(i);
    ech0 = escape(ch0);
    ech1 = escape(ch1);
	
    if (ech0.length == 3)
    {
      if (parseInt(ech0.substring(1,3), 16) > 128)
      {
         result += ' ';
      }
    }
    else if (ech0.length == 6) // unicode
    {
      if (ch0 != ' ' && ch1 != ' ')
      {
        result += ' ';
      }
    }
    if (ech1.length == 6 && ech0.length != 6)
    {
      if (ch0 != ' ' && ch1 != ' ')
      {
	  result += ' ';
      }
    }
    if (ch0 != ' ' || ch1 != ' ')	
	    result += str.charAt(i);
  }
  return result;
}

function convert() {	
	document.articleForm.append.value='Y';
	document.articleForm.action='#';
}

function convert2() {	
	document.articleForm.append.value='Y';
	document.articleForm.action='append.asp';
}

function deleteitem(){
	var returnCode = confirm("Confirm Delete?");
	if (returnCode == true)
	{  
		document.theForm.del.value='del';
		document.theForm.submit();
	}
}

function NewWindow(mypage, myname, w, h, scroll){
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable';
	win = window.open(mypage, myname, winprops);
	if (parseInt(navigator.appVersion) >= 4)
	{ 
		win.window.focus();
	}
}

function chk_digit(str){
  var result = str.charAt(0);
  for (i=1; i<str.length; i++)
  {
	   alert(str.charAt(i));	  	  
  }
	
  return result;
}







