function loadk() {var request = new Ajax.Request("/box_keyword.php", {method: 'get', requestHeaders: ["If-Modified-Since", "Thu, 01 Jun 1970 00:00:00 GMT"], onComplete: showBoxKw});}
function loadh() {var request = new Ajax.Request("/box_history.php", {method: 'get', requestHeaders: ["If-Modified-Since", "Thu, 01 Jun 1970 00:00:00 GMT"], onComplete: showBoxHs});}
function kwChange() { k = $("keyword").value; p = "keyword=" + k + "&act=kw"; var request = new Ajax.Request("/box_keyword.php", {method: 'post', requestHeaders: ["If-Modified-Since", "Thu, 01 Jun 1970 00:00:00 GMT"], parameters: p, onComplete: showBoxKw});}
function showBoxKw(res){$("box_keyword").innerHTML = res.responseText;}
function showBoxHs(res) {$("box_history").innerHTML = res.responseText;}
function put_pv() { var d = new Date();var p = "url=" + encodeURIComponent(location.pathname) + "&referrer=" + encodeURIComponent(document.referrer) + "&t="+d.getTime(); var request = new Ajax.Request("/pv.php", {method: 'get', requestHeaders: ["If-Modified-Since", "Thu, 01 Jun 1970 00:00:00 GMT"], parameters: p});}
var sinTable = Array(0,0.07845903,0.156434334,0.23344517,0.309016742,0.382683126,0.453990145,0.522498169,0.587784823,0.649447594,0.707106312,0.760405492,0.809016526,0.852639714,0.891006103,0.923879152,0.951056188,0.972369657,0.987688154,1);
var cosTable = Array(1,0.998629537,0.994521905,0.987688361,0.978147638,0.965925884,0.951056598,0.933580537,0.913545602,0.891006705,0.866025625,0.838670833,0.809017306,0.777146323,0.74314524,0.70710725,0.669131132,0.629320975,0.587785896,0.54463974,0.500000766,0.453991327,0.406737532,0.358368899,0.309018004,0.258820113,0.207912816,0.156435644,0.104529695,0.052337237);
function startMoveLeft(info) {if (info.moving == true) return; info.dir = 1; info.curr = 0;setTimeout(function () {move(info)}, 20);}
function startMoveRight(info) {if (info.moving == true) return; info.dir = -1; info.curr = 0;setTimeout(function () {move(info)}, 20);}
function move(info) {info.curr += 1; if (info.curr < 0 || info.curr >= cosTable.length) return; info.x += info.dir * info.speed * cosTable[info.curr]; if (info.x < info.max * -1 || info.x > 0) { if (info.x >= 0) info.x = 0; else info.x = info.max * -1; $(info.targetId).style.left = info.x + "px"; info.moving = false;} else {$(info.targetId).style.left = info.x + "px"; setTimeout(function () {move(info)}, 20);}}
function kwChange2() {if (($F("nondis") == "" && ($F("kword") == "" || $F("age") == "" || (!$("man").checked && !$("woman").checked) || $F("pref") == "" || $F("jobc") == "")) || ( ($F("kword") != "" || $F("age") != "" || ($("man").checked || $("woman").checked) || $F("pref") != "" || $F("jobc") != "") && ($F("kword") == "" || $F("age") == "" || (!$("man").checked && !$("woman").checked) || $F("pref") == "" || $F("jobc") == ""))) {$("alrt").style.display = "inline";return;} var p = "word=" + $F("kword") + "&age=" + $F("age") + "&sex=" + ($("man").checked ? 1:2) + "&pref=" + $F("pref") + "&jobc=" + $F("jobc") + "&nodisp=" + $F("nondis"); var request = new Ajax.Request("/box_keyword.php", {method: 'post', requestHeaders: ["If-Modified-Since", "Thu, 01 Jun 1970 00:00:00 GMT"], parameters: p, onComplete: showBoxKw});$('prf_box').style.display='none'}
function edit_prof() { var t; if(document.all) { $("prf_box").style.left = (((document.documentElement.clientWidth - 400) / 2) + document.documentElement.scrollLeft) + "px"; t = (((document.documentElement.clientHeight - 390) / 2) + document.documentElement.scrollTop - 200); } else { $("prf_box").style.left = (((window.innerWidth - 400) / 2) + document.documentElement.scrollLeft) + "px"; t = (((window.innerHeight - 390) / 2) + document.documentElement.scrollTop - 200); } if (t < 10) t = 10; t += "px";$("prf_box").style.top = t; $("prf_box").style.display = "block"; if($F("kword") != ""){ $('intro').style.display = 'none'; $('age').style.display = ''; $('pref').style.display = ''; $('jobc').style.display = ''; $('age').focus(); } op=0;sh_keyin(); }
//function addEventListener(target, type, func) { if(target.attachEvent) { target.attachEvent("on" + type, func); } else if(target.addEventListener) {target.addEventListener(type, func, true); } else { target["on" + type] = func;}}
function getAdvHTMLAjax(place, spc_id) {if (spc_id == '') return;now = new Date();getHTMLAjax2(place, '/adv_get.php', 'spcid=' + spc_id + '&c=' + now.getFullYear() + now.getMonth() + now.getDate() + now.getHours() + now.getMinutes() + now.getSeconds());}
//function getHTMLAjax(place, url, params) {var myAjax = new Ajax.Updater(place, url, {method: 'get', parameters: params});}
function getHTMLAjax2(place, url, params) { var request = new Ajax.Request(url, {method: 'get', parameters: params, onComplete: function (req) {$(place).innerHTML = get_response_text(req);}}); }
function get_response_text(req) {var text = req.responseText; if ( navigator.appVersion.indexOf( "KHTML" ) > -1 ) { var esc = escape( text ); if ( esc.indexOf("%u") < 0 && esc.indexOf("%") > -1 ) { text = decodeURIComponent( esc ); } } return text;}
function adv_click(params) { var request = new Ajax.Request('/adv_click.php', {method: 'get', parameters: params}); }

