<!--

    //function loadPage(url, title, send_type) {
        // load the title first
    //    loadDivData('definetitle.php?title='+title, 'worktitle', 
//send_type);

        // load the workzone
    //    loadDivData(url, 'workzone', send_type);
    //}

    var open_page = 0;

    function loadDivData(url, div_id, send_type) {

        //alert(url + '-' + div_id + '-' + send_type);

        var xmlhttp = false;
        
        //if (div_id == 'workzone')
        //   
// document.getElementById('quickview').style.visibility='hidden';

        //if (div_id == 'quickview') {
        //   
 //document.getElementById('quickview').style.visibility='visible';
        //    document.getElementById('quickview').innerHTML="";
        //}


        if (window.XMLHttpRequest) {
            xmlhttp = new XMLHttpRequest();
        }
        else if (window.ActiveXObject) {
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        }

        if (url != "" && div_id != "") {
            if (send_type == 'post') {
            }
            else if (send_type == 'get') {
                xmlhttp.open('GET', url, true);
                xmlhttp.onreadystatechange = function() {
                    if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {

                        if (open_page == 0) {
                            document.getElementById(div_id).innerHTML = 
xmlhttp.responseText;
                            //open_page = 1;
                        }
                        else {
                            //open_page = 0;
                            document.getElementById(div_id).innerHTML = "";
                        }
                    }
                }
            xmlhttp.send(null);
            }
        }
    }


function Resizer(size) {
    document.getElementById('toolbar').style.height=size + "px";
}
function Hide(str) {
    x = document.getElementById(str);
    x.style.visibility = 'hidden';
}

function Show(str, url) {
    x = document.getElementById(str);
    x.style.visibility = 'visible';
    
    loadDivData(url, str, 'get');
}


function submitInformation(formName, divid) {
    var string_tracker = "";

    for (var i=0; i <= document.myForm.elements.length-1;i++) {
        var s = new String(document.myForm.elements[i].value);
        s.replace(/&/,"and");

        string_tracker = string_tracker + 
document.myForm.elements[i].name + "=" +
            s + "&";
    }

    string_tracker = formName + string_tracker + "actions=submit";

    //alert(string_tracker);

    loadDivData(string_tracker, divid, 'get');
}
