vLayout="Yes"
// This is currently being done through body parameter passing
var layoutAttribute= new Array()
function getLayoutAttribute(vAttribute)
{
return(layoutAttribute[vAttribute])
}
function GetCurrentInfo()
{
	var vCurrentInfo= new theCurrent()
	document.write(vCurrentInfo.ID)
}
function theCurrent()
{
     var f=document.forms[0];
	this.ID=vDocument["DocumentId"]
	this.Category=vDocument["Category"]
	this.Subject=vDocument["Subject"]	
	this.Type=vDocument["Type"]		
}
function getCustomStyleNames()
{
var vCustomStyleName = new Array();
vCustomStyleName ['CustomText'] = 'Test';
vCustomStyleName ['Custom1Text'] = 'Primary';
vCustomStyleName ['Custom2Text'] = '';
vCustomStyleName ['Custom3Text'] = '';
vCustomStyleName ['Custom4Text'] = '';
vCustomStyleName ['Custom5Text'] = '';
vCustomStyleName ['Custom6Text'] = '';
return vCustomStyleName
}
function getTableStyleNames()
{
var vTableStyleName = new Array();
vTableStyleName ['CustomTable1'] = '';
vTableStyleName ['CustomTable2'] = '';
vTableStyleName ['CustomRow1'] = '';
vTableStyleName ['CustomRow2'] = '';
vTableStyleName ['CustomCell1'] = '';
vTableStyleName ['CustomCell2'] = '';
return vTableStyleName
}
function clearIt(obj) {
  eval("document.all." + obj + ".style.display='none'");
}
function printFriendlyX()
{
document.getElementById('horizontal').style.height='10px';
document.getElementById('horizontalInner').style.height='10px';
//document.getElementById('horizontal').style.background='#efefef';
document.getElementById('horizontalInner').style.visibility='hidden';
document.getElementById('horizontal').style.visibility='hidden';
document.getElementById('vertical').style.visibility='hidden';
document.getElementById('body').style.left = '10px';
document.getElementById('banner').style.left = '35px';
//document.getElementById('page').style.width= '500px';
//document.getElementById('body').position='absolute';
document.getElementById('content').style.top = '40px';

//document.getElementById('printFriendlyUndo').style.visibility='visible';

}
function printFriendlyUndoX()
{

document.getElementById('horizontal').style.visibility='visible';

document.getElementById('body').style.left = '183px';
document.getElementById('body').style.top = '174px';

document.getElementById('banner').style.left = '183px';
document.getElementById('page').style.width= '100%';

document.getElementById('printFriendlyUndo').style.visibility='hidden';

}

function removeChar(string,vChar) {
	var tstring = "";
	string = '' + string;
	splitstring = string.split(vChar);
	for(i = 0; i < splitstring.length; i++)
	tstring += splitstring[i];
	return tstring;
}
function openRequestedEmployer()
   
{
var vKey=removeChar(vUsers [0]," ");
vKey=removeChar(vKey,"-");
vKey=removeChar(vKey,".");


vKey = "/FlexAccount.nsf/SSOLoginAgent?openagent&user_name=" + escape(vKey)

//var WindowObjectReference2 =window.open(vKey,"replace");

window.location.replace(vKey);

}

function openFrameRequestedEmployer()
   
{
var vKey=removeChar(vUsers [0]," ");
vKey=removeChar(vKey,"-");
vKey=removeChar(vKey,".");


vKey = "/FlexAccount.nsf/SSOLoginAgent?openagent&user_name=" + escape(vKey)

location.href=vKey;

}




function openRequestedEmployerX()
   
{
var vKey=removeChar(vUsers [0]," ");
vKey=removeChar(vKey,"-");
vKey=removeChar(vKey,".");
//if (vKey=="Rudya Rudya 9999")
//     {vKey="RudyaRudya9999"}

vKey = "/FlexAccount.nsf/SSOLoginAgent?openagent&user_name=" + escape(vKey)

WindowObjectReference1 = window.open("/FlexAccount.nsf/PleaseWait?readform","DescriptiveWindowName","resizable=yes,scrollbars=yes,status=yes,titlebar=0,height=500,width=900,top=100px,left=100px");

WindowObjectReference2 = window.open(vKey,"DescriptiveWindowName","resizable=yes,scrollbars=yes,status=yes,titlebar=0,height=500,width=900,top=100px,left=100px");

}
function openAcordia()
{
vAddress = "/Acordia.nsf/get/Participants?opendocument&RestrictToCategory=A"
WindowObjectReference = window.open(vAddress,"DescriptiveWindowName","resizable=yes,scrollbars=yes,status=yes,titlebar=0,height=550,width=950,top=100px,left=100px");

}
function GetCustomerPortal()
{
var vCustomer="unknown";
for ( rown = 0; rown < vUsers.length; rown++) 
	{
	if(right(vUsers[rown],5)=="Admin")
		{vCustomer=vUsers[rown]
		var vLength=vCustomer.length
		vCustomer=left(vCustomer,vLength-6)
		break;
		}	
	}

var vAddress='/Apps.nsf/GetCustomer/' + vCustomer

if(vAddress=='unknown')
    {alert('Customer portal is not available.  Contact HR Simplified to set up your portal')}
else
    {window.location=vAddress}
}
function loadLayoutMenu(vActionList)
{
var vActionTemp= new theActionList()
vActionTemp=vActionList
/*
<h2>No documents found</h2>
*/
//alert('xxx')
return vActionTemp
}
