function nav()
   {
   var w = document.myform.state_id.selectedIndex;
   var url_add = document.myform.state_id.options[w].value;
   window.location.href = url_add;
   }


function catalog_nav()
   {
   var w = document.catalog_form.cs.selectedIndex;
   var url_add = document.catalog_form.cs.options[w].value;
   window.location.href = url_add;
   }


function col3Page(div, id, directory){

        var xmlhttp=false; //Clear our fetching variable
        try {
                xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object
        } catch (e) {
                try {
                        xmlhttp = new
                        ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
            } catch (E) {
                xmlhttp = false;
                        }
        }
        if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
                xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest
        }

	//add the item type
   	var w = document.col3_form.media_pulldown.selectedIndex;
   	var url_add = document.col3_form.media_pulldown.options[w].value;

        var file = directory + div + '.php?media_pulldown=' + url_add + '&id=';

        xmlhttp.open('GET', file + id, true); //Open the file through GET, and add the page we want to retrieve as a GET variable **
        xmlhttp.onreadystatechange=function() {

        if (xmlhttp.readyState==4) { //Check if it is ready to recieve data

                var content = xmlhttp.responseText; //The content data which has been retrieved ***

                if( content ){ //Make sure there is something in the content variable

                document.getElementById(div).innerHTML = content;  //Change the inner content of your div to the newly retrieved content ****

                }
        }
        }
        xmlhttp.send(null) //Nullify the XMLHttpRequest
return;

}




function getPage(div, id, directory){

        var xmlhttp=false; //Clear our fetching variable
        try {
                xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object
        } catch (e) {
                try {
                        xmlhttp = new
                        ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
            } catch (E) {
                xmlhttp = false;
                        }
        }
        if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
                xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest
        }

        var file = directory + div + '.php?id=';

        xmlhttp.open('GET', file + id, true); //Open the file through GET, and add the page we want to retrieve as a GET variable **
        xmlhttp.onreadystatechange=function() {

        if (xmlhttp.readyState==4) { //Check if it is ready to recieve data

                var content = xmlhttp.responseText; //The content data which has been retrieved ***

                if( content ){ //Make sure there is something in the content variable

                document.getElementById(div).innerHTML = content;  //Change the inner content of your div to the newly retrieved content ****

                }
        }
        }
        xmlhttp.send(null) //Nullify the XMLHttpRequest
return;

}



