

//////////////////////////////////////////////////////////////////////////////////////////////////

function CloseGeneratedWindow() {  

// alert("CloseGeneratedWindow/printWINOpened: " + printWINOpened);

	if (typeof(printWIN)!="undefined" && typeof(printWIN)=="object")
  {
	 //=========
		if (isNetscape)
		  { this.printWINOpened = (printWIN.closed)?0:1}
		else { // alert('Not netscape. before setting. printWINOpened: ' + printWINOpened);
		  this.printWINOpened = (typeof printWIN.creator == "object" || (typeof printWIN.cgimaker=="string"))?1:0;
		 // alert('after setting. printWINOpened: ' + printWINOpened);//typeof printWIN.cgimaker!="undefined" && printWIN.location != self.location))?1:0;
		 };
	  //=========               
	if (typeof(printWINOpened)=="number" && printWINOpened)
		 {
			 //  alert("printWINOpened: " + printWINOpened);
				if ((typeof printWIN.creator == "object" && printWIN.creator == self)
				  || (typeof top.printWIN.cgimaker=="string" && top.printWIN.cgimaker=="cgiscript")
				  || (isNetscape && typeof top.printWIN.creator!='object') // && typeof top.printWIN.location!='undefined' && top.printWIN.location.pathname==self.location.pathname
				 // || (typeof top.printWIN.location!='undefined' && top.printWIN.location.pathname==self.location.pathname)
				 )
					{ //if (!isMac) printWIN.document.onunload="new Function('return true;')";
					  printWIN.window.close() };
		 };
	}
  //----------------------------------------------------------------------------------
} // end of fn()

//////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////
var innernum=0;
var i = 0;
var probnum=0;
var printWINOpened = 0;
var buttonclickcount=0;
var reductionNum = 2;

var endl = "\n";

var pathnameString = new String(" ");
var pagenumber = new String(" ");
var namestring = new String(" ");

var inNumString = new String(" ");
var formattedAnswer = new String(" ");
var QuestionfromHidform = new String(" ");
var HTMLSTRING = new String(" ");

var QNAME = new String(" ");
var HeadName = new String(" ");
var beginHead = new String(" ");
var HEADING = new String(" ");
var beginText = new String(" ");

subLetterArray = new Array('','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z');

_beginHTML_ = new String("<HTML>\n<HEAD>\n<TITLE>");

pagename = new String("Seeing Anthropology -- Questions for Ethnographic Film Study");

_endTITLE_ = new String("</TITLE>");



//top.analysisTEXT.document.writeln("</head><body bgcolor=\"#F5F5FF\" text=\"#000011\" LINK=\"#2222AA\" ALINK=\"#AA2288\" VLINK=\"#1111AA\" onUnload=\"if ((navigator.appName.indexOf('Netscape') != -1 && top.opener && top.opener.document) ||               (navigator.appName!='Netscape' && typeof(top.opener) == 'object')){if (top.opener!=null && typeof(top.opener.document) == 'object'&&typeof(top.opener.AWINopened)=='number'){top.opener.AWINopened=0};};\" onLoad=\"if (typeof(top.opener.AWINopened)=='number'){top.opener.AWINopened=1}\"");

_endHEADbeginBODY_ = new String("</HEAD>\n<BODY bgcolor=\"#EEEEFF\" text=\"#000011\" LINK=\"#2222AA\" ALINK=\"#AA2288\" VLINK=\"#1111AA\">");

//onUnload=\"if ((navigator.appName.indexOf('Netscape') != -1 && top.opener && top.opener.document) || (navigator.appName.indexOf('Netscape') == -1 && typeof(top.opener) == 'object')){if (top.opener!=null && typeof(top.opener.document) == 'object' && typeof(top.opener.printWINOpened)=='number'){top.opener.printWINOpened=0};};\"

_beginTABLEbeginROW_ = new String("\n<center><TABLE  WIDTH=\"92%\" CELLSPACING=3 CELLPADDING=3 BORDER=0><TR><TD COLSPAN=4><P><BR></P>")

