﻿//Global variables
function candidate()
{
// Create XML doc and insert list of comments in XML doc
//  loadDocument is routine from General js to create XML doc
//  setXMLValue is routine from General js to insert info into the XML doc
//  sendDoc is routine from General js to send the document to backend
//  getXMLValue is routine from General js to get info from XML Doc
	blogList('nBlog','1');
	loadDocument();
	setXmlValue("functionName", "memberLogin");
	setXmlValue("message", "You must log in to view this page!");
	//alert(xmlDoc.xml);
	xmlDoc = sendDoc();
	//alert(xmlDoc.xml);
	    message = getXmlValue("message");
	if(getXmlValue("curMemberId") > "0")
	{
	    alert(message);
	    document.getElementById("mainText").style.display = "block";
	}
	else
	{
	    alert(message);
        location = 'login.htm';
    }
}
