<!--
function printpage() {
	url = "print.htm";
	newwindow=window.open(url,'print','height=800,width=700,scrollbars=1,menubar=1,resizable=1');
	if (window.focus) newwindow.focus();
	newwindow.alert("To print landscape for: \nInternet Explorer:\n1. From the web page select print icon. \n2. From the IE browser menu select File -> Page Setup... \n3. From the Page Setup Window select Landscape then click OK button \n4. Select print icon at top-right corner of page \n5. print \n\nMozilla Firefox \n1. From the web page select the print icon. \n2. From the Firefox browser menu select File -> Page Setup... \n3. From the Page Setup Window select Landscape then click OK button \n4. Select print icon at top-right corner of page \n5. print \n\nTo print background images for: \nInternet Explorer \n1. From the web page select the print icon. \n2. From IE main menu select Tools -> Internet Options... \n3. From the Internet Options dialog box select the Advanced tab \n4. Turn on Print background colors and images then click OK button. \n5. Select print icon at top-right corner of page \n6. print \n\nMozilla Firefox \n1. From the web page select the print icon. \n2. From the Firefox browser menu select File -> Page Setup... \n3. From the Page Setup Window select Print Background (colors & images) then click OK button \n3. Select print icon at top-right corner of page \n4. print ");
	return false;
}

function displaystatus(obj) {
	window.status = obj.innerText;
}

function addDisplayStatus() {
	// Remove all href and onclick action for anchor element
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i < anchors.length; i++) {
		if (anchors[i].onmouseover == null)
	  		anchors[i].onmouseover = function () {displaystatus(this); return true;};
	}
}

function displayPartyName(pname) {
	var partydiv = document.getElementById("partyname");
	//var pNameTrim = pname.replace("'", "''");
	if (partydiv) {
		closePartyName();
		partydiv.style.visibility = "visible";
		partydiv.style.left = screen.width/4 + "px";
		partydiv.style.top = screen.height/4 + "px";
		partydiv.innerHTML = pname + "<br/><a href=\"javascript:closePartyName()\">Close</a>";
	} else {
    var newwindow = window.open("", "PartyName", "width=300px,height=10px,status=no,menubar=no,location=no,scrollbars=auto,top=" + screen.height/2 + ",left=" + screen.width/3);
    newwindow.document.open();
    newwindow.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">');
		newwindow.document.write('<html>');
		newwindow.document.write('<head>');
		newwindow.document.write('<title>Full Name</title>');
		newwindow.document.write('<style type="text/css">@import "css/common.css";</style>');
		newwindow.document.write('</head>');
		newwindow.document.write('<body>');
		newwindow.document.write('<table cellpadding="0" cellspacing="0" width="100%" border="0" height="90%">');
		newwindow.document.write('<tr>');
    newwindow.document.write('<td class="partydata" valign="middle" align="center" height="100%"><b style="color:#dc6801" id="txtPartyName">' + pname + '</b></td>');
		newwindow.document.write('</tr>');
		newwindow.document.write('</table>');
		newwindow.document.write('</body>');
		newwindow.document.write('</html>');
		newwindow.document.close();
		newwindow.focus();
	}
}

function closePartyName() {
	var partydiv = document.getElementById("partyname");
	if (partydiv) {
		partydiv.style.visibility = "hidden";
	}
}

function exMenu(tName, rowCount) {
	tMain = document.getElementById(tName);
	imgObj = document.getElementById(tName + "Icon");
	txtObj = document.getElementById(tName + "Text");
	totalObj = document.getElementById(tName + "Total");
	totalSpaceObj = document.getElementById(tName + "TotalSpace");
	for(var i=1; i <= rowCount; i++) {
		tMenuObj = document.getElementById(tName + i);
		if (tMenuObj) {
			tMenu = tMenuObj.style;
			if (tMenu.display == 'none') {
				tMenu.display='';
			}else{
				tMenu.display='none';
			}
		}
	}
	if (tMain) {
		if (tMain.cells[0].rowSpan == 1) {
			tMain.cells[0].rowSpan = (rowCount + 1);
		} else {
			tMain.cells[0].rowSpan = 1;
		}
	}
	if (txtObj) {
		if (txtObj.innerHTML.indexOf("Hide") > -1) {
                        txtObj.innerHTML = "Group Votes";
		} else {
                        txtObj.innerHTML = "Group Votes";
		}
	}
	if (totalObj) {
		if (totalObj.style.display == 'none') {
			totalObj.style.display = '';
			if (totalSpaceObj) totalSpaceObj.style.display = 'none';
		} else {
			totalObj.style.display = 'none';
			if (totalSpaceObj) totalSpaceObj.style.display = '';
		}
	}
	if (imgObj) {
		if (imgObj.src.indexOf("images/tree_icon_open.gif") > -1) {
			imgObj.src = "images/tree_icon_close.gif";
		} else {
			imgObj.src = "images/tree_icon_open.gif";
		}
	}
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
-->
