// =========================================Editor Only ========================
TikEdit={
"Layup.Drawer.TikCr8":{
	"UID":"0000003","NaME":"TikCr8","Header":"","Footer":"","Qty":8,
	"Charge":{"amntO":"0.0000","amntC":"0.0000","amntI":"0.0000","Owner":"123456","Auth":"789012","Inst":"3456789"},
	"MenuVisual":"tab","MenuType":"gap","MenuPlace":"below","MenuDisplay":"inline-block", 		
	"List":[              							//["Order","Item","Value","Call","Indent","Comment"],
				[1,"TikCr8Disp","Display","",0,"Tools to create Display items, Drawer, Folder and sheet"],
				[2,"TikCr8Description","Description","",0,"Tools to create/modify the Descriptors"],
				[3,"TikCr8Record","Record","",0,"Tools to create a new Record format"],
				[4,"TikCr8Form","Form","",0,"Tools to create a new Form"],	
				[5,"TikCr8Page","Page","",0,"Tools to create a Page"],
				[6,"TikCr8WIBL","WIBL","",0,"Tools to create a WIBL"],
				[7,"TikCr8Adm","Admin","",0,"Tools to modify Administrative services"],
				[8,"CR8Sign","SignOff","",0,"Final sign off "]]
},
"Layup.Folder.TikCr8Disp":{
	"UID":"0000003","NaME":"TikCr8Disp","Header":"","Footer":"","Qty":0, 			
			"Charge":{"amntO":"0.0000","amntC":"0.0000","amntI":"0.0000","Owner":"","Auth":"","Inst":""},
			"MenuVisual":"none","MenuType":"show","MenuPlace":"below","MenuDisplay":"block", 		
			"List":[[1,"DevDisplay","Value","Call",0,"Comment"]]
},
"Layup.Folder.TikCr8Description":{
	"UID":"0000008","NaME":"TikCr8Description","Header":"","Footer":"","Qty":0, 			
			"Charge":{"amntO":"0.0000","amntC":"0.0000","amntI":"0.0000","Owner":"","Auth":"","Inst":""},
			"MenuVisual":"none","MenuType":"show","MenuPlace":"below","MenuDisplay":"block", 		
			"List":[[1,"DevDescription","Value","Call",0,"Comment"]]
},
"Layup.Folder.TikCr8Record":{
	"UID":"0000008","NaME":"TikCr8Record","Header":"","Footer":"","Qty":0, 			
			"Charge":{"amntO":"0.0000","amntC":"0.0000","amntI":"0.0000","Owner":"","Auth":"","Inst":""},
			"MenuVisual":"none","MenuType":"show","MenuPlace":"below","MenuDisplay":"block", 		
			"List":[[1,"DevRecord","Value","Call",0,"Comment"]]
},
"Layup.Folder.TikCr8Form":{
	"UID":"0000006","NaME":"TikCr8Form","Header":"","Footer":"","Qty":0, 			
			"Charge":{"amntO":"0.0000","amntC":"0.0000","amntI":"0.0000","Owner":"","Auth":"","Inst":""},
			"MenuVisual":"none","MenuType":"show","MenuPlace":"below","MenuDisplay":"block", 		
			"List":[[1,"DevForm","Value","Call",0,"Comment"]]
},
"Layup.Folder.TikCr8Page":{
	"UID":"0000004","NaME":"TikCr8Page","Header":"","Footer":"","Qty":0, 			
			"Charge":{"amntO":"0.0000","amntC":"0.0000","amntI":"0.0000","Owner":"","Auth":"","Inst":""},
			"MenuVisual":"none","MenuType":"show","MenuPlace":"below","MenuDisplay":"block", 		
			"List":[[1,"DevPage","Value","Call",0,"Comment"]]
},
"Layup.Folder.TikCr8WIBL":{
	"UID":"0000005","NaME":"TikCr8WIBL","Header":"","Footer":"","Qty":0, 			
			"Charge":{"amntO":"0.0000","amntC":"0.0000","amntI":"0.0000","Owner":"","Auth":"","Inst":""},
			"MenuVisual":"none","MenuType":"show","MenuPlace":"below","MenuDisplay":"block", 		
			"List":[[1,"DevWIBL","Value","Call",0,"Comment"]]
},
"Layup.Folder.TikCr8Adm":{
	"UID":"0000007","NaME":"TikCr8Adm","Header":"","Footer":"","Qty":6, 			
			"Charge":{"amntO":"0.0000","amntC":"0.0000","amntI":"0.0000","Owner":"","Auth":"","Inst":""},
			"MenuVisual":"tab","MenuType":"gap","MenuPlace":"below","MenuDisplay":"block", 		
			"List":[
				[1,"AdmAbbr","Abbreviations","",0,"Comment"],
				[2,"AdmLink","Linking-Info","",0,"Comment"],
				[3,"AdmPers","Personalities","",0,"Comment"],
				[4,"AdmTik_","Tik_","",0,"Comment"],
				[5,"AdmBldr","Builder","",0,"Comment"],
				[6,"AdmAuto","AutoConfig","",0,"Comment"]]
},
"Layup.Sheet.DevDisplay":{"UID":"0000002", "NaME":"DevDisplay","Header":"","Footer":"","Qty":0, 			
	"Charge":{"amntO":"","amntC":"","amntI":"","Owner":"","Auth":"","Inst":""},
		"MenuVisual":"none","MenuType":"show","MenuPlace":"below","MenuDisplay":"block", 		
		"List":[									//["Order","Item","Value","","Indent","Comment","Content","Serv"]
			["1","PgCr8Disp","Standard","","Indent","Set-up Drawer,Folder,Sheet for display","Content-why?","Page"]]
},
"Layup.Sheet.DevDescription":{"UID":"0000002", "NaME":"DevDescription","Header":"","Footer":"","Qty":0, 			
	"Charge":{"amntO":"","amntC":"","amntI":"","Owner":"","Auth":"","Inst":""},
		"MenuVisual":"none","MenuType":"show","MenuPlace":"below","MenuDisplay":"block", 		
		"List":[									//["Order","Item","Value","","Indent","Comment","Content","Serv"]
			["1","PgCr8Description","Standard","","Indent","Comment goes here","Content-why?","Page"]]
},
"Layup.Sheet.DevRecord":{"UID":"0000002", "NaME":"DevRecord","Header":"","Footer":"","Qty":0, 			
	"Charge":{"amntO":"","amntC":"","amntI":"","Owner":"","Auth":"","Inst":""},
		"MenuVisual":"none","MenuType":"show","MenuPlace":"below","MenuDisplay":"block", 		
		"List":[									//["Order","Item","Value","","Indent","Comment","Content","Serv"]
			["1","PgCr8Record","Standard","","Indent","Comment goes here","Content-why?","Page"]]
},
"Layup.Sheet.DevForm":{"UID":"0000008", "NaME":"DevForm","Header":"","Footer":"","Qty":0, 			
	"Charge":{"amntO":"","amntC":"","amntI":"","Owner":"","Auth":"","Inst":""},
		"MenuVisual":"none","MenuType":"show","MenuPlace":"below","MenuDisplay":"block",  		
		"List":[									//["Order","Item","Value","","Indent","Comment","Content","Serv"]
			["1","PgCr8Form","FormX","","Indent","Comment","Content","Page"]]
},
"Layup.Sheet.DevPage":{"UID":"0000002", "NaME":"CR8Page","Header":"","Footer":"","Qty":0, 			
	"Charge":{"amntO":"","amntC":"","amntI":"","Owner":"","Auth":"","Inst":""},
		"MenuVisual":"none","MenuType":"show","MenuPlace":"below","MenuDisplay":"block", 		
		"List":[									//["Order","Item","Value","","Indent","Comment","Content","Serv"]
			["1","PgCr8Page","Standard","","Indent","Comment goes here","Content-why?","Page"]]
},
"Layup.Sheet.DevWIBL":{"UID":"0000002", "NaME":"DevWIBL","Header":"","Footer":"","Qty":0, 			
	"Charge":{"amntO":"","amntC":"","amntI":"","Owner":"","Auth":"","Inst":""},
		"MenuVisual":"none","MenuType":"show","MenuPlace":"below","MenuDisplay":"block", 		
		"List":[									//["Order","Item","Value","","Indent","Comment","Content","Serv"]
			["1","PgCr8WIBL","Standard","","Indent","Comment goes here","Content-why?","Page"]]
},
"Layup.Sheet.DevHelp":{"UID":"0000003", "NaME":"DevHelp","Header":"","Footer":"","Qty":0, 			
	"Charge":{"amntO":"","amntC":"","amntI":"","Owner":"","Auth":"","Inst":""},
		"MenuVisual":"none","MenuType":"show","MenuPlace":"below","MenuDisplay":"block", 		
		"List":[									//["Order","Item","Value","","Indent","Comment","Content","Serv"]
			["1","PgCr8Hlp","Form1-blank","","Indent","Comment","Content","Page"]]
},		
"Layup.Sheet.AdmAbbr":{"UID":"0000002", "NaME":"AdmAbbr","Header":"","Footer":"","Qty":0, 			
	"Charge":{"amntO":"","amntC":"","amntI":"","Owner":"","Auth":"","Inst":""},
		"MenuVisual":"none","MenuType":"opengap","MenuPlace":"below","MenuDisplay":"block", 		
		"List":[									//["Order","Item","Value","","Indent","Comment","Content","Serv"]
			["1","PgCr8Abbr","Standard","","Indent","Comment goes here","Content-why?","Page"]]
},
"Layup.Sheet.AdmLink":{"UID":"0000002", "NaME":"AdmLink","Header":"","Footer":"","Qty":0, 			
	"Charge":{"amntO":"","amntC":"","amntI":"","Owner":"","Auth":"","Inst":""},
		"MenuVisual":"none","MenuType":"opengap","MenuPlace":"below","MenuDisplay":"block", 		
		"List":[									//["Order","Item","Value","","Indent","Comment","Content","Serv"]
			["1","PgCr8Link","Standard","","Indent","Comment goes here","Content-why?","Page"]]
},
"Layup.Sheet.AdmPers":{"UID":"0000002", "NaME":"AdmPers","Header":"","Footer":"","Qty":0, 			
	"Charge":{"amntO":"","amntC":"","amntI":"","Owner":"","Auth":"","Inst":""},
		"MenuVisual":"none","MenuType":"opengap","MenuPlace":"below","MenuDisplay":"block", 		
		"List":[									//["Order","Item","Value","","Indent","Comment","Content","Serv"]
			["1","PgCr8Pers","Standard","","Indent","Comment goes here","Content-why?","Page"]]
},				
"Layup.Sheet.AdmTik_":{"UID":"0000002", "NaME":"AdmTik_","Header":"","Footer":"","Qty":0, 			
	"Charge":{"amntO":"","amntC":"","amntI":"","Owner":"","Auth":"","Inst":""},
		"MenuVisual":"none","MenuType":"opengap","MenuPlace":"below","MenuDisplay":"block", 		
		"List":[									//["Order","Item","Value","","Indent","Comment","Content","Serv"]
			["1","PgCr8Tik_","Standard","","Indent","Comment goes here","Content-why?","Page"]]
},
"Layup.Sheet.AdmBldr":{"UID":"0000002", "NaME":"AdmBldr","Header":"","Footer":"","Qty":0, 			
	"Charge":{"amntO":"","amntC":"","amntI":"","Owner":"","Auth":"","Inst":""},
		"MenuVisual":"none","MenuType":"show","MenuPlace":"below","MenuDisplay":"block", 		
		"List":[									//["Order","Item","Value","","Indent","Comment","Content","Serv"]
			["1","PgCr8Bldr","Standard","","Indent","Comment goes here","Content-why?","Page"]]
},
"Layup.Sheet.AdmAuto":{"UID":"0000002", "NaME":"AdmAuto","Header":"","Footer":"","Qty":0, 			
	"Charge":{"amntO":"","amntC":"","amntI":"","Owner":"","Auth":"","Inst":""},
		"MenuVisual":"none","MenuType":"show","MenuPlace":"below","MenuDisplay":"block", 		
		"List":[									//["Order","Item","Value","","Indent","Comment","Content","Serv"]
			["1","PgCr8Auto","Standard","","Indent","Comment goes here","Content-why?","Page"]]
},				
				


"Layup.Page.PgCr8Disp":{"UID":"0000009", "NaME":"PgCr8Disp", "VName":"", "Header":"", "Footer":"","RecDesc":"Drawer,Folder,Sheet", "Nid":"L",
			"List":[],	// ["1","CR8former","Cr8ora2","","Indent","Comment","Content","Form"]
"Content":"<spanShtHead id='PgCr8Disp-Drawer-H' style='background:white; height:24px; max-height:130px; width:99%; border:1px solid black; display:block; overflow:auto;padding:3px;' ><spanSht id='PgCr8Disp-Drawer-Sel' style='display:inline-block;border-right:1px solid black;'> <SpanSpaceS>Drawer</SpanSpaceS> <ax id='PgCr8Disp-Drawer-Save' class='formButt' onclick='Tik.Core.Prog.PutEdit(this);AddIn.PgCr8Disp.DisplayData(this);'>Save</ax> &nbsp; <SpanSpace> <select id='PgCr8Disp-Drawer-SelDrawer' onChange='AddIn.PgCr8Disp.DisplayData(this)' style='padding:0px;border:0px;margin:0px;'> <option value='None' >None</option></select>  &nbsp; <spanSpace id='PgCr8Disp-Drawer-Dat' > </SpanSpace></spanSht><spanSht id='PgCr8Disp-Drawer-Itm' style='display:inline-block;'> </spanSht></spanShtHead> <spanShtMain id='PgCr8Disp-Drawer-D' style='display:none;'><spanShtLeft style='display:inline-block'> <spanShtL class='DevForm'> Drawer Name: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' type='input' id='PgCr8Disp-Drawer-NaME' title='The name of the Drawer, Suggest you add the first three letters of each Drawer from the Drawers descriptor/name' length='8'><br> <spanShtL class='DevForm'> &nbsp; Qty: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' type='input' id='PgCr8Disp-Drawer-Qty' title='The qty of tabs to be displayed (not neccesarily the amount available!!)' size='4'> <br> <spanShtL class='DevForm'> &nbsp; UID: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' type='input' id='PgCr8Disp-Drawer-UID' title='The UID number of this Drawer, will change automatically!' size='8'> <br><spanShtL class='DevForm'> &nbsp; Header:</spanShtL> <textarea onblur='Tik.Core.Prog.PutEdit(this)' id='PgCr8Disp-Drawer-Header' rows='2' cols='29' title='The Header that is to appear'></textarea><br><spanShtL class='DevForm'> &nbsp; Footer:</spanShtL> <textarea onblur='Tik.Core.Prog.PutEdit(this)' id='PgCr8Disp-Drawer-Footer' rows='2' cols='29' title='The Footer that is to appear'></textarea><br><spanShtL class='DevForm'> &nbsp; Comment:</spanShtL> <textarea onblur='Tik.Core.Prog.PutEdit(this)' id='PgCr8Disp-Drawer-Comment' rows='2' cols='29' title='The Commentary that will appear in the title for this tab'></textarea><hr><ax id='PgCr8Disp-Drawer-AmtH' style='cursor:hand;color:green;' onclick='AddIn.PgCr8Disp.DispCharge(this)' title='Click here to see the amounts being charged'>     Charge-Amounts:</ax><br><spanShtH id='PgCr8Disp-Drawer-AmtHd' style='display:none;'><spanShtL class='DevForm'>&nbsp; Owner: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' type='input' id='PgCr8Disp-Drawer-amntO' title='The amount the owner of the pages will receive from TikIt.' size='8' value='0.000000'> <br><spanShtL class='DevForm'>&nbsp; Instigator: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' type='input' id='PgCr8Disp-Drawer-amntI' title='The amount the instigator of the pages will receive from TikIt.' size='8' value='0.000000'><br> <spanShtL class='DevForm'> &nbsp; Charged: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' type='input' id='PgCr8Disp-Drawer-amntC' title='The amount the Consumer of this page will be charged by TikIt.' size='8' value='0.000000'> <br><spanShtL class='DevForm'> &nbsp; Owner: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' type='input' id='PgCr8Disp-Drawer-Owner' title='The UID of the Owner of this page.' size='20' value=''> <br><spanShtL class='DevForm'> &nbsp; Auhority: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' type='input' id='PgCr8Disp-Drawer-Auth' title='The UID of the entities REP number that is allowed to access and change the details of this page.' size='20' value=''> <br><input onblur='Tik.Core.Prog.PutEdit(this)' type='hidden' id='PgCr8Disp-Drawer-Inst'></spanShtH><hr>Menu:<br><select onblur='Tik.Core.Prog.PutEdit(this)' id='PgCr8Disp-Drawer-MenuVisual' Tik='Tik_MenuVisual' > </select> <select onblur='Tik.Core.Prog.PutEdit(this)' id='PgCr8Disp-Drawer-MenuType' Tik='Tik_MenuType' > </select> <select onblur='Tik.Core.Prog.PutEdit(this)' id='PgCr8Disp-Drawer-MenuPlace' Tik='Tik_MenuPlace' > </select> <select onblur='Tik.Core.Prog.PutEdit(this)' id='PgCr8Disp-Drawer-MenuDisplay' Tik='Tik_MenuDisplay'> </select><br></spanShtLeft> <spanShtRight style='display:inline-block'><spanShtGrid id='PgCr8Disp-Drawer-ContGridD'>  XXXXXXXXX No Data XXXXXXXXXXX</spanShtGrid><spanShtButts style=''><fieldset><legend>Include Pre-Built</legend><spanSht style='display:inline-block;'><ax id='PgCr8Disp-Folder-Add' class='formButt' onclick='AddIn.PgCr8Disp.DisplayData(this)'>Add Existing</ax> &nbsp; </spanSht><spanSpace id='PgCr8Disp-Folder-GDat' style='display:inline-block;'><select id='PgCr8Disp-Folder-SelFolder' onChange=''> <option value='None' >None</option></select></spanSpace>  </fieldset></spanShtButts></spanShtRight> <hr style='border:1px solid black;'> </spanShtMain><spanShtHead id='PgCr8Disp-Folder-H' style='background:white; height:24px; max-height:30px; width:99%; border:1px solid black; display:none; overflow:auto;padding:3px;'><spanSht id='PgCr8Disp-Folder-Sel' style='display:inline-block;border-right:1px solid black;'> <SpanSpaceS>Folder</SpanSpaceS> <ax id='PgCr8Disp-Folder-Save' class='formButt' onclick='Tik.Core.Prog.PutEdit(this);AddIn.PgCr8Disp.DisplayData(this);'>Save</ax> &nbsp; <spanSpace id='PgCr8Disp-Folder-Dat' ><spanSel id='PgCr8Disp-Folder-DisFolder'>Fn</spanSel> </spanSpace></spanSht><spanSht id='PgCr8Disp-Folder-Itm' style='display:inline-block;'></spanSht></spanShtHead><spanShtMain id='PgCr8Disp-Folder-D' style='display:none;'><spanShtLeft style='display:inline-block'> <spanShtL class='DevForm'> Folder Name: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' type='input' id='PgCr8Disp-Folder-NaME' title='The name of the Folder, Suggest you add the first three letters of each Folder from the Folders descriptor/name' length='8'><br><spanShtL class='DevForm'> &nbsp; Qty: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' type='input' id='PgCr8Disp-Folder-Qty' title='The qty of tabs to be displayed (not neccesarily the amount available!!)' size='4'> <br> <spanShtL class='DevForm'>  &nbsp; UID: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' type='input' id='PgCr8Disp-Folder-UID' title='The UID number of this Folder, will change automatically!' size='8'> <br><spanShtL class='DevForm'> &nbsp; Header:</spanShtL> <textarea onblur='Tik.Core.Prog.PutEdit(this)' id='PgCr8Disp-Folder-Header' rows='2' cols='29' title='The Header that is to appear'></textarea><br><spanShtL class='DevForm'> &nbsp; Footer:</spanShtL> <textarea onblur='Tik.Core.Prog.PutEdit(this)' id='PgCr8Disp-Folder-Footer' rows='2' cols='29' title='The Footer that is to appear'></textarea><hr> <ax id='PgCr8Disp-Folder-AmtH' style='cursor:hand;color:green;' onclick='AddIn.PgCr8Disp.DispCharge(this)' title='Click here to see the amounts being charged'>     Charge-Amounts:</ax><br><spanShtH id='PgCr8Disp-Folder-AmtHd' style='display:none;'><spanShtL class='DevForm'> &nbsp; Owner: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' type='input' id='PgCr8Disp-Folder-amntO' title='The amount the owner of the pages will receive from TikIt.' size='8' value='0.000000'> <br><spanShtL class='DevForm'> &nbsp; Instigator: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' type='input' id='PgCr8Disp-Folder-amntI' title='The amount the instigator of the pages will receive from TikIt.' size='8' value='0.000000'><br> <spanShtL class='DevForm'> &nbsp; Charged: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' type='input' id='PgCr8Disp-Folder-amntC' title='The amount the Consumer of this page will be charged by TikIt.' size='8' value='0.000000'> <br><spanShtL class='DevForm'> &nbsp;  Owner: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' type='input' id='PgCr8Disp-Folder-Owner' title='The UID of the Owner of this page.' size='20' value=''> <br><spanShtL class='DevForm'> &nbsp; Auhority: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' type='input' id='PgCr8Disp-Folder-Auth' title='The UID of the entities REP number that is allowed to access and change the details of this page.' size='20' value=''> <br><input onblur='Tik.Core.Prog.PutEdit(this)' type='hidden' id='PgCr8Disp-Folder-Inst'></spanShtH><hr>Menu:<br><select onblur='Tik.Core.Prog.PutEdit(this)' id='PgCr8Disp-Folder-MenuVisual' Tik='Tik_MenuVisual' > </select> <select onblur='Tik.Core.Prog.PutEdit(this)' id='PgCr8Disp-Folder-MenuType' Tik='Tik_MenuType' > </select> <select onblur='Tik.Core.Prog.PutEdit(this)' id='PgCr8Disp-Folder-MenuPlace' Tik='Tik_MenuPlace' >  </select> <select onblur='Tik.Core.Prog.PutEdit(this)' id='PgCr8Disp-Folder-MenuDisplay' Tik='Tik_MenuDisplay' ></select><br> </spanShtLeft> <spanShtRight style='display:inline-block'><spanShtGrid id='PgCr8Disp-Folder-ContGridD'>  XXXXXXXXX No Data XXXXXXXXXXX</spanShtGrid><spanShtButts style=''><fieldset><legend>Include Pre-Built</legend><spanSht style='display:inline-block;'><ax id='PgCr8Disp-Sheet-Add' class='formButt' onclick='AddIn.PgCr8Disp.DisplayData(this)'>Add</ax> &nbsp; </spanSht><spanSpace id='PgCr8Disp-Sheet-GDat' style='display:inline-block;'><select id='PgCr8Disp-Sheet-SelSheet' onChange=''> <option value='None' >None</option></select></spanSpace>  </fieldset></spanShtButts></spanShtRight><br><hr style='border:1px solid black;'> </spanShtMain><spanShtHead id='PgCr8Disp-Sheet-H' style='background:white; height:24px; max-height:30px; width:99%; border:1px solid black; display:none; overflow:auto;padding:3px;'> <spanSht id='PgCr8Disp-Sheet-Sel' style='display:inline-block;border-right:1px solid black;'> <SpanSpaceS>Sheet</SpanSpaceS> <ax id='PgCr8Disp-Sheet-Save' class='formButt' onclick='Tik.Core.Prog.PutEdit(this);AddIn.PgCr8Disp.DisplayData(this);'>Save</ax> &nbsp; <spanSpace id='PgCr8Disp-Sheet-Dat' style='display:inline-block;'><spanSel id='PgCr8Disp-Sheet-DisSheet'></spanSel></spanSpace></spanSht> <spanSht id='PgCr8Disp-Sheet-Itm' style='display:inline-block;'></spanSht> </spanShtHead><spanShtMain id='PgCr8Disp-Sheet-D' style='display:none;'><spanShtLeft style='display:inline-block'> <spanShtL class='DevForm'> Sheet Name: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' type='input' id='PgCr8Disp-Sheet-NaME' title='The name of the Sheet, Suggest you add the first three letters of each Sheet from the Sheets descriptor/name' length='8'><br><spanShtL class='DevForm'> &nbsp; Qty: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' type='input' id='PgCr8Disp-Sheet-Qty' title='The qty of tabs to be displayed (not neccesarily the amount available!!)' size='4'> <br> <spanShtL class='DevForm'>  &nbsp; UID: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' type='input' id='PgCr8Disp-Sheet-UID' title='The UID number of this Sheet, will change automatically!' size='8'> <br><spanShtL class='DevForm'> &nbsp; Header:</spanShtL> <textarea onblur='Tik.Core.Prog.PutEdit(this)' id='PgCr8Disp-Sheet-Header' rows='2' cols='29' title='The Header that is to appear'></textarea><br><spanShtL class='DevForm'> &nbsp; Footer:</spanShtL> <textarea onblur='Tik.Core.Prog.PutEdit(this)' id='PgCr8Disp-Sheet-Footer' rows='2' cols='29' title='The Footer that is to appear'></textarea><hr> <ax id='PgCr8Disp-Sheet-AmtH' style='cursor:hand;color:green;' onclick='AddIn.PgCr8Disp.DispCharge(this)' title='Click here to see the amounts being charged'>     Charge-Amounts:</ax><br><spanShtH id='PgCr8Disp-Sheet-AmtHd' style='display:none;'><spanShtL class='DevForm'> &nbsp; Owner: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' type='input' id='PgCr8Disp-Sheet-amntO' title='The amount the owner of the pages will receive from TikIt.' size='8' value='0.000000'> <br><spanShtL class='DevForm'> &nbsp; Instigator: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' type='input' id='PgCr8Disp-Sheet-amntI' title='The amount the instigator of the pages will receive from TikIt.' size='8' value='0.000000'><br> <spanShtL class='DevForm'> &nbsp; Charged: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' type='input' id='PgCr8Disp-Sheet-amntC' title='The amount the Consumer of this page will be charged by TikIt.' size='8' value='0.000000'> <br><spanShtL class='DevForm'> &nbsp;  Owner: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' type='input' id='PgCr8Disp-Sheet-Owner' title='The UID of the Owner of this page.' size='20' value=''> <br><spanShtL class='DevForm'> &nbsp; Auhority: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' type='input' id='PgCr8Disp-Sheet-Auth' title='The UID of the entities REP number that is allowed to access and change the details of this page.' size='20' value=''> <br><input onblur='Tik.Core.Prog.PutEdit(this)' type='hidden' id='PgCr8Disp-Sheet-Inst'></spanShtH><hr>Menu:<br><select onblur='Tik.Core.Prog.PutEdit(this)' id='PgCr8Disp-Sheet-MenuVisual' Tik='Tik_MenuVisual' ></select> <select onblur='Tik.Core.Prog.PutEdit(this)' id='PgCr8Disp-Sheet-MenuType' Tik='Tik_MenuType' ></select> <select onblur='Tik.Core.Prog.PutEdit(this)' id='PgCr8Disp-Sheet-MenuPlace' Tik='Tik_MenuPlace' ></select> <select onblur='Tik.Core.Prog.PutEdit(this)' id='PgCr8Disp-Sheet-MenuDisplay' Tik='Tik_MenuDisplay' ></select><br></spanShtLeft> <spanShtRight style='display:inline-block'><spanShtGrid id='PgCr8Disp-Sheet-ContGridD'>  XXXXXXXXX No Data XXXXXXXXXXX</spanShtGrid><spanShtButts style=''><fieldset><legend>Include Pre-Built</legend><ax id='PgCr8Disp-Page-Add' class='formButt' onclick='AddIn.PgCr8Disp.DisplayData(this);'>Add Page</ax> &nbsp;<select id='PgCr8Disp-Page-SelPage' ><option value='None' >None</option></select><br><ax id='PgCr8Disp-WIBL-Add' class='formButt' onclick='AddIn.PgCr8Disp.DisplayData(this);'>Add WIBL</ax> &nbsp;<select id='PgCr8Disp-WIBL-SelWIBL' ><option value='None' >None</option></select><br><ax id='PgCr8Disp-Form-Add' class='formButt' onclick='AddIn.PgCr8Disp.DisplayData(this);'>Add Form</ax> &nbsp;<select id='PgCr8Disp-Form-SelForm' ><option value='None' >None</option></select><br></fieldset></spanShtButts></spanShtRight>  <hr style='border:1px solid black;'></spanShtMain> </spanSht><spanSht id='PgCr8Disp-Drawer-rsoverflow'></spanSht> <spanSht id='PgCr8Disp-Folder-rsoverflow'></spanSht> <spanSht id='PgCr8Disp-Sheet-rsoverflow'></spanSht>",
//in here goes check for user number matching authorised person for modifying this set of pages!
	"RunIt":{
		DisplaySheet:function DispSht(org){DisplaySheet(org)},
		DispCharge:function DispCharge(org){
			if(o(org.id+'d').style.display == 'block'){
				Th(org.id+'d');}else{Ts(org.id+'d');
			}
		},
		runOnLoad:function(){
			var whst = AddIn.PgCr8Disp.whereItIs.split('-');
			var whereto = o(whst[0]+'-PgCr8Disp-Drawer-SelDrawer') ;
			whereto.options.length=1;
			for(var labl in Tik.Core.Layup.Drawer){
				var z=document.createElement('option');	
				z.text = labl;	
				z.value = labl; 
				whereto.add(z,null);
			} 
			SelSort(o(whst[0]+'-PgCr8Disp-Drawer-SelDrawer')); 
		}}
},
"Layup.Page.PgCr8Description":{"UID":"00000100", "NaME":"PgCr8Description", "VName":"", "Header":"", "Footer":"", "RecDesc":"Description", "Nid":"S",
	"List":[],	// ["1","CR8former","Cr8ora2","","Indent","Comment","Content","Form"]
	"Content":"<spanSht id='Desc-H' style='background:white; height:25px; max-height:30px; width:99%; border:1px solid black; display:block; overflow:auto;padding:3px;'><spanSht id='Sel' style='display:table-cell;border-right:1px solid black;'> &nbsp; Description &nbsp; <ax id='Save' class='formButt' onclick='Tik.Core.Prog.PutEdit(this)'>Save</ax> &nbsp; <select id='SelDescription' onChange='AddIn.PgCr8Description.DisplayDescription(this)'><option value='None'>None</option></select> &nbsp; </spanSht><spanSht id='Dat' style='display:table-cell;'>&nbsp; &nbsp;  <ax id='Cr8New' class='formButt' onclick='AddIn.PgCr8Description.DisplayDescription(this)' >CreateNew</ax> &nbsp; <input type='Text' size='12' id='Cr8NewEntry'>&nbsp; <span style='border-right:1px solid black;border-left:1px solid black;padding:5px;'> &nbsp;  &nbsp; </span> <spanSht id='Itm'> &nbsp;</spanSht></spanSht></spanSht> <spanSht id='FieldsGrid'></spanSht><spanSht id='Desc-D' style='display:block;'> <spanShtLeft id='DescLeft' style='display:inline-block'> </spanShtLeft><hr><spanShtBase style='display:table;'><spanShtL class='DevForm'> &nbsp; <ax id='AddNew' class='formButt' onclick='AddIn.PgCr8Description.DisplayDescription(this)'>Add-Field</ax></spanShtL> &nbsp;<input id='AddNewD' size='12'> </spanShtBase></spanShtH> <hr><spanSht id='rsoverflow'></spanSht>",
//in here goes check for user number matching authorised person for modifying this set of pages!
		"RunIt":{runOnLoad:function runOnLoad(){
	var str = [];
	for(var labl in Tik.Core.Layup.Descriptor){
		var z=document.createElement('option');	
		z.text = labl;	
		z.value = labl;
		o(AddIn.PgCr8Description.whereItIs+'SelDescription').add(z,null);
	}
	SelSort(o(AddIn.PgCr8Description.whereItIs+'SelDescription'));}}
},
"Layup.Page.PgCr8Record":{"UID":"00000100", "NaME":"PgCr8Record", "VName":"", "Header":"", "Footer":"", "RecDesc":"Record", "Nid":"S",
	"List":[],	// ["1","CR8former","Cr8ora2","","Indent","Comment","Content","Form"]
	"Content":"<spanSht id='Record-H' style='background:white; height:24px; max-height:30px; width:99%; border:1px solid black; display:block; overflow:auto;padding:3px;'><spanSht id='Sel' style='display:table-cell;border-right:1px solid black;'> &nbsp; Record &nbsp; <ax id='Save' class='formButt' onclick='Tik.Core.Prog.PutEdit(this)'>Save</ax> &nbsp; <select id='SelRecord' onChange='AddIn.PgCr8Record.DisplayRecord(this)'><option value='None'>None</option></select> &nbsp; </spanSht><spanSht id='Dat' style='display:table-cell;'></spanSht> <spanSht id='Itm'></spanSht></spanSht> <spanSht id='Record-D' style='display:block;'> <spanShtLeft style='display:inline-block'> <spanSht style='display:table-cell;'> <spanShtL class='DevForm'> &nbsp; UID:</spanShtL> </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' id='UID' disabled='disabled' size='20'  title='UID'  value='UID'  > <br><spanShtL class='DevForm'> &nbsp; Name: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' id='NaME' disabled='disabled' size='15'  title='Name'  value='Name'  > <br><spanShtL class='DevForm'> &nbsp; Version: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' id='Version' size='20'  title='Version'  value='Version'  > <br><spanShtL class='DevForm'> &nbsp; Upline: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' id='Upline'  size='8'  title='Upline'  value='Upline'  > <br><spanShtL class='DevForm'> &nbsp; SecNum: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' id='SecNum'  size='8'  title='SecNum'  value='SecNum'  > <br><spanShtL class='DevForm'> &nbsp; DBase: </spanShtL> <select onblur='Tik.Core.Prog.PutEdit(this)' id='DBase' Tik='Tik_DBase' title='DBase' ><option value='None'>None</option> </select><br><spanShtL class='DevForm'> &nbsp; Address: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' id='Address'  size='8'  title='Address'  value='Address'  > <br><spanShtL class='DevForm'> &nbsp; PLA: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' id='PLA'  size='8'  title='PLA'  value='PLA'  > <br><spanShtL class='DevForm'> &nbsp; Comment: </spanShtL> <textarea onblur='Tik.Core.Prog.PutEdit(this)' id='Comment'  rows='3' cols='30'  title='Comment' >Comment</textarea></spanShtLeft> <spanShtRight style='display:inline-block'><br><spanShtL class='DevForm'> &nbsp; Notif: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' id='Notif'  size='8'  title='Notif'  value='Notif'  > <br><spanShtL class='DevForm'> &nbsp; NvRam: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' id='NvRam'  size='8'  title='NvRam'  value='NvRam'  >  <br><spanShtL class='DevForm'> &nbsp; Info: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' id='Info'  size='8'  title='Info'  value='Info'  > <br><spanShtL class='DevForm'> &nbsp; Type: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' id='Type'  size='8'  title='Type'  value='Type'  > <br><spanShtL class='DevForm'> &nbsp; start: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' id='start'  size='8'  title='start'  value='start'  > <br> <spanShtL class='DevForm'> &nbsp; FUp: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' id='FUp'  size='8'  title='FUp'  value='FUp'  > <br><spanShtL class='DevForm'> &nbsp; Order: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' id='Order'  size='8'  title='Order'  value='Order'  > <br><spanShtL class='DevForm'> &nbsp; AppTab: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' id='AppTab'  size='8'  title='AppTab'  value='AppTab'  > <br><spanShtL class='DevForm'> &nbsp; Description: </spanShtL> <textarea onblur='Tik.Core.Prog.PutEdit(this)' id='Descript'  rows='3' cols='30'  title='' ></textarea> <br></spanSht></spanSht></spanShtRight><hr><ax id='RcdRH' style='cursor:hand;color:green;' onclick='AddIn.PgCr8Record.DispCharge(this)' title='Click here to see the Whereabouts of the the services within a Racking system'>     Racking Information:</ax><br><spanShtH id='RcdRHd' style='display:none;'><br> <spanShtL class='DevForm'> &nbsp; RCab: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' id='RCab'  size='12'  title='RCab'  value='RCab'  > <br><spanShtL class='DevForm'> &nbsp; RLayer: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' id='RLayer'  size='8'  title='RLayer'  value='RLayer'  > <br><spanShtL class='DevForm'> &nbsp; RUnit: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' id='RUnit'  size='8'  title='RUnit'  value='RUnit'  > <br><spanShtL class='DevForm'> &nbsp; RDev: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' id='RDev'  size='8'  title='RDev'  value='RDev'  > <br><spanShtL class='DevForm'> &nbsp; RUpStrm: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' id='RUpStrm'  size='8'  title='RUpStrm'  value='RUpStrm'  > <br><spanShtL class='DevForm'> &nbsp; RDnStrm: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' id='RDnStrm'  size='8'  title='RDnStrm'  value='RDnStrm'  ></spanShtH> <hr><ax id='RcdLolH' style='cursor:hand;color:green;' onclick='AddIn.PgCr8Record.DispCharge(this)' title='Click here to see the information regarding the Length of Loife of the data'>     Length of Life Information:</ax><br><spanShtH id='RcdLolHd' style='display:none;'> <br><spanShtL class='DevForm'> &nbsp; LoL-IAD: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' id='LoLI'  size='8'  title='LoLI'  value='LoLI'  > <br> <spanShtL class='DevForm'> &nbsp; LoL-TP: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' id='LoLT'  size='8'  title='LoLT'  value='LoLT'  > <br> <spanShtL class='DevForm'> &nbsp; LoL-Archive: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' id='LoLA'  size='8'  title='LoLA'  value='LoLA'  > <br><spanShtL class='DevForm'> &nbsp; TTL: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' id='TTL'  size='8'  title='TTL - Date of expiry'  value='TTL'  > </spanShtH> <hr><spanSht id='rsoverflow'></spanSht>",
//in here goes check for user number matching authorised person for modifying this set of pages!
		"RunIt":{DispCharge:function DispCharge(org){
		if(o(org.id+'d').style.display == 'block'){Th(org.id+'d');}
		else{Ts(org.id+'d');}},
		runOnLoad:function runOnLoad(){
		var str = [];
		for(var labl in Tik.Core.Layup.Descriptor){
			var z=document.createElement('option');	
			z.text = labl;	
			z.value = labl;
			o(AddIn.PgCr8Record.whereItIs+'SelRecord').add(z,null);
		}
		SelSort(o(AddIn.PgCr8Record.whereItIs+'SelRecord'));
		}} //content is attached to Tik.Core.Prog.Addin.[name]DisplaySheet:function DispSht(org){DisplaySheet(org)},runOnLoad:function runOnLoad(){SetUpPageDisp();},
},
"Layup.Page.PgCr8Form":{"UID":"0000009", "NaME":"PgCr8Form", "VName":"", "Header":"", "Footer":"","RecDesc":"Form", "Nid":"S",
	"List":[], //["1","CR8former","Cr8ora2","","Indent","Comment","Content","Form"]
	"Content":"<spanShtFormBar tiknorm='true' id='H' style='background:white; height:24px; max-height:30px; width:99%; border:1px solid black; display:block; overflow:auto;padding:3px;' ><spanSht  tiknorm='true' id='Sel' style='display:table-cell;border-right:1px solid black;'> &nbsp; Form &nbsp; <ax tiknorm='true' id='Save' class='formButt' onclick='Tik.Core.Prog.PutEdit(this);'>Save</ax> &nbsp; <select tiknorm='true' id='SelForm' onChange='AddIn.PgCr8Form.DisplayForm(this)'><option value='None' >None</option></select> &nbsp; </spanSht><spanSht tiknorm='true' id='Dat' style='display:table-cell;'></spanSht><spanSht tiknorm='true' id='Itm'></spanSht></spanShtFormBar><spanShtFormMain style='display:block;'><spanShtLeft style='display:inline-block;'><spanShtL class='DevForm'> Form Name: </spanShtL> <input type='input' tiknorm='true' id='NaME' title='The name of the Form, You can only change the name via Description.' size='10' disabled='disabled'><br><spanShtL class='DevForm'> &nbsp; VName: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' type='input' tiknorm='true' id='VName' title='The Name displayed on the top of the entry form' size='10'><br><spanShtL class='DevForm'> &nbsp; Header:</spanShtL> <textarea onblur='Tik.Core.Prog.PutEdit(this)' tiknorm='true' id='Header' rows='2' cols='32' title='The Header that is to appear'></textarea><br><spanShtL class='DevForm'> &nbsp; Footer:</spanShtL> <textarea onblur='Tik.Core.Prog.PutEdit(this)' tiknorm='true' id='Footer' rows='2' cols='32' title='The Footer that is to appear'></textarea><br><spanShtL class='DevForm'> &nbsp; Commentary:</spanShtL> <textarea onblur='Tik.Core.Prog.PutEdit(this)' tiknorm='true' id='Comment' rows='2' cols='32' title='The commentary about why this form exists, and what it is supplied for.'></textarea><br><input type='hidden' id='Linker'><hr> <spanShtL class='DevForm' style='border:0px solid black'>&nbsp; Additional: </spanShtL> <input onclick='Tik.Core.Prog.PutEdit(this)' type='checkbox' tiknorm='true' id='Add' title='whether this entry is allowed to be duplicated, ie. phones yes, names no!'>Add &nbsp; <input onclick='Tik.Core.Prog.PutEdit(this)' type='checkbox' tiknorm='true' id='Write' title='whether this entry is allowed to be writeable'>Write &nbsp; <input onclick='Tik.Core.Prog.PutEdit(this)' type='checkbox' tiknorm='true' id='Read' title='whether this entry is read only'>Read </spanShtLeft> <spanShtRight style='display:inline-block;margin-left:-1px;'><ax id='LinkerList' style='cursor:hand;color:green;' onclick='AddIn.PgCr8Form.FlipIt(this)'>LinkerList</ax> <br><spanSht id='LinkerListV' style='display:block;'>Viewer</spanSht> <br> <br> Click <ax id='LinkerLayup' style='cursor:hand;color:green;' onclick='AddIn.PgCr8Form.FlipIt(this)'>LinkerLayup</ax> to enable the addition of more Linkers</spanShtRight><hr><spanShtV id='LinkerLayupV' style='display:none;'>Viewer</spanShtV> <hr> <ax id='Fields' style='cursor:hand;color:green;' onclick='AddIn.PgCr8Form.FlipIt(this)'>Fields</ax><br><spanSht id='FieldsV' style='display:block;'><spanShtGridF style='display:inline-block; vertical-align:top; border-left:1px solid black; padding-left:7px; margin-left:-1px;'>   <br>Fields: &nbsp;  <br><spanShtFlds id='FieldsGrid'></spanShtFlds><input type='hidden' id='Gridit-Data' value=''> <spanShtFlds id='ContGridD'></spanShtFlds><br><spanShtFlds id='FieldsList'></spanShtFlds></spanShtGridF><br><hr style='border:1px solid black;'></spanSht>         <spanShtBase id='Form_Base'> </spanShtBase>  </spanShtFormMain> <br> <spanSht id='rsoverflow'></spanSht>",		
/*<spanShtL class='DevForm'> UID: </spanShtL>  <input type='input' tiknorm='true' id='UID' disabled='disabled'><br><spanShtL class='DevForm'> NID: </spanShtL> <input type='input' disabled='disabled' tiknorm='true' id='Nid' size='5' value='S' title='The Short or Long (S or L) version of the names'><br> <spanShtL class='DevForm'> &nbsp; Rec/Desc:</spanShtL><select tiknorm='true' id='RecDesc'><option value='None'>None</option></select>  <br>for(var labl in Tik.Core.Layup.Descriptor){var x=document.createElement('option');	x.text = labl;	x.value = labl;o(AddIn.PgCr8Form.whereItIs+'RecDesc').add(x,null);} SelSort(o(AddIn.PgCr8Form.whereItIs+'RecDesc'));

*/
			"RunIt":{runOnLoad : function(){var str = [];for(var labl in Tik.Core.Layup.Descriptor){var z=document.createElement('option');	z.text = labl;	z.value = labl;o(AddIn.PgCr8Form.whereItIs+'SelForm').add(z,null);} SelSort(o(AddIn.PgCr8Form.whereItIs+'SelForm'));},FlipIt : function FlipIt(org){if(o(org.id+'V').style.display == 'none'){o(org.id+'V').style.display = 'block';}else{o(org.id+'V').style.display = 'none';}}} 
},	
"Layup.Page.PgCr8Page":{"UID":"0000009", "NaME":"PgCr8Page", "VName":"", "Header":"", "Footer":"","RecDesc":"Page", "Nid":"S",
	"List":[],//&nbsp; <ax id='TikCR8-TikCR8Page-DevPage-PgCr8Pag-Pag-Remove' class='formButt' onclick=''>Remove</ax>  
	"Content":"<spanSht tiknorm='true' id='H' style='background:white; height:24px; max-height:30px; width:99%; border:1px solid black; display:block; overflow:auto;padding:3px;' ><spanSht  tiknorm='true' id='Sel' style='display:table-cell;border-right:1px solid black;'> &nbsp; Page &nbsp; <ax tiknorm='true' id='Save' class='formButt' onclick='AddIn.PgCr8Page.DisplayPage(this); Tik.Core.Prog.PutEdit(this);'>Save</ax> &nbsp; <select tiknorm='true' id='SelPage' onChange='AddIn.PgCr8Page.DisplayPage(this)'><option value='None' >None</option></select> &nbsp; </spanSht><spanSht tiknorm='true' id='Dat' style='display:table-cell;'></spanSht><spanSht tiknorm='true' id='Itm'></spanSht></spanSht><spanSht style='display:block;'><spanShtLeft style='display:inline-block'>  <spanShtL class='DevForm'> Page Name: </spanShtL> <input type='input' tiknorm='true' disabled='disabled' id='NaME' title='The name of the Page, Suggest you add the first three letters of each Page from the Pages descriptor/name' size='8'> <spanShtL class='DevForm'> UID: </spanShtL><input type='input' tiknorm='true' disabled='disabled' id='UID' size='5' title='The Short or Long (S or L) version of the names'><br><spanShtL class='DevForm'> &nbsp; VName: </spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' type='input' tiknorm='true' id='VName' title='The Name displayed on the top of the entry Page' size='8'> <spanShtL class='DevForm'> Nid:</spanShtL><input onblur='Tik.Core.Prog.PutEdit(this)' type='input' size='5' tiknorm='true' id='Nid'> <br><spanShtL class='DevForm'> Rec/Desc:</spanShtL> <input onblur='Tik.Core.Prog.PutEdit(this)' tiknorm='true' id='RecDesc' type='input' size='14'> <br><spanShtL class='DevForm'> &nbsp; Header:</spanShtL> <textarea onblur='Tik.Core.Prog.PutEdit(this)' style='resize:both' tiknorm='true' id='Header' rows='1' cols='32' title='The Header that is to appear'></textarea><br><spanShtL class='DevForm'> &nbsp; Footer:</spanShtL> <textarea onblur='Tik.Core.Prog.PutEdit(this)' tiknorm='true' style='resize:both;' id='Footer' rows='1' cols='32' title='The Footer that is to appear'></textarea> <br></spanShtLeft><spanShtRight style='display:none'><spanShtL class='DevForm'>&nbsp; Page-List:</spanShtL><spanShtL style='display:inline-block;width:117px;'><select tiknorm='true' id='List'><option value='None'>None</option></select></spanShtL> <spanShtL class='DevForm'>&nbsp; Order: </spanShtL> <input type='input' tiknorm='true' id='Order' title='The order that the items will appear in.' size='4' value=''> <br> <spanShtL class='DevForm'>&nbsp; Item: </spanShtL> <input type='input' tiknorm='true' id='Item' title='The name of the item.' size='12' value='' disabled=true> <spanShtL class='DevForm'>&nbsp; Displayed: </spanShtL> <input type='input' tiknorm='true' id='Value' title='The name that will appear on the menu item that allows this to be selected.' size='12' value=''> <br> <spanShtL class='DevForm'>&nbsp; Call: </spanShtL> <input type='input' tiknorm='true' id='Call' title='If another program (function call) is to be called when this item is clicked - the name of the call goes in here.' size='12' value=''> <spanShtL class='DevForm'>&nbsp; Indent: </spanShtL> <input type='input' tiknorm='true' id='Indent' title='The amount of indentation applied to this list item (if indentation is used).' size='4' value=''> <br> <spanShtL class='DevForm'>&nbsp; Comment:</spanShtL> <textarea tiknorm='true' id='Comment' rows='1' cols='32' title='The commentary that will be applied to the tab/button by way of explanation.'></textarea><br> <spanShtL class='DevForm'>&nbsp; Content-List: </spanShtL> <input type='input' tiknorm='true' id='ContentL' title='The Content that is available.' size='12' value=''>  <spanShtL class='DevForm'>&nbsp; PWF: </spanShtL> <input type='input' tiknorm='true' id='Form' title='The type of attachment, Page, WIBL or Form.' size='4' value=''></spanShtRight></spanSht></spanSht> <spanSht style='height:10%; width:100%; padding:4px; border:1px solid white; display:inline-table;'>Content: <textarea onblur='Tik.Core.Prog.PutEdit(this)' tiknorm='true' id='Content' style='width:98%; font:arial; font-size:1em; color:black;' rows='8'>Content here</textarea>Program: <spanrunit tiknorm='true' id='RunItprog' style='width:500px;'></spanrunit><br><textarea tiknorm='true' id='RunItV' style='width:98%; font:arial; font-size:1em; color:black;' rows='8' class='textnumb'>Functions here - \nNote: All functions are executed as AddIn[page name][function name],\n therefore - externally - start as AddIn.PageName[function name]() or  AddIn.PageName.functionName()\n In this area - internally -  progname:function(){code}\nAlso available - runOnLoad - will run as page is loaded!!\n &nbsp; runOnLoad:function(args){code}\np.s. separate functions with comma ,</textarea><textarea tiknorm='true' id='RunIt' style='display:none;' class='textnumb'></textarea> <textarea tiknorm='true' id='ContentV' style='display:none;' wrap='virtual'></textarea></spanSht><br> <spanSht id='rsoverflow'>xx</spanSht>",
			"RunIt":{runOnLoad : function(){var str = [];for(var labl in Tik.Core.Layup.Page){var z=document.createElement('option');	z.text = labl;	z.value = labl;o(AddIn.PgCr8Page.whereItIs+'SelPage').add(z,null);} SelSort(o(AddIn.PgCr8Page.whereItIs+'SelPage'));}}
//			"RunIt":{runOnLoad:function(){document.getElementById('CorPagSave').innerHTML='buggar me';Tik.Core.Layup.Page.PgCr8Pag.RunIt.Tester('M');AddIn.CR8Page.Tester('P')},Tester:function(inco){document.getElementById('Pagrsoverflow').innerHTML +='what the fuck!!'+inco}} //content is attached to Addin.[name] XXXXXXXXX  <ax id='TikCR8-TikCR8Page-DevPage-PgCr8Pag-Retr' class='FormButt' onclick='Tik.Core.Prog.Retr(this)'>RetrieveMyWork </ax><br><br><ax id='YCBlanK' class='FormButt' onclick='Tik.Prog.DevDispButt(this)'>ClrPages</ax> <br><br><ax id='YDUpd' class='FormButt' onclick='Tik.Prog.DevUpd(this)'>UpdateLocal</ax><br><br><ax id='TikCR8-TikCR8Page-DevPage-PgCr8Pag-Save' class='FormButt' onclick='Tik.Core.Prog.Save(this)'>SaveMyWork </ax> <br><br><ax id='TikCR8-TikCR8Page-DevPage-PgCr8Pag-Appro' class='FormButt' onclick='Tik.Core.Prog.Appro(this)'>Save2Approver</ax> <br><br><br><ax id='CorPagRetr' class='FormButt' onclick='Tik.Core.Prog.Retr(this)'>RetrieveCorexIP</ax> <br><br><ax id='CorPagSave' class='FormButt' onclick='Tik.Core.Prog.Save(this)'>(SaveCore2IP)</ax><br>
},	
"Layup.Page.PgCr8WIBL":{"UID":"0000009", "NaME":"PgCr8WIBL", "VName":"", "Header":"", "Footer":"","RecDesc":"WIBL", "Nid":"S",
	"List":[],//&nbsp; <ax id='TikCR8-TikCR8WIBL-DevWIBL-PgCr8Pag-Pag-Remove' class='formButt' onclick=''>Remove</ax>  
	"Content":"<spanSht tiknorm='true' id='H' style='background:white; height:24px; max-height:30px; width:99%; border:1px solid black; display:block; overflow:auto;padding:3px;' ><spanSht  tiknorm='true' id='Sel' style='display:table-cell;border-right:1px solid black;'> &nbsp; WIBL &nbsp; <ax tiknorm='true' id='Save' class='formButt' onclick='AddIn.PgCr8WIBL.DisplayWIBL(this); Tik.Core.Prog.PutEdit(this);'>Save</ax> &nbsp; <select tiknorm='true' id='SelWIBL' onChange='AddIn.PgCr8WIBL.DisplayWIBL(this)'><option value='None' >None</option></select> &nbsp; </spanSht><spanSht tiknorm='true' id='Dat' style='display:table-cell;'></spanSht><spanSht tiknorm='true' id='Itm'></spanSht></spanSht><spanSht style='display:block;'><spanShtLeft style='display:inline-block'>  <spanShtL class='DevForm'> WIBL Name: </spanShtL> <input type='input' tiknorm='true' disabled='disabled' id='NaME' title='The name of the WIBL, Suggest you add the first three letters of each WIBL from the WIBLs descriptor/name' size='8'> <spanShtL class='DevForm'> UID: </spanShtL><input type='input' tiknorm='true' disabled='disabled' id='UID' size='5' title='The Short or Long (S or L) version of the names'><br><spanShtL class='DevForm'> &nbsp; VName: </spanShtL> <input type='input' tiknorm='true' id='VName' title='The Name displayed on the top of the entry WIBL' size='8'> <spanShtL class='DevForm'> Nid:</spanShtL><input type='input' size='5' tiknorm='true' id='Nid'> <br><spanShtL class='DevForm'> Rec/Desc:</spanShtL> <input tiknorm='true' id='RecDesc' type='input' size='14'> <br><spanShtL class='DevForm'> &nbsp; Header:</spanShtL> <textarea style='resize:both' tiknorm='true' id='Header' rows='1' cols='32' title='The Header that is to appear'></textarea><br><spanShtL class='DevForm'> &nbsp; Footer:</spanShtL> <textarea tiknorm='true' style='resize:both;' id='Footer' rows='1' cols='32' title='The Footer that is to appear'></textarea> <br></spanShtLeft><spanShtRight style='display:none'><spanShtL class='DevForm'>&nbsp; WIBL-List:</spanShtL><spanShtL style='display:inline-block;width:117px;'><select tiknorm='true' id='List'><option value='None'>None</option></select></spanShtL> <spanShtL class='DevForm'>&nbsp; Order: </spanShtL> <input type='input' tiknorm='true' id='Order' title='The order that the items will appear in.' size='4' value=''> <br> <spanShtL class='DevForm'>&nbsp; Item: </spanShtL> <input type='input' tiknorm='true' id='Item' title='The name of the item.' size='12' value='' disabled=true> <spanShtL class='DevForm'>&nbsp; Displayed: </spanShtL> <input type='input' tiknorm='true' id='Value' title='The name that will appear on the menu item that allows this to be selected.' size='12' value=''> <br> <spanShtL class='DevForm'>&nbsp; Call: </spanShtL> <input type='input' tiknorm='true' id='Call' title='If another program (function call) is to be called whe this item is clicked - the name of the call goes in here.' size='12' value=''> <spanShtL class='DevForm'>&nbsp; Indent: </spanShtL> <input type='input' tiknorm='true' id='Indent' title='The amount of indentation applied to this list item (if indentation is used).' size='4' value=''> <br> <spanShtL class='DevForm'>&nbsp; Comment:</spanShtL> <textarea tiknorm='true' id='Comment' rows='1' cols='32' title='The commentary that will be applied to the tab/button by way of explanation.'></textarea><br> <spanShtL class='DevForm'>&nbsp; Content-List: </spanShtL> <input type='input' tiknorm='true' id='ContentL' title='The Content that is available.' size='12' value=''>  <spanShtL class='DevForm'>&nbsp; PWF: </spanShtL> <input type='input' tiknorm='true' id='Form' title='The type of attachment, WIBL, WIBL or Form.' size='4' value=''></spanShtRight></spanSht></spanSht> <spanSht style='height:10%; width:100%; padding:4px; border:1px solid white; display:inline-table;'>Content: <textarea tiknorm='true' id='ContentV' style='width:100%; font:arial; font-size:1em; color:black;' rows='8' width='100%'>Content here</textarea>Program: <spanrunit tiknorm='true' id='RunItprog'></spanrunit><br><textarea tiknorm='true' id='RunItV' style='width:100%; font:arial; font-size:1em; color:black;' rows='8' class='textnumb'>Functions here - \nNote: All functions are executed as AddIn[WIBL name][function name],\n therefore - externally - start as AddIn.WIBLName[function name]() or  AddIn.WIBLName.functionName()\n In this area - internally -  progname:function(){code}\nAlso available - runOnLoad - will run as WIBL is loaded!!\n &nbsp; runOnLoad:function(args){code}\np.s. separate functions with comma ,</textarea><textarea tiknorm='true' id='RunIt' style='display:none;' class='textnumb'></textarea> <textarea tiknorm='true' id='Content' style='display:none;' wrap='virtual'></textarea></spanSht><br> <spanSht id='rsoverflow'>xx</spanSht>",
			"RunIt":{runOnLoad : function(){var str = [];for(var labl in Tik.Core.Layup.WIBL){var z=document.createElement('option');	z.text = labl;	z.value = labl;o(AddIn.PgCr8WIBL.whereItIs+'SelWIBL').add(z,null);} SelSort(o(AddIn.PgCr8WIBL.whereItIs+'SelWIBL'));}}
},


"Layup.Page.PgCr8Tik_":{"UID":"0000009", "NaME":"PgCr8Tik_", "VName":"", "Header":"", "Footer":"","RecDesc":"Grid", "Nid":"S",
	"List":[],	// ["1","CR8former","Cr8ora2","","Indent","Comment","Content","Form"]
	"Content":"<spanSht id='Pers-H' style='background:white; height:24px; max-height:30px; width:99%; border:1px solid black; display:block; overflow:auto;padding:3px;'><spanSht id='Sel' style='display:table-cell;border-right:1px solid black;'> &nbsp; Pers &nbsp; <ax id='Save-a-Personality' class='formButt' onclick='Tik.Core.Prog.PutEdit(this)'>Save</ax> &nbsp;  &nbsp; </spanSht><spanSht id='Dat' style='display:table-cell;'> &nbsp;  <ax id='Pers-Refresh' class='formButt' onclick='Tik.Core.Prog.Cr8Grid(AddIn.PgCr8Tik_.whereItIs)'>Refresh</ax> &nbsp; </spanSht> <spanSht id='Itm'></spanSht></spanSht> <spanSht id='Pers-D' style='display:block;overflow:auto;height:98%;'> <spanGrid id='ContGridS'></spanGrid><spanGridit id='ContGridD'>This is the content of Tik_</spanGridit></spanSht><hr><br><spanSht id='rsoverflow'> </spanSht>",
	"RunIt":{runOnLoad:function runOnLoad(){
				Tik.Vars.Grid.New = "Tik.Core.Info.Tik_Select";
				Tik.Vars.Grid.Head = ["#", "Name", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U"];
						//[Mov-col#,Charfor Remove-col#,Jmp,Char for Jump,NoC,spr,Above or below or '' for Add button,text for Add]
				Tik.Vars.Grid.Attach = [['','R',''],['','J',''],['','',''],["B","Make New",'']];
				Tik.Vars.Grid.Title = ['',"Name of the Select Item", 'The min help for this field', 'All fields - Visual comma Value (comma True - if selected)', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''];
				Tik.Core.Prog.Grid.Cr8Grid(AddIn.PgCr8Tik_.whereItIs)}}
		},
		
"Layup.Page.PgCr8Bldr":{"UID":"0000009", "NaME":"PgCr8Bldr", "VName":"", "Header":"", "Footer":"","RecDesc":"Grid", "Nid":"S",
	"List":[],	// ["1","CR8former","Cr8ora2","","Indent","Comment","Content","Form"]
	"Content":"<spanSht id='Pers-H' style='background:white; height:24px; max-height:30px; width:99%; border:1px solid black; display:block; overflow:auto;padding:3px;'><spanSht id='Sel' style='display:table-cell;border-right:1px solid black;'> &nbsp; Pers &nbsp; <ax id='Save-a-Personality' class='formButt' onclick='Tik.Core.Prog.PutEdit(this)'>Save</ax> &nbsp; <select id='SelPers' onChange='AddIn.PgCr8Pers.DisplayRecord(this)'><option value='None'>None</option></select> &nbsp; </spanSht><spanSht id='Dat' style='display:table-cell;'> &nbsp;  <ax id='Pers-Refresh' class='formButt' onclick='Tik.Core.Prog.Cr8Builder(this)'>MakeNewDesc</ax> &nbsp; </spanSht> <spanSht id='Itm'></spanSht></spanSht> <spanSht id='Pers-D' style='display:block;overflow:auto;'> <spanGrid id='ContGridS'></spanGrid><spanGridit id='Bldr'>This is the content of Bldr!</spanGridit></spanSht><hr><br><spanSht id='rsoverflow'> </spanSht>",
	"RunIt":{}
		},		
"Layup.Page.PgCr8Config":{"UID":"0000009", "NaME":"PgCr8Config", "VName":"", "Header":"", "Footer":"","RecDesc":"None", "Nid":"S",
	"List":[],	// ["1","CR8former","Cr8ora2","","Indent","Comment","Content","Form"]
	"Content":"<spanSht id='Pers-H' style='background:white; height:24px; max-height:30px; width:99%; border:1px solid black; display:block; overflow:auto;padding:3px;'><spanSht id='Sel' style='display:table-cell;border-right:1px solid black;'> &nbsp; Auto Reload Page &nbsp; <select id='SelConfig' onChange='Tik.Vars.AutoRefresh = this.options[this.selectedIndex].value'><option value='None'>None</option></select> &nbsp; </spanSht><spanSht id='Dat' style='display:table-cell;'> &nbsp;   &nbsp; </spanSht> <spanSht id='Itm'></spanSht></spanSht> <spanSht id='Pers-D' style='display:block;overflow:auto;height:98%;'> <spanGrid id='ContGridS'></spanGrid><spanGridit id='ContGridD'>This is the content of the Cr8 Config!</spanGridit></spanSht><hr><br><spanSht id='rsoverflow'> </spanSht>",
	"RunIt":{runOnLoad:function runOnLoad(){var str = [];for(var labl in Tik.Core.Layup.Drawer){var z=document.createElement('option');	z.text = labl;	z.value = labl;o(AddIn.PgCr8Config.whereItIs+'SelConfig').add(z,null);}}}
		},
	
"Layup.Page.PgCr8Pers":{"UID":"0000009", "NaME":"PgCr8Pers", "VName":"", "Header":"", "Footer":"","RecDesc":"Grid", "Nid":"S",
	"List":[],	// ["1","CR8former","Cr8ora2","","Indent","Comment","Content","Form"]
	"Content":"<spanSht id='Pers-H' style='background:white; height:24px; max-height:30px; width:99%; border:1px solid black; display:block; overflow:auto;padding:3px;'><spanSht id='Sel' style='display:table-cell;border-right:1px solid black;'> &nbsp; Pers &nbsp; <ax id='Save-a-Personality' class='formButt' onclick='Tik.Core.Prog.PutEdit(this)'>Save</ax> &nbsp; <select id='SelPers' onChange='AddIn.PgCr8Pers.DisplayRecord(this)'><option value='None'>None</option></select> &nbsp; </spanSht><spanSht id='Dat' style='display:table-cell;'> &nbsp;  <ax id='Pers-Refresh' class='formButt' onclick='Tik.Core.Prog.Cr8Grid(AddIn.PgCr8Pers.whereItIs)'>Refresh</ax> &nbsp; </spanSht> <spanSht id='Itm'></spanSht></spanSht> <spanSht id='Pers-D' style='display:block;overflow:auto;height:98%;'> <spanGrid id='ContGridS'></spanGrid><spanGridit id='ContGridD'>This is the content of personalities!</spanGridit></spanSht><hr><br><spanSht id='rsoverflow'> </spanSht>",
	"RunIt":{runOnLoad:function runOnLoad(){
				Tik.Vars.Grid.New = "Tik.Core.Info.Personality";
				Tik.Vars.Grid.Head = ["Ord", "Ord", "Item","Name","X","Clauses","Comments","X", "Accounts","Services","Operations","Applies","Date"];
						//[Mov-col#,Charfor Remove-col#,Jmp,Char for Jump,NoC,spr,Above or below or '' for Add button,text for Add]
				Tik.Vars.Grid.Attach = [['','R',''],['','J',''],["1",'',''],["B","Add Row",'']];
				Tik.Vars.Grid.Title = ["Field Order","Field Order","Name of the Selection","","Which clauses have to be complied with prior to approval to access being granted","Quik description of what this personality does","","Items for the Accounts area","Items for the Services area","Items for the Operations area","Who this personality type is accessible by","The date this entry was last updated"];
				Tik.Core.Prog.Grid.Cr8Grid(AddIn.PgCr8Pers.whereItIs)}}
		},

"Layup.Page.PgCr8Abbr":{"UID":"0000009", "NaME":"PgCr8Abbr", "VName":"", "Header":"", "Footer":"","RecDesc":"Grid", "Nid":"S",
	"List":[],	// ["1","CR8former","Cr8ora2","","Indent","Comment","Content","Form"]
	"Content":"<spanSht id='Abbr-H' style='background:white; height:24px; max-height:30px; width:99%; border:1px solid black; display:block; overflow:auto;padding:3px;'><spanSht id='Sel' style='display:table-cell;border-right:1px solid black;'> &nbsp; Abbr &nbsp; <ax id='Save-a-Abbreviation' class='formButt' onclick='Tik.Core.Prog.PutEdit(this)'>Save</ax> &nbsp;<select id='SelAbbr' onChange='AddIn.PgCr8Abbr.DisplayRecord(this)'><option value='None'>None</option></select> &nbsp; </spanSht><spanSht id='Dat' style='display:table-cell;'> &nbsp; <ax id='Abbr-Refresh' class='formButt' onclick='Tik.Core.Prog.Cr8Grid(AddIn.PgCr8Abbr.whereItIs)'>Refresh</ax> &nbsp; </spanSht> <spanSht id='Itm'></spanSht></spanSht> <spanSht id='Abbr-D' style='display:block;overflow:auto;height:98%;'> <spanGrid id='ContGridS'></spanGrid> <spanGridit id='ContGridD'>This is the content of abbreviations!</spanGridit></spanSht><hr><br><spanSht id='rsoverflow'> </spanSht>",
	"RunIt":{runOnLoad:function runOnLoad(){
				Tik.Vars.Grid.New = "Tik.Core.Info.Abbrev";
				Tik.Vars.Grid.Head = ["Ord", "Ord", "UID", "Obj1", "Obj2", "Name1", "Name2", "Abbrev1", "Abbrev2", "Res1", "Res2", "Value1", "Value2", "Comment1", "Comment2", "Supplied", "Dated"];
						//[Mov-col#,Charfor Remove-col#,Jmp,Char for Jump,NoC,spr,Above or below or '' for Add button,text for Add]
				Tik.Vars.Grid.Attach = [['','R',''],['','J',''],["1",'',''],["B","Add Row",'']];
				Tik.Vars.Grid.Title = ["Field Order","Field Order","Unique Identifier", "Object type 1 for ShortList", "Object type 2 for ShortList","Name 1 for Short List", "Name 2 for Short List","Abbrev 1 for short list", "Abbrev 2 for short list","Resource 1 for short list","Resource 2 for short list","Value 1 for short list","Value 2 for short list","Commentary 1 for short list","Commentary 2 for short list","Supplied by","Updated when"];
				Tik.Core.Prog.Grid.Cr8Grid(AddIn.PgCr8Abbr.whereItIs)}}
		},

"Layup.Page.PgCr8Link":{"UID":"0000009", "NaME":"PgCr8Link", "VName":"", "Header":"", "Footer":"","RecDesc":"Grid", "Nid":"S",
	"List":[],	// ["1","CR8former","Cr8ora2","","Indent","Comment","Content","Form"]
	"Content":"<spanSht id='Link-H' style='background:white; height:24px; max-height:30px; width:99%; border:1px solid black; display:block; overflow:auto;padding:3px;'><spanSht id='Sel' style='display:table-cell;border-right:1px solid black;'> &nbsp; Link &nbsp; <ax id='Save-a-Linking' class='formButt' onclick='Tik.Core.Prog.PutEdit(this)'>Save</ax> &nbsp; <input type='hidden' id='Gridit-Data' value='Tik.Core.Info.Linking'><select id='SelLink' onChange='AddIn.PgCr8Link.DisplayRecord(this)'><option value='None'>None</option></select> &nbsp; </spanSht><spanSht id='Dat' style='display:table-cell;'> &nbsp; <ax id='Link-Refresh' class='formButt' onclick='Tik.Core.Prog.Cr8Grid(AddIn.PgCr8Link.whereItIs)'>Refresh</ax> &nbsp; </spanSht> <spanSht id='Itm'></spanSht></spanSht> <spanSht id='Link-D' style='display:block;overflow:auto;height:98%;'> <spanGrid id='ContGridS'></spanGrid><spanGridit id='ContGridD'>This is the content of linking!</spanGridit></spanSht><hr><br><spanSht id='rsoverflow'> </spanSht>",
	"RunIt":{runOnLoad:function runOnLoad(){
				Tik.Vars.Grid.New = "Tik.Core.Info.Linking";
				Tik.Vars.Grid.Head = ["Ord", "Ord", "Item", "A", "B", "C", "D", "E", "F", "G", "H", "Mask", "Used"];
						//[Mov-col#,Charfor Remove-col#,Jmp,Char for Jump,NoC,spr,Above or below or '' for Add button,text for Add]
				Tik.Vars.Grid.Attach = [['','R',''],['','J',''],["1",'',''],["B","Add Row",'']];
				Tik.Vars.Grid.Title = ["Field Order","Field Order","Name of the Selection","","","","","","","","","The Mask used by the system - Master"];
				Tik.Core.Prog.Grid.Cr8Grid(AddIn.PgCr8Link.whereItIs)}}
},


			





"Layup.Descriptor.Tik_Master":{"NaME":"Tik_Master","VName":"Master","RecDesc":"Tik_Master",
	"Nid":"S","Add":"","Write":"","Read":"","Comment":"",
	"Tik_Linker":[], "Tik_Fields":[], 
	"Desc":{"Indirect":[], "Extended":[], "Fixed":[], "Optioned":[]},
	"Record":{"UID":"","RCab":"","RLayer":"","RUnit":"","RDev":"","RUpStrm":"","RDnStrm":"",
		"Upline":"","SecNum":"3","DBase":"Personal","Address":"","PLA":"","Notif":"80",
		"NvRam":"","Info":"L","Type":"L","start":"","LoLA":"30","LoLT":"3","LoLI":"1",
		"TTL":"","FUp":"","Order":"", "Version":"0.0", "AppTab":"","Descript":"Registry of ","Comment":""}
},
"Layup.Descriptor.Description":{"NaME":"Description","VName":"Description","RecDesc":"Description",
	"Nid":"S","Add":"","Write":"","Read":"","Comment":"",
	"Tik_Linker":[], "Tik_Fields":[], 
	"Desc":{"Indirect":[], "Extended":[], "Fixed":[], "Optioned":[]},
	"Record":{"UID":"10000000000000000075","NaME":"Description","Number":"10000000000000000075",
		"RCab":"","RLayer":"","RUnit":"","RDev":"","RUpStrm":"","RDnStrm":"",
		"Upline":"","SecNum":"3","DBase":"Personal","Address":"","PLA":"","Notif":"80",
		"NvRam":"","Info":"L","Type":"L","start":"","LoLA":"30","LoLT":"3","LoLI":"1",
		"TTL":"","FUp":"","Order":"", "Version":"0.0", "AppTab":"",
		"Descript":"Registry of Descriptions","Comment":""}
},	
"Layup.Descriptor.Record":{"NaME":"Record", "RCab":"","RLayer":"","RUnit":"","RDev":"","RUpStrm":"","RDnStrm":"",
	"Upline":"","SecNum":"","DBase":"","Address":"","PLA":"","Notif":"",
	"NvRam":"","Info":"","Type":"","start":"",
	"LoLA":"","LoLT":"","LoLI":"","TTL":"","FUp":"",
	"Order":"", "Version":"0.0", "AppTab":"","Descript":"","Comment":"",
	"Desc":{"Indirect":[], "Extended":[], "Fixed":[], "Optioned":[], 
		"DBaseOpt":[["None","",true], ["Personal","Personal"], ["TikIt","TikIt"], 
			["Link","Link"], ["Annts","Annts"], ["Services","Services"], 
			["Community","Community"], ["WorkIBL","WorkIBL"], ["Shared","Shared"], 
			["Validity","Validity"], ["Enterprise","Enterprise"], ["Device","Device"]]}, 
	"Tik_Linker":[], 
	"Tik_Fields":[], 	
	"Record":{"UID":"10000000000000000100","NaME":"Record","Version":"0",
		"RCab":"","RLayer":"","RUnit":"","RDev":"","RUpStrm":"","RDnStrm":"",
		"Upline":"","SecNum":"3","DBase":"TikIt","Address":"","PLA":"",
		"Notif":"80","NvRam":"","Info":"L","Type":"L","start":"",
		"LoLA":"30","LoLT":"3","LoLI":"1","TTL":"",
		"FUp":"","Order":"", "Version":"0.0", "AppTab":"",
		"Descript":"Registry of Records","Comment":""}
},
"Layup.Descriptor.Drawer":{"NaME":"Drawer", "Header":"","Footer":"","Qty":0,
		"Comment":"",
		"Charge":{"amntO":"0.0000","amntC":"0.0000","amntI":"0.0000","Owner":"","Auth":"","Inst":""},
		"MenuVisual":"","MenuType":"","MenuPlace":"","MenuDisplay":"",
		"List":[], 
		"Desc":{
			"Indirect":[], 
			"Extended":["List"], 
			"Fixed":["Charge"],
			"Optioned":["MenuVisual","MenuType","MenuPlace","MenuDisplay"], 
			"ListMin":"1", "ListMax":"16", "ListReq":[], "ListIdx":1, "ListType":"Free", "ListRef":"",
			"ListFormer":["Order", "Item", "Value", "Call", "Indent", "Comment"], 
			"MenuVisualOpt":[["None", "None",true], ["Fixed", "Fixed"], ["Button", "Button"], 
				["Horizontal", "Horizontal"], ["Tab", "Tab"]], 
			"MenuTypeOpt":[["Fixed", "Fixed",true], ["Gap", "Gap"], 
				["Show", "Show"], ["Opengap", "OpenGap"], 
				["Push", "Push"], ["Openpush", "OpenPush"]], 
			"MenuPlaceOpt":[["Below", "Below",true], ["Above", "Above"], 
				["Fixed", "Fixed"]], 
			"MenuDisplayOpt":[["Block", "Block",true], ["Inline", "Inline"], 
				["Inline-block", "Inline-Block"], ["Inline-table", "Inline-Table"], 
				["Table", "Table"], ["Table-cell", "Table-Cell"], 
				["List-item", "List-Item"]]}, 
	"Tik_Linker":[], 
	"Tik_Fields":[], 
	"Record":{"UID":"10000000000000000065","NaME":"Drawer","Number":"10000000000000000065",
		"RCab":"","RLayer":"","RUnit":"","RDev":"","RUpStrm":"","RDnStrm":"",
		"Upline":"","SecNum":"3","DBase":"TikIt","Address":"",
		"PLA":"","Notif":"80","NvRam":"","Info":"L","Type":"L",
		"start":"","LoLA":"30","LoLT":"3","LoLI":"1","TTL":"",
		"FUp":"","Order":"", "Version":"0.0", "AppTab":"",
		"Descript":"Registry of Drawers",
		"Comment":""}
},
"Layup.Descriptor.Folder":{"NaME":"Folder", "Header":"", "Footer":"", "Qty":0,
	"Charge":{"amntO":"0.0000", "amntC":"0.0000", "amntI":"0.0000", "Owner":"", "Auth":"", "Inst":""}, 
	"MenuVisual":"", "MenuType":"", "MenuPlace":"", "MenuDisplay":"", "List":[], 
	"Desc":{
		"Indirect":[], 
		"Extended":["List"], 
		"Fixed":["Charge"], 
		"Optioned":["MenuVisual", "MenuType", "MenuPlace", "MenuDisplay"], 
		"ListMin":"1", "ListMax":"16", "ListReq":[], "ListIdx":1,"ListType":"Free", "ListRef":"", 
		"ListFormer":["Order", "Item", "Value", "Call", "Indent", "Comment"], 
		"MenuVisualOpt":[["None", "None",true], ["Fixed", "Fixed"], ["Button", "Button"], 
			["Horizontal", "Horizontal"], ["Tab", "Tab"]], 
		"MenuTypeOpt":[["Fixed", "Fixed",true], ["Gap", "Gap"], ["Show", "Show"], 
			["Opengap", "OpenGap"], ["Push", "Push"], ["Openpush", "OpenPush"]], 
		"MenuPlaceOpt":[["Below", "Below",true], ["Above", "Above"], ["Fixed", "Fixed"]], 
		"MenuDisplayOpt":[["Block", "Block",true], ["Inline", "Inline"], 
			["Inline-block", "Inline-Block"], ["Inline-table", "Inline-Table"], 
			["Table", "Table"], ["Table-cell", "Table-Cell"], ["List-item", "List-Item"]]}, 
		"Tik_Linker":[], 
		"Tik_Fields":[], 
		"Record":{"UID":"10000000000000000070", "NaME":"Folder", "Number":"10000000000000000070", 
			"RCab":"", "RLayer":"", "RUnit":"", "RDev":"", "RUpStrm":"", "RDnStrm":"", 
			"Upline":"", "SecNum":"3", "DBase":"TikIt", "Address":"", "PLA":"", "Notif":"80", 
			"NvRam":"", "Info":"L", "Type":"L", "start":"", "LoLA":"30", "LoLT":"3", "LoLI":"1", 
			"TTL":"", "FUp":"", "Order":"", "Version":"0.0",  "AppTab":"", 
			"Descript":"Registry of Folders", "Comment":""}
}, 
"Layup.Descriptor.Sheet":{"NaME":"Sheet", "Header":"", "Footer":"", "Qty":0,
	"Charge":{"amntO":"", "amntC":"", "amntI":"", "Owner":"", "Auth":"", "Inst":""}, 
	"MenuVisual":"", "MenuType":"", "MenuPlace":"", "MenuDisplay":"", "List":[], 
	"Desc":{
		"Indirect":[], 
		"Extended":["List"], 
		"Fixed":["Charge"], 
		"Optioned":["MenuVisual", "MenuType", "MenuPlace", "MenuDisplay"], 
		"ListMin":"1", "ListMax":"16", "ListReq":[], "ListIdx":1,"ListType":"Free", "ListRef":"", 
		"ListFormer":["Order", "Item", "Value", "Call", "Indent", "Comment", "Content", "Form"], 
		"MenuVisualOpt":[["None", "None",true], ["Fixed", "Fixed"], ["Button", "Button"], 
			["Horizontal", "Horizontal"], ["Tab", "Tab"]], 
		"MenuTypeOpt":[["Fixed", "Fixed",true], ["Gap", "Gap"], ["Show", "Show"], 
			["Opengap", "OpenGap"], ["Push", "Push"], ["Openpush", "OpenPush"]], 
		"MenuPlaceOpt":[["Below", "Below",true], ["Above", "Above"], ["Fixed", "Fixed"]], 
		"MenuDisplayOpt":[["Block", "Block",true], ["Inline", "Inline"], ["Inline-block", "Inline-Block"], 
			["Inline-table", "Inline-Table"], ["Table", "Table"], 
			["Table-cell", "Table-Cell"], ["List-item", "List-Item"]]}, 
		"Tik_Linker":[], 
		"Tik_Fields":[], 
		"Record":{"UID":"10000000000000000075", "NaME":"Sheet", "Number":"10000000000000000075", 
			"RCab":"", "RLayer":"", "RUnit":"", "RDev":"", "RUpStrm":"", "RDnStrm":"", 
			"Upline":"", "SecNum":"3", "DBase":"TikIt", "Address":"", "PLA":"", "Notif":"80", 
			"NvRam":"", "Info":"L", "Type":"L", "start":"", "LoLA":"30", "LoLT":"3", "LoLI":"1", 
			"TTL":"", "FUp":"", "Order":"", "Version":"0.0",  "AppTab":"", 
			"Descript":"Registry of Sheets", "Comment":""}
}, 
"Layup.Descriptor.Form":{"NaME":"Form", "VName":"", "Header":"", "Footer":"", "RecDesc":"", "Nid":"", 
	"Add":"", "Write":"", "Read":"", "Comment":"Master for the Form Pages.", 
	"Desc":{"Indirect":[], "Extended":[], "Fixed":[], "Optioned":[]}, 
	"Tik_Linker":[], 
	"Tik_Fields":[], 
	"Record":{"UID":"10000000000000000080", "NaME":"Form", "Number":"10000000000000000080", 
		"RCab":"", "RLayer":"", "RUnit":"", "RDev":"", "RUpStrm":"", "RDnStrm":"", 
		"Upline":"", "SecNum":"3", "DBase":"TikIt", "Address":"", "PLA":"", 
		"Notif":"80", "NvRam":"", "Info":"L", "Type":"L", "start":"", 
		"LoLA":"30", "LoLT":"3", "LoLI":"1", "TTL":"", "FUp":"", 
		"Order":"", "Version":"0.0",  "AppTab":"", "Descript":"Registry of Forms", 
		"Comment":""}
}, 
"Layup.Descriptor.Page":{"NaME":"Page", "VName":"", "Header":"", "Footer":"", "RecDesc":"", "Nid":"S", 
	"List":[], "Content":"", 
	"Desc":{"Indirect":[], "Extended":["List"], "Fixed":[], "Optioned":[], 
		"ListMin":"0", "ListMax":"16", "ListReq":[], "ListIdx":1,"ListType":"Free", "ListRef":"", 
		"ListFormer":["Order", "Item", "Value", "Call", "Indent", "Comment", "ContentL", "Form"]}, 
	"RunIt":{}, 
	"Tik_Linker":[], 
	"Tik_Fields":[], 
	"Record":{"UID":"10000000000000000090", "NaME":"Page", "Number":"10000000000000000090", 
		"RCab":"", "RLayer":"", "RUnit":"", "RDev":"", "RUpStrm":"", "RDnStrm":"", 
		"Upline":"", "SecNum":"3", "DBase":"TikIt", "Address":"", "PLA":"", 
		"Notif":"80", "NvRam":"", "Info":"L", "Type":"L", "start":"", 
		"LoLA":"30", "LoLT":"3", "LoLI":"1", "TTL":"", "FUp":"", "Order":"", "Version":"0.0",  
		"AppTab":"", "Descript":"Registry of Pages", 
		"Comment":""}
}, 
"Layup.Descriptor.WIBL":{"NaME":"WIBL", "VName":"", "Header":"", "Footer":"", "RecDesc":"", "Nid":"S", 
	"List":[], "Content":"", 
	"Desc":{"Indirect":[], "Extended":["List"], "Fixed":[], "Optioned":[], 
		"ListMin":"", "ListMax":"", "ListReq":[], "ListIdx":1,"ListType":"Free", "ListRef":"", 
		"ListFormer":["Order", "Item", "Value", "Call", "Indent", "Comment", "Content", "Form"]}, 
	"RunIt":{}, 
	"Tik_Linker":[],
	"Tik_Fields":[],
	"Record":{"UID":"10000000000000000095", "NaME":"WIBL", "Number":"10000000000000000095", 
		"RCab":"", "RLayer":"", "RUnit":"", "RDev":"", "RUpStrm":"", "RDnStrm":"", 
		"Upline":"", "SecNum":"3", "DBase":"TikIt", "Address":"", "PLA":"", 
		"Notif":"80", "NvRam":"", "Info":"L", "Type":"L", "start":"", 
		"LoLA":"30", "LoLT":"3", "LoLI":"1", "TTL":"", "FUp":"", "Order":"", "Version":"0.0",  
		"AppTab":"", "Descript":"Registry of WIBL's", 
		"Comment":""}
}

}

//TikEdit = JSON.stringify(Tikedit);	
if(!window.AddIn){window.AddIn = {}}; 
// =============================================================================
// put data into form holders based on Description - could be WIBL or Page or Form
// assume holder exists - button ID holds where data is at org.id[0-3]
/*
0: TikCr8
1: TikCr8Disp
2: DevDisplay
3: PgCr8Disp
4: Drawer
5: SelDrw
/**/
//Tik.Core.Prog.
AddIn.PgCr8Disp = {}
AddIn.PgCr8Disp.DisplayData = function DisplayData(org){
var pageita = org.id.split('-');
var Jump = false;
var pageitM = pageita[0]+'-'+pageita[1]//+'-'+pageita[2]+'-'+pageita[3]
// ========= JUMP routine ===========
if(org.id.substr(org.id.length-2) == '~J'){	
	Jump = true;
	var look = pageita[2].substr(0,6);
	var lookup = pageita[2].split('~');
	pageita[2] = (look == 'Drawer')?"Folder":(look == 'Folder')?"Sheet":(look == 'Sheet~')?"PWF":"Err";
	var gdat = window;
	pageita[5] = 'Jump';
	var whereisit = lookup[1].split('.');
	for(var gd in whereisit){
		gdat = gdat[whereisit[gd]];
	}
	jumpdat = gdat;
	pageita[6] = gdat[lookup[3]][1];
	DispCont = gdat[lookup[3]][1];

	var gpwfa =[]
	if(gdat[lookup[3]][7]){
//		var DispPg = DispCont;
//		if(gdat[lookup[3]][7] != 'Form'){DispPg = Tik.Core.Layup.Page[DispCont].RecDesc;}
		gpwfa[0] = 'Description';
		gpwfa[1] = 'Record';
		gpwfa[2] = gdat[lookup[3]][7]; //this ones last to open that tab (AddIn below!!)		
		//Jump to P,W or F and open required element
		//set required select - Form or Page or WIBL - AND Record and Description
		if(gpwfa[2] == 'Form'){
			for(var gcnt in gpwfa){
				var gpwf = gpwfa[gcnt];
//			var DispRes = (gpwfa[2] == 'Form')?DispCont:DispPg;
				var seladr = pageita[0]+'-TikCr8'+gpwf+'-Dev'+gpwf+'-PgCr8'+gpwf+'-'+gpwf+'-Sel'+gpwf
				var selopt = o(seladr).options.length
				for(var sv=0;sv<selopt;sv++){
					if(o(seladr).options[sv].value == DispCont){
						o(seladr).selectedIndex = sv;
						break;
					}
				}
			AddIn['PgCr8'+gpwf]['Display'+gpwf](seladr+'-'+DispCont)
			}
		}else{ //must be either WIBL or Page
			var gpwf = gpwfa[2];
			var seladr = pageita[0]+'-TikCr8'+gpwf+'-Dev'+gpwf+'-PgCr8'+gpwf+'-'+gpwf+'-Sel'+gpwf
			var selopt = o(seladr).options.length
			for(var sv=0;sv<selopt;sv++){
				if(o(seladr).options[sv].value == DispCont){
					o(seladr).selectedIndex = sv;
					break;
				}
			}
		AddIn['PgCr8'+gpwf]['Display'+gpwf](seladr+'-'+DispCont)
		}
		//click PWF heading!!
		var menutabs = document.getElementsByTagName('SpanTMenu') 
		for(var mt in menutabs){
			if(menutabs[mt].innerHTML == gpwf){
				Tik.Core.Prog.ChangeFolder(o(menutabs[mt].id))
				break;
			}
		}
		return;
	}
	if(gdat[lookup[3]][7] == ''){return;}
	o(pageitM+'-'+pageita[2]+'-NaME').value = gdat[lookup[3]][1];
}
// =========== End of JUMP Routine ============

var PWF = false;
var pageit = pageitM+'-'+pageita[2];
var DispCont = pageita[2];  
if(DispCont == 'Page' || DispCont == 'WIBL' || DispCont == 'Form'){
	pageita[2] = 'Sheet'
	PWF = true;
}
var DispName = o(pageitM+'-'+pageita[2]+'-NaME').value;
var DispSidx = 1; //The index value from the selected item
var DS = "0"; //Display Shows - which blocks to show or hide
//1= startup none, 2=selected Drawer, 3=selected Folder, 4=selected Sheet, 5=selected PWF
DS = (pageita[2] == 'Drawer')?"1":(pageita[2] == 'Folder')?"2":(pageita[2] == 'Sheet')?"3":"4" 
var whichSe = (pageita[2] == 'Drawer')?'Folder':(pageita[2] == 'Folder')?'Sheet':'PWF'; //outputs name from next down
var pageit2 = (DS=='2')?'Drawer':(DS=='3')?'Folder':(DS=='4')?'Sheet':'oops';//outputs name from previous up
if(pageita[3] == "Add"){
	var addselIdx = o(pageit + "-Sel"+DispCont).selectedIndex;
	var addselNam = o(pageit + "-Sel"+DispCont).options[addselIdx].value;
	if(addselNam == 'None'){return;}
	var PWFtp = (PWF == true)?pageita[2]:pageit2;
	var prevName = o(pageitM+'-'+PWFtp+'-NaME').value;
	var GdHm = Tik.Core.Layup[PWFtp][prevName].List;
	var GdRowTot = GdHm.length;
	GdHm[GdRowTot] = [];
	for(var colcnt in GdHm[0]){
		GdHm[GdRowTot][colcnt] = '';
		if(colcnt == 1){GdHm[GdRowTot][colcnt] = addselNam;}
		if(colcnt == 7){GdHm[GdRowTot][colcnt] = DispCont;}
	}
	if(PWF == false){	
		pageita[2] = pageit2;
		pageita[5] = 'Sel'+DispCont;
		DispName = prevName;
		DS = DS-1;
	}
}
pageit2 = (DS=='2')?'Drawer':(DS=='3')?'Folder':(DS=='4')?'Sheet':'oops';//outputs name from previous up
o(pageitM+'-Drawer-H').style.display = (DS=='1')?'block':(DS=='2')?'block':(DS=='3')?'block':(DS=='4')?'block':'none';
o(pageitM+'-Drawer-D').style.display = (DS=='1')?'block':(DS=='2')?'none':(DS=='3')?'none':(DS=='4')?'none':'none';
o(pageitM+'-Folder-H').style.display = (DS=='1')?'none':(DS=='2')?'block':(DS=='3')?'block':(DS=='4')?'block':'none';
o(pageitM+'-Folder-D').style.display = (DS=='1')?'none':(DS=='2')?'block':(DS=='3')?'none':(DS=='4')?'none':'none';
o(pageitM+'-Sheet-H').style.display = (DS=='1')?'none':(DS=='2')?'block':(DS=='3')?'block':(DS=='4')?'block':'none';
o(pageitM+'-Sheet-D').style.display = (DS=='1')?'none':(DS=='2')?'none':(DS=='3')?'block':(DS=='4')?'none':'none'; 
//o(pageitM+'-PWF-H').style.display = (DS=='1')?'none':(DS=='2')?'none':(DS=='3')?'block':(DS=='4')?'block':'none';
//o(pageitM+'-PWF-D').style.display = (DS=='1')?'none':(DS=='2')?'none':(DS=='3')?'block':(DS=='4')?'block':'none';	
var tmpvis = ["Drawer","Folder","Sheet","PWF"];
//o(pageitM+'-PWF-Save').style.visibility = 'hidden'

if(org.type == 'select-one'){
	DispSidx =  org.selectedIndex
	DispName = org.options[DispSidx].value
}
else if(org.type == 'textarea'){}

else if(org.type == 'input'){}
else{
}
//o(pageit + '-Dat').innerHTML = DispCont;
// rebuild the drawer select for new data!!
var selarr = ["Drawer","Folder","Sheet"];
for(var selarrcnt =0;selarrcnt<3;selarrcnt++){
	var whereto = o(pageita[0]+"-PgCr8Disp-"+selarr[selarrcnt]+"-Sel"+selarr[selarrcnt]) ;
	var remSelNam = whereto.options[whereto.selectedIndex].value;
	whereto.options.length=1;
	var loopit = 0
	for(var labl in Tik.Core.Layup[selarr[selarrcnt]]){
		loopit ++;
		var z=document.createElement('option');	
		if(labl == remSelNam){z.selected = 'selected';}
		z.text = labl;	
		z.value = labl; 
		whereto.add(z,null);	
	}
//	whereto.selectedIndex = (selarrcnt ==0)?remSelIdx:0;
	SelSort(whereto);
	o(pageita[0]+"-PgCr8Disp-"+selarr[selarrcnt]+"-Itm").innerHTML = "Total &nbsp; "+selarr[selarrcnt]+" = "+loopit;
}
if(DS=='2' || DS=='3' || DS=='4'){ 
//Folder now selected - therefore show info from Drawers list (the relevant one)
//need to add data to list from previous list!!!!
//Select number contains array row number!! - they are in array order
//	var aboveit = o(pageitM+'-'+pageit2+'-SelVal').options[o(pageitM+'-'+pageit2+'-SelVal').selectedIndex];
//	var whichList = Tik.Core.Layup[pageit2][aboveit.value];
	DispNot = o(pageitM+'-'+pageita[2]+'-NaME').value
	o(pageitM+'-'+pageita[2]+'-Dis'+pageita[2]).innerHTML = DispName
}
var DispTp = (DS!='6')?pageita[2] :"";
//Serv also exists - but using ?DS==4 below to mod select instead!!
//	Where the info exists to build the grid from (and put mods back to)
Tik.Vars.Grid.New = "Tik.Core.Layup."+DispTp+"."+DispName+".List";		
//The array that holds the header names	
Tik.Vars.Grid.Head = ["Ord","R-Mov","Name","Display","Call","Indent","Comments","Content","PWF"];
//[Mov-col#,Charfor Remove-col#,Jmp,Char for Jump,NoC,spr,Above or below or '' for Add button,text for Add]
Tik.Vars.Grid.Attach = [[1,'R',''],[1,'J','AddIn.PgCr8Disp.DisplayData(this)'],["2,1",'',''],["B","Add New Blank",'']];
//	The array that holds the info for the titles 
Tik.Vars.Grid.Title = ["Order shown on page","Jump, Remove, Move-up, Move-Down","The name of the next layer","The label displayed in the button or tab","What function to call, at the start of this object","What Indent will be used, if layered","Comments that will appear to customer if they hold cursor over the tab","Content","Whether the name refers to a Page,WIBL or Form, Where to find this entries Name"]	
// where the grid will be placed - and run the Cr8Grid function
Tik.Core.Prog.Grid.Cr8Grid(pageitM+'-'+pageita[2])//+'-ContGridD-') 


if(DS=='3'){
//change type and add to usage arrangement for inserting data

	var TotAvailP=0;TotAvailW=0;TotAvailF=0;
	o(pageitM+'-Page-SelPage').options.length=0;
	var avcn =[];
	for(avcn[avcn.length] in Tik.Core.Layup.Page){}
	for(var avcnt in avcn.sort()){
		TotAvailP++;
		y = document.createElement('option');
		y.text = avcn[avcnt];
		y.value = avcn[avcnt];
		o(pageitM+'-Page-SelPage').add(y,null);
	}
	SelSort(o(pageitM+'-Page-SelPage'));
	
	o(pageitM+'-WIBL-SelWIBL').options.length=0;		
	var avcn =[];
	for(avcn[avcn.length] in Tik.Core.Layup.WIBL){}
	for(var avcnt in avcn.sort()){
		TotAvailW++;
		y = document.createElement('option');
		y.text = avcn[avcnt];
		y.value = avcn[avcnt];
		o(pageitM+'-WIBL-SelWIBL').add(y,null);
		}
	SelSort(o(pageitM+'-WIBL-SelWIBL'));
		
	o(pageitM+'-Form-SelForm').options.length=0;	
	var avcn =[];
	for(avcn[avcn.length] in Tik.Core.Layup.Descriptor){}
	for(var avcnt in avcn.sort()){
		TotAvailF++;
		y = document.createElement('option');
		y.text = avcn[avcnt];
		y.value = avcn[avcnt];
		o(pageitM+'-Form-SelForm').add(y,null);
		}
	SelSort(o(pageitM+'-Form-SelForm'));	
	
	var strInf = ' &nbsp; Page = '+TotAvailP+' &nbsp; WIBL = '+TotAvailW+' &nbsp; Form = '+TotAvailF;
	o(pageitM+'-'+pageita[2]+'-Itm').innerHTML += strInf;	
	return;
}
var tmpdesc = (pageita[2]=='Drawer')?'PgCr8Drw':(pageita[2]=='Folder')?'PgCr8Fol':'PgCr8Sht';
var DispValu = Tik.Core.Layup[pageita[2]][(DispName=='None')?'BlanK':DispName]

for(var nme in DispValu){
	if(nme == 'Charge'){
		var chgqty = 0
		for(var chg in DispValu[nme]){
			o(pageit+'-'+chg).value = (DispName=='None')?'':DispValu[nme][chg];
		}
	}
	else if(nme == 'List'){continue;}
	else try{
	var printValue = (DispName == 'None')?'':DispValu[nme];
		if(o(pageit+'-'+nme).type == 'text'){o(pageit+'-'+nme).value = printValue} 
		else if(nme=='RunIt'){o(pageit+'-'+nme).value = JSON.stringify(DispValu[nme])}
		else if(o(pageit+'-'+nme).type == 'textarea'){o(pageit+'-'+nme).value = printValue.replace(/%x0A/mg,'\r\n').replace(/%x09/mg,'   ');}
		else if(o(pageit+'-'+nme).type == 'select-one'){
			if(printValue ==''){o(pageit+'-'+nme).selectedIndex = 0;}
			else{
				var selen = o(pageit+'-'+nme).options.length
				for(var cnt=0;cnt<selen;cnt++){
					if(DispValu[nme].toLowerCase() == o(pageit+'-'+nme).options[cnt].value.toLowerCase()){
						o(pageit+'-'+nme).selectedIndex = cnt;
						break;
					}
				}
			}
		}
	}catch(err){
	o(pageit+'-rsoverflow').innerHTML += pageit+'-'+nme +" | "+ DispValu[nme]+" |<br> ";
	}
}	
}

// =============================================================================


//Just for the Record Page
AddIn.PgCr8Record = {};//DisplayRecord;
AddIn.PgCr8Record.DisplayRecord = function DisplayRecord(org){
	var pageita = [];
	if(org.id){pageita = org.id.split('-');}else{pageita = org.split('-');}
	var pageitS = pageita[0]+'-'+pageita[1]+'-'+pageita[2];
	var pageitM = pageitS+'-'+pageita[3];
	var pageit = pageitS //pageitM+'-'+pageita[4];
	var DispCont = pageita[2];
	var DispSidx = 1; //The index value from the selected item;
	var DispPage = 0;
	var DispName = '';
	var DataPage = Tik.Core.Layup[pageita[2]];
	var DescPage = Tik.Core.Layup.Descriptor.Record;
	var RecdPage = Tik.Core.Layup.Descriptor;
	//find type of reason for execution - select, input, button, a, etc
	if(org.type == 'select-one'){
		DispPage = org.selectedIndex;
		DispName = org.options[DispPage].value;
	}else if(pageita[4]){
		DispName = pageita[4];
	}		
	if(DescPage.Desc.Extended.indexOf(desc) >=0){
	} 
	if(DescPage.Desc.Fixed.indexOf(desc) >=0){
	} 
	for(var opt in DescPage.Desc.Optioned){
		var selobj = o(pageit+'-'+DescPage.Desc.Optioned[opt]);
		if(selobj.type == 'select-one'){
			selobj.options.length=0;
			var selobjelm = DescPage.Desc[DescPage.Desc.Optioned[opt]+'Opt'];
			for(var optelm in selobjelm){
				selobj.options[selobj.options.length] = new Option(selobjelm[optelm][0],selobjelm[optelm][1],selobjelm[optelm][2]);
			}
		}
	} 
	for(var desc in DescPage.Record){
		if(desc == 'Desc' || desc == 'Tik_Fields' || desc == 'Tik_Linker'){continue;}
		else{
			if(o(pageit+'-'+desc).type == 'select-one'){
				var selobjx = o(pageit+'-'+desc);
				for(var optx=0;optx<selobjx.options.length;optx++){
					if(selobjx.options[optx].value == RecdPage[DispName].Record[desc]){
						selobjx.selectedIndex=(DispName!='None')?optx:0;
						break;
					}
				}
			}else try{
				o(pageit+'-'+desc).value = (DispName!='None')?RecdPage[DispName].Record[desc]:'';
			}catch(err){
			o(pageit+'-rsoverflow').innerHTML += pageit+'-'+desc +" | Data: "+ (RecdPage[DispName])?RecdPage[DispName].Record[desc]:"No Record exists" +" |<br> ORG: "+org+" | Err: "+err+"<br> ";
		}
		}
	} 
}
// =============================================================================
AddIn.PgCr8Description = {};
AddIn.PgCr8Description.DisplayDescription = function DisplayDescription(org){
var pageita = [];
if(org.id){pageita = org.id.split('-');}else{pageita = org.split('-');}
var pageitS = pageita[0]+'-'+pageita[1]+'-'+pageita[2]; 
var pageitM = pageitS+'-'+pageita[3];
var pageit = pageitS //+'-'+pageita[4];
var DispCont = pageita[4];
var DispSidx = 1; //The index value from the selected item;
var DispPage = o(pageit+'-SelDescription').selectedIndex;
var DispName = o(pageit+'-SelDescription').options[DispPage].value;
var DataPage = Tik.Core.Layup[pageita[4]];
var DescPage = Tik.Core.Layup.Descriptor[pageita[4]];
var RecdPage = Tik.Core.Layup.Descriptor[pageita[4]];
var DataDesc = Tik.Core.Layup.Descriptor[DispName];
var DatForm = Tik.Core.Layup.Descriptor;
//start form conversion
var formdata = Tik.Core.Layup.Descriptor
function DescRem(elem,remall){ //removes elem from display and Descriptive area - everything!!!
//	o(pageit+'-'+pageita[5]).style.textDecoration = 'line-through'; //line through the text to mark as removing
//	o(pageit+'-'+pageita[5]+'D').innerHTML = 'oops';  //clear the external data
	var tmpfld = o(pageit+'-'+pageita[3]).parentNode.parentNode
	//remove data from Tik Desc
	if(remall == true){tmpfld.parentNode.removeChild(tmpfld);delete DataDesc[elem]	};
	for(var objval in DataDesc.Desc){
		if(objval.substr(o,elem.length) == elem){
			delete DataDesc.Desc[objval];
		}
		else if(typeof DataDesc.Desc[objval] =='object' && DataDesc.Desc[objval].indexOf(elem) >=0){
			for(var elm in DataDesc.Desc[objval]){
				if(DataDesc.Desc[objval][elm] == elem){DataDesc.Desc[objval].splice(elm,1)}
			}
		}
	}
} 

//end form conversion
if(org.type =='radio'){
	var xstr ='';
	var elem = pageita[3].replace(/NEFO/,'');
	o(pageit+'-'+pageita[3]).style.textDecoration = 'none';
	if(pageita[4] =='rem'){
		DescRem(elem,true);	//removes all info about elem
	}
	else if(pageita[4] ==0){
		DescRem(elem,false);
//		DescAdd(elem,0);
		xstr += '';
		if(pageita[3] == 'RecDesc' || pageita[3] == 'Nid'){
			xstr += "<input id='"+pageit+'-'+elem+"' size='16' tiknorm='true' value='"+DataDesc[elem]+"'> &nbsp; ";
		}
		o(pageit+'-'+pageita[3]+'D').innerHTML = xstr; //clear the external data
		o(pageit+'-'+pageita[3]+'X').innerHTML = 'Normal';
		DatForm[DispName][elem] = "";
	}	
	else if(pageita[4] ==1){
		DescRem(elem,false);
//		DescAdd(elem,1);
		o(pageit+'-'+pageita[3]+'X').innerHTML = 'Extended';
		xstr += "<input id='"+pageit+'-'+elem+"Min' size='3' tiknorm='true' value='"+DataDesc.Desc[elem+'Min']+"'>Min &nbsp; ";
		xstr += "<input id='"+pageit+'-'+elem+"Max' size='3' tiknorm='true' value='"+DataDesc.Desc[elem+'Max']+"'>Max &nbsp; "; 
		xstr += "<textarea id='"+pageit+'-'+elem+"Former' rows='2' cols='20' tiknorm='true'>"
		xstr += DataDesc.Desc[elem+'Former']+"</textarea>Former &nbsp; "; 
		xstr += "<input id='"+pageit+'-'+elem+"Req' size='10' tiknorm='true' value='"+DataDesc.Desc[elem+'Req']+"'>Req &nbsp; ";  
		o(pageit+'-'+pageita[3]+'D').innerHTML = xstr;
		DatForm[DispName][elem] = [];
		DatForm[DispName].Desc.Extended[DatForm[DispName].Desc.Extended.length] = elem;
		DatForm[DispName].Desc[elem+'Min'] = "";
		DatForm[DispName].Desc[elem+'Max'] = "";
		DatForm[DispName].Desc[elem+'Former'] = [];
		DatForm[DispName].Desc[elem+'Req'] = "";
	}	
	else if(pageita[4] ==2){
		DescRem(elem,false);
//		DescAdd(elem,2);
		o(pageit+'-'+pageita[3]+'X').innerHTML = 'Fixed';
		var fix = []
		xstr += "<textarea id='"+pageit+'-'+elem+"' rows='2' cols='60' tiknorm='true'>";
		for(fix[fix.length] in DataDesc[elem]){}
		xstr += fix.toString();
		xstr += "</textarea>Fixed &nbsp; "; 
		o(pageit+'-'+pageita[3]+'D').innerHTML = xstr;
		DatForm[DispName][elem] = "";
		DatForm[DispName].Desc.Fixed[DatForm[DispName].Desc.Fixed.length] = elem;
		DatForm[DispName].Desc[elem] = [];
	}	
	else if(pageita[4] ==3){
		DescRem(elem,false);
//		DescAdd(elem,3);
		o(pageit+'-'+pageita[3]+'X').innerHTML = 'Optioned';
		xstr += "<textarea id='"+pageit+'-'+elem+"Opt' rows='2' cols='60' tiknorm='true'>";
			for(var opt in DataDesc.Desc[elem+'Opt']){
				xstr += (opt!=0)?';':'';
				xstr += DataDesc.Desc[elem+'Opt'][opt].toString()
			}
			xstr += "</textarea>Options &nbsp; "; 
		o(pageit+'-'+pageita[3]+'D').innerHTML = xstr;
		DatForm[DispName][elem] = "";
		DatForm[DispName].Desc.Optioned[DatForm[DispName].Desc.Optioned.length] = elem;
		DatForm[DispName].Desc[elem] = []
	}
	else if(pageita[4] ==4){
		DescRem(elem,false);
//		DescAdd(elem,4);
		o(pageit+'-'+pageita[3]+'X').innerHTML = 'Indirect';
		xstr += "<input id='"+pageit+'-'+elem+"Name' size='16' tiknorm='true' value='"+DataDesc.Desc[elem+'Name']+"'>Name &nbsp; ";
		xstr += "<input id='"+pageit+'-'+elem+"ColIdx' size='1' tiknorm='true' value='"+DataDesc.Desc[elem+'ColIdx']+"'>ColIdx &nbsp; ";
		xstr += "<input id='"+pageit+'-'+elem+"Max' size='1' tiknorm='true' value='"+DataDesc.Desc[elem+'Max']+"'>Max &nbsp; <br>"; 
		xstr += "<textarea id='"+pageit+'-'+elem+"Former' rows='2' cols='20' tiknorm='true'>"
		xstr += DataDesc.Desc[elem+'Former']+"</textarea>Former &nbsp; "; 
		xstr += "<input id='"+pageit+'-'+elem+"Req' size='10' tiknorm='true' value='"+DataDesc.Desc[elem+'Req']+"'>Req &nbsp; "; 		
		xstr += "<input id='"+pageit+'-'+elem+"Ref' size='3' tiknorm='true' value='"+DataDesc.Desc[elem+'Ref']+"'>Ref &nbsp; "; 
		o(pageit+'-'+pageita[3]+'D').innerHTML = xstr;
		DatForm[DispName][elem] = "";
		DatForm[DispName].Desc.Indirect[DatForm[DispName].Desc.Indirect.length] = elem;
		DatForm[DispName].Desc[elem+'Name'] = "";
		DatForm[DispName].Desc[elem+'ColIdx'] = "";
		DatForm[DispName].Desc[elem+'Max'] = "";
		DatForm[DispName].Desc[elem+'Former'] = [];
		DatForm[DispName].Desc[elem+'Req'] = [];
		DatForm[DispName].Desc[elem+'Ref'] = "";
	}	
	//Indirect
//"LinkerName":"Tik.Core.Info.Linking", "LinkerReq":[], "LinkerColIdx":0, "LinkerMax":"5", "LinkerRef":"",
//				"LinkerFormer":["Idx","1","2","3","4","5","6","7","8","Mask"],
	
		
	return;
}
if(pageita[3] =='AddNew'){
	var elem = o(org.id+'D').value
	for(var an in DatForm[DispName]){
		if(DatForm[DispName][an] == elem){
			Tik.Core.Prog.Response("Field needs a Unique name! Field '"+elem+"' already exists",6);
			return;
		}
	}
	DescAdd(elem,0);
}
// =============================
function DescAdd(elem,elemtype){
//	var elemtype = 0;
	var deschead = 0;
	var cnt = 1+document.getElementById(pageit+'-DescLeft').getElementsByTagName('spanDescE').length
	var Astr = "<spanDescE id='"+pageit+'-'+cnt+"'  class='DescElemE'>";
	Astr += "<spanformat style='vertical-align:top;display:table-cell;'>";
	Astr += "<Spangap class='DevForm' style='vertical-align:text-top' ";
	Astr += " id='"+pageit+"-NEFO"+elem+"' name='"+pageit+"-NEFO"+elem+"'>"+elem +"</Spangap> ";
	//do buttons to select NEFO type
	var radbutt = 'AddIn.PgCr8Description.DisplayDescription(this)'
	Astr += "<input type='radio' id='"+pageit+"-NEFO"+elem+"-rem' name='"+pageit+"-NEFO"+elem+"' ";
	Astr += " onclick='"+radbutt+"'  style='visibility:";
	Astr += (deschead==1)?'hidden':'visible';
	Astr += "; margin:1px;' ";
	Astr += "'>";
	for(var but=0;but<5;but++){
		Astr += "<input type='radio' id='"+pageit+"-NEFO"+elem+'-'+but+"' name='"+pageit+"-NEFO"+elem+"' ";
		Astr += " onclick='"+radbutt+"'  style='visibility:";
		Astr += (deschead==1 && but !=0)?'hidden':'visible';
		Astr += "; margin:1px;' ";
		Astr += (elemtype==but)?' checked=true':'';
		Astr += "'>";
	}
	Astr += "&nbsp;<spangap id='"+pageit+"-NEFO"+elem+"X' style='display:inline-block;width:65px;vertical-align:inherit;'>"; 
	Astr += (elemtype==1)?'Extended':(elemtype==2)?'Fixed':(elemtype==3)?'Optioned':(elemtype==4)?'Indirect':'Normal';
	Astr += "</spangap>";
	Astr += "</spanformat>"
	Astr += "<spanDescD id='"+pageit+"-NEFO"+elem+"D' class='DescElemD'>";
	//in here goes the data from the above EFO if applicable
	Astr += "<input id='"+pageit+'-'+elem+"' size='16' tiknorm='true' value='"+DataDesc[elem]+"'> &nbsp; ";
	Astr += "</spanDescD><br>";
	Astr += "</spanDescE>";
	o(pageit+'-DescLeft').innerHTML += Astr;
	
	//Add to relevant Tik
	DatForm[DispName][elem] = "";
	return;
}
// ===============
var str ="<span style='color:blue;'><spanShtL class='DevForm'> &nbsp; Legend: </spanShtL>&nbsp;R&nbsp; N&nbsp; E&nbsp; F&nbsp;O&nbsp; I<br></span>";



/*				// ================= ConvD2F - convert Description to Form data (basic) 
if(pageita[5] =='ConvD2F'){
	if(formdata[DispName]){
		;Tik.Core.Prog.Response("A Form with this name already exists!",6);
//		o(pageit+'-Cr8NewEntry').focus();
		return;
	}
//	var EntryNew = o(pageit+'-Cr8NewEntry').value;
	var DatForm = Tik.Core.Layup.Description
	if(formdata[DispName]){Tik.Core.Prog.Response("Descriptor needs a Unique name! Form '"+DispName+"' already exists",6);return;}
	//put name into selector
	var RecNum = 09999;
	var recadder = "000000100000000";	
	formdata[DispName] = {};
	var xForm = formdata[DispName];
//		tmpForm += "\""+DatFld[fld].Form+"\":{";
	for(var elm in DataDesc){
		if(elm == 'Desc'){
			var ArrDesc = ["Extended","Fixed","Optioned","Indirect"];
			for(var typ in ArrDesc){
				if(DataDesc[elm][ArrDesc[typ]].length >=1){
					for(var Acnt in DataDesc.Desc[ArrDesc[typ]]){
						xForm[DataDesc.Desc[ArrDesc[typ]][Acnt]] = "";
					} 	
				}
			}
		}
		else if(elm =='UID'){xForm.UID = recadder+RecNum.toString();}
		else if(elm == 'NaME'){xForm.NaME = DispName;}
		else{
		xForm[elm] = "";
		}		
	}
	//SAVE Form info !!
	var DataDesRec = Tik.Core.Layup.Description.Record
	var DatRecd = Tik.Core.Layup.Record;
	DatRecd[DispName] = {};
	var xForm = DatRecd[DispName];
	for(var elm in DataDesRec){
		if(elem == 'Desc' )continue;//|| elem == 'Record'  || elem == 'Tik_Fields' || elem == 'Tik_Linker'){continue;}
		else if(elm =='UID'){xForm.UID = recadder+RecNum.toString();}
		else if(elm == 'NaME'){xForm.NaME = DispName;}
		else{
		xForm[elm] = "";
		}		
	}
	//Save Record Info !!
	
	
	/* Record Info - 2 B done!!
		"Drawer":{"UID":"10000000000000000065", "NaME":"Drawer", "Number":"10000000000000000065", 
		"RCab":"", "RLayer":"", "RUnit":"", "RDev":"", 
		"RUpStrm":"", "RDnStrm":"", "Upline":"", 
		"SecNum":"3", "DBase":"TikIt", "Address":"", 
		"PLA":"", "Notif":"80", "NvRam":"", 
		"Info":"L", "Type":"L", "start":"", 
		"LoLA":"30", "LoLT":"3", "LoLI":"1", "TTL":"", //TTL=spec date, LoL=qty days 
		"FUp":"", "Order":"", "Version":"0.0",  "AppTab":"", "Descript":"Registry of Drawers", 
		"Comment":""},
		*/
//}
/**/
				// ================= Cr8New
if(pageita[3] =='Cr8New'){
	if(o(pageit+'-Cr8NewEntry').value.length <=2){
		;Tik.Core.Prog.Response("You need to give the Descriptor a name!",6);
		o(pageit+'-Cr8NewEntry').focus();
		return;
	}

//make up new entry for descriptor with the minimum required 
	//	(include Linker & Fields (easier to delete, than make from memory))
	var EntryNew = o(pageit+'-Cr8NewEntry').value;
//	var DatForm = Tik.Core.Layup.Description
	if(DatForm[EntryNew]){Tik.Core.Prog.Response("Descriptor needs a Unique name! "+EntryNew+" already exists",6);return;}
	//put name into selector
	
	var RecNum = '9999';  //Get a NEW record number from the authority!!
	var recadder = "000000100000000";	//===== XXXXXXXXXXXXXXXXXXXXXXXXXX =====
	
	DatForm[EntryNew] = {};
	var xForm = DatForm[EntryNew];
//		tmpForm += "\""+DatFld[fld].Form+"\":{";
//		xForm.NaME = EntryNew;
	xForm.NaME = EntryNew;
	xForm.Nid = "S";
	xForm.RecDesc = EntryNew;
	xForm.Add = "";
	xForm.Write = "";
	xForm.Read = "";
	xForm.VName = EntryNew;
	xForm.Header = "";
	xForm.Footer = "";
	xForm.Comment = "";
	xForm.Tik_Linker = [];
	xForm.Tik_Fields = [[0,'start',2,3,4,'2Bremoved',6,7,8,9,10,11,12]];

		
//Desc	
	xForm.Desc = {};
	xForm.Desc.Indirect = [];
	xForm.Desc.Extended = [];
	xForm.Desc.Fixed = [];
	xForm.Desc.Optioned = [];

		
	xForm.Record ={};
	xForm.Record.UID = recadder+RecNum.toString();
	xForm.Record.NaME = EntryNew;
	xForm.Record.Version = "0";
	xForm.Record.RCab = "";
	xForm.Record.RLayer = "";
	xForm.Record.RUnit = "";
	xForm.Record.RDev = "";
	xForm.Record.RUpStrm = "";
	xForm.Record.RDnStrm = "";
	xForm.Record.Upline = "";
	xForm.Record.SecNum = "3";
	xForm.Record.DBase ="Personal";
	xForm.Record.Address = "";
	xForm.Record.PLA = "";
	xForm.Record.Notif = "80";
	xForm.Record.NvRam = "";
	xForm.Record.Info = "L";
	xForm.Record.Type = "L";
	xForm.Record.start = "";
	xForm.Record.LoLA = "30";
	xForm.Record.LoLT = "3";
	xForm.Record.LoLI = "1";
	xForm.Record.TTL = "";
	xForm.Record.FUp = "";
	xForm.Record.Order = "";
	xForm.Record.AppTab = "";
	xForm.Record.Descript = "Registry of ";
	xForm.Record.Comment = "";
		
	DataDesc = Tik.Core.Layup.Descriptor[EntryNew]
	
	var desclng = o(pageit+'-SelDescription').options.length;
	
	var z=document.createElement('option');	
	z.text = EntryNew;	
	z.value = EntryNew;
	o(AddIn.PgCr8Record.whereItIs+'SelRecord').add(z,null);		
	o(AddIn.PgCr8Record.whereItIs+'SelRecord').selectedIndex = desclng;
	AddIn.PgCr8Record.DisplayRecord(AddIn.PgCr8Record.whereItIs+'SelRecord-'+EntryNew);
	
	var z=document.createElement('option');	
	z.text = EntryNew;	
	z.value = EntryNew;
	o(AddIn.PgCr8Form.whereItIs+'SelForm').add(z,null);	
	o(AddIn.PgCr8Form.whereItIs+'SelForm').selectedIndex = desclng;
	AddIn.PgCr8Form.DisplayForm(AddIn.PgCr8Form.whereItIs+'SelForm-'+EntryNew);
	
	var z=document.createElement('option');	
	z.text = EntryNew;	
	z.value = EntryNew;
	o(pageit+'-SelDescription').add(z,null);
	o(pageit+'-SelDescription').selectedIndex = desclng;

} // End Cr8New
// ============


//Indirect
//"LinkerName":"Tik.Core.Info.Linking", "LinkerReq":[], "LinkerColIdx":0, "LinkerMax":"5", "LinkerRef":"",
//				"LinkerFormer":["Idx","1","2","3","4","5","6","7","8","Mask"],
var cnt = -1;
for(var elem in DataDesc){
	var xstr ='';
	var elemtype = 0;
	var deschead = 0;
		if(elem == 'Desc' || elem == 'Record'  || elem == 'Tik_Fields' || elem == 'Tik_Linker'){continue;}
		cnt++
	if(DataDesc.Desc.Extended.indexOf(elem) >=0){
		elemtype = 1;
		//add min max former req
		xstr += "<input id='"+pageit+'-'+elem+"Min' size='3' tiknorm='true' value='"+DataDesc.Desc[elem+'Min']+"' onblur='Tik.Core.Prog.PutEdit(this)'>Min &nbsp; ";
		xstr += "<input id='"+pageit+'-'+elem+"Max' size='3' tiknorm='true' value='"+DataDesc.Desc[elem+'Max']+"' onblur='Tik.Core.Prog.PutEdit(this)'>Max &nbsp; "; 
		xstr += "<textarea id='"+pageit+'-'+elem+"Former' rows='2' cols='20' tiknorm='true' onblur='Tik.Core.Prog.PutEdit(this)'>"
		xstr += DataDesc.Desc[elem+'Former']+"</textarea>Former &nbsp; "; 
		xstr += "<input id='"+pageit+'-'+elem+"Req' size='10' tiknorm='true' value='"+DataDesc.Desc[elem+'Req']+"' onblur='Tik.Core.Prog.PutEdit(this)'>Req &nbsp; ";  
	}
	else if(DataDesc.Desc.Fixed.indexOf(elem) >=0){
		elemtype = 2;
		var fix = []
		xstr += "<textarea id='"+pageit+'-'+elem+"' rows='2' cols='60' tiknorm='true' onblur='Tik.Core.Prog.PutEdit(this)'>";
		for(fix[fix.length] in DataDesc[elem]){}
		xstr += fix.toString();
		xstr += "</textarea>Fixed &nbsp; "; 
	}
	else if(DataDesc.Desc.Optioned.indexOf(elem) >=0){
		elemtype = 3;
			xstr += "<textarea id='"+pageit+'-'+elem+"Opt' rows='2' cols='60' tiknorm='true' onblur='Tik.Core.Prog.PutEdit(this)'>";
			for(var opt in DataDesc.Desc[elem+'Opt']){
				xstr += (opt!=0)?';':'';
				xstr += DataDesc.Desc[elem+'Opt'][opt].toString()
			}
			xstr += "</textarea>Options &nbsp; "; 
	}
	else if(DataDesc.Desc.Indirect.indexOf(elem) >=0){
		elemtype = 4;
		xstr += "<input id='"+pageit+'-'+elem+"Name' size='16' tiknorm='true' value='"+DataDesc.Desc[elem+'Name']+"' onblur='Tik.Core.Prog.PutEdit(this)'>Name &nbsp; ";
		xstr += "<input id='"+pageit+'-'+elem+"ColIdx' size='1' tiknorm='true' value='"+DataDesc.Desc[elem+'ColIdx']+"' onblur='Tik.Core.Prog.PutEdit(this)'>ColIdx &nbsp; ";
		xstr += "<input id='"+pageit+'-'+elem+"Max' size='1' tiknorm='true' value='"+DataDesc.Desc[elem+'Max']+"' onblur='Tik.Core.Prog.PutEdit(this)'>Max &nbsp; <br>"; 
		xstr += "<textarea id='"+pageit+'-'+elem+"Former' rows='2' cols='20' tiknorm='true' onblur='Tik.Core.Prog.PutEdit(this)'>"
		xstr += DataDesc.Desc[elem+'Former']+"</textarea>Former &nbsp; "; 
		xstr += "<input id='"+pageit+'-'+elem+"Req' size='10' tiknorm='true' value='"+DataDesc.Desc[elem+'Req']+"' onblur='Tik.Core.Prog.PutEdit(this)'>Req &nbsp; "; 		
		xstr += "<input id='"+pageit+'-'+elem+"Ref' size='3' tiknorm='true' value='"+DataDesc.Desc[elem+'Ref']+"' onblur='Tik.Core.Prog.PutEdit(this)'>Ref &nbsp; "; 

	}
	else if(elem == 'CommeNT'){// ||elem == 'Header' || elem == 'Footer'){		
		deschead = 1;
		xstr += "<textarea id='"+pageit+'-'+elem+"' cols='28' rows='1' tiknorm='true' onblur='Tik.Core.Prog.PutEdit(this)'>"+DataDesc[elem]+"</textarea>";
	}

	else if(elem == 'UID' || elem == 'NaME' ){
		deschead = 1;
		xstr += "<input id='"+pageit+'-'+elem+"' size='16' tiknorm='true' value='"+DataDesc[elem]+"' disabled='disabled' onblur='Tik.Core.Prog.PutEdit(this)'> &nbsp; ";
	}
	else if(elem == 'RecDesc' || elem == 'Nid' ){
		deschead = 1;
		xstr += "<input id='"+pageit+'-'+elem+"' size='16' tiknorm='true' value='"+DataDesc[elem]+"'  onblur='Tik.Core.Prog.PutEdit(this)'> &nbsp; ";
	}
	
	else if(elemtype == 0){
		deschead = 0;
		if(elem!='Add' &&elem!='Write' &&elem!='Read' &&elem!='VName' &&elem!='Header' &&elem!= 'Footer' &&elem!='Comment'){
			xstr += "<input id='"+pageit+'-'+elem+"' size='16' tiknorm='true' value='"+DataDesc[elem]+"' onblur='Tik.Core.Prog.PutEdit(this)'> &nbsp; ";
		}
	}

	
	
	str += "<spanDescE id='"+pageit+'-'+cnt+"'  class='DescElemE'>";
	str += "<spanformat style='vertical-align:top;display:table-cell;'>";
	str += "<Spangap class='DevForm' style='vertical-align:text-top' ";
	str += " id='"+pageit+"-NEFO"+elem+"' name='"+pageit+"-NEFO"+elem+"'>"+elem +"</Spangap> ";
	//do buttons to select NEFO type
	var radbutt = 'AddIn.PgCr8Description.DisplayDescription(this)'
	str += "<input type='radio' id='"+pageit+"-NEFO"+elem+"-rem' name='"+pageit+"-NEFO"+elem+"' ";
	str += " onclick='"+radbutt+"'  style='visibility:";
	str += (deschead==1)?'hidden':'visible';
	str += "; margin:1px;' ";
	str += (elemtype==but)?' checked=true ':'';
	str += "'>";
	for(var but=0;but<5;but++){
		str += "<input type='radio' id='"+pageit+"-NEFO"+elem+'-'+but+"' name='"+pageit+"-NEFO"+elem+"' ";
		str += " onclick='"+radbutt+"'  style='visibility:";
		str += (deschead==1 && but !=0)?'hidden':'visible';
		str += "; margin:1px;' ";
		str += (elemtype==but)?' checked=true ':'';
		str += "'>";
	}
	str += "&nbsp;<spangap id='"+pageit+"-NEFO"+elem+"X' style='display:inline-block;width:65px;vertical-align:inherit;'>"; 
	str += (elemtype==1)?'Extended':(elemtype==2)?'Fixed':(elemtype==3)?'Optioned':(elemtype==4)?'Indirect':'Normal';
	str += "</spangap>";
	str += "</spanformat>"
	str += "<spanDescD id='"+pageit+"-NEFO"+elem+"D' class='DescElemD'>";
	//in here goes the data from the above EFO if applicable
	str += xstr;
	str += "</spanDescD><br>";
	str += "</spanDescE>";
}
o(pageit+'-DescLeft').innerHTML = str
}
// differences between form and description (not page or WIBL)
/*
o(pageit+'-'+'FieldsGrid').innerHTML = "";
o(pageit+'-'+'FieldsGrid').style.color = 'red'; 
o(pageit+'-'+'FieldsGrid').style.fontSize = '0.8em';
var rcnt = [];
var exist = 0;
var xcnt = [];
for(var fcnt in Tik.Core.Layup.Form[DispName]){
	if(fcnt != 'Fields'){xcnt[xcnt.length] =fcnt;}
	if(fcnt == 'Fields'){
		for(var gcnt in Tik.Core.Layup.Form[DispName].Fields){
			xcnt[xcnt.length] = Tik.Core.Layup.Form[DispName].Fields[gcnt][1]
		}
	}
}		
for(lc in xcnt){
	exist = 0
	for(var dcnt in Tik.Core.Layup.Description[DispName]){
		if(dcnt == 'Desc'){continue;}
		if(xcnt[lc] == dcnt){exist=1;continue;}
	}
	if(exist == 0){rcnt[rcnt.length] = "&nbsp;"+(rcnt.length+1)+":"+xcnt[lc];}//+" |"+dcnt;}
}
o(pageit+'-'+'FieldsGrid').innerHTML += (rcnt.length == 0)?"":"<br>Differences between Form and Description:"+rcnt+"<hr>";
*/



// =============================================================================
AddIn.PgCr8Page = {};
/*
0: TikCr8
1: TikCr8Page
2: DevPage
3: PgCr8Pag
4: PgCr8Hlp //page
5: Read
6: whereItIs
*/
AddIn.PgCr8Page.DisplayPage = function DisplayPage(org){
var pageita = [];
var WhatData = [];
var	DispPage = '';
var	DispName = '';
if(org.id){pageita = org.id.split('-');WhatData = org.id.split('~');}
else{
	pageita = org.split('-');
	DispPage = o(pageita[0]+'-'+pageita[1]+'-'+pageita[2]+'-SelPage').selectedIndex;
	DispName = o(pageita[0]+'-'+pageita[1]+'-'+pageita[2]+'-SelPage').options[DispPage].value;
}
DispPage = o(pageita[0]+'-'+pageita[1]+'-'+pageita[2]+'-SelPage').selectedIndex;
DispName = o(pageita[0]+'-'+pageita[1]+'-'+pageita[2]+'-SelPage').options[DispPage].value;
var pageitS = pageita[0]+'-'+pageita[1]+'-'+pageita[2]; 
var pageitM = pageitS+'-'+pageita[3];
var pageit = pageitS //pageitM+'-'+pageita[4];
var DispCont = pageita[2];
var DispSidx = 1; /*The index value from the selected item;*/

var DataPage = Tik.Core.Layup[pageita[2]];
var DescPage = Tik.Core.Layup.Descriptor.Page;
var RecdPage = Tik.Core.Layup.Descriptor.Page.Record;
if(pageita[3] == 'Read'){
/*	//means we've gone into the function area!! - need to put the named [6] function into the Program display box!
	//Setup to show which button is live! */

	var buttonsx = document.getElementById(pageitS+'-RunItprog');
	var oldButt = 'none';
	var buttons = buttonsx.getElementsByTagName('ax');
	for (var butt=0;butt<buttons.length;butt++){
		if(buttons[butt].tagName != 'AX') {continue;};
		if(buttons[butt].className.indexOf('formLive') >=0){oldButt = buttons[butt].innerHTML;}
		buttons[butt].className = buttons[butt].className.replace(/ formLive/g,'');
	}
	org.className += ' formLive';
	var actPage = pageitS//+'-PgCr8Page-Page';
	if(o(actPage+'-RunItV').value.length >=1){
		jsfunc = o(actPage+'-RunItV').value//.replace(/\n/g,'').replace(/\t/g,'').replace(/   /g,'');
		var newfunc = jsfunc.substr(0,jsfunc.indexOf(':'));
		var wordfunc = jsfunc.indexOf('function');
		if(wordfunc > newfunc.length){
			oldButt = newfunc;
			jsfunc = jsfunc.substr(wordfunc);
		} 
		if(jsfunc.substr(0,8) =='function'){
			var	jsfunc = jsfunc.substr(9) /* take out word - function and space */
			var jsend = jsfunc.indexOf("(");
			var jsendb = jsfunc.indexOf(")");
			var jsbra = jsfunc.indexOf("{");
			var jsbrae = jsfunc.lastIndexOf("}")// - jsbra;
			if(jsfunc.charCodeAt(jsbra+1) == 10 ){
				jsbra++;
				jsbrae--;
			}
			var jsfuncN = jsfunc.substring(0,jsend);
			var jstop = jsfunc.substr(jsbra+1,jsbrae - 1 - jsbra);
			var jsarg = jsfunc.substring(1+jsend,jsendb);
			jstop = jstop.replace(/&lt;/g,'<');
			jstop = jstop.replace(/&gt;/g,'>');
			jstop = jstop.replace(/&amp;/g,'&');
			/*AddIn[pageita[4]][pageita[6]]= new Function(jsarg,jstop); */
			o('SFrameTpop').innerHTML = jsarg +"|"+jstop ;
			var jsnew1 = o(actPage + '-RunItV').value
	//		jsfuncN : Function(jsarg,jstop)
			try{
				window.AddIn[DispName][oldButt]=  Function (jsarg,jstop)
			}
			catch(err)
				{
				o(pageitS+'-rsoverflow').value = "Ooops!:-"+err.description
			}
//			<spansht id="TikCr8-TikCr8Page-DevPage-PgCr8Pag-Page-PgCr8Pagrsoverflow">xx</spansht>
//			eval("AddIn[pageita[4]][oldButt]= function("+jsarg+")"+jstop+"")
		}
		else{
			AddIn[DispName][oldButt] = jsfunc;
		}
	}
	o(actPage + '-RunItV').value = '';
//	var tmpS = AddIn[pageita[4]][pageita[6]];
	var tmpx = AddIn[DispName][pageita[4]].toString();
//	var tmpx = Tik.Core.Prog.TextConvert(tmpS.toString().replace(/\n/g,'').replace(/\t/g,''),'RunIt');
	o(actPage + '-RunItV').value = tmpx;
	return;
}
if(pageita[3] == 'ContentV'){
	o(pageit + '-Content').value = o(pageit + '-ContentV').value.replace(/\n/g,'').replace(/  /,'');
	
	
}
if(pageita[3] == 'Save'){
	DispPage = o(pageit+'-SelPage').selectedIndex;
	DispName = o(pageit+'-SelPage').options[DispPage].value;
	var tmpS = '';
	var tmpst = '';
	for(var objekt in AddIn[DispName]){
		tmpS += tmpst + objekt +':'+JSON.stringify(AddIn[DispName][objekt].toString());
		tmpst =',';
	}
	o(pageit + '-RunIt').value = tmpS.replace(/\n/g,'').replace(/\t/g,'');

	o(pageit + '-Content').value = o(pageit + '-ContentV').value.replace(/\n/g,'').replace(/  /,'');
	return;
}
if(org.type =='select-one'){
	DispPage = org.selectedIndex;
	DispName = org.options[DispPage].value;
	if(DispCont =='SelLst'){
		var whichList = Tik.Core.Layup.Page[DispName];
		o(pageit+'-Order').value = (DispName=='None')?'':whichList.List[DispPage-1][0];
		o(pageit+'-Item').value = (DispName=='None')?'':whichList.List[DispPage-1][1];
		o(pageit+'-Value').value = (DispName=='None')?'':whichList.List[DispPage-1][2];
		o(pageit+'-Call').value = (DispName=='None')?'':whichList.List[DispPage-1][3];
		o(pageit+'-Indent').value = (DispName=='None')?'':whichList.List[DispPage-1][4];
		o(pageit+'-Comment').value = (DispName=='None')?'':whichList.List[DispPage-1][5];
		return;
		}
}
/*
o(pageit+'-RecDesc').options.length=0
var x = document.createElement('option');
x.text = 'None';
x.value = '';
o(pageit+'-RecDesc').add(x,null);
var z = document.createElement('option');
z.text = 'Null';
z.value = 'Null';
o(pageit+'-RecDesc').add(z,null);
for(var elemR in Tik.Core.Layup.Descriptor){
	var w = document.createElement('option');
	w.text = elemR;
	w.value = elemR;
	o(pageit+'-RecDesc').add(w,null);
}
/**/

o(pageit+'-List').options.length=0;
var y = document.createElement('option');
y.text = 'None';
y.value = 'None';
o(pageit+'-List').add(y,null);
for(var elemL in DescPage.List){
	y = document.createElement('option');
	y.text = DispValu.List[elemL][1];
	y.value = DispValu.List[elemL][1];
	o(pageit+'-List').add(y,null);
}
for(var elem in DescPage){
	if(elem == 'Desc' || elem == 'Record'  || elem == 'Tik_Fields' || elem == 'Tik_Linker'){continue;}
	else if(elem == 'Content'){
	var dispdat = (DispName!='None')?DataPage[DispName][elem]:'';
	o(pageit + '-'+elem).value = Tik.Core.Prog.TextConvert(dispdat,elem);
	continue;
	}
	else if(elem == 'RunIt'){
		var runwhat = AddIn[DispName];
		var testing = [];
		var strbutt = '';
		o(pageit + '-'+elem).value = '';
		o(pageit + '-'+elem+'V').value = '';
		o(pageit + '-RunItprog').value = '';
		for(var testit in runwhat){
			testing[testing.length] = testit;
			var tmpS = AddIn[DispName][testit];
			var tmpx = Tik.Core.Prog.TextConvert(tmpS.toString().replace(/\n/g,'').replace(/\t/g,''),elem);
/*			o(pageit + '-'+elem+'V').value = (DispName!='None')?testit +':'+tmpx+'\n':''; */
			strbutt += "<ax id='"+pageitS+"-Read-"+testit+"' onclick='AddIn.PgCr8Page.DisplayPage(this)' class='formButt'>"+testit+"</ax>&nbsp; ";
		}
		o(pageit + '-RunItprog').innerHTML = strbutt; /*testing.toString().replace(/,/g,', '); */
	}
	try{
		if(o(pageit+'-'+elem).type == 'select-one'){
			var selobjx = o(pageit+'-'+elem);
			for(var opt=0;opt<selobjx.options.length;opt++){
				if(selobjx.options[opt].value == DataPage[DispName][elem]){
					selobjx.selectedIndex=(DispName!='None')?opt:0;
				}
			}
		}else{
			o(pageit + '-'+elem).value = (DispName!='None')?DataPage[DispName][elem]:'';
		}
	}catch(err){
		o(pageit+'-rsoverflow').innerHTML += pageit+'-'+elem +" | "+ DataPage[DispName][elem]+" | "+DataPage[DispName][elem]+" | "+err+"<br> ";

		
	}
}
//o(pageit+'-RunItV').value = "here<br>"+AddIn[pageita[4]][pageita[6]].toString()+"<br>End";
return;
}
// =============================================================================
AddIn.PgCr8WIBL = {};
/*
0: TikCr8
1: TikCr8Page
2: DevPage
3: PgCr8Pag
4: PgCr8Hlp //page
5: Read
6: whereItIs
*/

AddIn.PgCr8WIBL.DisplayWIBL = function DisplayWIBL(org){
var pageita = [];
var WhatData = [];
var	DispPage = '';
var	DispName = '';
if(org.id){pageita = org.id.split('-');WhatData = org.id.split('~');}
else{
	pageita = org.split('-');
	DispPage = o(pageita[0]+'-'+pageita[1]+'-'+pageita[2]+'-'+pageita[3]+'-'+pageita[4]+'-SelWIBL').selectedIndex;
	DispName = o(pageita[0]+'-'+pageita[1]+'-'+pageita[2]+'-'+pageita[3]+'-'+pageita[4]+'-SelWIBL').options[DispPage].value;
}
var pageitS = pageita[0]+'-'+pageita[1]+'-'+pageita[2]; 
var pageitM = pageitS+'-'+pageita[3];
var pageit = pageitM+'-'+pageita[4];
var DispCont = pageita[4];
var DispSidx = 1; /*The index value from the selected item;*/

var DataPage = Tik.Core.Layup[pageita[4]];
var DescPage = Tik.Core.Layup.Descriptor.Page;
var RecdPage = Tik.Core.Layup.Descriptor.Page.Record;
if(pageita[5] == 'Read'){
/*	//means we've gone into the function area!! - need to put the named [6] function into the Program display box!
	//Setup to show which button is live! */

	var buttonsx = document.getElementById(pageitM+'-Page-RunItprog');
	var oldButt = 'none';
	var buttons = buttonsx.getElementsByTagName('ax');
	for (var butt=0;butt<buttons.length;butt++){
		if(buttons[butt].tagName != 'AX') {continue;};
		if(buttons[butt].className.indexOf('formLive') >=0){oldButt = buttons[butt].innerHTML;}
		buttons[butt].className = buttons[butt].className.replace(/ formLive/g,'');
	}
	org.className += ' formLive';
	var actPage = pageitS+'-PgCr8WIBL-WIBL';
	if(o(actPage+'-RunItV').value.length >=1){
		jsfunc = o(actPage+'-RunItV').value//.replace(/\n/g,'').replace(/\t/g,'').replace(/   /g,'');
		var newfunc = jsfunc.substr(0,jsfunc.indexOf(':'));
		var wordfunc = jsfunc.indexOf('function');
		if(wordfunc > newfunc.length){
			oldButt = newfunc;
			jsfunc = jsfunc.substr(wordfunc);
		} 
		if(jsfunc.substr(0,8) =='function'){
			var	jsfunc = jsfunc.substr(9) /* take out word - function and space */
			var jsend = jsfunc.indexOf("(");
			var jsendb = jsfunc.indexOf(")");
			var jsbra = jsfunc.indexOf("{");
			var jsbrae = jsfunc.lastIndexOf("}")// - jsbra;
			if(jsfunc.charCodeAt(jsbra+1) == 10 ){
				jsbra++;
				jsbrae--;
			}
			var jsfuncN = jsfunc.substring(0,jsend);
			var jstop = jsfunc.substr(jsbra+1,jsbrae - 1 - jsbra);
			var jsarg = jsfunc.substring(1+jsend,jsendb);
			jstop = jstop.replace(/&lt;/g,'<');
			jstop = jstop.replace(/&gt;/g,'>');
			jstop = jstop.replace(/&amp;/g,'&');
			/*AddIn[pageita[4]][pageita[6]]= new Function(jsarg,jstop); */
			o('SFrameTpop').innerHTML = jsarg +"|"+jstop ;
			var jsnew1 = o(actPage + '-RunItV').value
	//		jsfuncN : Function(jsarg,jstop)
			try{
				window.AddIn[pageita[4]][oldButt]=  Function (jsarg,jstop)
			}
			catch(err)
				{
				o(pageitM+'-Page-rsoverflow').value = "Ooops!:-"+err.description
			}
//			<spansht id="TikCr8-TikCr8Page-DevPage-PgCr8Pag-Page-PgCr8Pagrsoverflow">xx</spansht>
//			eval("AddIn[pageita[4]][oldButt]= function("+jsarg+")"+jstop+"")
		}
		else{
			AddIn[pageita[4]][oldButt] = jsfunc;
		}
	}
	o(actPage + '-RunItV').value = '';
//	var tmpS = AddIn[pageita[4]][pageita[6]];
	var tmpx = AddIn[pageita[4]][pageita[6]].toString();
//	var tmpx = Tik.Core.Prog.TextConvert(tmpS.toString().replace(/\n/g,'').replace(/\t/g,''),'RunIt');
	o(actPage + '-RunItV').value = tmpx;
	return;
}
if(pageita[5] == 'Save'){
	DispPage = o(pageit+'-SelPage').selectedIndex;
	DispName = o(pageit+'-SelPage').options[DispPage].value;
	var tmpS = '';
	var tmpst = '';
	for(var objekt in AddIn[DispName]){
		tmpS += tmpst + objekt +':'+JSON.stringify(AddIn[DispName][objekt].toString());
		tmpst =',';
	}
	o(pageit + '-RunIt').value = tmpS.replace(/\n/g,'').replace(/\t/g,'');

	o(pageit + '-Content').value = o(pageit + '-ContentV').value.replace(/\n/g,'').replace(/  /,'');
	return;
}
if(org.type =='select-one'){
	DispPage = org.selectedIndex;
	DispName = org.options[DispPage].value;
	if(DispCont =='SelLst'){
		var whichList = Tik.Core.Layup.Page[DispName];
		o(pageit+'-Order').value = (DispName=='None')?'':whichList.List[DispPage-1][0];
		o(pageit+'-Item').value = (DispName=='None')?'':whichList.List[DispPage-1][1];
		o(pageit+'-Value').value = (DispName=='None')?'':whichList.List[DispPage-1][2];
		o(pageit+'-Call').value = (DispName=='None')?'':whichList.List[DispPage-1][3];
		o(pageit+'-Indent').value = (DispName=='None')?'':whichList.List[DispPage-1][4];
		o(pageit+'-Comment').value = (DispName=='None')?'':whichList.List[DispPage-1][5];
		return;
		}
}
/*
o(pageit+'-RecDesc').options.length=0
var x = document.createElement('option');
x.text = 'None';
x.value = '';
o(pageit+'-RecDesc').add(x,null);
var z = document.createElement('option');
z.text = 'Null';
z.value = 'Null';
o(pageit+'-RecDesc').add(z,null);
for(var elemR in Tik.Core.Layup.Descriptor){
	var w = document.createElement('option');
	w.text = elemR;
	w.value = elemR;
	o(pageit+'-RecDesc').add(w,null);
}
/**/

o(pageit+'-List').options.length=0;
var y = document.createElement('option');
y.text = 'None';
y.value = 'None';
o(pageit+'-List').add(y,null);
for(var elemL in DescPage.List){
	y = document.createElement('option');
	y.text = DispValu.List[elemL][1];
	y.value = DispValu.List[elemL][1];
	o(pageit+'-List').add(y,null);
}
for(var elem in DescPage){
	if(elem == 'Desc' || elem == 'Record'  || elem == 'Tik_Fields' || elem == 'Tik_Linker'){continue;}
	else if(elem == 'Content'){
	var dispdat = (DispName!='None')?DataPage[DispName][elem]:'';
	o(pageit + '-'+elem+'V').value = Tik.Core.Prog.TextConvert(dispdat,elem);
	}
	else if(elem == 'RunIt'){
		var runwhat = AddIn[DispName];
		var testing = [];
		var strbutt = '';
		o(pageit + '-'+elem).value = '';
		o(pageit + '-'+elem+'V').value = '';
		o(pageit + '-RunItprog').value = '';
		for(var testit in runwhat){
			testing[testing.length] = testit;
			var tmpS = AddIn[DispName][testit];
			var tmpx = Tik.Core.Prog.TextConvert(tmpS.toString().replace(/\n/g,'').replace(/\t/g,''),elem);
/*			o(pageit + '-'+elem+'V').value = (DispName!='None')?testit +':'+tmpx+'\n':''; */
			strbutt += "<ax id='"+pageitM+'-'+DispName+"-Read-"+testit+"' onclick='AddIn."+pageita[3]+".DisplayPage(this)' class='formButt'>"+testit+"</ax>&nbsp;";
		}
		o(pageit + '-RunItprog').innerHTML = strbutt; /*testing.toString().replace(/,/g,', '); */
	}
	try{
		if(o(pageit+'-'+elem).type == 'select-one'){
			var selobjx = o(pageit+'-'+elem);
			for(var opt=0;opt<selobjx.options.length;opt++){
				if(selobjx.options[opt].value == DataPage[DispName][elem]){
					selobjx.selectedIndex=(DispName!='None')?opt:0;
				}
			}
		}else{
			o(pageit + '-'+elem).value = (DispName!='None')?DataPage[DispName][elem]:'';
		}
	}catch(err){
		o(pageit+'-rsoverflow').innerHTML += pageit+'-'+elem +" | "+ DataPage[DispName][elem]+" | "+DataPage[DispName][elem]+" | "+err+"<br> ";

		
	}
}
//o(pageit+'-RunItV').value = "here<br>"+AddIn[pageita[4]][pageita[6]].toString()+"<br>End";
return;
}
// =============================================================================
AddIn.PgCr8Form = {};
/*
0: TikCr8
1: TikCr8Page
2: DevPage
3: PgCr8Pag
4: PgCr8Hlp //page
5: Read
6: whereItIs
*/
AddIn.PgCr8Form.DisplayForm = function DisplayForm(org){
/*This attaches itself to the RunIt area for PgCr8Pag;*/
var pageita = [];
var WhatData = [];
if(org.id){pageita = org.id.split('-');WhatData = org.id.split('~');}
else{pageita = org.split('-');}
var pageitS = pageita[0]+'-'+pageita[1]+'-'+pageita[2];
var pageitM = pageitS+'-'+pageita[3];
var pageit = pageitS //pageitM+'-'+pageita[4];
var DispCont = pageita[2];
var DispSidx = 1; /*The index value from the selected item; */
var DispPage = o(pageit+'-SelForm').selectedIndex;
var DispName = o(pageit+'-SelForm').options[DispPage].value;
var DataPage = Tik.Core.Layup.Descriptor;
var DescPage = Tik.Core.Layup.Descriptor[pageita[2]];
var RecdPage = Tik.Core.Layup.Descriptor[pageita[2]].Record;
var DataData = Tik.Core.Layup.Descriptor;
var DispLink = Tik.Core.Info.Linking;

if(DispName == 'None'){return;}
if(pageita[5] == 'Read'){
	/*means we've gone into the display Fields area!! - need to fill the Fields correctly??!*/
}
if(pageita[4] == 'Tik_Linker'){
	if(pageita[5] == 'Rem'){
		var RemoveTmp = DataData[pageita[3]].Tik_Linker.splice([pageita[6]],1);
	}
	else if(pageita[5] == 'Mask'){
/*		varxx maskarra = ["a","o","x","p"];*/
		var Felem = pageita[6].split('_');
		var chartmpx = DataData[pageita[3]].Tik_Linker[Felem[0]][9].split('');
		var chartmp = chartmpx[Felem[1]];
		chartmpx[Felem[1]] = (chartmp=='a')?'o':(chartmp=='o')?'x':(chartmp=='x')?'a':'x';
		DataData[pageita[3]].Tik_Linker[Felem[0]][9] = chartmpx.toString().replace(/,/g,'');
	}
	else if(pageita[5] == 'Add'){
		var addlink = DispLink[pageita[6]-1]; 
		
		var whereto = DataData[pageita[3]].Tik_Linker;
		if(whereto.length==0){DataData[pageita[3]].Tik_Linker = [];}
		DataData[pageita[3]].Tik_Linker[DataData[pageita[3]].Tik_Linker.length] = [addlink[0], addlink[2], addlink[3], addlink[4], addlink[5], addlink[6], addlink[7], addlink[8], addlink[9], addlink[10]];
		
		
	}
}
if(pageita[4] == 'Fld'){
	if(pageita[5] == 'Rem'){
		//remove from Desc
		delete DataPage[pageita[3]][DataData[pageita[3]].Tik_Fields[WhatData[4]][1]]
		//remove from Record
		delete RecdPage[pageita[3]][DataData[pageita[3]].Tik_Fields[WhatData[4]][1]]
		//remove from Form entry
		var RemoveTmp = DataData[pageita[3]].Tik_Fields.splice([pageita[6]]-1,1);
	}
}

var FieldArra = [];
if(Tik.Core.Layup.Field){
	var HmFld = Tik.Core.Layup.Field;
	for(var FldDat in HmFld){
		if(HmFld[FldDat].Form == DispName){
			FieldArra[FieldArra.length] = HmFld[FldDat];
		}
	}
}

//Start - LinkerLayup 
//get data from Tik.Core.Info.Linking and display approriate fields*/
var DispArra = [0,1,10,2,3,4,5,6,7,8,9];

var Lstr ="<table class='TikGrid' style='background:lightblue;'>";
for(var Lcnt in DispLink){
	Lstr += "<tr id='"+pageit+"-"+DispName+"-Tik_Linker-Add-"+(1*Lcnt+1)+"' "; 
	Lstr += " onclick='AddIn.PgCr8Form.DisplayForm(this)' style='cursor:hand;'>";
	for(var LaCnt in DispArra){ 
		Lstr += "<td class='TikCell' Style='font-size:";
		Lstr += (LaCnt <=2)?"1em;' >":"0.9em' >";
		Lstr += DispLink[Lcnt][DispArra[LaCnt]];
		Lstr += "</td>";
	}
	Lstr += "</tr>";
	Lstr += "</spanLink>";
}
o(pageit +'-LinkerLayupV').innerHTML = Lstr+"</table>";
if(DataData[DispName].Tik_Linker.length==0){
	o(pageit +'-LinkerListV').innerHTML = "No Linkers to display!"
}else{ 


/*End - LinkerLayup
//Start - LinkerList*/
o(pageit+'-LinkerListV').innerHTML = "";

	for(var ll in DataData[DispName].Tik_Linker){
		o(pageit+'-LinkerListV').innerHTML += dispLinkerList(ll)+"";
	}

o(pageit+'-LinkerListV').className = 'formHead formLink'
}
//o(pageit+'-LinkerListV').innerHTML += "</spanfrmcr8 >";
//display:inline-block;width:55px;
// ============================
function dispLinkerList(num){
var Lstr ="";
//Lstr = "<input type='checkbox' id='"+pageit+"-"+DispName+"-Linker-Rem-"+num+"' onclick='AddIn.PgCr8Frm.DisplayPage(this)'>";
Lstr = '';//'Remove';
Lstr += "<fieldset>";
//Lstr += " &nbsp; <spanLName id='' style='display:inline-block;width:55px;'>";
Lstr += "<Legend>";
Lstr += DispLink[DataData[DispName].Tik_Linker[num][0]-1][1]+" &nbsp; - &nbsp; <a onclick='AddIn.PgCr8Form.DisplayForm(this)'";
Lstr += " id='"+pageit+"-"+DispName+"-Tik_Linker-Rem-"+num+"' style='cursor:hand;color:green;'>Remove</a>";
Lstr += "</legend>";
//Lstr += "</spanLName>";
for(var Le=0;Le<=7;Le++){
	Lstr += "<spanLMask id='"+pageit+'-'+DispName+'-Tik_Linker-Mask-'+num+'_'+Le+"' ";
	Lstr += " style='display:inline-block;width:55px;cursor:hand;' ";
	Lstr += "onclick='AddIn.PgCr8Form.DisplayForm(this)' >";
	var tmptyp = DataData[DispName].Tik_Linker[num][9].charAt(Le);
	Lstr += (tmptyp == 'a')?"<input type='checkbox'>":(tmptyp == 'o')?"<input type='radio'>":'()';
	Lstr += "<br>"+DispLink[DataData[DispName].Tik_Linker[num][0]-1][Le+2];

	Lstr += "</spanLMask>";
}
Lstr += "</fieldset>";
return Lstr;
}

/*End - LinkerList*/
if(org.type =='select-one'){
	DispPage = org.selectedIndex;
	DispName = org.options[DispPage].value;
	SelSort(org)
/*varxx DatDesc = DescPage*/	
}
var disp = DispName;
//clear grid fields first
var gridWhere = pageit+'-FieldsGrid';
o(gridWhere).innerHTML = '';
if(DispName == 'None'){DispName = org.options[(1+DispPage)].value;disp= 'None';}
for(var elem in DescPage){
	if(elem == 'Desc' || elem == 'Record' || elem == 'Tik_Linker' || elem == 'RecDesc' || elem == 'Nid'){continue;}
	else if(DescPage.Desc.Extended.indexOf(elem) >=0){ /*Extended*/
		var emin = DescPage.Desc[elem+'Min'];
		var emax = DescPage.Desc[elem+'Max'];
		var ereq = DescPage.Desc[elem+'Req'];
		var eidx = DescPage.Desc[elem+'Idx'];
		var etyp = DescPage.Desc[elem+'Type'];
		var eref = DescPage.Desc[elem+'Ref'];
		var efrm = DescPage.Desc[elem+'Former'];
		var eqty = DataData[DispName][elem].length;
		var earr = [];

		for(var extqty=0;extqty<eqty ;extqty++){/*loop for multiple entries in each entry of extended*/
		
			if(o(pageit + '-' + elem + '-Sel' + elem)){ /*select list waiting for data*/
				if(extqty==0){o(pageit+ '-' + elem + '-Sel' + elem).options.length=1;}
				var x = document.createElement('option');
				x.text = DataData[DispName][elem][extqty][eidx];
				x.value = DataData[DispName][elem][extqty][eidx];
				o(pageit + '-' + elem + '-Sel' + elem).add(x,null);
				o(pageit + '-' + elem + '-Sel' + elem).selectedIndex = (1+extqty);
			} 
			/*or just display first entry and/or names??(using idx??) add to Select  - sel+elem*/		
			for(var scnt=0;scnt<efrm.length;scnt++){
			/*showit(what,where,disp,type) 
			//what=data; where=short name of id; disp = 'none' = no display, or probably select other names; 
			//type=if display type is specific ie 'select-one','input' etc.;*/
				var name = elem + '-' + efrm[scnt];
				var data = DataData[DispName][elem][extqty][scnt];
				if(!o(pageit + '-' + elem +'-'+efrm[scnt])){
					if(!o(pageit + '-' + elem +'-'+efrm[scnt]+extqty)){
						continue;
					}else{
						name = elem + '-' + efrm[scnt] + extqty;
/*						data = DataData[DispName][elem][extqty][scnt]*/
					}
					
				}
				showit(name,data,disp)
			}
		}
	}
//grid info to go in here
	else if(elem == 'Tik_Fields'){
		Tik.Vars.Grid.New = "Tik.Core.Layup.Descriptor."+DispName+".Tik_Fields";
		Tik.Vars.Grid.Head = ["Ord", "R-Mov", "Item", "Req", "Hidden", "Label", "Comment", "Type", "Length", "Height", "Adjust", "CharMap", "Max", "Events"];
		//[Mov-col#,Charfor Remove-col#,Jmp,Char for Jump,NoC,spr,Above or below or '' for Add button,text for Add]
		Tik.Vars.Grid.Attach = [[1,'R',''],['','J',''],["2,1",'',''],["B","Add Field",'']];
		Tik.Vars.Grid.Title = ["Field Order","Move the Fields up/dn","Stored name of Field","If this field is required to be completed by the customer","If this field is supposed to be hidden","What appears in the Label area of the form","The commentary that is attached to this field to help give guidance to the customer to complete the form","Input,Textarea,Select, etc. anticipated input type","The start-up length of the data entry field","If height is used by the chosen input type, what is it?","None,Both,Horizontal,Vertical","Blank allows all chars, else only allows chars as supplied in here - also space char","The Maximum number of characters allowed in this entry","eg. onblur,onfocus, onChange"];
		Tik.Core.Prog.Grid.Cr8Grid(gridWhere)
	}	
	else if(DescPage.Desc.Fixed.indexOf(elem) >=0){ /*Fixed*/
		for(var fixelem in DescPage.Desc[elem]){
		showit(elem,DataData[fixelem][elem],disp);
		}
	}
	else if(DescPage.Desc.Optioned.indexOf(elem) >=0){ /*Optioned*/
		for(var optelem in DescPage.Desc[elem]){
			o(pageit+'-'+elem).style.color = (DescPage.Desc[elem+'Opt'].indexOf(DataData[elem]) >=0)?'black':'red';
			showit(elem,DataData[elem],disp);
		}
	}
	else if(elem == 'Content'){
		var dispdat = (DispName!='None')?DataPage[DispName][elem]:'';
		showit(elem+'V',Tik.Core.Prog.TextConvert(dispdat,elem,disp));
	}
	
	else{
		data = (DispName == 'None')?'':DataPage[DispName][elem];
		showit(elem,data,disp)
	}
	function showit(elem,data,disp,type){
	o(pageit+'-rsoverflow').innerHTML = "";
	o(pageit+'-'+'FieldsGrid').innerHTML = "";
	o(pageit+'-'+'FieldsGrid').style.color = 'red'; 
	o(pageit+'-'+'FieldsGrid').style.fontSize = '0.8em';
		try{
			if(o(pageit+'-'+elem).type == 'select-one'){
				var selobjx = o(pageit+'-'+elem);
				var jit = 0
				for(var opt=0;opt<selobjx.options.length;opt++){
					if(selobjx.options[opt].value == data){ 
						selobjx.selectedIndex=(disp!='None')?opt:0;
						jit = 1;
						break;
					}
				}
				if(jit==0){ /*add missing option to end and highlight red!!*/
						var a = document.createElement('option');
						a.text = data; 
						a.value = data;
						selobjx.add(a,null);
						var tmpselx = selobjx.options.length;
						selobjx.selectedIndex = tmpselx-1;
						selobjx.options[tmpselx -1].style.color = 'red';
					}
			}else if(o(pageit+'-'+elem).type == 'checkbox' || o(pageit+'-'+elem).type == 'radio'){
				o(pageit + '-'+elem).checked = (disp!='None')?data:'';
				
					
			}else{
				o(pageit + '-'+elem).value = (disp!='None')?data:''; 
			}
		}catch(err){
			o(pageit+'-rsoverflow').innerHTML += pageit+'-'+elem +" | Data: "+ data+" |<br> ORG: "+org+" | Err: "+err+"<br> ";
		}
	}
	
}
var rcnt = [];
var exist = 0;
for(var dcnt in Tik.Core.Layup.Descriptor[DispName]){
	if(dcnt == 'Desc'){continue;}
	exist = 0
	for(var fcnt in Tik.Core.Layup.Descriptor[DispName]){
		if(fcnt == dcnt){exist=1;continue;}
		if(exist ==0){
			for(var gcnt in Tik.Core.Layup.Descriptor[DispName].Tik_Fields){
				if(Tik.Core.Layup.Descriptor[DispName].Tik_Fields[gcnt][1] == dcnt){exist=1;continue;}
			}
		}
	}
	if(exist == 0){rcnt[rcnt.length] = " &nbsp "+(rcnt.length+1)+":"+dcnt;}
}
o(pageit+'-'+'FieldsGrid').innerHTML += (rcnt.length == 0)?"":"<br>Differences between Form and Description:"+rcnt;
return;
}
// =============================================================================
//This is the jsmin code 
/*! 
jsmin.js - 2010-01-15
Author: NanaLich (http://www.cnblogs.com/NanaLich)
Another patched version for jsmin.js patched by Billy Hoffman, 
this version will try to keep CR LF pairs inside the important comments
away from being changed into double LF pairs. 

jsmin.js - 2009-11-05
Author: Billy Hoffman
This is a patched version of jsmin.js created by Franck Marcia which
supports important comments denoted with /*! ...
Permission is hereby granted to use the Javascript version under the same
conditions as the jsmin.js on which it is based.

jsmin.js - 2006-08-31
Author: Franck Marcia
This work is an adaptation of jsminc.c published by Douglas Crockford.
Permission is hereby granted to use the Javascript version under the same
conditions as the jsmin.c on which it is based.

jsmin.c
2006-05-04

Copyright (c) 2002 Douglas Crockford  (www.crockford.com)

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

The Software shall be used for Good, not Evil.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Update:
add level:
1: minimal, keep linefeeds if single
2: normal, the standard algorithm
3: agressive, remove any linefeed and doesn't take care of potential
missing semicolons (can be regressive)
store stats
jsmin.oldSize
jsmin.newSize
*/
String.prototype.has = function(c) {
  return this.indexOf(c) > -1;
};

function jsmin(comment, input, level) {

  if(input === undefined) {
    input = comment;
    comment = '';
    level = 2;
  } else if(level === undefined || level < 1 || level > 3) {
    level = 2;
  }

  if(comment.length > 0) {
    comment += '\n';
  }

  var a = '',
		b = '',
		EOF = -1,
		LETTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz',
		DIGITS = '0123456789',
		ALNUM = LETTERS + DIGITS + '_$\\',
		theLookahead = EOF;


  /* isAlphanum -- return true if the character is a letter, digit, underscore,
  dollar sign, or non-ASCII character.
  */

  function isAlphanum(c) {
    return c != EOF && (ALNUM.has(c) || c.charCodeAt(0) > 126);
  }


  /* getc(IC) -- return the next character. Watch out for lookahead. If the
  character is a control character, translate it to a space or
  linefeed.
  */

  var iChar = 0, lInput = input.length;
  function getc() {

    var c = theLookahead;
    if(iChar == lInput) {
      return EOF;
    }
    theLookahead = EOF;
    if(c == EOF) {
      c = input.charAt(iChar);
      ++iChar;
    }
    if(c >= ' ' || c == '\n') {
      return c;
    }
    if(c == '\r') {
      return '\n';
    }
    return ' ';
  }
  function getcIC() {
    var c = theLookahead;
    if(iChar == lInput) {
      return EOF;
    }
    theLookahead = EOF;
    if(c == EOF) {
      c = input.charAt(iChar);
      ++iChar;
    }
    if(c >= ' ' || c == '\n' || c == '\r') {
      return c;
    }
    return ' ';
  }


  /* peek -- get the next character without getting it.
  */

  function peek() {
    theLookahead = getc();
    return theLookahead;
  }


  /* next -- get the next character, excluding comments. peek() is used to see
  if a '/' is followed by a '/' or '*'.
  */

  function next() {

    var c = getc();
    if(c == '/') {
      switch(peek()) {
        case '/':
          for(; ; ) {
            c = getc();
            if(c <= '\n') {
              return c;
            }
          }
          break;
        case '*':
          //this is a comment. What kind?
          getc();
          if(peek() == '!') {
            // kill the extra one
            getc();
            //important comment
            var d = '/*!';
            for(; ; ) {
              c = getcIC(); // let it know it's inside an important comment
              switch(c) {
                case '*':
                  if(peek() == '/') {
                    getc();
                    return d + '*/';
                  }
                  break;
                case EOF:
                  throw 'Error: Unterminated comment.';
                default:
                  //modern JS engines handle string concats much better than the 
                  //array+push+join hack.
                  d += c;
              }
            }
          } else {
            //unimportant comment
            for(; ; ) {
              switch(getc()) {
                case '*':
                  if(peek() == '/') {
                    getc();
                    return ' ';
                  }
                  break;
                case EOF:
                  throw 'Error: Unterminated comment.';
              }
            }
          }
          break;
        default:
          return c;
      }
    }
    return c;
  }


  /* action -- do something! What you do is determined by the argument:
  1   Output A. Copy B to A. Get the next B.
  2   Copy B to A. Get the next B. (Delete A).
  3   Get the next B. (Delete B).
  action treats a string as a single character. Wow!
  action recognizes a regular expression if it is preceded by ( or , or =.
  */

  function action(d) {

    var r = [];

    if(d == 1) {
      r.push(a);
    }

    if(d < 3) {
      a = b;
      if(a == '\'' || a == '"') {
        for(; ; ) {
          r.push(a);
          a = getc();
          if(a == b) {
            break;
          }
          if(a <= '\n') {
            throw 'Error: unterminated string literal: ' + a;
          }
          if(a == '\\') {
            r.push(a);
            a = getc();
          }
        }
      }
    }

    b = next();

    if(b == '/' && '(,=:[!&|'.has(a)) {
      r.push(a);
      r.push(b);
      for(; ; ) {
        a = getc();
        if(a == '/') {
          break;
        } else if(a == '\\') {
          r.push(a);
          a = getc();
        } else if(a <= '\n') {
          throw 'Error: unterminated Regular Expression literal';
        }
        r.push(a);
      }
      b = next();
    }

    return r.join('');
  }


  /* m -- Copy the input to the output, deleting the characters which are
  insignificant to JavaScript. Comments will be removed. Tabs will be
  replaced with spaces. Carriage returns will be replaced with
  linefeeds.
  Most spaces and linefeeds will be removed.
  */

  function m() {

    var r = [];
    a = '\n';

    r.push(action(3));

    while(a != EOF) {
      switch(a) {
        case ' ':
          if(isAlphanum(b)) {
            r.push(action(1));
          } else {
            r.push(action(2));
          }
          break;
        case '\n':
          switch(b) {
            case '{':
            case '[':
            case '(':
            case '+':
            case '-':
              r.push(action(1));
              break;
            case ' ':
              r.push(action(3));
              break;
            default:
              if(isAlphanum(b)) {
                r.push(action(1));
              } else {
                if(level == 1 && b != '\n') {
                  r.push(action(1));
                } else {
                  r.push(action(2));
                }
              }
          }
          break;
        default:
          switch(b) {
            case ' ':
              if(isAlphanum(a)) {
                r.push(action(1));
                break;
              }
              r.push(action(3));
              break;
            case '\n':
              if(level == 1 && a != '\n') {
                r.push(action(1));
              } else {
                switch(a) {
                  case '}':
                  case ']':
                  case ')':
                  case '+':
                  case '-':
                  case '"':
                  case '\'':
                    if(level == 3) {
                      r.push(action(3));
                    } else {
                      r.push(action(1));
                    }
                    break;
                  default:
                    if(isAlphanum(a)) {
                      r.push(action(1));
                    } else {
                      r.push(action(3));
                    }
                }
              }
              break;
            default:
              r.push(action(1));
              break;
          }
      }
    }

    return r.join('');
  }

  jsmin.oldSize = input.length;
  ret = m(input);
  jsmin.newSize = ret.length;

  return comment + ret;

}
//	var wm = document.getElementById('WTMain')
//	wm.innerHTML = "<textarea id='fred'></textarea>";
function TikMin(){

//	o('fred').innerText = JSON.stringify(Tik)
	CompTik = jsmin('', fred.value, 3);
//	document.getElementById('WTHheadMO').innerHTML = CompTik;
	var aaa = fred.value.length; 
	var aab = CompTik.length;
	console.log('here:-',aaa+"|"+aab)
	//Tik = {};
	document.getElementById('WTHheadMO').innerText = CompTik;
//	document = JSON.parse(CompTik);
}
