<?php
header('Content-Type: text/javascript');
session_start();

$doNotUseSmarty=true;
include(str_replace('docs/addon', 'inc', dirname(__FILE__)).'/config.www.php');
define_module_group('neo_media');

?>
//
// Div js functionality
//

var bgsave;
function swapBg(elm,act,col){
if(act=='on'){
bgsave=elm.style.backgroundColor;
elm.style.backgroundColor=col;
}else elm.style.backgroundColor=bgsave;
}

function sa(action,showConfirm){
if(showConfirm && !confirm(showConfirm)){ return false; }
parent.mycrm_body_frame.location=action;
}

function swapDisplay(ob,set){
c=ob.length;
for(i=0;i<c;i++){
s=(set[i]==undefined)?'block':set[i];
tst=document.getElementById(ob[i]).style.display;
document.getElementById(ob[i]).style.display=(tst=='none')?s:'none';
}}

//function drm(){
//if (document.all) {
//var LicenseResponse = "<?php echo (isset($_SESSION['drmLicenseFormResponse'])? $_SESSION['drmLicenseFormResponse'] : ''); ?>";
//if (LicenseResponse=="") {
//document.getElementById("ClientInfo").value = netobj.GetSystemInfo();
//} else {
//netobj.StoreLicense('<?php echo (isset($_SESSION['drmLicense'])? $_SESSION['drmLicense'] : ''); ?>');
//alert('Licence:\n<?php echo (isset($_SESSION['drmLicense'])? $_SESSION['drmLicense'] : ''); ?>');
//}}}
<?php
#ob_start();
#print_r($_SESSION);
#error_log(ob_get_contents());
#ob_clean();
?>