function switchSoundOff() {
	parent.audio.location.href = "audio_off.php";
}

function switchSoundOn() {
	parent.audio.location.href = "audio.php";
}

function newWindowFull(vpage, vname, w, h, scroll) {
	winprops1 = 'height='+h+',width='+w+',top=0,left=0,scrollbars='+scroll+',directories=yes,location=yes,menubar=yes,status=yes,toolbar=yes,resizable=yes';
	win1 = window.open(vpage, vname, winprops1);
	if (parseInt(navigator.appVersion) >= 4) { 
		win1.window.focus();
	}
}

function newWindow(vpage, vname, w, h, scroll, LeftPos, TopPos) {
	var winl1 = LeftPos;
	var wint1 = TopPos;
	winprops1 = 'height=' + h + ',width=' + w + ',top=' + wint1 + ',left=' + winl1 + ',scrollbars=' + scroll + ',resizable';
	win1 = window.open(vpage, vname, winprops1);
	if (parseInt(navigator.appVersion) >= 4) { 
		win1.window.focus();
	}
}

function confirmRemove(theLink, msg) {
  // Confirmation is not required if the browser is Opera
  if (typeof(window.opera) != 'undefined') {
      return true;
  }

  var is_confirmed = confirm(msg);
  if (is_confirmed) {
      theLink.href += '&confirm=true';
  }
  return is_confirmed;
}

function mnuReplace(img, label) {
	var index = document.images.length;
	for (i = 0; i < index; i++){
		if (document.images[i].name == label) {
			document.images[i].src = img;
		}
	}
	return true;
}
