<?php 

$sHiddenFields = '';
$sHiddenFieldsJavascript = '';

	$sHiddenFieldsJavascript .= 'var pageType = '.(!empty($sPage) ? jsonPrepare($sPage).';' : '"add";');
	$sHiddenFieldsJavascript .= 'var accountLanguage = '.(!empty($oMijnOVIS->parsedDetails->language) ? jsonPrepare($oMijnOVIS->parsedDetails->language).';' : '"nl";');
	$sHiddenFieldsJavascript .= 'var articleID = '.(!empty($oMijnOVIS->parsedDetails->id) ? jsonPrepare($oMijnOVIS->parsedDetails->id).';' : '"";');
	$sHiddenFieldsJavascript .= 'var externalID = '.(!empty($oMijnOVIS->parsedDetails->externalId) ? jsonPrepare($oMijnOVIS->parsedDetails->externalId).';' : '"'.date('U').sprintf('%05d', $oMijnOVIS->_oUserData->id).'";');
	$sHiddenFieldsJavascript .= 'var articleRealm = '.(!empty($oMijnOVIS->parsedDetails->realm) ? jsonPrepare($oMijnOVIS->parsedDetails->realm).';' : '"";');
	$sHiddenFieldsJavascript .= 'var articleCategory = '.(!empty($oMijnOVIS->parsedDetails->category) ? jsonPrepare($oMijnOVIS->parsedDetails->category).';' : '"";');
	$sHiddenFieldsJavascript .= 'var articleSubCategory = '.(!empty($oMijnOVIS->parsedDetails->subcategory) ? jsonPrepare($oMijnOVIS->parsedDetails->subcategory).';' : '"";');
	$sHiddenFieldsJavascript .= 'var articlePhotoLabel = '.(!empty($oMijnOVIS->parsedDetails->photolabel) ? jsonPrepare($oMijnOVIS->parsedDetails->photolabel).';' : '"";');
	$sHiddenFieldsJavascript .= 'var articleBrand = '.(!empty($oMijnOVIS->parsedDetails->brand) ? '"'.html_entity_decode(($oMijnOVIS->parsedDetails->brand)).'";' : '"";');
	$sHiddenFieldsJavascript .= 'var articleModel = '.(!empty($oMijnOVIS->parsedDetails->model) ? '"'.html_entity_decode(($oMijnOVIS->parsedDetails->model)).'";' : '"";');
	$sHiddenFieldsJavascript .= 'var articleVersion = '.(!empty($oMijnOVIS->parsedDetails->version) ? '"'.html_entity_decode(($oMijnOVIS->parsedDetails->version)).'";' : '"";');
	
	$sHiddenFieldsJavascript .= 'var articleEnginesSynopsis = '.(!empty($oMijnOVIS->parsedDetails->enginesSynopsis) ? jsonPrepare($oMijnOVIS->parsedDetails->enginesSynopsis).';' : '"";');
	$sHiddenFieldsJavascript .= 'var articleTypeSynopsis = '.(!empty($oMijnOVIS->parsedDetails->typeSynopsis) ? jsonPrepare($oMijnOVIS->parsedDetails->typeSynopsis).';' : '"";');
	$sHiddenFieldsJavascript .= 'var articleAccessoriesSynopsis = '.(!empty($oMijnOVIS->parsedDetails->accessoriesSynopsis) ? jsonPrepare($oMijnOVIS->parsedDetails->accessoriesSynopsis).';' : '"";');
	$sHiddenFieldsJavascript .= 'var articleDivisionsSynopsis = '.(!empty($oMijnOVIS->parsedDetails->divisionsSynopsis) ? jsonPrepare($oMijnOVIS->parsedDetails->divisionsSynopsis).';' : '"";');
	$sHiddenFieldsJavascript .= 'var articleDatesSynopsis = '.(!empty($oMijnOVIS->parsedDetails->datesSynopsis) ? jsonPrepare($oMijnOVIS->parsedDetails->datesSynopsis).';' : '"";');
	$sHiddenFieldsJavascript .= 'var articleSizesSynopsis = '.(!empty($oMijnOVIS->parsedDetails->sizesSynopsis) ? jsonPrepare($oMijnOVIS->parsedDetails->sizesSynopsis).';' : '"";');
	$sHiddenFieldsJavascript .= 'var articleBedsSynopsis = '.(!empty($oMijnOVIS->parsedDetails->bedsSynopsis) ? jsonPrepare($oMijnOVIS->parsedDetails->bedsSynopsis).';' : '"";');
	
	$sHiddenFieldsJavascript .= 'var articleAccessories = '.(!empty($oMijnOVIS->parsedDetails->accessoriesList) ? jsonPrepare($oMijnOVIS->parsedDetails->accessoriesList).';' : '"";');
	$sHiddenFieldsJavascript .= 'var articleDivisions = '.(!empty($oMijnOVIS->parsedDetails->divisionsList) ? jsonPrepare($oMijnOVIS->parsedDetails->divisionsList).';' : '"";');
	$sHiddenFieldsJavascript .= 'var articleLicense = '.(!empty($oMijnOVIS->parsedDetails->license) ? jsonPrepare($oMijnOVIS->parsedDetails->license).';' : '"";');
	
	$sHiddenFieldsJavascript .= 'var articleType = '.(!empty($oMijnOVIS->parsedDetails->version) ? jsonPrepare($oMijnOVIS->parsedDetails->version).';' : '"";');
	$sHiddenFieldsJavascript .= 'var articleSuffix = '.(!empty($oMijnOVIS->parsedDetails->titleSuffix) ? jsonPrepare($oMijnOVIS->parsedDetails->titleSuffix).';' : '"";');
	
	$sHiddenFieldsJavascript .= 'var userLimits = '.(!empty($bIsAllowed) ? jsonPrepare($bIsAllowed).';' : '"";');
	
	$sHiddenFieldsJavascript .= 'var articleBrandCheck = "";';
	$sHiddenFieldsJavascript .= 'var articleModelCheck = "";';
	$sHiddenFieldsJavascript .= 'var articleVersionCheck = "";';
	$sHiddenFieldsJavascript .= 'var articleAccessoriesCheck = "";';
	$sHiddenFieldsJavascript .= 'var articleDivisionsCheck = "";';
	$sHiddenFieldsJavascript .= 'var articleTypeCheck = "";';
	$sHiddenFieldsJavascript .= 'var articleDatesCheck = "";';
	$sHiddenFieldsJavascript .= 'var articleSizesCheck = "";';
	$sHiddenFieldsJavascript .= 'var articleBedsCheck = "";';
	$sHiddenFieldsJavascript .= 'var articleLicenseCheck = "";';
	$sHiddenFieldsJavascript .= 'var articleTypeCheck = "";';
	$sHiddenFieldsJavascript .= 'var articleSuffixCheck = "";';
	$sHiddenFieldsJavascript .= 'var articleEngineCheck = "";';
		
	if(!empty($sHiddenFieldsJavascript)){
		$sHiddenFields .= '<script>'.$sHiddenFieldsJavascript.'</script>';
	}
	

return $sHiddenFields;

?>