/* atweb フォームページ貼り付け用JSファイル */ if( !atweb ) var atweb = {}; if( !atweb.research ) atweb.research = {} if( !atweb.research.container ) atweb.research.container = {} if( !atweb.research.counter ) atweb.research.counter = 0; atweb.research.counter++; atweb.research.write_reseach = function(container_id){ var html = ""; // html += '
'; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += 'アンケート'; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += '
'; html = html.replace('container_id',container_id ); document.getElementById(container_id).innerHTML = html; } atweb.research.loadCSS = function(src){ var href = src.replace( "action=g","action=c"); var elem = document.createElement('link'); elem.setAttribute('rel','stylesheet'); elem.setAttribute('href',href); elem.setAttribute('type','text/css'); document.getElementsByTagName('HEAD')[0].appendChild( elem ); } atweb.research.insert = function(enode, id){ var elem = document.createElement('div'); elem.setAttribute('id',id); var pNode = enode.parentNode; pNode.insertBefore(elem, enode.nextSibling); } var scirpts = document.getElementsByTagName("script"); for( var i=0; i -1) { opt = oElement.options[oElement.selectedIndex]; data[item++] = oName + encodeURIComponent( (opt.attributes.value && opt.attributes.value.specified) ? opt.value : opt.text); } break; case 'select-multiple': if (oElement.selectedIndex > -1) { for(j=oElement.selectedIndex, jlen=oElement.options.length; j 1 ){ var page = obj.current -1; laquo = '' + obj.laquo +''; }else{ laquo = '' + obj.laquo +''; } // >> if( obj.current < obj.page ){ var page = obj.current +1; raquo = '' + obj.raquo +''; }else{ raquo = '' + obj.raquo +''; } document.getElementById( oid +'-laquo' ).innerHTML = laquo; document.getElementById( oid +'-raquo' ).innerHTML = raquo; document.getElementById( oid +'-laquo2' ).innerHTML = laquo; document.getElementById( oid +'-raquo2' ).innerHTML = raquo; obj.page1.innerHTML = obj.current; obj.page2.innerHTML = obj.current; } enq.setLinks = function(id,oid,type,page,current,pid,href){ var links = document.getElementById( oid +'-div' ); var links2 = document.getElementById( oid +'-div2' ); if( !links || ! links2 ) return; var laquo = document.getElementById( oid +'-laquo' ).innerHTML; var raquo = document.getElementById( oid +'-raquo' ).innerHTML; var page1 = document.getElementById( oid +'-page1' ); var page2 = document.getElementById( oid +'-page2' ); enq[oid] = {}; enq[oid].id = oid; enq[oid].param = id; enq[oid].type = type; enq[oid].page = page; enq[oid].current = current; enq[oid].links = links; enq[oid].links2 = links2; enq[oid].laquo = laquo; enq[oid].raquo = raquo; enq[oid].page1 = page1; enq[oid].page2 = page2; enq[oid].href = href+'?mode=result&action=load&id='+pid; enq.pageLink( enq[oid] ); } enq.loader = function(id,p,oid){ enq.callback = function(obj){ var text = document.getElementById( oid + '-text' ); text.innerHTML = obj.text; return; } enq[oid].current = p; enq.pageLink( enq[oid] ); var url = enq[oid].href; var rnd = Math.random(); var script = document.createElement("script"); script.charset = "utf-8"; script.src = url + '&p='+p+'&fid=' + id + '&type='+ enq[oid].type +'&rnd=' + rnd; script.type= "text/javascript"; document.body.appendChild(script); return false; } /* ページリンクをセット 例)enq.setLinks('free_1','*******',0,10,10); */ enq.start = function(){ // } enq.winLoad(enq.start);