_endROW_HRtableROW_ = new String("</TD></TR><TR><TD COLSPAN=4><HR NOSHADE SIZE=1 WIDTH=\"100%\"></TD></TR>\n");



_HR_ROW_ = "<TR><TD COLSPAN=4><HR WIDTH=\"95%\"></TD></TR>";

_beginTRbeginTD_H3_ = "\n<TR><TD VALIGN=TOP WIDTH=\"3%\"><H3>";



_endH3_TDbeginTD_ = new String("</H3> </TD><TD VALIGN=TOP COLSPAN=2>"); //?????

_lineBR_ = new String(" <BR>");


_HRtableROW_ = new String("\n<TR><TD COLSPAN=4><HR NOSHADE SIZE=1 WIDTH=\"100%\"></TD></TR>\n<TR><TD COLSPAN=4><P> ");

_endTABLE_ = new String("</TD></TR></TABLE></center>");

_windowCloser_ = new String("<P><BR></P><P><BR></P><CENTER><P><BR></P><A HREF=\"javascript:if(typeof(top.opener)=='object'&&top.opener!=null){if(top.opener.document){top.opener.focus();}};self.close()\" onmouseover=\"window.status='Close this window'; return true;\">Close This Window</A> </CENTER> <P> <BR>\n");

_endBODYendHTML_ = new String("<P><BR></P><P><BR></P><P><BR></P><P><BR></P><P><BR></P><P><BR></P>\n</BODY>\n </HTML> ");

///////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////
 // *************************************************************************************** captest()
 var isNetscape = 0; if (navigator.appName.indexOf('Netscape') != -1) {isNetscape = 1};
 var isMac = 0;      if (navigator.appVersion.indexOf('Mac') != -1)   {isMac = 1}; //alert("isMac: " + isMac);
 var notcapable = 0;

 function captest() {
	if ( (navigator.appName.indexOf('Netscape') != -1) && (parseInt(navigator.appVersion.charAt(0)) < 4) ) {notcapable=1;}
					} // end of fn()
 captest();           //alert("notcapable: " + notcapable);
// *************************************************************************************** 
///////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////
emptyspacer=(notcapable&&isMac)?" ":" &nbsp; ";

AnsGivenEndText = new String("<BR></TD><TD>" + emptyspacer + "</TD></TR> \n");
if (typeof(this.hrdraw)=="number" && this.hrdraw==1)  {  AnsGivenEndText = "</TD><TD>" + emptyspacer + "</TD></TR> \n";   }
///////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////// EMAILER
answerTextForEmail = new String();
/////////////////////////////////////////////////////////////////////////////////////////// EMAILER
mainHeadingH2 = "";
subHeadingH3 = "";

