//switch visibility of div's 'PleaseWaitDiv' and 'ContentDiv' if confirmed
function PleaseWaitDisplay() {
		document.getElementById('PleaseWaitDiv').style.display = 'block';
		document.getElementById('ContentDiv').style.display = 'none';
		location.hash="TopAnchor";
    }
     
//switch visibility of div's 'PleaseWaitUploadDiv' and 'ContentDiv' if confirmed
function PleaseWaitUploadDisplay() {
		document.getElementById('PleaseWaitUploadDiv').style.display = 'block';
		document.getElementById('ContentDiv').style.display = 'none';
		location.hash="TopAnchor";
}


//
// Disply style functions
//

// Toggle Display style
function ToggleDisplayNoneEmpty(pElementId)
{

		if(document.getElementById(pElementId).style.display == 'none') {
				SetDisplayEmpty(pElementId);
        }
		else {
				SetDisplayNone(pElementId);
		}
}


//
//Set display to 'none'
//
function SetDisplayNone(pElementId)
{
		document.getElementById(pElementId).style.display = 'none';
    }

//
//Set display to ''
//
function SetDisplayEmpty(pElementId)
{
		document.getElementById(pElementId).style.display = '';
    }
















function ConfirmDeleteMessage()
{
		var ReturnConfirm = true;
        
		//get a confirmation on selected StructureIds
		ReturnConfirm = confirm('This will delete the item. Are you sure?');
        
		//switch visibility of div's 'PleaseWaitDiv' and 'ContentDiv' if confirmed
		if(ReturnConfirm == true){
				//jump to top
				PleaseWaitDisplay();
        }
        
		return ReturnConfirm

}

function ConfirmMessage(pMessage)
{
		var ReturnConfirm = false;
		var ConfMessage = 'Please confirm!';
        
		//check null state
		if(!(pMessage=='')) ConfMessage=pMessage;

		//get a confirmation on selected StructureIds
		ReturnConfirm = confirm(ConfMessage);
        
		//switch visibility of div's 'PleaseWaitDiv' and 'ContentDiv' if confirmed
		if(ReturnConfirm == true){
				//jump to top
				PleaseWaitDisplay();
        }
        
		return ReturnConfirm

}



