function mytimer(){
	setTimeout("alert('Save your work or your session will expire in 10 minutes.');",10140000);
	setTimeout("alert('Save your work or your session will expire in 1 minute.');",10680000);
	setTimeout("document.form1.logout.value = 1; document.form1.submit();",10740000);
}

function decision(message, url){
	if(confirm(message)) location.href = url;
}

function validate(form) {
	var msg="";
	if (form1.topic.value == "NULL") {
		var msg = "Select a topic first";	
	}
	
	if(msg == "") {
		return true;
	} else {
			alert(msg);
			return false;
	}
}

function OpenWin(location) {
	NewWindow=window.open(location, 'test', 'width=600,height=500,status,resizable=1,scrollbars');
	NewWindow.focus();
}	

function OpenPop(location) {
	document.forms.form1.submit();
	NewWindow=window.open(location, 'test', 'width=750,height=700,status,resizable=1,scrollbars');
	NewWindow.focus();
}

<!-- 	
// by Nannette Thacker
// http://www.shiningstar.net
// This script checks and unchecks boxes on a form
// Checks and unchecks unlimited number in the group...
// Pass the Checkbox group name...
// call buttons as so:
// <input type=button name="CheckAll"   value="Check All"
	//onClick="checkAll(document.myform.list)">
// <input type=button name="UnCheckAll" value="Uncheck All"
	//onClick="uncheckAll(document.myform.list)">
// -->

<!-- Begin

function CloseWin(url)
{
	window.opener.location.replace(url);
	window.close() ;
}



function checkAll(field)
{
for (i = 0; i < field.length; i++)
	field[i].checked = true ;
}

function uncheckAll(field)
{
for (i = 0; i < field.length; i++)
	field[i].checked = false ;
}

//  End -->
// show hide script

<!--
// * Dependencies * 
// this function requires the following snippets:
// JavaScript/readable_MM_functions/findObj
//
// Accepts a variable number of arguments, in triplets as follows:
// arg 1: simple name of a layer object, such as "Layer1"
// arg 2: ignored (for backward compatibility)
// arg 3: 'hide' or 'show'
// repeat...
//
// Example: showHideLayers(Layer1,'','show',Layer2,'','hide');
function showHideLayers()
{ 
  var i, visStr, obj, args = showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3)
  {
    if ((obj = findObj(args[i])) != null)
    {
      visStr = args[i+2];
      if (obj.style)
      {
        obj = obj.style;
        if(visStr == 'show') visStr = 'inline';
        else if(visStr == 'hide') visStr = 'none';
      }
      obj.display = visStr;
    }
  }
}
// Example: obj = findObj("image1");
function findObj(theObj, theDoc)
{
  var p, i, foundObj;
  
  if(!theDoc) theDoc = document;
  if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  {
    theDoc = parent.frames[theObj.substring(p+1)].document;
    theObj = theObj.substring(0,p);
  }
  if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  for (i=0; !foundObj && i < theDoc.forms.length; i++) 
    foundObj = theDoc.forms[i][theObj];
  for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
    foundObj = findObj(theObj,theDoc.layers[i].document);
  if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  
  return foundObj;
}

function toggle(targetId) {
	target = document.getElementById(targetId);
		if (target.style.display == "none"){
  			target.style.display="";
		} else {
			target.style.display="none";
		}
}


-->