var httpObj;
var d_width;
function pix_seach( keyword ){
        requestStr="";
        requestStr+="q="+keyword+"&w="+d_width;
        httpObj = createXMLHttpRequest(displayData);
        if (httpObj){
            httpObj.open("POST",'http://www.miyazakiya.jp/lib/pix_search.php',true);
            httpObj.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
            httpObj.send(requestStr);
        }
}
    
function displayData(){
    if((httpObj.readyState==4)&&(httpObj.status==200)){
        var result = decodeURIComponent(httpObj.responseText);
        document.getElementById('pix_search').innerHTML = result;
    }
}
    
function createXMLHttpRequest(cbFunc){
    var XMLhttpObject = null;
    try{
        XMLhttpObject = new XMLHttpRequest();
    }catch(e){
        try{
            XMLhttpObject = new ActiveXObject("Msxml2.XMLHTTP");
    }catch(e){
        try{
            XMLhttpObject = new ActiveXObject("Microsoft.XMLHTTP");
        }catch(e){
            return null;
        }
    }
  }
  if (XMLhttpObject) XMLhttpObject.onreadystatechange = cbFunc;
    return XMLhttpObject;
}


<!--
function newImage(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; } }

function changeImages() { if (document.images && (preloadFlag == true)) { for (var i=0; i<changeImages.arguments.length; i+=2) { document[changeImages.arguments[i]].src = changeImages.arguments[i+1]; } } } var preloadFlag = false; 

function preloadImages() {
if (document.images) {
preloadFlag = true;}}
// -->
<!--
function openwin_map(url) {
pop_map = window.open(url,"pop_map","width=490,height=510,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0");
pop_map.focus();}

// -->
<!--
function time() {
var now = new Date()
yea = now.getYear()
if(yea <= 2000){yea=yea+1900}
mon = now.getMonth()+1
if (mon<10) {mon="0"+mon}
day = now.getDate()
if (day<10) {day="0"+day}
hou = now.getHours()
if (hou<10) {hou="0"+hou}
min = now.getMinutes()
if (min<10) {min="0"+min}
sec = now.getSeconds()
if (sec<10) {sec="0"+sec}
document.form_clock.clock.value= yea +"."+ mon +"."+ day +"/"+ hou +":"+ min +":"+ sec
setTimeout('time()',1000)
}
//-->