function PrintWindow()
{
HTMLSTRING =  _beginTABLEbeginROW_;
probnum=0;
innernum=0;

//  ------------------------------------------------------------------------------------- EMAILER

getFormHeadingValues();

if (typeof EMAILSTRING == "undefined") {EMAILSTRING = " "; };
if (typeof isEmailFeature == "number") {

EMAILSTRING = (typeof  bookTitle== "string")?(bookTitle+"\n"):"";

EMAILSTRING += pagename;

EMAILSTRING += (mainHeadingH2 == "")?"":"\n";
EMAILSTRING += mainHeadingH2;
EMAILSTRING += (subHeadingH3 == "")?"":"\n";
EMAILSTRING += subHeadingH3;
};
subHeadingH3html = (subHeadingH3=="")?"":"<H3>" + subHeadingH3 + "</H3>"

cr = new String("\r");	     cr = (isMac)?"\r":"\n";
//  ------------------------------------------------------------------------------------- EMAILER

buttonclickcount++

if (buttonclickcount<3)
	{ HTMLSTRING += "[From the <B>FILE</B> menu, select either <B>Print</B> or <B>Save as.</B>]<BR>" };
HTMLSTRING += "<H2>" + mainHeadingH2 + "</H2>" +  subHeadingH3html + document.hidForm.customHeader.value + _endROW_HRtableROW_;


if (typeof(this.numberOfButtons)=="number")  {reductionNum = this.numberOfButtons};
if (typeof(this.reduceFormNumber)=="number") {reductionNum = this.reduceFormNumber};


for (i=0; i<(document.inputForm.length-reductionNum); i++)
  {
	if (i>0 && typeof(this.hrdraw)=="number" && this.hrdraw==1) { HTMLSTRING += _HR_ROW_  };



	responseGiven = document.inputForm[i].value.toString();

// &&&&&&&&&&&&&&&&&&&&&		
	textarCOLS=72; //***** # OF TEXTAREA COLUMNS
//	if (typeof document.inputForm.elements[i].cols != "undefined")	{ textarCOLS = parseInt(document.inputForm.elements[i].cols);	}		
//	if (typeof textarCOLS != 'number' || textarCOLS!=78) {alert("textarCOLS != 78: '"+textarCOLS+"'")};
//	if (typeof textarCOLS != 'number' || !textarCOLS || !isNaN(textarCOLS)) textarCOLS=78;
// &&&&&&&&&&&&&&&&&&&&&	

	if (responseGiven=="" || responseGiven==" " || responseGiven=="\r" || responseGiven=="\n" || responseGiven==document.inputForm[i].defaultValue)
		{ responseGiven = responseGiven + "         (no response was given)          "
		 formattedAnswer = emptyspacer + "<tt><font color=\"#003333\"><PRE>" +  document.inputForm[i].defaultValue + "</PRE></font></tt><font color=\"#333333\"><center><i>no response was given</i></center></font><BR>";
	} else 
		{
		 formattedAnswer = " <tt><font color=\"#003333\"><PRE>" + wrapText(responseGiven,textarCOLS,cr) + "</PRE></font></tt>" };//<XMP></XMP>
	 //{ formattedAnswer = " <tt><font color=\"#003333\"><PRE>" + wrapText(responseGiven,78,cr) + "</PRE></font></tt>" };//<XMP></XMP>


	QuestionfromHidform = document.hidForm[i].value;


		beginText = (i==0)?_beginTRbeginTD_H3_:(_HR_ROW_ + _beginTRbeginTD_H3_)
  // no first <HR>

	QNAME = document.hidForm[i].name;
////////////////////////////////////////////////////////////////////////////////////////////////////

if (typeof(this.innerNumMode)!="number"){this.innerNumMode=1};
	if (QNAME.charAt(0)=="h")
	  { ++probnum; 

		if (typeof(this.innerNumMode)!="number" || this.innerNumMode == 2 || this.innerNumMode == -1)   {innernum = 0};  		      
		HEADING = document.headingForm[probnum-1].value + "</TD></TR><TR><TD></TD><TD VALIGN=TOP> ";	      
		HeadName = document.headingForm[probnum-1].name;

		beginHead = (HeadName.charAt(0)=="n")?(beginText + probnum +"."+ _endH3_TDbeginTD_):"<TR><TD VALIGN=TOP COLSPAN=4>";

		innernum++;	      
			inNumString = (typeof(this.innerNumMode)!="number" || this.innerNumMode >0)?("<B>" + innernum + ".</B>"):emptyspacer;	
		HTMLSTRING +=   beginHead + HEADING + inNumString + "</TD><TD>  " +QuestionfromHidform + _lineBR_ +formattedAnswer  +AnsGivenEndText;	

	if (typeof this.outerNumMode!='number' || outerNumMode==1){outerNumString=probnum}else{outerNumString=""}



	 }
	else //if (QNAME.charAt(0)!="h")
	 { 	
		innernum++;	 

	  if (typeof this.innerNumMode == 'number' && this.innerNumMode == -2)
		 {inNumString=subLetterArray[innernum].toUpperCase() + "."}
	  else
		 { inNumString = (typeof(this.innerNumMode)!="number" || this.innerNumMode > 0)?(innernum + "."):emptyspacer };	
		HTMLSTRING += "<TR><TD WIDTH=\"2%\"></TD><TD VALIGN=TOP WIDTH=\"3%\"><B>"+ inNumString + "</B></TD><TD>" +QuestionfromHidform+_lineBR_+formattedAnswer+AnsGivenEndText;	 


	 };   

	//};	end of "document.inputForm[i].name=="TOPIC"" ELSE 
////////////////////////////////////////////////////////////////////////////////////////////////////

if (typeof(this.innerNumMode)!="number" || this.innerNumMode > 0)
	{subLetterString = (innerNumMode==2)?"-":"";
	 subLetterString +=innernum + ".) "
	}
 else if (this.innerNumMode == -1)
	{subLetterString="-"+subLetterArray[innernum] + ".) "}
 else if (this.innerNumMode == -2)
	{subLetterString=subLetterArray[innernum].toUpperCase() + ".) "}
 else {subLetterString=""}; 

if (typeof outerNumString=='undefined') {outerNumString=""};

//------------------------------------------------------------
  if (typeof isEmailFeature == "number")
	 {
	  EMAILSTRING += (i>0)?brokenSeparator:solidSeparator	
	  EMAILSTRING += "\n" + outerNumString + subLetterString + QuestionfromHidform + "\n \n";	 //\n 
	  EMAILSTRING += responseGiven;
	 }; 
//------------------------------------------------------------
	//------------------------------    
		//cr = new String("\r");
		//if (!isNetscape) { answerTextForEmail = wrapText(responseGiven,85,cr) } else {answerTextForEmail = responseGiven};
		// responseGiven = wrapText(responseGiven,78,cr)  // <<< wrapping FOR HTML WINDOW withing <PRE> tags <<<
	//------------------------------    

	}; // END of main FOR loop

////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////

 HTMLSTRING += _HRtableROW_ + document.hidForm.customFooter.value + _endTABLE_;

	//------------------------
		NewWin(HTMLSTRING);
	//------------------------
}

