//  http://www.aquatechsociety.com javascript

function showStatus(sMsg) {
    window.status = sMsg ;
    return true ;
}

function newView(page) {    //opens a new window
    newWindow=window.open(page,'newView','toobar=no,location=no,status=no,scrollbars=yes,resizable=yes,left=5,top=5,height=700,width=900')
    newWindow.focus
}

function editphoto(page) {    //opens a new window
    newWindow=window.open(page,'newView','scrollbars=yes,resizable=yes,left=20,top=20,height=900,width=700')
    newWindow.focus
}

// This function calls the Web Service method to display calendar items.  
function getEventDetail(id)
{
    //var eventId = document.getElementById(id);
    Services.AspNet.calendarEventDetails.getCalendarItem(id, SucceededCallback);
}
// This is the callback function that processes the Web Service return value for the calendar.
function SucceededCallback(result)
{
    var RsltElem = document.getElementById("ctl00_ContentPlaceHolder1_daydetail_render");
    RsltElem.innerHTML = result; 
    
    var ddr = document.getElementById("ctl00_ContentPlaceHolder1_daydetail_render"); 
    ddr.style.display = 'block';
} 
// Turns on and off the calendar item detail popup
//var state = 'none';
layer_ref ='ctl00_ContentPlaceHolder1_daydetail_render'
function show(){ 
    if(document.all){ //IS IE 4 or 5 (or 6 beta) 
        eval("document.all." +layer_ref+ ".style.display = block"); 
    } 
    if (document.layers) { //IS NETSCAPE 4 or below 
        document.layers[layer_ref].display = 'block'; 
    } 
    if (document.getElementById &&!document.all) { 
        var hza = document.getElementById(layer_ref); 
        hza.style.display = 'block'; 
    } 
} 
function hide(){ 
    if(document.all){ //IS IE 4 or 5 (or 6 beta) 
        eval("document.all." +layer_ref+ ".style.display = 'none'"); 
    } 
    if (document.layers) { //IS NETSCAPE 4 or below 
        document.layers[layer_ref].display = 'none'; 
    } 
    if (document.getElementById &&!document.all) { 
        var hza = document.getElementById(layer_ref); 
        hza.style.display = 'none'; 
    } 
} 

