
// Common Scripts =  <script language="JavaScript" type="text/javascript" 
<!-- Comments, multiline >  comment text here  <-->
// ===============================================



function wife_Message2() {
	alert("I need a wife!");
}

function S1_code() {
// this function just processes based on result of listbox S1 selection/option
    x = S1.value;
    //alert(S1.options[S1.selectedIndex].text);
    if (x == 1) alert(" Proverbs 11:1 \n Dishonest scales are an abomination to the Lord.  But a just weight is His delight.");
    if (x == 2) alert(" Proverbs  \n The mouth of the righteous brings forth wisdom.  " + "But the perverse tongue will be cut out.  The lips of the righteous know what is acceptable...");
    if (x == 3) alert("three");

} //----------------------------------------------


function evaluate(x){       // evaluates mathematical expressions
    alert(eval(x));
}

function repositionX(obj, x, y) { // uses above getStyleObject() func
  var styleObj = getStyleObject(obj);
  if (styleObj) { 
	styleObj.left= x + "px"; 
	styleObj.top= y + "px";  }
  } //----------------------------------------------

function reportMove() {
// this function requires this body tag:  <BODY onmousemove="reportMove()> "
    window.status = "X=" + window.event.x + " Y=" + window.event.y;
  } //----------------------------------------------


function createFileList(pathX, sizeX) {
// creates file list below tag div1.  Needs no Select tag.  
// PathX parm comes from fileBrowse[input] 
    fso =  new ActiveXObject("Scripting.FileSystemObject");
    pathX = showFileStats(pathX, 'folder');	// calls function
    f = fso.GetFolder(f.parentFolder);
    fList = new Enumerator(f.files);
    if(!sizeX) { sizeX=17;}
    insertThis = "<select id='fileList01' size=" + sizeX + ">";
    for (i=1; !fList.atEnd(); i++) {
      insertThis += "<option>" + i + ":-" + fList.item(); 
      fList.moveNext();  }
    div1.insertAdjacent("afterBegin", insertThis);
}





// eof