function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function test()
{
	alert("i'm here");	
}

function chkEmailPass()
{
   if(document.emailpass.email.value == "")
   {
      alert("Please enter your email address");
      document.emailpass.email.focus();
      return false;  
   }  
}

function confirmDel()
{
   return confirm("Are you sure you want to delete this record from the database?");  
}

function PopulateSelect(textArr, valueArr, selectObj)
{
	// empty list from current values
	selectObj.length = 0;

	// add new values
	for (var i = 0; i < textArr.length; i++)
	{
		selectObj.options[i] = new Option(textArr[i], valueArr[i]);
	}
}

// populates <select> selectObj from list depending on id
// list must be in following format - list[id][index][0/1]
// list[id][index][0] - becomes text
// list[id][index][1] - becomes value in <select>
function PopulateSelect2(list, id, selectObj)
{
	// empty list from current values
	selectObj.length = 0;

	// add new values
	for (var i = 0; i < list[id].length; i++)
	{
		selectObj.options[i] = new Option(list[id][i][0], list[id][i][1]);
	}
}