
function myOnSubmitEventHandler(c) {
	c.editor.EscapeUnicode = true;
	c.BODY.value = c.editor.value;
}

function displayMenu(id) 
{
  container = document.getElementById('container'+id);
  menu = document.getElementById('menu'+id);
  if(document.getElementById('bullet'+id) != null){
  	bullet = document.getElementById('bullet'+id);
  }

  title = document.getElementById('title'+id);
  
  if (container.style.display == "none") 
  {
 	if(document.getElementById('bullet'+id) != null){
		bullet.innerHTML = "<img src='files/images/bullet01.gif'/>";
	 }
	container.style.display = "block";
	menu.style.backgroundColor = "#f2f2f2";
	title.style.color = "#c4161c";
	
  } else {
	 if(document.getElementById('bullet'+id) != null){
  		bullet.innerHTML = "<img src='files/images/bullet02.gif'/>";
	  }
    container.style.display = "none";
	menu.style.backgroundColor = "#FFFFFF";
	title.style.color = "#000000";
	
  }
}

function checkFormClick(o,v)
{
	if(o.value==v)
	{
		o.value ='';
	}
}
function checkFormBlur(o,v)
{
	if(o.value=='')
	{
		o.value = v;
	}
}

function popup(filename,w,h,scrollbar)
 {
	 var attributes = "left=100, top=100, width="+w+", height="+h+",";
	 attributes += "toolbar=0, location=0, directories=0, ";
	 attributes += "status=0, menubar=0, scrollbars="+scrollbar+", ";
	 attributes += "resizable=1";
	 window.open(filename, "appwindow", attributes);
 }
 
function testmyslide() 
{
 alert('ok');
}


