
var applicationUrl = "http://testportal.litetouch.com";



function PopupPDF(aUrl) {
    VASmallWin = window.open(aUrl, "PDFWin", "toolbar=no,directories=no,status=no,scrollbars=yes,menubar=no,width=600,height=600,resizable=yes");
    VASmallWin.self.focus();
}

function PopupWindow(aUrl, w, h, sb, rs, tb, dir, st, mnu)
{
	if (!sb) sb = "yes"; if (!rs) rs = "yes"; if (!tb) tb = "no"; if (!dir) dir = "no"; if (!st) st = "no"; if (!mnu) mnu = "no";
	popupWin=window.open(aUrl,"PopupWin","scrollbars="+sb+",resizable="+rs+",toolbar="+tb+",directories="+dir+",status="+st+",menubar="+mnu+",width="+w+",height="+h+",resizable=yes");
	popupWin.self.focus();
}

function HideShowControl(ctrlid)
{
	var ctrl = document.getElementById(ctrlid);
	if (ctrl.style.display == "none")
	{
	    ctrl.style.display = "";
	}
	else
	{
		ctrl.style.display = "none";
	}
}

function EnableDisableControl(ctrlid) {
    var ctrl = document.getElementById(ctrlid);
    if (ctrl.disabled == true) {
        ctrl.disabled = false;
    }
    else {
        ctrl.disabled = true;
    }
}

function ToggleRadioControl(ctrlCheckedId, ctrlToUncheckId) {
    var ctrlChecked = document.getElementById(ctrlCheckedId);
    var ctrlToUncheck = document.getElementById(ctrlToUncheckId);
    if (ctrlChecked.checked == true) {
        ctrlToUncheck.checked = false;
    }
}

function HideControl()
{
	var ctrl;
	
	for (i=0; i<arguments.length; i++)
	{
		ctrl = document.getElementById(arguments[i]);
		if (ctrl.style.display != "none")
		{
			ctrl.style.display = "none";
		}
	}
}
function ShowControl()
{
	var ctrl;
	
	for (i=0; i<arguments.length; i++)
	{
		ctrl = document.getElementById(arguments[i]);
		
		if (ctrl.style.display == "none")
		{
			ctrl.style.display = "";
		}
	}
}
function HideShowControlAndArrows(ctrlid, expand, collapse)
{
	var ctrl = document.getElementById(ctrlid);
	var aexpand = document.getElementById(expand);
	var acollapse = document.getElementById(collapse);
	if (ctrl.style.display == "none")
	{
	    ctrl.style.display = "";
	    
	    aexpand.style.display = ""
	    acollapse.style.display = "none";
	}
	else
	{
		ctrl.style.display = "none";
		aexpand.style.display = "none"
	    acollapse.style.display = "";
	}
}