///////////////////////////////////////////////////////////////////////////////////////////
if (typeof	windowname == 'undefined') {windowname = "printWINdow"};
/////////////////////////////////////////////////////////////////////////////////////////// FUNCTION NewWin(inputstring)
var printWIN;
function NewWin(inputstring)
{  
printWIN = window.open('',windowname,"toolbar=no,location=no,directories=no,status=no,history=no,menubar=yes,scrollbars=yes,resizable=yes,screenX=1,screenY=1,width=600,height=400","replace");

	top.printWIN.document.close();
	top.printWIN.document.open("text/html","replace");

  printWIN.document.writeln(_beginHTML_ + pagename + _endTITLE_); 

  //-----------------  
	 printScript();
  //----------------- 

  printWIN.document.writeln(_endHEADbeginBODY_); 
  printWIN.document.writeln(inputstring);

//--------------------------------------------------------
	 if (typeof isEmailFeature == "number") {
	 //genWindowObject = new Object(); 
	 genWindowObject = printWIN;

	 if (typeof preWrap=="undefined") preWrap=1; // javascript:preWrap=0;alert(preWrap);
	 if (typeof preWrap=="number" && preWrap) {
		//-------
		 //cr = "\r";

					deleteHTMLarray=new Array('\r','&quot;','<P>','<BR>','<i>','</i>','<b>','</b>','<B>','<I>','<u>','</u>','</P>')
				  replaceWtextArray=new Array('\n','\"','\n \n','\n','','','','','','','','','','','','')

					for (var a=0; a<deleteHTMLarray.length; a++)
					 {
					  EMAILSTRING_split = EMAILSTRING.split(deleteHTMLarray[a]);                   
					  EMAILSTRING =  EMAILSTRING_split.join(replaceWtextArray[a])
					 };

		EMAILSTRING = wrapText(EMAILSTRING,72,"\n")
		//-------
	  } //end IF prewrap

		 EMAILSTRING += "\n \n" + solidSeparator + "\n \n \n ";
	 EmailerDirections = " Email your responses: ";
	 writeEmailTable(printWIN.document)};
//--------------------------------------------------------
  printWIN.document.writeln(_windowCloser_);
  printWIN.document.writeln(_endBODYendHTML_);

	top.printWIN.document.close();
	if (isNetscape && !notcapable) { top.printWIN.window.stop(); }; 
	top.printWIN.focus();

//----------------------------
 if (!isNetscape)
	{
	 if (typeof printWIN.creator == "object" && printWIN.opener && printWIN.opener.document && (typeof printWIN.opener.printWINOpened == "number"))
		{ 
		  if (printWIN.opener != self) { printWIN.opener.printWINOpened = 0 };
		};
	};
 printWIN.creator = self;
 printWIN.opener = self;
 printWINOpened = 1
//---------------------------- 

}  // END of fn() NewWin(inputstring)