function cookie_evnt(){ var cookies = document.cookie.split("; "); var flg = 0; for (var i = 0; i < cookies.length; i++) { var str = cookies[i].split("="); if (str[0] == "sub_win") { if(str[1] == "1"){ $('prf_box').style.display = 'none'; flg = 1; } } else if (str[0] == "next_flg") { if(str[1] == "1"){ $('prf_box').style.display = 'none'; flg = 1; } } } if(flg == 0){ push_dailog(); } }
function close_sub() { document.cookie="sub_win=1; domain=jobdirect.jp; path=/"; }
function nene_next() { var flg="0"; if ($F("nondis") == "1"){ flg="1"; document.cookie="next_flg=" + flg + "; domain=jobdirect.jp; path=/; expires=Tue, 1-Jan-2038 00:00:00 GMT";  } }
function keyCode(e){ if(document.all) return e.keyCode; else if(document.getElementById) return (e.keyCode)? e.keyCode: e.charCode; else if(document.layers) return e.which;}
function event_ctr(name){ if (window.addEventListener) { window.addEventListener("load", name, false); } else if (window.attachEvent) { window.attachEvent("onload", name); } }
//function start_sh_keyin() {op=0;sh_keyin();$('prf_box').style.display="block";}
function get_cookie(coknam) { coktxt = document.cookie+";"; stano = coktxt.indexOf(coknam); if (stano != -1){ endno = coktxt.indexOf(";",stano); txt0 = unescape(coktxt.substring(stano+coknam.length+1,endno)); }else{ txt0 = ""; } return txt0; }
function sh_keyin() {if (op>100) op = 100;op+=20;$('prf_box').style.opacity = op / 100;$('prf_box').style.filter = "alpha(opacity=" + op + ")";if (op != 100) setTimeout(function () {sh_keyin()}, 10); }

