/*******************************************************
***    WebTracks Library
***    Copyright 2006 by Interactive Technology Works P/L
***    Compiled by the WebTracks Obfuscator
***    For further information, please contact webtracks@itw.com.au
***
********************************************************/
// QuickForms Module 
var OO0013=false;function xSetFormStep(OOO,OO0,O0O){if(OOO) {var O00=OOO.form;
if(O00) {var OOOO=O03503(O00,'Step');if(OOOO) {OOOO.value=OO0;
O00.action=O0O;O00.submit()}}}}function O05635(OOO){return OO0013}function O01933(OOO){if(OOO) OOO.disabled=true}function O08086(OOO){if(OOO) OOO.disabled=false}function O05849(OOO){if(!OOO) return false;
if(OOO.type=='hidden') return true;if(!OOO||!OOO.currentStyle) return false;
switch (OOO.currentStyle.visibility) {case 'inherit':return O05849(OOO.parentNode);
case 'hidden':return true}return false}function O04798(OOO){if(OOO&&!O05849(OOO)) {OOO.focus();
if(OOO.select) OOO.select()}}function xFocus(OOO,OO0){var O0O,O00;
if(OOO) {O0O=O03503(null,OOO);O00=OOO}if(!O0O) {O0O=O03503(null,OO0);
O00=OO0}else {}if(O0O) {O04798(O0O)}}function O03503(OOO,OO0){if(!OOO) OOO=window.document.forms['MainForm'];
if(!OOO||!OOO.elements) return null;
return OOO.elements[OO0]}function xHideElement(OOO){var OO0;
if(OOO) {OOO.style.visibility='hidden';OOO.style.position='absolute';
}}function xShowElement(OOO,OO0){OOO.style.visibility='visible';
OOO.style.position='relative';if(OO0) {O04798(OOO)}}function xChanged(OOO,OO0){if(!OOO) return 0;
xFormChanged(OOO);var O0O=OOO.options;var O00;if(!O0O) return 0;
for(var OOOO=0;OOOO<O0O.length;OOOO++ ) {O00=O00150('S_'+OOO.name+'_'+O0O[OOOO].value);
if(O00) {if(O0O[OOOO].selected) {xShowElement(O00,OO0)}else {xHideElement(O00)}}}}function xCheckboxChanged(OOO){var OO0='Section_'+OOO.name;
var O0O=O00150(OO0+'_0');var O00=O00150(OO0+'_1');
if(OOO.checked) {if(O00) xShowElement(O00);
if(O0O) xHideElement(O0O)}else {if(O0O) xShowElement(O0O);
if(O00) xHideElement(O00)}O08227(OOO)}function O08958(OOO){if(OOO&&OOO.options) return OOO.options[OOO.selectedIndex].value;
else return ''}function O08227(OOO){OO0013=true;
var OO0=O00150('SaveButton');O08086(OO0);if(OO0) OO0.disabled=false}var xFormChanged=O08227;
function xSubmitForm(OOO){var OO0=window.document.forms['MainForm'];
if(OO0&&O05635()) {if(!OOO) OOO='';if(xValidateForm(OO0,false)) {var O0O=O03503(OO0,'NextUrl');
if(O0O) O0O.value=OOO;OO0.submit()}}else if(OOO) {window.location=OOO}else {}}function xSubmitClicked(OOO){}function xValidateForm(OOO,OO0){if(!OOO) return false;
var O0O=O05135(OOO);var O00=O03503(OOO,'ClientErrors');
if(O00) O00.value=OO1741;var OOOO="Save with errors";
var OO0O=O00150('SubmitButton');if(OO0&&OO0O&&OO0O.value==OOOO) {return true}if(O0O) {return true}else {if(OO0O) {OO0O.value=OOOO}return false}}var OO7465=true;
var OO1741='';var OO8588=0;var OO7104=0;
function O05135(OOO){OO7465=true;OO1741='';if( ++OO8588>5) {alert('This form has incorrect or missing data.  To save what data you have entered, click on the "Save with errors" button.');
OO8588= ++OO7104}xValidateElements(OOO);if(OO1741) {var OO0="<b>This form has errors:</b><br>"+OO1741;
O00914(OO0)}else {}return OO7465}function xValidateElements(OOO){}function xValidateFormElement(OOO,OO0,O0O,O00){var OOOO;
var OO0O=false;OOOO=O03503(OOO,OO0);O0O=parseInt(O0O);
if(OOOO) {if(O0O&cVR_Mandatory) {if(OOOO.value=='') {if(!O05849(OOOO)) {O00=(O00?O00:OO0);
OO1741+='<br>[<b>'+O00+'</b>] is a mandatory field.';
OO0O=true}}}if(OO0O) {OOOO.style.background="red";
OOOO.style.color="white";if(OO7465) {O04798(OOOO)}OO7465=false}else {if(OOOO.style) {OOOO.style.background="white";
OOOO.style.color="";}}}}function O03040(OOO,OO0){var O0O=O00150(OOO);
var O00=O00150(OO0);if(O0O&&O00) {O00.innerHTML=O0O.innerHTML}}function xSynchronizePage(OOO,OO0){if(!OO0) OO0='TopMessage';
O03040('BottomMenus','TopMenus');O03040('BottomStatus','TopStatus');
O03040('BottomStatus','TopStatus');O01473(OOO);
O03040('CardMessage',OO0)}function O00150(OOO){return self.window.document.getElementById(OOO);
}function O00914(OOO){O03644('<span class=Error>'+OOO+'</span>')}function O03644(OOO){O01473(OOO,'TopRightMessage')}function O01473(OOO,OO0){if(!OO0) OO0='TopMessage';
aElement=O00150(OO0);if(!aElement) aElement=O00150('FormMessage');
if(!aElement) aElement=O00150('TopMessage');
if(aElement) aElement.innerHTML=unescape(OOO)}var xWriteMessage=O01473;
function xToggleAdvancedMenus(){var OOO=self.window.location.search}function O01659(OOO,OO0){var O0O,O00,OOOO;
O0O='&'+OOO+'=';O00=OO0.indexOf(O0O);if(O00==-1) {O0O='?'+OOO+'=';
O00=OO0.indexOf(O0O)}if(O00==-1) return null;
OOOO=OO0.substring(O00+O0O.length);O00=OOOO.indexOf('&');
if(O00==-1) aValue=OOOO;else aValue=OOOO.substring(0,O00);
return aValue}function O09884(OOO,OO0){var O0O,O00,OOOO;
O0O='&'+OOO+'=';O00=OO0.indexOf(O0O);if(O00==-1) {O0O='?'+OOO+'=';
O00=OO0.indexOf(O0O)}if(O00==-1) return false;
else return true}function O04457(OOO,OO0){if(!OO0||OO0.length==1) return '?'+OOO;
return OO0+'&'+OOO}function O01191(OOO,OO0){var OO00,O00,OOOO,OO0O,O0OO,O00O,OOO0;
var OO00,O0O0;OO00='&'+OOO+'=';O0O0=OO0.indexOf(OO00);
if(O0O0==-1) {OO00='?'+OOO+'=';O0O0=OO0.indexOf(OO00)}if(O0O0==-1) OOO0=OO0;
else {O0OO=OO0.substring(0,O0O0);OO0O=OO0.substring(O0O0+OO00.length);
O0O0=OO0O.indexOf('&');if(O0O0==-1) O00O='';
else O00O=OO0O.substring(O0O0);OOO0=''+O0OO+''+O00O;
if(OOO0.substring(0,1)=='&') OOO0='?'+OOO0.substring(1);
if(O09884(OOO,OO0)) {OOO0=O01191(OOO,OOO0)}}if(OOO0.substring(OOO0.length-1)=='&') OOO0=OOO0.substring(0,OOO0.length-1);
return OOO0}function xCancelEdit(){O00047('Action','Display')}function O00047(OOO,OO0){var O0O=self.window.location.search;
O0O=O01191(OOO,O0O);self.window.location.search=O04457(OOO+'='+OO0,O0O)}function xToggleAdvancedMenus(){var OOO=self.window.location.search;
var OO0=O01659('ShowAdvanced',OOO);if(OO0==null) aNewValue=1;
else if(OO0!=0) aNewValue=0;else aNewValue=1;
OOO=O01191('ShowAdvanced',OOO);self.window.location.search=O04457('ShowAdvanced='+aNewValue,OOO)}var OO0090=null;
var OO3779=null;var OO5316;var OO5711;
function O06017(){var OOO=O00150('MoveButton');
if(OOO) {if(O04507()&&O06630()&&!O01663()) {OOO.disabled=false}else {OOO.disabled=true}}OOO=O00150('RemoveButton');
if(OOO) {if(O00571()&&!O06630()) {OOO.disabled=false}else {OOO.disabled=true}}}function O06071(OOO,OO0){OO0090=OOO;
OO5316=(OO0=='1'?1:0);O06017()}function O01663(){return (OO5316?true:false)}function O06630(){return (OO5711?true:false)}function O04507(){return OO0090}function O03521(OOO,OO0){OO3779=OOO;
OO5711=(OO0=='1'?1:0);O06017()}function O00571(){return OO3779}function O06076(OOO,OO0){return O08025(OOO,'Action',OO0)}function O07832(OOO,OO0){return O08025(OOO,'C',OO0)}function O08025(OOO,OO0,O0O){OOO=O01191(OO0,OOO);
return O04457(OO0+'='+O0O,OOO)}function xRemoveSelected(OOO,OO0,O0O,O00,OOOO){var OO0O=O07832(self.window.location.search,O00);
if(OOO==3) {OO0O+="&Subaction=Delete&Target="+O04507()+"&Dir1="+OO0+"&Dir2="+O0O+"&SourceType="+OOOO}else if(OOO==2) {if(!O00571()) {alert('Select object first, and then delete.');
return false}else {OO0O+="&Target="+O00571()+"&Dir1="+OO0+"&Dir2="+O0O+"&SourceType="+OOOO}}else {return false}self.window.location=OO0O}function xMoveSelectedImage(OOO,OO0){var O0O=O07832(self.window.location.search,OOO);
var O00,OOOO;OOOO=O00571();if(OO0) {O00=''}else {O00=O04507();
if(!OOOO) {alert('Select an image placeholder in the right panel.');
return 1}}O0O=O08025(O0O,'Source',O00);O0O=O08025(O0O,'Target',OOOO);
O0O=O08025(O0O,'Reverse',OO0);self.window.location=O0O}function xRemoveImage(OOO,OO0,O0O,O00,OOOO){var OO0O=O07832(self.window.location.search,O00);
OO0O+="&Source="+''+"&Target="+OOO+"&Dir1="+OO0+"&Dir2="+O0O+"&SourceType="+OOOO;
OO0O+='&Reverse=1';alert(OO0O);self.window.location=OO0O}function xChooseImage(OOO,OO0,O0O,O00,OOOO,OO0O){return false;
if(!OOO) {OOO=O00571()}if(!O04507()) {alert('Select an image from the left, and then try again.')}else {var O0OO=O07832(self.window.location.search,O00);
O0OO+="&Source="+O04507()+"&Target="+OOO+"&Dir1="+OO0+"&Dir2="+O0O+"&SourceType="+OOOO;
O0OO+='&Reverse='+(OO0O?1:0);self.window.location=O0OO}}var OO5198=new Array();
function xClickTransferImage(OOO,OO0,O0O,O00){if(!OO0) {OO0=O00150(O0O)}if(!OO0) return 0;
if(OO5198[OOO]) {OO5198[OOO].setAttribute('className','ImageTransfer'+OOO)}if(OO5198[OOO]==OO0) {OO5198[OOO]=null;
if(OOO==1) O06071('',0);else if(OOO==2) O03521('',0)}else if(OO0) {OO5198[OOO]=OO0;
OO0.setAttribute('className','ImageTransferSelected'+OOO);
if(OOO==1) O06071(O0O,O00);else if(OOO==2) O03521(O0O,O00)}}function xBeginTransferxxxxxxxxxxxxxx(OOO,OO0){var O0O='?ItemID='+OOO;
if(OO5198[1]) {O0O+='Src='+OO5198[1]}self.window.location=O0O}function xToggle(OOO){var OO0=O00150(OOO);
if(OO0) {if(OO0.type=='checkbox') {OO0.checked=!OO0.checked}}xCheckboxChanged(OO0)}function xToggleImage(OOO,OO0,O0O){var O00=O00150('Checkbox_'+OOO);
var OOOO=O00150('Image_'+OOO);if(O00) {xFormChanged(O00);
if(O00.type=='checkbox') {O00.checked=!O00.checked}if(OOOO) {if(O00.checked) OOOO.src=OO0;
else OOOO.src=O0O}}}function xMouseOver(OOO,OO0,O0O){if(OO0) {if(O0O) {OOO.className=O0O}}else {OOO.className="KSSelect";
OOO.style.cursor="hand"}}var OO3019=new Array();
var OO8758=new Array();function xSetSelection(OOO,OO0,O0O){if(!OO3019[OOO]) {if(O0O=='1'||OOO==1) {OO3019[OOO]=OO0;
OO8758[OOO]=O0O}}}function xFormLoaded(){if(xTitle) {document.title=xTitle}for(var OOO=1;
OOO<3;OOO++ ) {if(OO3019[OOO]) {xClickTransferImage(OOO,'',OO3019[OOO],OO8758[OOO])}}O03040('HiddenTips','ShowTips');
O09558()}function xMouseClick(OOO,OO0){if(OO0) window.location=OO0}var OO7266=new Array();
function xAddMenu(OOO,OO0,O0O){O0O=(O0O?O0O:'');
OO7266[OO7266.length]=new Array(OOO,OO0,O0O)}function O09558(){var OOO=document.getElementById('TopMenu');
if(!OOO) return 0}function O09256(OOO,OO0,O0O,O00,OOOO,OO0O,O0OO){var O00O=window.open(OO0,O0O,'height='+OOOO+',width='+O00+',location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,titlebar=no,toolbar=no,left='+OO0O+',top='+O0OO);
if(O00O) {O00O.opener=OOO;O00O.focus()}}function O05393(OOO,OO0){if(!OOO) return false;
var O0O=O03503(OOO,'UserFile');if(!O0O) return false;
var O00=O0O.value;if(O01424(O00,OO0)) {return true;
}alert("You can only upload files that end in types: \n\n"+OO0+"\n\nPlease select a new file and try again.");
return false}function O01424(OOO,OO0){if(!OOO) return ;
OO0=','+OO0+',';var O0O=OOO.split(".");
var O00=","+O0O[O0O.length-1];if(OO0.indexOf(O00)!=-1) {return true}else {return false}}function xChangeUserFile(OOO){if(!OOO) return 0;
var OO0=OOO.form;if(!OO0) return 0;var O0O=O03503(OO0,'UploadButton');
if(OOO.value) {O08086(O0O)}else {O01933(O0O)}return 1};