///////////////////////////////////////////////////////////////////////////////////////////

// *************************************************************************************** nav3 suppress()
  if (notcapable) { 
		if (typeof newWinSuppressor != "number" || newWinSuppressor != 0)
		  {window.onerror=null};  //alert("suppressing")
				  };
// ***************************************************************************************



//>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

function printScript() {                            
	printWIN.document.writeln(" <SCRIP" + "T TYPE=\"text/javascript\" LANGUAGE=\"JavaScript\">");

  
if (typeof(this.newWinSuppressor) != "number" || this.newWinSuppressor!=0)
 {     /////////// alert("suppressing");               /////

	if(notcapable==1)
		 {
		  printWIN.document.writeln("  window.onerror=null;");
		 }   /* error suppression*/
	else {
		  printWIN.document.writeln("  window.onerror = new Function(\"return true;\");");
		 };
  };   /////////;// else {alert("not suppressing"); }  /////

	printWIN.document.writeln(" </SCRIP" + "T>");

} // end of function

//>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


/////////////////////////////////////////////////////////////////////////////////////////////////////////
wrapTextSuccess = 0;
/////////////////////////////////////////////////////////////////////////////////////////////////////////
 function wrapText(inputString,colwidth,r) {
 if (wrapTextSuccess==-1) {return inputString};
 wrapTextSuccess = -1; 
 splitarr = inputString.split("\t");
 inputString = splitarr.join("   ");

	 space=new String(" "); // tab=new String("\t");
	 startspan = 0;
	 endat = inputString.length;
	 insertR = 0;

	 for (var rrr=0; rrr<2*endat/colwidth; rrr++) {

	  lastreturn = inputString.indexOf(r, startspan)

		if ((startspan+colwidth<endat) && (lastreturn > startspan+colwidth || lastreturn==-1)) // if 
		 { 
	 //    lastspaceindex = (inputString.lastIndexOf(space, startspan+colwidth));
	 //      lasttabindex = (inputString.lastIndexOf(tab, startspan+colwidth));
	 //        whitespace = (lastspaceindex > lasttabindex)?lastspaceindex:lasttabindex;
				  insertR = (inputString.lastIndexOf(space, startspan+colwidth)) + 1; 
	 //    if (insertR != -1) {while( (inputString.indexOf(space, insertR)) == 1 ) {alert('sp');++insertR}};

			if (insertR == -1 || insertR<startspan) {insertR = startspan+colwidth;}; //{insertR = inputString.indexOf(space, startspan);};
			inputStringTemp = inputString.substring(0,insertR) + r + inputString.substring(insertR,endat) 
			// alert("inserting at: " + insertR);//
			inputString = inputStringTemp;
		 }
		else {insertR=lastreturn};

		if (startspan+colwidth>endat) { wrapTextSuccess = 1; return inputString;} //alert('startspan+colwidth>endat & breaking.  LOOP rrr:' + rrr);;alert("Not BREAKING!")
		// if no more \r && less than 80 chars left
		startspan = insertR+1;

		keeplooking=1;
		while (keeplooking && keeplooking<endat/colwidth)// && keeplooking<colwidth
		{
		  if (inputString.lastIndexOf(r, startspan+colwidth)>startspan && startspan+colwidth<endat)
			 {startspan = inputString.lastIndexOf(r, startspan+colwidth);keeplooking++}
		  else {keeplooking=0;break;}
		}

		endat = inputString.length;
		} //end of FOR loop
		wrapTextSuccess = 1; 
		return inputString;
	 }

/////////////////////////////////////////////////////////////////////////////////////////////////////////
self.name = "mainWindow";
self.focus();
/////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////

