
function stoperror(){ 
return true 
} 
window.onerror=stoperror 

function save(){
var str = document.forms[0].Body.value;
if (str == '') {
        alert('Nothing to save!');
        return;
		}

else{
var re1 = /BORDER-RIGHT: #c0c0c0 1px dotted; BORDER-TOP: #c0c0c0 1px dotted; BORDER-LEFT: #c0c0c0 1px dotted; BORDER-BOTTOM: #c0c0c0 1px dotted/g;
var re2 = / style=""/g;
	str = str.replace(re1,"");
	str = str.replace(re2,"");
cDialog.CancelError=true;
  	try{
  		cDialog.Filter="HTML (*.html)|*.html|HTM (*.htm)|*.html|Include Files (*.inc)|*.inc|Text Files (*.txt)|*.txt"
		cDialog.DialogTitle="HTMLArea SaveAs Dialog"
  		cDialog.ShowSave();
  		var fso = new ActiveXObject("Scripting.FileSystemObject");
  		var f = fso.CreateTextFile(cDialog.filename,true);
		f.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">');
		f.write('<html>\n');
		f.write('<head>\n');
		f.write('\n');
		f.write('</head>\n');
		f.write('<body>\n');
  		f.write(str);
		f.write('\n');
		f.write('</body>\n');
		f.write('</html>\n');
  		f.Close();
  		sPersistValue=str}
  	catch(e){
  		var sCancel="true";
  		return sCancel;}
	document.focus();	
}}

var oPopup = window.createPopup()
function goContext()
{
  var oPopupBody = oPopup.document.body;

  oPopupBody.innerHTML = oContext.innerHTML;
  oPopup.show(195, 200, 404, 174, document.body);
  //document.body.onmousedown = oPopup.hide;
}