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

function save(){
var str = document.forms[0].bob.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('<title>mydocument</title>\n');
		f.write('\n');
		f.write('<!------------------------------------------------------------------------------------->\n');
		f.write('<!-------- Follow these steps to change the color or picture in the background -------->\n');
		f.write('<!------------------------------------------------------------------------------------->\n');
		f.write('<!----------------------------- S T E P  1 -------------------------------------------->\n');
		f.write('<!---- Change the color WHITE below by another color or a Hex value.  i.e. #CCCC99 ---->\n');
		f.write('<!----------------------------- S T E P  2 -------------------------------------------->\n');
		f.write('<!--- Place a picture in the background by changing the word PICTURE below by a URL --->\n');
		f.write('<!----------------------------- S T E P  3 -------------------------------------------->\n');
		f.write('<!---- Save this file and use the Refresh button in your browser to see the changes --->\n');
		f.write('<!------------------------------------------------------------------------------------->\n');
		f.write('\n');
		f.write('<style>\n');
		f.write('body {background-color: ');
		f.write('WHITE');
		f.write('; background-image:url(PICTURE); font-family: "Arial"; font-size: x-small;}\n');
		f.write('.headline {font-family: arial black, arial; font-size: 28px; letter-spacing: -2px;}\n');
		f.write('.headline2 {font-family: arial black, arial; font-size: 12px; letter-spacing: -2px; color:red}\n');
		f.write('.headline4 {font-family: verdana; font-size: 18px; letter-spacing: -2px; color:blue}\n');
		f.write('</style>\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;
}
