//preload image
var collimg = new Image();
collimg.src = "collapse.png";
var expimg = new Image();
collimg.src = "expand.png";

function ShowHideLayer(boxID) {
    /* Obtain reference for the selected boxID layer and its button */
    var box = document.getElementById("box"+boxID);
    var boxbtn = document.getElementById("btn"+boxID);
    
    /* If the selected box is currently invisible, show it */
    if(box.style.display == "none" || box.style.display=="") {
        box.style.display = "block";
        boxbtn.src = "collapse.png";
    }
    /* otherwise hide it */
    else {
        box.style.display = "none";
        boxbtn.src = "expand.png";
    }
}

function smsg(msgStr) { //v1.0
  status=msgStr;
  document.prs_return = true;
}
function nosmsg(msgStr) { //v1.0
  status=msgStr;
  document.prs_return = true;
}
function deleteconfirm(str,strurl)
{
	if (confirm(str)) 
	{
		this.location=strurl;
	}
}	