function Popup(page,high,wide) {
	windowprops = "height="+high+",width="+wide+",location=no,"
	+ "scrollbars=yes,menubars=no,toolbars=no,resizable=yes";
	window.open(page,"_blank",windowprops);
}

function SubmitEditForm() {
	document.getElementById("editForm").submit();
}

function SurveyMoreInfo(survey,topic,choice) {
var page = "survey.php?action=printer&id="+survey+"&topic="+topic+"&choice="+choice;
windowprops = "height=250,width=400,location=no,"
+ "scrollbars=yes,menubars=no,toolbars=no,resizable=yes";
window.open(page,"_blank",windowprops);
}

function VoteMoreInfo(ballot,topic,choice,inst) {
var page = "vote.php?action=printer&id="+ballot+"&topic="+topic+"&choice="+choice+"&inst="+inst;
windowprops = "height=400,width=400,location=no,"
+ "scrollbars=yes,menubars=no,toolbars=no,resizable=yes";
window.open(page,"_blank",windowprops);
}

function CloseWindow() {
	window.close
}

// Nannette Thacker http://www.shiningstar.net
function confirmSubmit() {
	var agree=confirm("Are you sure you want to delete this?");
	if (agree)
		return true ;
	else
	return false ;
}

// Nannette Thacker http://www.shiningstar.net
function confirmVote() {
	var agree=confirm("Have you voted on all issues? If so, click on OK to submit your ballot. If not, click on Cancel to add or change a vote.");
	if (agree)
		return true ;
	else
	return false ;
}

// This function prevents double clicking on form submit.
// add  onSubmit='javascript:submitRequest();' to form tag.
var requestSubmitted = false;

function submitRequest() {
  if (!requestSubmitted ) {
	 requestSubmitted  = true;
	 return true;
  }
  return false;
}

function submitIdeasTopicForm(newAction){ 
  if (newAction.length > 0) {
    document.ideasTopicForm.action = newAction;
  }
  document.ideasTopicForm.submit();
}

$(document).ready(function() 
	{ 
		$('table').tablesorter( { widgets: ['zebra'] } ); 
	} 
);