function page_details_onComplete()
{
	// ***//
}
function show_month_year_calendar(month_id,year_id,day_id)
{
    document.getElementById('calendar_div').innerHTML="<center><img src='images/loading.gif'></center><br><br>";
    var url = server_url+'/ajaxcalendar.php';
    var pars = 'yearID='+year_id+'&monthID='+month_id+'&dayID='+day_id;
    var target = 'calendar_div';
    var myAjax = new Ajax.Updater(target, url, {method: 'get', parameters: pars , onComplete: page_details_onComplete });
}

function show_submenu(id)
{
	var dp = document.getElementById("div_"+id);
    if(dp.style.display == '') {
        dp.style.display = 'none';
    }else{
        dp.style.display = '';
    }
}

function printSelection(node){

  var content=node.innerHTML
  var pwin=window.open('','print_content','width=100,height=100');

  pwin.document.open();
  pwin.document.write('<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1256" />');
  pwin.document.write('<link '+server_url+'/public/templates/last/css/style.css" rel="stylesheet" type="text/css" />');
  pwin.document.write('<link '+server_url+'/public/templates/last/css/dhtmlgoodies_calendar.css?random=20051112" rel="stylesheet" type="text/css" />');
  pwin.document.write('<link '+server_url+'/public/templates/last/css/SpryValidationTextField.css" rel="stylesheet" type="text/css" />');
  
  pwin.document.write('</head><body onload="window.print()">'+content+'</body></html>');
  pwin.document.close();
 
  setTimeout(function(){pwin.close();},1000);

}