function changeStatusSubmitter() {
 window.status='Print all of the questions with the answers you gave.   Email the results if you are satisfied.';
 return true; }

function changeStatusResetter() {
window.status='Erase all responses permanently.';
 return true;}

function setMouseDownEvents(){ //javascript:setMouseDownEvents()
if (typeof document.inputForm!='undefined' && typeof document.inputForm.submitter!='undefined' && typeof document.inputForm.resetter!='undefined')
	 {  document.inputForm.submitter.onmousedown=changeStatusSubmitter;
		document.inputForm.resetter.onmousedown=changeStatusResetter;    
	 }  } //end fn()
this.onload=setMouseDownEvents;

///////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////

function ExtractFromPathname()

{ ///alert(typeof(this.location.pathname) + this.location.pathname);

pagenumber==" ";
pathnameString = this.location.pathname;
namestring = pathnameString.substring(pathnameString.lastIndexOf("/"),pathnameString.length);
//  alert(namestring);

for (i=1; i<namestring.length; i++)
	{ ThisChar = namestring.charAt(i);    
	  //if (typeof parseInt(ThisChar) == "number" && !isNaN(ThisChar))
	if (ThisChar=="0" || ThisChar=="1" || ThisChar=="2" || ThisChar=="3" || ThisChar=="4" || ThisChar=="5" || ThisChar=="6" || ThisChar=="7" || ThisChar=="8" ||ThisChar=="9")
		{  pagenumber += namestring.charAt(i) } 
	else if (pagenumber.length == 4)
	  {
		if (ThisChar=="a" || ThisChar=="b" || ThisChar=="c" || ThisChar=="d" || ThisChar=="e")
		  { pagenumber += namestring.charAt(i) };
		};   
  }; // end FOR


}  // end of function ExtractFromPathname()


if (typeof(this.titlebarname) == "string")
		{ pagename = this.titlebarname }
 else  { ExtractFromPathname() };



///////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////
function getFormHeadingValues()
{ 
if (typeof(document.hidForm) != "undefined")
{
 with (document.hidForm)  // !!! WITH document.hidForm !!!
  {
  if(typeof(headingH2) != "undefined" && typeof(headingH2.value) != "undefined")
	{ mainHeadingH2 = document.hidForm.headingH2.value };//emailHeader1

  if(typeof(headingH3) != "undefined")
	{ subHeadingH3 = document.hidForm.headingH3.value };//emailHeader2
  };  // END of WITH statement
};     // END of IF statement

if (typeof mainHeadingH2 == 'undefined' || mainHeadingH2==" "||mainHeadingH2=="  ") mainHeadingH2="";
if (typeof subHeadingH3 == 'undefined' || subHeadingH3==" "||subHeadingH3=="  ") subHeadingH3="";

}      // END of fn()
///////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////

function onLoadFuncs() { 
  document.inputForm.onsubmit = new Function("return false;"); 
  if (typeof document.tableForm != 'undefined')
	 {document.tableForm.onsubmit = new Function("return false;")}; 
  return true;
}
this.onload = onLoadFuncs;

//javascript:var obj = document.inputForm; for (props in obj) alert( props + ":: " + document.inputForm[props] );;

///////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////

function zw()
{
if (typeof obj == "undefined") var obj=top.printWIN;

w=window.open('',"testwindow2","toolbar=yes,location=yes,directories=yes,status=yes,history=yes,menubar=yes,scrollbars=yes,resizable=yes,screenX=1,screenY=1,width=600,height=400");
w.document.writeln("<XMP>");

//if (isNetscape)
//{

for(var props in obj)
  {w.document.writeln("property:" + props + "\nvalue: " + obj[props] +"\n")};

//}else {

//for(var props=0; props<100; props++)
//  {w.document.writeln("property:" + props + "\nvalue: " + obj.properties[props] +"\n")}


//}


w.document.writeln("</XMP>");
w.document.close();
//return true;
}


//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//~~  All javascript written by:  Erwin O. Fox Tree, 1999  ~~
//~~  foxtree@tiac.net                   okwa@hotmail.com  ~~
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

