function AlertDelete(recid)
{
	var truthBeTold = window.confirm("You are about to delete record #" + recid + ".\nAre you sure?");
	if (truthBeTold) {
		return true;
	}  else  {
		return false;
	}
}

// SCRIPT for MSIE 5.0
// (c) 2000 by Bee Communication S.A.
// Author: Alexander (alextg@bee.gr) Papastergiou

ExecEnable = false;			// DISABLE ALL scripts until all code is generated and loaded by client

function GetPDIndex(id)
{
	found = -1
	for (i=1;i<=MaxPDMenus;i++) {
		if (pdmData1[i] == id) {
			found = i
			break
		}
	}
	return found
}

function Hide( Level )
{
	if (ExecEnable) {
		for (i=1;i<=MaxPDMenus;i++) {
			if (pdmData2[i] > Level) {
				obj = eval( "document.all." + pdmData1[i] + ".style" )
				obj.visibility = "hidden"
			}
		}
	}
}

function Show( id )
{
	if (ExecEnable) {
	
		Index = GetPDIndex(id)
		
		Hide( pdmData2[Index] -1 )

		obj = eval( "document.all." + id + ".style" )

		x = pdmData3[Index]
		y = pdmData4[Index]

		if (x < 0) {
			x = document.all.PAGE.offsetWidth + x
		} else {
			x = document.all.PAGE.offsetLeft + x
		}

		obj.left = x + "px"
		obj.top = y + "px"

		obj.visibility = "visible"
	}
	self.event.cancelBubble=true
}

// --------------------------------------------------------------------


objb	= 0
objbc	= ""
				
function press() {

	depress()

	objb = event.toElement

	objbc = objb.className

	objb.className = objbc + "HOVER"
}

function depress() {
	if (objb != 0) {
		objb.className = objbc
		objb = 0
	}
}

function point( imageName ) {
	if (ExecEnable) {
	  if ( document.images ) {
		document[ imageName ].src = eval(imageName + "_o.src");
		}
	}
}

function nopoint( imageName ) {
  if ( document.images ) {
	if (ExecEnable) {
    document[ imageName ].src = eval(imageName + "_n.src");
	}
  }
}

function _Link(url) {
	if (url != "") {
		if ( url.indexOf( "http://" ) > -1 ) {
			popWin = window.open( url )
			popWin.focus()
		} else {
			location.href = url
		}
	}
}

var popWin	   // var used because of the closepopWin() function it has to be declare global

function OpenPopWin(URL, width, height, scroll)
{ 
   popWin = window.open(URL, "myPopWin", "toolbar=0,location=0,menubar=0,scrollbars=" + scroll + ",resizable=0,width=" + width + ",height=" + height);
   popWin.focus();
}

function ClosePopWin()  
{ 
   popWin.close()
}

function clickHandler() {
	var targetId, srcElement, targetElement

	Hide( 0 )

	srcElement = window.event.srcElement

	if (srcElement.className == "Outline") {

		targetId = srcElement.id + "details"
		targetElement = document.all(targetId)

		if (targetElement.style.display == "none") {
			targetElement.style.display = ""
		} else {
			targetElement.style.display = "none"
		}
	}
}

document.onclick = clickHandler
