function ShowModalessWindow(Action,GUid,dialogWidth,dialogHeight)
{
	if (Action!="") {
		var Component = Action.split("#");
		var openString = "index.php?id=" + GUid + "&action=perform&ComponentName=" + Component[0] + "&MethodName=" + Component[1];
		
		window.showModelessDialog(openString,null,
		    "dialogWidth=" + dialogWidth + "px;dialogHeight=" + dialogHeight + "px;help=no;status=no")
	}
}
 
function ShowModalWindow(ObjectIdentifier,Action,dialogWidth,dialogHeight) {
	if (Action!="") {
		var Component = Action.split("#");
		var openString;

		openString = "dialog.php?id=" + ObjectIdentifier + "&action=perform&ClassName=" + Component[0] + "&MethodName=" + Component[1];
		
		if (window.showModalDialog) {
			window.showModalDialog(openString,window,
		    "dialogWidth="+dialogWidth+"px;dialogHeight="+dialogHeight+"px;help=no;status=no");
		} else {
		    window.top.captureEvents (Event.CLICK|Event.FOCUS)
		    window.top.onclick=IgnoreEvents
		    window.top.onfocus=HandleFocus 
		    winModalWindow = 
		    window.open ("ModalChild.htm","ModalChild",
		    	"dependent=yes,width=200,height=100")
		    winModalWindow.focus()
		}
	}
}

function doLogonOpen(ObjectIdentifier,Action,dialogWidth,dialogHeight) {
	if (Action!="") {
		var Component = Action.split("#");
		var openString;

		openString = "dialog.php?id=" + ObjectIdentifier + "&action=perform&ClassName=" + Component[0] + "&MethodName=" + Component[1];
		window.open(openString,null,"top=0,left=0,status=no,toolbar=no,resizable=yes,scrollbars=no,width="+dialogWidth+",height="+dialogHeight);
	}
}

// Description: Opens a dialog window
// Accepts:			Required ObjectIdentifier
//							Required Action
//							Required ActionType
//							Required WinTarget
//							Optional OptionalArguments
function doOpen2() {
	var ObjectIdentifier = arguments[0];
	var Action = arguments[1];
	var ActionType = arguments[2];
	var WinTarget = arguments[3];
	var Component = Action.split("#");
	var openString;
	var OptionalArgs = -1;
	
	if (arguments.length == 5) {
		OptionalArgs = arguments[4];
	}
	
	if (OptionalArgs == -1) {
		openString = "dialog.php?id=" + ObjectIdentifier + "&action=perform&ActionType=" + ActionType + "&ClassName=" + Component[0] + "&MethodName=" + Component[1];
	} else {
		openString = "dialog.php?id=" + ObjectIdentifier + "&action=perform&ActionType=" + ActionType + "&ClassName=" + Component[0] + "&MethodName=" + Component[1] + OptionalArgs;
	}
	
	window.open(openString,WinTarget,"top=0,left=0,status=no,toolbar=no,resizable=yes,scrollbars=yes,width=800,height=480");	
}

function doOpen(ObjectIdentifier,Action,ActionType,WinTarget){
	if (Action!="") {
		var Component = Action.split("#");
		var openString;

		openString = "dialog.php?id=" + ObjectIdentifier + "&action=perform&ActionType=" + ActionType + "&ClassName=" + Component[0] + "&MethodName=" + Component[1];
		window.open(openString,WinTarget,"top=0,left=0,status=no,toolbar=no,resizable=yes,scrollbars=no,width=760,height=480");
		//modalDialogShow(openString,770,570);
		//modelessDialogShow(openString,770,570);
	}
}

function reloadandclose() {
	if(typeof (opener) != "undefined" ) {
 		window.close();
 		opener.location.reload();
	}	
	
	if(typeof (opener) == "undefined" ) {
 		parent.close();
 		parent.opener.location.reload();
	}
}

function Point(strImage) {
	var myElement = document.getElementById(strImage);
	myElement.className = "Point";
}
      
function DontPoint(strImage) {
	var myElement = document.getElementById(strImage);
	myElement.className = "DontPoint";
}
