
<!-- Original:  Ronnie T. Moore -->
<!-- Web Site:  The JavaScript Source -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
  	function classChange(element,newclass) {
	if (element.className=='textnowrap')
	  element.className = newclass;
	else element.className = 'textnowrap';
	}

	function editSongRow(a, b, c, d, e, f, g, h, i){
	  inputForm.songtitle.value=a;
	  inputForm.lyrics.value=b;
	  inputForm.album.value=c;
	  inputForm.albumlink.value=d;
	  inputForm.category.value=e;
	  inputForm.lang.value=f;
	  inputForm.key.value=g;
	  inputForm.alttitle.value=h;
	  inputForm.delete2.value=i;
	}

var expDays = 30;
var exp = new Date();
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
function SetCookie (name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}
function DeleteCookie (name) {
var exp = new Date();
exp.setTime (exp.getTime() - 1);
var cval = GetCookie (name);
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
function goOffSite(url){
var str = 'You are leaving the ETCBC WebSite. Click Cancel to remain on ETCBC.org.\n'+
	'ETCBC is not responsible for the contents or reliability of the linked web sites ' +
	'and does not necessarily endorse the views expressed within them.\n' +
	'This will open in a new window, if you have a popup blocker please disable it.'
var result = confirm(str);
  if (result ==true){
    window.open(url);
  }
}
function warningDelete(url){
var str = 'Are you sure you want to delete this entry and all associated scheduled times?\n'+
	'Click Cancel to ignore.'
var result = confirm(str);
  if (result ==true){
    window.location=url;
  }
}
function warningMove(url){
var str = 'Are you sure you want to move this entry? Any page references will break their links! \n'+
	'Click Cancel to ignore.'
var result = confirm(str);
  if (result ==true){
    window.location=url;
  }
}
//  End -->

