function initialToggleAll(total)
{  
		aLs("Open98").display ="none";
	for (var i=1; i<total; i++) {
		aLs("Open"+i).display ="none";
}
}

var refs = new Array();
// Refs for intro
refs[0] = new Array();
refs[0] [0] ="<strong>Phippen, A.</strong> (2007) How  virtual are virtual methods? <em>Methodological  Innovations Online</em>, 2, 1.";
refs [0] [1] ="";
refs [0] [2] = 0;
refs [0] [3] ="Journal Article";
refs [0] [4] ="Phippen, A.";
refs [0] [5] ="How  virtual are virtual methods?";
refs [0] [6] = "Methodological  Innovations Online";
refs [0] [7] ="";
refs [0] [8] ="2";
refs [0] [9] = "1";
refs [0] [10] = "2007";
refs [1] = new Array();
refs [1] [0] ="<strong>Lefever, S., Dal, M. and Matthiasdottir, A.</strong> (2007) Online data collection in academic research: advantages and limitations, <em>British Journal of Educational Technology, 38,</em> 574-582.";
refs [1] [1] ="";
refs [1] [2] = 0;
refs [1] [3] ="Journal Article";
refs [1] [4] ="Lefever, S., Dal, M. and Matthiasdottir, A.";
refs [1] [5] ="Online data collection in academic research: advantages and limitations";
refs [1] [6] = "British Journal of Educational Technology";
refs [1] [7] ="574-582";
refs [1] [8] ="38";
refs [1] [9] = "";
refs [1] [10] = "2007";
refs [2] = new Array();
refs [2] [0] ="<strong>Beer, D. and Burrows, R.</strong> (2007). Sociology and, of and in Web2.0: some initial considerations, <em>Sociological Research Online </em>, 12, 5.";
refs [2] [1] ="";
refs [2] [2] = 0;
refs [2] [3] ="Journal Article";
refs [2] [4] ="Beer, D. and Burrows, R.";
refs [2] [5] ="Sociology and, of and in Web2.0: some initial considerations";
refs [2] [6] = "Sociological Research Online";
refs [2] [7] ="";
refs [2] [8] ="12";
refs [2] [9] = "5";
refs [2] [10] = "2007";
refs [3] = new Array();
refs [3] [0] ="<strong>Hine, C.</strong> (2005) Virtual methods and the sociology of Cyber-Social-Scientific knowledge, in Hine, C. (Ed.) <em>Virtual methods: issues in social research on the internet</em>. Oxford. Berg. pp.1-13.";
refs [3] [1] ="";
refs [3] [2] = 0;
refs [3] [3] ="Book Section";
refs [3] [4] ="Hine, C.";
refs [3] [5] ="Hine, C. (Ed.)";
refs [3] [6] = "Virtual methods and the sociology of Cyber-Social-Scientific knowledge";
refs [3] [7] ="Virtual methods: issues in social research on the internet";
refs [3] [8] ="1-13";
refs [3] [9] = "2005";
refs [3] [10] = "Oxford";
refs [3] [11] = "Berg";
// Refs for blogs
refs [4] = new Array();
refs [4] [0] ="<strong>Coleman, S.</strong> (2005) Blogs and the New Politics of Listening, <em>Political Quarterly, 76, 2.</em> 273-280";
refs [4] [1] ="";
refs [4] [2] = 0;
refs [4] [3] ="Journal Article";
refs [4] [4] ="Coleman, S.";
refs [4] [5] ="Blogs and the New Politics of Listening";
refs [4] [6] = "Political Quarterly";
refs [4] [7] ="";
refs [4] [8] ="76";
refs [4] [9] = "2";
refs [4] [10] = "2005";
refs [5] = new Array();
refs [5] [0] ="<strong>Alexanian, J. A.</strong> (2006) Publicity Intimate Online: Iranian Web Logs in Southern California, <em>Comparative Studies of South Asia, Africa and the Middle East, 26, 1.</em> 134-145";
refs [5] [1] ="";
refs [5] [2] = 0;
refs [5] [3] ="Journal Article";
refs [5] [4] ="Alexanian, J. A.";
refs [5] [5] ="Publicity Intimate Online: Iranian Web Logs in Southern California";
refs [5] [6] = "Comparative Studies of South Asia, Africa and the Middle East";
refs [5] [7] ="";
refs [5] [8] ="26";
refs [5] [9] = "1";
refs [5] [10] = "2006";
// Refs for MySpace
refs[6] = new Array();
refs[6] [0] ="<strong>Prescott, L.</strong> (March 2007). Hitwise US consumer generated media report. Available online at http://www.hitwise.com/";
refs [6] [1] ="";
refs [6] [2] = 0;
refs [6] [3] ="Online Multimedia";
refs [6] [4] ="Prescott, L.";
refs [6] [5] ="Hitwise US consumer generated media report.";
refs [6] [6] ="2007";
refs [6] [7] = "http://www.hitwise.com/";
refs [7] = new Array();
refs [7] [0] ="<strong>boyd, d. and Ellison, N.</strong> (2007) Social network sites: Definition, history, and scholarship, <em>Journal of Computer-Mediated Communication, 13, 1.</em>";
refs [7] [1] ="";
refs [7] [2] = 0;
refs [7] [3] ="Journal Article";
refs [7] [4] ="boyd, d. and Ellison, N.";
refs [7] [5] ="Social network sites: Definition, history, and scholarship";
refs [7] [6] = "Journal of Computer-Mediated Communication";
refs [7] [7] ="";
refs [7] [8] ="13";
refs [7] [9] = "1";
refs [7] [10] = "2007";
refs [8] = new Array();
refs [8] [0] ="<strong>Thelwall, M.</strong> (2008/9, to appear) Social networks, gender and friending: An analysis of MySpace member profiles, <em>Journal of the American Society for Information Science and Technology.</em> Retrieved August 23, 2007 from: http://www.scit.wlv.ac.uk/~cm1993/papers/MySpace_d.doc.";
refs [8] [1] ="";
refs [8] [2] = 0;
refs [8] [3] ="Journal Article";
refs [8] [4] ="Thelwall, M.";
refs [8] [5] ="Social networks, gender and friending: An analysis of MySpace member profiles";
refs [8] [6] = "Journal of the American Society for Information Science and Technology";
refs [8] [7] ="";
refs [8] [8] ="";
refs [8] [9] = "";
refs [8] [10] = "2008/9, to appear";
refs [9] = new Array();
refs [9] [0] ="<strong>Thelwall, M.</strong> (2008, to appear) Fk yea I swear: Cursing and gender in a corpus of MySpace pages, <em>Corpora, 3, </em>1. Retrieved August 23, 2007 from: http://www.scit.wlv.ac.uk/~cm1993/papers/MySpace_d.doc.";
refs [9] [1] ="";
refs [9] [2] = 0;
refs [9] [3] ="Journal Article";
refs [9] [4] ="Thelwall, M.";
refs [9] [5] ="Fk yea I swear: Cursing and gender in a corpus of MySpace pages";
refs [9] [6] = "Corpora";
refs [9] [7] ="";
refs [9] [8] ="3";
refs [9] [9] = "1";
refs [9] [10] = "2008, to appear";
refs[10] = new Array();
refs[10] [0] ="<strong>Hinduja, S. and Patchin, J. W.</strong> (2008) Personal information of adolescents on the Internet: A quantitative content analysis of MySpace, <em>Journal of Adolescence, 31, 1</em>, 125-146.";
refs [10] [1] ="";
refs [10] [2] = 0;
refs [10] [3] ="Journal Article";
refs [10] [4] ="Hinduja, S. and Patchin.";
refs [10] [5] ="Personal information of adolescents on the Internet: A quantitative content analysis of MySpace";
refs [10] [6] = "Journal of Adolescence";
refs [10] [7] ="125-146";
refs [10] [8] ="31";
refs [10] [9] = "1";
refs [10] [10] = "2008";
// Refs for facebook
refs[11] = new Array();
refs[11] [0] ="<strong>boyd, d. and Ellison, N.</strong> (2007) Social network sites: Definition, history, and scholarship. <em>Journal of Computer-Mediated Communication</em>, 13, 1.";
refs [11] [1] ="";
refs [11] [2] = 0;
refs [11] [3] ="Journal Article";
refs [11] [4] ="boyd, d. and Ellison, N.";
refs [11] [5] ="Social network sites: Definition, history, and scholarship.";
refs [11] [6] = "Journal of Computer-Mediated Communication";
refs [11] [7] ="";
refs [11] [8] ="13";
refs [11] [9] = "1";
refs [11] [10] = "2007"; 
refs [12] = new Array();
refs [12] [0] ="<strong>Hammersely, M. and Atkinson, P.</strong> (1992) <em>Ethnography: Principles in Practice.</em>. London. Tavistock";
refs [12] [1] ="";
refs [12] [2] = 0;
refs [12] [3] ="Book";
refs [12] [4] ="Hammersely, M. and Atkinson, P.";
refs [12] [5] ="Ethnography: Principles in Practice";
refs [12] [6] ="1992";
refs [12] [7] = "London";
refs [12] [8] ="Tavistock";
refs [13] = new Array();
refs [13] [0] ="<strong>Glaser B. G. and Strauss, A.</strong> (1967) <em>A Discovery of Grounded Theory. Strategies for Qualitative Research.</em>. Chicago. Sociology Press";
refs [13] [1] ="";
refs [13] [2] = 0;
refs [13] [3] ="Book";
refs [13] [4] ="Glaser B. G. and Strauss, A.";
refs [13] [5] ="A Discovery of Grounded Theory. Strategies for Qualitative Research";
refs [13] [6] ="1967";
refs [13] [7] = "Chicago";
refs [13] [8] ="Sociology Press";
refs [14] = new Array();
refs [14] [0] ="<strong>boyd, d.</strong> (2004) Friendster and Publicly Articulated Social Networks. <em>Conference on Human Factors and Computing Systems (CHI 2004). </em>Vienna: ACM, April 24-29, 2004.";
refs [14] [1] ="";
refs [14] [2] =0;
refs [14] [3] ="Conference Paper";
refs [14] [4] ="boyd, d.";
refs [14] [5] ="Friendster and Publicly Articulated Social Networks";
refs [14] [6] = "Conference on Human Factors and Computing Systems (CHI 2004)";
refs [14] [7] ="2004";
refs [14] [8] ="April 24-29, 2004";
refs [14] [9] = "Vienna";
refs [15] = new Array();
refs [15] [0] ="<strong>Hine, C.</strong> (2000) <em>Virtual Ethnography.</em>. London. Sage";
refs [15] [1] ="";
refs [15] [2] = 0;
refs [15] [3] ="Book";
refs [15] [4] ="Hine, C.";
refs [15] [5] ="Virtual Ethnography";
refs [15] [6] ="2000";
refs [15] [7] = "London";
refs [15] [8] ="Sage";
refs [16] = new Array();
refs [16] [0] ="<strong>Kendell, L.</strong> (1999) Re-contextualizing Cyberspace Methodological Considerations for Online Research, in S. Jones (Ed.) <em>Doing Internet Research: Critical Issues and Methods for Examining the Net</em>. Thousand Oaks. Sage. pp. 57-74.";
refs [16] [1] ="";
refs [16] [2] = 0
refs [16] [3] ="Book Section";
refs [16] [4] ="Kendell, L.";
refs [16] [5] ="S. Jones (Ed.)";
refs [16] [6] = "Re-contextualizing Cyberspace Methodological Considerations for Online Research";
refs [16] [7] ="Doing Internet Research: Critical Issues and Methods for Examining the Net";
refs [16] [8] ="57-74 ";
refs [16] [9] = "1999";
refs [16] [10] = "Thousand Oaks";
refs [16] [11] = "Sage";
refs [17] = new Array();
refs [17] [0] ="<strong>Miller, D. and Slater, D.</strong> (2000) <em>The Internet and Ethnographic Approach.</em>. Oxford. Berg";
refs [17] [1] ="";
refs [17] [2] = 0;
refs [17] [3] ="Book";
refs [17] [4] ="Miller, D. and Slater, D.";
refs [17] [5] ="The Internet and Ethnographic Approach";
refs [17] [6] ="2000";
refs [17] [7] = "Oxford";
refs [17] [8] ="Berg";
refs [18] = new Array();
refs [18] [0] ="<strong>Ryan, J.</strong> (March 2008). The Virtual Campfire. Available online at http://www.thevirtualcampfire.org/virtualcampfire.htm";
refs [18] [1] ="";
refs [18] [2] = 0;
refs [18] [3] ="Online Multimedia";
refs [18] [4] ="Ryan, J.";
refs [18] [5] ="The Virtual Campfire.";
refs [18] [6] ="2008";
refs [18] [7] = "http://www.thevirtualcampfire.org/virtualcampfire.htm";
refs [19] = new Array();
refs [19] [0] ="<strong>Turkle, S.</strong> (1996) <em>Life on the Screen: Identity in the age of the Internet.</em>. London. Wiedenfiled and Nicolson";
refs [19] [1] ="";
refs [19] [2] = 0;
refs [19] [3] ="Book";
refs [19] [4] ="Turkle, S.";
refs [19] [5] ="Life on the Screen: Identity in the age of the Internet";
refs [19] [6] ="1996";
refs [19] [7] = "London";
refs [19] [8] ="Wiedenfiled and Nicolson";
refs [20] = new Array();
refs [20] [0] ="<strong>Bryman, A.</strong> (2002) <em>Social Research Methods.</em>. Oxford. Oxford University Press";
refs [20] [1] ="";
refs [20] [2] = 0;
refs [20] [3] ="Book";
refs [20] [4] ="Bryman, A.";
refs [20] [5] ="Social Research Methods";
refs [20] [6] ="2002";
refs [20] [7] = "Oxford";
refs [20] [8] ="Oxford University Press";
refs[21] = new Array();
refs [21] [0] ="<strong>Sellen, A. J., Murphy, R. M. and Shaw, K.</strong>(2002) How knowledge workers use the Web. Proceedings of CHI 2002, Minneapolis, MN. New York, ACM Press.";
refs [21] [1] ="";
refs [21] [2] =0;
refs [21] [3] ="Conference Paper";
refs [21] [4] ="Sellen, A. J., Murphy, R. M. and Shaw, K.";
refs [21] [5] ="How knowledge workers use the Web";
refs [21] [6] = "Proceedings of CHI 2002, Minneapolis, MN.";
refs [21] [7] ="2002";
refs [21] [8] ="2002";
refs [21] [9] = "Minneapolis";
refs [22] = new Array();
refs [22] [0] ="<strong>Hodgson, V. and Watland, P.</strong> (2004). <em>The Learner's Experience of a Networked Learning Knowledge Community Design.</em> Available online at http://www.networkedlearningconference.org.uk/past/nlc2004/proceedings/symposia/symposium11/hodgson_watland.htm";
refs [22] [1] ="";
refs [22] [2] = 0;
refs [22] [3] ="Online Multimedia";
refs [22] [4] ="Hodgson, V. and Watland, P.";
refs [22] [5] ="he Learner's Experience of a Networked Learning Knowledge Community Design.";
refs [22] [6] ="2004";
refs [22] [7] = "http://www.networkedlearningconference.org.uk/past/nlc2004/proceedings/symposia/symposium11/hodgson_watland.htm";
refs[23] = new Array();
refs [23] [0] ="<strong>Jones, C., Zenios, Z. and Markland, M.</strong>(2003) Digital Resources in Higher Education: Pedagogy and Approaches to the use of digital resources in Teaching and Learning. CAL '03., 8-10 April, Queen's University, Belfast, Northern Ireland.";
refs [23] [1] ="";
refs [23] [2] =0;
refs [23] [3] ="Conference Paper";
refs [23] [4] ="Jones, C., Zenios, Z. and Markland, M.";
refs [23] [5] ="Digital Resources in Higher Education: Pedagogy and Approaches to the use of digital resources in Teaching and Learning.";
refs [23] [6] = "CAL '03.";
refs [23] [7] ="2002";
refs [23] [8] ="April, 2002";
refs [23] [9] = "Queen's University, Belfast, Northern Ireland";
refs[24] = new Array();
refs [24] [0] ="<strong>Jones, C., Zenios, M. and Griffiths, J.</strong>(2004) Academic use of digital resources: Disciplinary differences and the issue of progression. In Networked Learning 2004: Proceedings of the Fourth International Conference on Networked Learning 2004. Lancaster: Lancaster University and University of Sheffield.";
refs [24] [1] ="";
refs [24] [2] =0;
refs [24] [3] ="Conference Paper";
refs [24] [4] ="Jones, C., Zenios, M. and Griffiths, J.";
refs [24] [5] ="Academic use of digital resources: Disciplinary differences and the issue of progression. ";
refs [24] [6] = "Networked Learning 2004: Proceedings of the Fourth International Conference on Networked Learning 2004.";
refs [24] [7] ="2004";
refs [24] [8] ="2004";
refs [24] [9] = "Lancaster";
// Refs for Performative social science
refs[25] = new Array();
refs[25] [0] ="<strong>Jones, K.</strong> (2007) How Did I Get to Princess Margaret? (And How Did I Get Her to the World Wide Web?) <em>Forum: Qualitative Social Research Special Issue on Virtual Ethnography 8, 3.</em>(http://www.qualitative-research.net/fqs-texte/3-07/07-3-3-e.htm).";
refs [25] [1] ="";
refs [25] [2] = 0;
refs [25] [3] ="Electronic Source";
refs [25] [4] ="Jones, K.";
refs [25] [5] ="How Did I Get to Princess Margaret? (And How Did I Get Her to the World Wide Web?)";
refs [25] [6] ="Forum: Qualitative Social Research Special Issue on Virtual Ethnography";
refs [25] [7] = "8";
refs [25] [8] ="2007";
refs [25] [9] = "http://www.qualitative-research.net/fqs-texte/3-07/07-3-3-e.htm";

var fullRefWindow;
var myListWindow;
var refName;

function removeRef(refID)
{
refNo = parseInt(refID);
  refs[refNo] [2] = 0;
  refs[refNo] [1] = "";
}
function removeRefs() 
{  alert("Reference removed");
  showMyRefs();
}
function removeAll()
{
	for (var listItem in refs)
	{
  refs[listItem] [2] = 0;
  refs[listItem] [1] = "";  
  }
  alert("All references removed from list");
}
function showRef(refID)
{ 
  window.status = 'Opening full reference...'; 
  fullRefWindow = window.open('ref.htm','fullReference','width=500,height=260,scrollbars=yes'); 
  fullRefWindow.document.open();
  fullRefWindow.document.write("<html><head><title>Online methodological futures:  Full reference</title>");
  fullRefWindow.document.write("<link href='../generic/nn4.css' rel='stylesheet' type='text/css'><style type='text/css' rel='stylesheet'>@import url(../generic/main.css);</style></head>

<body><!--Survey code removed from here-->");
  fullRefWindow.document.write("<div class='canvas'><div class = 'mainborder'><div class = 'maintitle'>");
  fullRefWindow.document.write("<h1>Full reference: </h1></div>");
  fullRefWindow.document.write("<div class = 'main'>");
  fullRefWindow.document.write("<p>" + refs[refID] [0] +"</p>"); 
    refName = refID;
  	if (refs[refID] [2] ==1)
	{
  fullRefWindow.document.write("<form name='form1'><p><strong>This reference has already been added to the list.<br />However, you can add a further comment by typing in the box:</strong><br />");
  fullRefWindow.document.write("<textarea name='textarea1' cols='50' rows='3'></textarea><br />");
  fullRefWindow.document.write("<p class = 'modlinks'><a href='javascript:void(0);' class='back' onclick='window.opener.addRef(");
  fullRefWindow.document.write(refName);
  fullRefWindow.document.write(")'>&nbsp;ADD TO LIST&nbsp;</a><a href='javascript:void(0);'  class='up' onclick='window.opener.removeRef(");   
  fullRefWindow.document.write(refName);
  fullRefWindow.document.write("); window.close()'>&nbsp;CLEAR FROM LIST&nbsp;</a><a href='javascript:void(0);' class='next' onclick='window.close()'>&nbsp;CLOSE&nbsp;</a></p></form>");
  fullRefWindow.document.write("</div></div></div></html>");
  fullRefWindow.focus();	
}
  	if (refs[refID] [2] ==0)
	{
  fullRefWindow.document.write("<form name='form1'><p><strong>Add comment:</strong><br />");
  fullRefWindow.document.write("<textarea name='textarea1' cols='50' rows='3'></textarea></p><br />");
  fullRefWindow.document.write("<p class = 'modlinks'><a href='javascript:void(0);' class='up' onclick='window.opener.addRef(");
  fullRefWindow.document.write(refName);
  fullRefWindow.document.write(")'>&nbsp;ADD TO LIST&nbsp;</a><a href='javascript:void(0);' class='next' onclick='window.close()'>&nbsp;CLOSE&nbsp;</a></p></form>");
  fullRefWindow.document.write("</div></div></div></html>");
  fullRefWindow.focus();
	}	
}

function addRef(refName)
{
  refs[refName] [2] = 1;
  refs[refName] [1] =   refs[refName] [1] +" " + fullRefWindow.document.form1.textarea1.value;
  alert("Added to list");
  fullRefWindow.close();
}
function addAll(page)
{
if (page==1){
	for  (i = 0; i < 4; i++)
	{
  refs[i] [2] = 1;
  }
 }
 else if (page==2){
	for  (j = 4; j < 6; j++)
	{
  refs[j] [2] = 1;
  }
 }
 else if (page==3){
	for  (k = 6; k < 11; k++)
	{
  refs[k] [2] = 1;
  }
 }
  else if (page==4){
	for  (l = 11; l < 25; l++)
	{
  refs[l] [2] = 1;
  }
 }
   else if (page==5){
	for  (m = 25; m < 26; m++)
	{
  refs[m] [2] = 1;
  }
 }
  alert("All references added to list");
}
function undoSort(){
showMyRefs ()
}
function showMyRefs ()
{
  window.status = 'Opening references list...'; 
  myListWindow = window.open('myList.htm','referenceList','width=560,height=400,menubar=yes,toolbar=yes,scrollbars=yes'); 
  myListWindow.document.open();
  var list1Item;
   var list2Item;
    var list3Item;
	var list4Item;
	var list5Item;
     var oneContainsItems = false;
	   var twoContainsItems = false;
	    var threeContainsItems = false;
		var fourContainsItems = false;
		var fiveContainsItems = false;
  var containsItems = false;
  var containsComments = false;
  myListWindow.document.write("<html><head><title>Online methodological futures:  references</title>");
  myListWindow.document.write("<link href='../generic/nn4.css' rel='stylesheet' type='text/css'><style type='text/css' rel='stylesheet'>@import url(../generic/main.css);</style></head><body>");
  myListWindow.document.write("<div class='canvas'><div class = 'mainborder'><div class = 'maintitle'>");
  myListWindow.document.write("<h1>Online methodological futures: Your references: </h1></div>");
  myListWindow.document.write("<div class = 'main'><div class='instructions'<p><img src='../generic/instructions.gif' alt='[i]' width='16' height='16' align='absmiddle'> References collected from different sections of the online methodological futures module are shown below.  There are options for sorting and clearing at the end on the list.</p><p> NB.  Your list will be saved if you leave this page, but any comments that you have added will not.  <strong>Please copy all comments before leaving this page.</strong></p></div><form name = 'form2'>");
 
 for (list1Item = 0; list1Item < 4; list1Item++)
{
	if (refs[list1Item] [2] >0)
	{
		  oneContainsItems = true;
	}
}
if (oneContainsItems == true){
	myListWindow.document.write("<h2>Introduction</h2>");
	for (list1Item = 0; list1Item < 4; list1Item++)
{
		if (refs[list1Item] [2] >0)
	{
		  if (refs[list1Item] [1] ==" " || refs[list1Item] [1] =="  " || refs[list1Item] [1] =="" ){
	  		myListWindow.document.write("<div class = 'poprefs'><input type='checkbox' name = 'box' value = '" + list1Item + "'> " + refs[list1Item] [0] + "</div><hr />");
}
	  	  else if (refs[list1Item] [1] !=" " && refs[list1Item] [1] !="  " &&  refs[list1Item] [1] !="" ){
		  myListWindow.document.write("<p class = 'poprefs'><input type='checkbox' name = 'box' value = '" + list1Item + "'> " + refs[list1Item] [0] + "</p>");
		  myListWindow.document.write("<p>Comment: " + refs[list1Item] [1] + "</p><hr />");
		  containsComments = true;
		  }
		}
	  containsItems = true;
	}
} 

for (list2Item = 4; list2Item < 6; list2Item++)
{
	if (refs[list2Item] [2] >0)
	{
		  twoContainsItems = true;
	}
}
if (twoContainsItems == true){
	myListWindow.document.write("<h2>Blogs</h2>");
	for (list2Item = 4; list2Item < 6; list2Item++)
{
	if (refs[list2Item] [2] >0)
	{
		  if (refs[list2Item] [1] ==" " || refs[list2Item] [1] =="  " || refs[list2Item] [1] =="" ){
	  		myListWindow.document.write("<div class = 'poprefs'><input type='checkbox' name = 'box' value = '" + list2Item + "'> " + refs[list2Item] [0] + "</div><hr />");
}
	  	  else if (refs[list2Item] [1] !=" " && refs[list2Item] [1] !="  " &&  refs[list2Item] [1] !="" ){
		  myListWindow.document.write("<p class = 'poprefs'><input type='checkbox' name = 'box' value = '" + list2Item + "'> " + refs[list2Item] [0] + "</p>");
		  myListWindow.document.write("<p>Comment: " + refs[list2Item] [1] + "</p><hr />");
		  containsComments = true;
		  }
		}
	  containsItems = true;
	}
}
for (list3Item = 6; list3Item < 11; list3Item++)
{
	if (refs[list3Item] [2] >0)
	{
		  threeContainsItems = true;
	}
}
if (threeContainsItems == true){
	myListWindow.document.write("<h2>Social networking</h2>");
	for (list3Item = 6; list3Item < 11; list3Item++)
{
	if (refs[list3Item] [2] >0)
	{
		  if (refs[list3Item] [1] ==" " || refs[list3Item] [1] =="  " || refs[list3Item] [1] =="" ){
	  		myListWindow.document.write("<div class = 'poprefs'><input type='checkbox' name = 'box' value = '" + list3Item + "'> " + refs[list3Item] [0] + "</div><hr />");
}
	  	  else if (refs[list3Item] [1] !=" " && refs[list3Item] [1] !="  " &&  refs[list3Item] [1] !="" ){
		  myListWindow.document.write("<p class = 'poprefs'><input type='checkbox' name = 'box' value = '" + list3Item + "'> " + refs[list3Item] [0] + "</p>");
		  myListWindow.document.write("<p>Comment: " + refs[list3Item] [1] + "</p><hr />");
		  containsComments = true;
		  }
		}
	  containsItems = true;
	}
}
for (list4Item = 11; list4Item < 25; list4Item++)
{
	if (refs[list4Item] [2] >0)
	{
		  fourContainsItems = true;
	}
}
if (fourContainsItems == true){
	myListWindow.document.write("<h2>Analying social networking sites 2</h2>");
	for (list4Item = 11; list4Item < 25; list4Item++)
{
	if (refs[list4Item] [2] >0)
	{
		  if (refs[list4Item] [1] ==" " || refs[list4Item] [1] =="  " || refs[list4Item] [1] =="" ){
	  		myListWindow.document.write("<div class = 'poprefs'><input type='checkbox' name = 'box' value = '" + list4Item + "'> " + refs[list4Item] [0] + "</div><hr />");
}
	  	  else if (refs[list4Item] [1] !=" " && refs[list4Item] [1] !="  " &&  refs[list4Item] [1] !="" ){
		  myListWindow.document.write("<p class = 'poprefs'><input type='checkbox' name = 'box' value = '" + list4Item + "'> " + refs[list4Item] [0] + "</p>");
		  myListWindow.document.write("<p>Comment: " + refs[list4Item] [1] + "</p><hr />");
		  containsComments = true;
		  }
		}
	  containsItems = true;
	}
}
for (list5Item = 25; list5Item < 26; list5Item++)
{
	if (refs[list5Item] [2] >0)
	{
		  fiveContainsItems = true;
	}
}
if (fiveContainsItems == true){
	myListWindow.document.write("<h2>Performative social science</h2>");
	for (list5Item = 25; list5Item < 26; list5Item++)
{
	if (refs[list5Item] [2] >0)
	{
		  if (refs[list5Item] [1] ==" " || refs[list5Item] [1] =="  " || refs[list5Item] [1] =="" ){
	  		myListWindow.document.write("<div class = 'poprefs'><input type='checkbox' name = 'box' value = '" + list5Item + "'> " + refs[list5Item] [0] + "</div><hr />");
}
	  	  else if (refs[list5Item] [1] !=" " && refs[list5Item] [1] !="  " &&  refs[list5Item] [1] !="" ){
		  myListWindow.document.write("<p class = 'poprefs'><input type='checkbox' name = 'box' value = '" + list5Item + "'> " + refs[list5Item] [0] + "</p>");
		  myListWindow.document.write("<p>Comment: " + refs[list5Item] [1] + "</p><hr />");
		  containsComments = true;
		  }
		}
	  containsItems = true;
	}
}
if (containsItems == true)
{
  myListWindow.document.write("</form>");
	if (containsComments == true){
	  myListWindow.document.write("</form><div class = 'warning'><p><img src='../generic/warning.gif' alt='[!]' width='16' height='16' align='absmiddle'> Please note that comments will be lost when you navigate away from this page.  If you would like to save them, you should copy them before you leave the page.</p></div>");
		}
myListWindow.document.write("<p class = 'modlinks'> <a href='javascript:void(0);' class='back' onclick='window.close()'>&nbsp;CLOSE&nbsp;</a><a href='javascript:void(0);'  class='back' onclick='return "+" window.opener.sortIt()'>");
	  myListWindow.document.write("&nbsp;SORT A-Z&nbsp;</a><a href='javascript:void(0);'  class='back' onclick='window.opener.removeAll(); window.close()'>&nbsp;CLEAR LIST&nbsp;</a><a href='javascript:void(0);'  class='up' onclick='window.opener.checkButtons()'>");  
	  myListWindow.document.write("&nbsp;REMOVE SELECTED REFERENCE(S)&nbsp;</a></p><p class = 'modlinks'><a href='javascript:void(0);'  class='up' onclick='window.opener.showMyRefsTextInstr()'>");  
	  myListWindow.document.write("&nbsp;SAVE, COPY, PRINT OR EXPORT FOR ENDNOTE&nbsp;</a></p><hr /></div></div></div></body></html>");
}	  
if (containsItems == false)
{
  myListWindow.document.write("</form><p>Your list is currently empty.</P>Select any references in the text that you would like to include.</p><p class = 'modlinks'> <a href='javascript:void(0);' class='up' onclick='window.close()'>&nbsp;CLOSE&nbsp;</a></p></div></div></div></body></html>");
}
myListWindow.document.close();
myListWindow.focus();
}

function showMyRefsTextInstr ()
{
  myListWindow = window.open('myList.htm','referenceList','width=560,height=400,menubar=yes,toolbar=yes,scrollbars=yes'); 
  myListWindow.document.open();
  myListWindow.document.write("<html><head><title>Online methodological futures:  references</title>");
  myListWindow.document.write("<link href='../generic/nn4.css' rel='stylesheet' type='text/css'><style type='text/css' rel='stylesheet'>@import url(../generic/main.css);</style></head><body>");
  myListWindow.document.write("<div class='canvas'><div class = 'mainborder'><div class = 'maintitle'>");
  myListWindow.document.write("<h1>Online methodological futures: Your references: </h1></div>");
  myListWindow.document.write("<div class = 'main'><h2>Plain HTML</h2><p>Select the link below to open your list as a plain HTML file.</P>To save it as a text file, select 'FILE -> SAVE AS' to save the document, and choose 'text' as the file type.</p><p>Alternatively you can print the page as plain HTML, or copy the list and paste it into your text editor (Select the text and use 'RIGHT-CLICK -> COPY' or 'CTRL + C' to copy, and 'RIGHT-CLICK -> PASTE' or 'CTRL + V' to paste).</p><p>The file will open in a new window so that you can refer to these instructions while you use it.</p><p class = 'modlinks'><a href='javascript:void(0);'  class='up' onclick='window.opener.showMyRefsText ()'>OPEN LIST AS PLAIN HTML</a></p><hr /><h2>XML for EndNote</h2><p>Select the link below to open your list as an XML document designed to allow you to import the list into EndNote, using the 'EndNote generated XML' import option.</p><p>The file can be saved as follows:<ol><li>Open the page by selecting the link (NB. The XML may not be visible in your browser and <strong>it may appear as a blank screen</strong>).</li><li>Open the source file of the page by selecting 'VIEW -> SOURCE'.</li><li>Select 'FILE -> SAVE AS' to save the document</li><li>Choose a suitable name for your file and add the extension xml (e.g. 'references.xml').</li><li>Choose the file type 'ALL FILES', and save the file to a suitable location.</li></ol><p>You can then import this file as follows:<ol><li>Open an EndNote library</li><li>Select 'FILE -> IMPORT' and choose the import option 'EndNote generated XML'</li><li>Select 'CHOOSE FILE' and navigate to the xml file you have saved, then press 'IMPORT'.</li></ol><p>The file will open in a new window so that you can refer to these instructions while you use it.</p><p class = 'modlinks'><a href='javascript:void(0);' class='up' onclick='window.opener.showMyRefsXML()'>OPEN LIST AS XML</a></p></div></div></div></body></html>");
myListWindow.document.close();
myListWindow.focus();
}
function showMyRefsText ()
{
  window.status = 'Opening references list...'; 
  myListWindow = window.open('myList.htm','referenceListText','width=560,height=400,menubar=yes,toolbar=yes,scrollbars=yes'); 
  myListWindow.document.open();
  var list1Item;
   var list2Item;
    var list3Item;
	var list4Item;
	var list5Item;
     var oneContainsItems = false;
	   var twoContainsItems = false;
	    var threeContainsItems = false;
		var fourContainsItems = false;
		var fiveContainsItems = false;
  var containsItems = false;
  var containsComments = false;
  myListWindow.document.write("<html><head></head><body><p><strong>Online methodological futures: Your references </strong><br /></p>");
 
 for (list1Item = 0; list1Item < 4; list1Item++)
{
	if (refs[list1Item] [2] >0)
	{
		  oneContainsItems = true;
	}
}
if (oneContainsItems == true){
	myListWindow.document.write("<h2>Introduction</h2>");
	for (list1Item = 0; list1Item < 4; list1Item++)
{
		if (refs[list1Item] [2] >0)
	{
		  if (refs[list1Item] [1] ==" " || refs[list1Item] [1] =="  " || refs[list1Item] [1] =="" ){
	  		myListWindow.document.write("<div class = 'poprefs'><input type='checkbox' name = 'box' value = '" + list1Item + "'> " + refs[list1Item] [0] + "</div><hr />");
}
	  	  else if (refs[list1Item] [1] !=" " && refs[list1Item] [1] !="  " &&  refs[list1Item] [1] !="" ){
		  myListWindow.document.write("<p class = 'poprefs'><input type='checkbox' name = 'box' value = '" + list1Item + "'> " + refs[list1Item] [0] + "</p>");
		  myListWindow.document.write("<p>Comment: " + refs[list1Item] [1] + "</p><hr />");
		  containsComments = true;
		  }
		}
	  containsItems = true;
	}
} 

for (list2Item = 4; list2Item < 6; list2Item++)
{
	if (refs[list2Item] [2] >0)
	{
		  twoContainsItems = true;
	}
}
if (twoContainsItems == true){
	myListWindow.document.write("<h2>Blogs</h2>");
	for (list2Item = 4; list2Item < 6; list2Item++)
{
	if (refs[list2Item] [2] >0)
	{
		  if (refs[list2Item] [1] ==" " || refs[list2Item] [1] =="  " || refs[list2Item] [1] =="" ){
	  		myListWindow.document.write("<div class = 'poprefs'><input type='checkbox' name = 'box' value = '" + list2Item + "'> " + refs[list2Item] [0] + "</div><hr />");
}
	  	  else if (refs[list2Item] [1] !=" " && refs[list2Item] [1] !="  " &&  refs[list2Item] [1] !="" ){
		  myListWindow.document.write("<p class = 'poprefs'><input type='checkbox' name = 'box' value = '" + list2Item + "'> " + refs[list2Item] [0] + "</p>");
		  myListWindow.document.write("<p>Comment: " + refs[list2Item] [1] + "</p><hr />");
		  containsComments = true;
		  }
		}
	  containsItems = true;
	}
}
for (list3Item = 6; list3Item < 11; list3Item++)
{
	if (refs[list3Item] [2] >0)
	{
		  threeContainsItems = true;
	}
}
if (threeContainsItems == true){
	myListWindow.document.write("<h2>Social networking</h2>");
	for (list3Item = 6; list3Item < 11; list3Item++)
{
	if (refs[list3Item] [2] >0)
	{
		  if (refs[list3Item] [1] ==" " || refs[list3Item] [1] =="  " || refs[list3Item] [1] =="" ){
	  		myListWindow.document.write("<div class = 'poprefs'><input type='checkbox' name = 'box' value = '" + list3Item + "'> " + refs[list3Item] [0] + "</div><hr />");
}
	  	  else if (refs[list3Item] [1] !=" " && refs[list3Item] [1] !="  " &&  refs[list3Item] [1] !="" ){
		  myListWindow.document.write("<p class = 'poprefs'><input type='checkbox' name = 'box' value = '" + list3Item + "'> " + refs[list3Item] [0] + "</p>");
		  myListWindow.document.write("<p>Comment: " + refs[list3Item] [1] + "</p><hr />");
		  containsComments = true;
		  }
		}
	  containsItems = true;
	}
}
for (list4Item = 11; list4Item < 25; list4Item++)
{
	if (refs[list4Item] [2] >0)
	{
		  fourContainsItems = true;
	}
}
if (fourContainsItems == true){
	myListWindow.document.write("<h2>Analying social networking sites 2</h2>");
	for (list4Item = 11; list4Item < 25; list4Item++)
{
	if (refs[list4Item] [2] >0)
	{
		  if (refs[list4Item] [1] ==" " || refs[list4Item] [1] =="  " || refs[list4Item] [1] =="" ){
	  		myListWindow.document.write("<div class = 'poprefs'><input type='checkbox' name = 'box' value = '" + list4Item + "'> " + refs[list4Item] [0] + "</div><hr />");
}
	  	  else if (refs[list4Item] [1] !=" " && refs[list4Item] [1] !="  " &&  refs[list4Item] [1] !="" ){
		  myListWindow.document.write("<p class = 'poprefs'><input type='checkbox' name = 'box' value = '" + list4Item + "'> " + refs[list4Item] [0] + "</p>");
		  myListWindow.document.write("<p>Comment: " + refs[list4Item] [1] + "</p><hr />");
		  containsComments = true;
		  }
		}
	  containsItems = true;
	}
}
for (list5Item = 25; list5Item < 26; list5Item++)
{
	if (refs[list5Item] [2] >0)
	{
		  fiveContainsItems = true;
	}
}
if (fiveContainsItems == true){
	myListWindow.document.write("<h2>Performative social science</h2>");
	for (list5Item = 25; list5Item < 26; list5Item++)
{
	if (refs[list5Item] [2] >0)
	{
		  if (refs[list5Item] [1] ==" " || refs[list5Item] [1] =="  " || refs[list5Item] [1] =="" ){
	  		myListWindow.document.write("<div class = 'poprefs'><input type='checkbox' name = 'box' value = '" + list5Item + "'> " + refs[list5Item] [0] + "</div><hr />");
}
	  	  else if (refs[list5Item] [1] !=" " && refs[list5Item] [1] !="  " &&  refs[list5Item] [1] !="" ){
		  myListWindow.document.write("<p class = 'poprefs'><input type='checkbox' name = 'box' value = '" + list5Item + "'> " + refs[list5Item] [0] + "</p>");
		  myListWindow.document.write("<p>Comment: " + refs[list5Item] [1] + "</p><hr />");
		  containsComments = true;
		  }
		}
	  containsItems = true;
	}
}
myListWindow.document.close();
myListWindow.focus();
}

function sortIt ()
{
refs2 = refs.slice(0);
refs2.sort();
  window.status = 'Opening references list...'; 
  myListWindow = window.open('myList.htm','referenceList','width=560,height=400,menubar=yes,toolbar=yes,scrollbars=yes'); 
  myListWindow.document.open();
  var listItem;
  var containsItems = false;
  var containsComments = false;
  myListWindow.document.write("<html><head><title>Online methodological futures:  References - sorted A-Z</title>");
  myListWindow.document.write("<link href='../generic/nn4.css' rel='stylesheet' type='text/css'><style type='text/css' rel='stylesheet'>@import url(../generic/main.css);</style></head><body>");
  myListWindow.document.write("<div class='canvas'><div class = 'mainborder'><div class = 'maintitle'>");
  myListWindow.document.write("<h1>Online methodological futures:  References</h1></div>");
  myListWindow.document.write("<div class = 'main'><div class='instructions'<p><img src='../generic/instructions.gif' alt='[i]' width='16' height='16' align='absmiddle'> This list contains all the references you selected sorted from A-Z.  It is designed to allow you to copy or print a final list of sorted references. </p><p>  <strong>NB. If you have selected the same reference from more than one section, it will appear in the list more than once.  You can remove repeated selections by using the options at the end of the list.</strong></p></div><form name = 'form2'>");
  
for (listItem in refs2)
{
	if (refs2[listItem] [2] >0)
	{
		  if (refs2[listItem] [1] ==" " || refs2[listItem] [1] =="  " || refs2[listItem] [1] =="" )
	  		myListWindow.document.write("<div class = 'poprefs'><input type='checkbox' name = 'box' value = '" + listItem + "'> " + refs2[listItem] [0] + "</div><hr />");
	  	  else if (refs2[listItem] [1] !=" " && refs2[listItem] [1] !="  " &&  refs2[listItem] [1] !="" ){
		  myListWindow.document.write("<p class = 'poprefs'><input type='checkbox' name = 'box' value = '" + listItem + "'> " + refs2[listItem] [0] + "</p>");
		  myListWindow.document.write("<p>Comment: " + refs2[listItem] [1] + "</p><hr />");
		  containsComments = true;
		  }
	  containsItems = true;
	}
}

if (containsItems == true)
{
  myListWindow.document.write("</form>");
	if (containsComments == true){
	  myListWindow.document.write("</form><div class = 'warning'><p><img src='../generic/warning.gif' alt='[!]' width='16' height='16' align='absmiddle'> Please note that comments will be lost when you navigate away from this page.  If you would like to save them, you should copy them before you leave the page.</p></div>");
		}
myListWindow.document.write("<p class = 'modlinks'> <a href='javascript:void(0);' class='back' onclick='window.close()'>&nbsp;CLOSE&nbsp;</a><a href='javascript:void(0);' class='back' onclick='window.opener.undoSort()'>");
	  myListWindow.document.write("&nbsp;UNDO SORT A-Z&nbsp;</a><a href='javascript:void(0);' class='up' onclick='window.opener.checkButtons2()'>");  
	  myListWindow.document.write("&nbsp;REMOVE SELECTED REFERENCE(S)&nbsp;</a></p><p class = 'modlinks'><a href='javascript:void(0);'  class='up' onclick='window.opener.sortItTextInstr()'>");  
	   myListWindow.document.write("&nbsp;SAVE, COPY, PRINT OR EXPORT FOR ENDNOTE&nbsp;</a></p><hr /></div></div></div></body></html>");
}	  
myListWindow.document.close();
myListWindow.focus();
}
function sortItTextInstr()
{
  myListWindow = window.open('myList.htm','referenceList','width=560,height=400,menubar=yes,toolbar=yes,scrollbars=yes'); 
  myListWindow.document.open();
  myListWindow.document.write("<html><head><title>Online methodological futures:  references</title>");
  myListWindow.document.write("<link href='../generic/nn4.css' rel='stylesheet' type='text/css'><style type='text/css' rel='stylesheet'>@import url(../generic/main.css);</style></head><body>");
  myListWindow.document.write("<div class='canvas'><div class = 'mainborder'><div class = 'maintitle'>");
  myListWindow.document.write("<h1>Online methodological futures: Your references: </h1></div>");
  myListWindow.document.write("<div class = 'main'><h2>Plain HTML</h2><p>Select the link below to open your list as a plain HTML file.</P>To save it as a text file, select 'FILE -> SAVE AS' to save the document, and choose 'text' as the file type.</p><p>Alternatively you can print the page as plain HTML, or copy the list and paste it into your text editor (Select the text and use 'RIGHT-CLICK -> COPY' or 'CTRL + C' to copy, and 'RIGHT-CLICK -> PASTE' or 'CTRL + V' to paste).</p><p>The file will open in a new window so that you can refer to these instructions while you use it.</p><p class = 'modlinks'> <a href='javascript:void(0);' class='up' onclick='window.opener.sortItText ()'>OPEN LIST AS PLAIN HTML</a></p><hr /><h2>XML for EndNote</h2><p>Select the link below to open your list as an XML document designed to allow you to import the list into EndNote, using the 'EndNote generated XML' import option.</p><p>The file can be saved as follows:<ol><li>Open the page by selecting the link (NB. The XML may not be visible in your browser and <strong>it may appear as a blank screen</strong>).</li><li>Open the source file of the page by selecting 'VIEW -> SOURCE'.</li><li>Select 'FILE -> SAVE AS' to save the document</li><li>Choose a suitable name for your file and add the extension xml (e.g. 'references.xml').</li><li>Choose the file type 'ALL FILES', and save the file to a suitable location.</li></ol><p>You can then import this file as follows:<ol><li>Open an EndNote library</li><li>Select 'FILE -> IMPORT' and choose the import option 'EndNote generated XML'</li><li>Select 'CHOOSE FILE' and navigate to the xml file you have saved, then press 'IMPORT'.</li></ol><p>The file will open in a new window so that you can refer to these instructions while you use it.</p><p class = 'modlinks'> <a href='javascript:void(0);' class='up' onclick='window.opener.showMyRefsXML()'>OPEN LIST AS XML</a></p></div></div></div></body></html>");
myListWindow.document.close();
myListWindow.focus();
}
function sortItText ()
{
var refs2 = refs.slice(0);
refs2.sort();
  myListWindow = window.open('myList.htm','referenceListText','width=560,height=400,menubar=yes,toolbar=yes,scrollbars=yes'); 
  myListWindow.document.open();
  var listItem;
  var containsItems = false;
  var containsComments = false;
  myListWindow.document.write("<html><head></head><body><p><strong>Online methodological futures:  References</strong><br /></p>");
  
for (listItem in refs2)
{
	if (refs2[listItem] [2] >0)
	{
		  if (refs2[listItem] [1] ==" " || refs2[listItem] [1] =="  " || refs2[listItem] [1] =="" )
	  		myListWindow.document.write("<p>" + refs2[listItem] [0] + "</p><br />");
	  	  else if (refs2[listItem] [1] !=" " && refs2[listItem] [1] !="  " &&  refs2[listItem] [1] !="" ){
		  myListWindow.document.write("<p> " + refs2[listItem] [0] + "</p>");
		  myListWindow.document.write("<p>Comment: " + refs2[listItem] [1] + "</p><br />");
		  }
	}
}
myListWindow.document.close();
myListWindow.focus();
}
function showMyRefsXML()
{
var refs2 = refs.slice(0);
refs2.sort();
  myListWindow = window.open('myList.htm','referenceListText','width=560,height=400,menubar=yes,toolbar=yes,scrollbars=yes'); 
  myListWindow.document.open();
  var listItem;
  myListWindow.document.write('<?xml version="1.0" encoding="UTF-8"?>');
  myListWindow.document.write('<xml><records>');
for (listItem in refs2)
{
	if (refs2[listItem] [2] >0)
	{
	 if (refs2[listItem] [3] =="Conference Paper"){
	 myListWindow.document.write('<record><ref-type name="Conference Paper">47</ref-type><contributors><authors><author>' + refs2[listItem] [4] + '</author></authors></contributors><titles><title>' + refs2[listItem] [5] + '</title><secondary-title>' + refs2[listItem] [6] + '</secondary-title></titles><dates><year>'+ refs2[listItem] [7] + '</year><pub-dates><date>' + refs2[listItem] [8] + '</date></pub-dates></dates><pub-location>' + refs2[listItem] [9] + '</pub-location></record>');
	 }
	 else if (refs2[listItem] [3] =="Journal Article"){
	 myListWindow.document.write('<record><ref-type name="Journal Article">17</ref-type><contributors><authors><author>' + refs2[listItem] [4] +'</author></authors></contributors><titles><title>' + refs2[listItem] [5] + '</title><secondary-title>' + refs2[listItem] [6] + '</secondary-title></titles><pages>'+ refs2[listItem] [7] + '</pages><volume>' + refs2[listItem] [8] + '</volume><number>' + refs2[listItem] [9] + '</number><dates><year>' + refs2[listItem] [10] + '</year></dates></record>');
	 }
	 else if (refs2[listItem] [3] =="Book Section"){
	myListWindow.document.write('<record><ref-type name="Book Section">5</ref-type><contributors><authors><author>' + refs2[listItem] [4] +'</author></authors><secondary-authors><author>' + refs2[listItem] [5] + '</author></secondary-authors></contributors><titles><title>' + refs2[listItem] [6] + '</title><secondary-title>'+ refs2[listItem] [7] + '</secondary-title></titles><pages>' + refs2[listItem] [8] + '</pages><dates><year>' + refs2[listItem] [9] + '</year></dates><pub-location>' + refs2[listItem] [10] + '</pub-location><publisher>' + refs2[listItem] [11] + '</publisher></record>');
	}
	 else if (refs2[listItem] [3] =="Book"){
	myListWindow.document.write('<record><ref-type name="Book">6</ref-type><contributors><authors><author>' + refs2[listItem] [4] +'</author></authors></contributors><titles><title>' + refs2[listItem] [5] + '</title></titles><dates><year>' + refs2[listItem] [6] + '</year></dates><pub-location>'+ refs2[listItem] [7] + '</pub-location><publisher>' + refs2[listItem] [8] + '</publisher></record>');
	}
	else if (refs2[listItem] [3] =="Conference Proceedings"){
	myListWindow.document.write('<record><ref-type name="Conference Proceedings">10</ref-type><contributors><authors><author>' + refs2[listItem] [4] +'</author></authors></contributors><titles><title>' + refs2[listItem] [5] + '</title><secondary-title>' + refs2[listItem] [6] + '</secondary-title></titles><dates><year>'+ refs2[listItem] [7] + '</year></dates><pub-location>' + refs2[listItem] [8] + '</pub-location><publisher>' + refs2[listItem] [9] + '</publisher></record>');
	}	
	else if (refs2[listItem] [3] =="Report"){
	myListWindow.document.write('<record><ref-type name="Report">27</ref-type><contributors><authors><author>' + refs2[listItem] [4] +'</author></authors></contributors><titles><title>' + refs2[listItem] [5] + '</title><secondary-title>' + refs2[listItem] [6] + '</secondary-title></titles><dates><year>'+ refs2[listItem] [7] + '</year></dates><pub-location>' + refs2[listItem] [8] + '</pub-location></record>');
	}
	else if (refs2[listItem] [3] =="Online Multimedia"){
	myListWindow.document.write('<record><ref-type name="Online Multimedia">48</ref-type><contributors><authors><author>' + refs2[listItem] [4] +'</author></authors></contributors><titles><title>' + refs2[listItem] [5] + '</title></titles><dates><year>' + refs2[listItem] [6] + '</year></dates><urls><related-urls><url>'+ refs2[listItem] [7] + '</url></related-urls></urls></record>');
	}
	else if (refs2[listItem] [3] =="Electronic Source"){
	myListWindow.document.write('<record><ref-type name="Electronic Source">12</ref-type><contributors><authors><author>' + refs2[listItem] [4] +'</author></authors></contributors><titles><title>' + refs2[listItem] [5] + '</title><secondary-title>' + refs2[listItem] [6] + '</secondary-title></titles><edition>'+ refs2[listItem] [7] + '</edition><dates><year>' + refs2[listItem] [8] + '</year></dates><urls><related-urls><url>'+ refs2[listItem] [9] + '</url></related-urls></urls></record>');
	}
}
}
myListWindow.document.write('</records></xml>');
myListWindow.document.close();
myListWindow.focus();
}

function checkButtons()
{
var boxIndex = -1;
var numberUnchecked = 0;
boxLength = myListWindow.document.form2.length;
if (boxLength == 1){
boxes = myListWindow.document.form2.box;
if (boxes.checked == true){
  refs[parseInt(boxes.value)] [2] = 0;
  refs[parseInt(boxes.value)] [1] = "";
  }
  else if (boxes.checked == false){
    alert("Please select the reference(s) you would like to remove");
	}
}
  else if (boxLength != 1){
for (boxIndex = 0; boxIndex < boxLength; boxIndex++){
boxes = myListWindow.document.form2.box[boxIndex];
if (boxes.checked == true){
  refs[parseInt(boxes.value)] [2] = 0;
  refs[parseInt(boxes.value)] [1] = "";
}
else if (boxes.checked == false)
   {
	numberUnchecked = numberUnchecked+1;
	}
}
if (numberUnchecked == boxLength){
    alert("Please select the reference(s) you would like to remove");
	}
}showMyRefs ();
}
function checkButtons2()
{
var boxIndex = -1;
var numberUnchecked = 0;
boxLength = myListWindow.document.form2.length;
if (boxLength == 1){
boxes = myListWindow.document.form2.box;
if (boxes.checked == true){
  refs2[parseInt(boxes.value)] [2] = 0;
  refs2[parseInt(boxes.value)] [1] = "";
  }
  else if (boxes.checked == false){
    alert("Please select the reference(s) you would like to remove");
	}
}
  else if (boxLength != 1){
for (boxIndex = 0; boxIndex < boxLength; boxIndex++){
boxes = myListWindow.document.form2.box[boxIndex];
if (boxes.checked == true){
  refs2[parseInt(boxes.value)] [2] = 0;
  refs2[parseInt(boxes.value)] [1] = "";
}
else if (boxes.checked == false)
   {
	numberUnchecked = numberUnchecked+1;
	}
}
if (numberUnchecked == boxLength){
    alert("Please select the reference(s) you would like to remove");
	}
}sortIt ();
}















var one = new Image();
one.src ="downbutton.gif";
var two = new Image();
two.src ="upbutton.gif";
var three = new Image();
three.src ="downalltoggled.gif";
var four = new Image();
four.src ="upalltoggled.gif";
var checked = new Array;
checked[0] = 1;
checked[1] = 1;
checked[2] = 1;
checked[3] = 1;
checked[4] = 1;
checked[5] = 1;
checked[6] = 1;
checked[7] = 1;
checked[8] = 1;
checked[9] = 1;
checked[10] = 1;
checked[11] = 1;
checked[12] = 1;
checked[13] = 1;
checked[14] = 1;
checked[15] = 1;
checked[16] = 1;
checked[17] = 1;
checked[18] = 1;
checked[19] = 1;
checked[20] = 1;
checked[21] = 1;
checked[22] = 1;
checked[23] = 1;
checked[24] = 1;
checked[25] = 1;
checked[26] = 1;
checked[27] = 1;
checked[28] = 1;
checked[29] = 1;
checked[30] = 1;
var allToggled = 1;
var isIE4 = false;
var isCompliant = false;
if(document.getElementById)
{
	if(!document.all)
	{
		isCompliant=true;
	}
	if(document.all)
	{
		isIE4=true;
	}
}

function aLs(layerID)
{
var returnLayer ="null";
	if(isIE4)
	{
		returnLayer = eval("document.all." + layerID + ".style");
	}
	if(isCompliant)
	{
		returnLayer = eval("document.getElementById('" + layerID + "').style");
	}
return returnLayer;
}

function toggle(ID, imgName, pos)
{
	if(aLs(ID).display =="")
	{
		aLs(ID).display ="none";
	}
	else
	{
		aLs(ID).display ="";
	}

	if (checked[pos] == 1 | checked[pos] == 2) {
	document.images[imgName].src = one.src;
	window.status = 'Heading opened'; 
	checked[pos] = 3;
	}
	else if (checked[pos] == 3) {
	document.images[imgName].src = two.src;
	window.status = 'Heading closed';
	checked[pos] = 2;
	}
}
function toggleAll(total, allTog)
{  
	if (allToggled == 1 |allToggled == 2  ){
	for (var i=1; i<total; i++) {
		aLs("Open"+i).display ="";
		document.images["i"+i].src = one.src;
		window.status = 'All headings opened'; 
		checked[i] = 3;
	}

	document.images[allTog].src = three.src;
	allToggled = 3;
	checked[0] = 3;
	}
	else if (allToggled == 3){
		for (var j=1; j<total; j++) {
		aLs("Open"+j).display ="none";
		document.images["i"+j].src = two.src;
		window.status = 'All headings closed'; 
		checked[j] = 2;
	}

	document.images[allTog].src = four.src;
	allToggled = 2;
	checked[0] = 2;
	}
}

function toggle2(imgName, pos)
{
	if (checked[pos] == 1) {
	return;
	}
	else if (checked[pos] == 3) {
	document.images[imgName].src = one.src;
	}
	else if (checked[pos] == 2) {
	document.images[imgName].src = two.src;
	}
}
function toggleAll2(total, allTog)
{  
	if (allToggled == 1){
	return;
	}
	else if (allToggled == 2){
	for (var i=1; i<total; i++) {

		document.images["i"+i].src = two.src;
		}
	document.images[allTog].src = four.src;
	}
	else if (allToggled == 3){
		for (var j=1; j<total; j++) {

		document.images["i"+j].src = one.src;
		}
	document.images[allTog].src = three.src;
	}
}
