function mouse_in(dotti){
	pic_name=new Array();
	pic_name[0]="http://www.elite-network.co.jp/images/frame_top/home";
	pic_name[1]="http://www.elite-network.co.jp/images/frame_top/search";
	pic_name[2]="http://www.elite-network.co.jp/images/frame_top/support";
	pic_name[3]="http://www.elite-network.co.jp/images/frame_top/introduce";
	pic_name[4]="http://www.elite-network.co.jp/images/frame_top/tenshoku";

	pic1=new Array();
  pic2=new Array();
  for(i=0; i<pic_name.length; i++){
			pic1[i]=new Image();
			pic1[i].src=pic_name[i]+"1.gif";
			pic2[i]=new Image();
			pic2[i].src=pic_name[i]+"2.gif";
	}
	document.images["link"+dotti].src=pic2[dotti].src;
}


function mouse_out(dotti){
	pic_name=new Array();
	pic_name[0]="http://www.elite-network.co.jp/images/frame_top/home";
	pic_name[1]="http://www.elite-network.co.jp/images/frame_top/search";
	pic_name[2]="http://www.elite-network.co.jp/images/frame_top/support";
	pic_name[3]="http://www.elite-network.co.jp/images/frame_top/introduce";
	pic_name[4]="http://www.elite-network.co.jp/images/frame_top/tenshoku";


	pic1=new Array();
  pic2=new Array();
  for(i=0; i<pic_name.length; i++){
			pic1[i]=new Image();
			pic1[i].src=pic_name[i]+"1.gif";
			pic2[i]=new Image();
			pic2[i].src=pic_name[i]+"2.gif";
	}
	document.images["link"+dotti].src=pic1[dotti].src;
}

function showDetails(kigyo_id,recruit_no)
{
		document.detail.action = "http://www.elite-network.co.jp/x/j/search/detail/?kigyo_id=" + kigyo_id + "&recruit_no="+ recruit_no;
    document.detail.submit();
}

function showOtherPage(page_index)
{
    document.page.page_index.value = page_index;
    document.page.submit();
}

function showBackPage()
{
    document.page.submit();
}

function showEntryForm(kigyo_id,recruit_no)
{
		document.list.kigyo_id.value = kigyo_id;
		document.list.recruit_no.value = recruit_no;
		document.list.action = "../../entry/entry/";
		document.list.submit();
}

function jump(sel) {
	  if (sel.options[sel.selectedIndex].value) {
    location.href = sel.options[sel.selectedIndex].value;
	  }
}

function jump02(my_url){
	window.open(my_url,"","width=515,height=600,scrollbars=1");
}

function jump03(url){
	 location.href = url;
}

function subWin1(){
	window.open("http://elite-network.co.jp/entry/hayami.html","window1","width=250,height=300,scrollbars=yes,left=0,top=0");
}

function kyubo(my_url){
	window.open(my_url,"","width=600,height=600,scrollbars=1");
}

function Go_OtherSight(my_url){
	window.open(my_url,"","");
}

function focusKeywordSearch(){
	keyword = document.keyword_form.keyword.value;
	if(keyword=="社名、職種、資格等"){
		document.keyword_form.keyword.value = "";
		document.keyword_form.keyword.style.color = "#000000";
	}
}

function blurKeywordSearch(){
	keyword = document.keyword_form.keyword.value;
	if(keyword==""){
		document.keyword_form.keyword.value = "社名、職種、資格等";
		document.keyword_form.keyword.style.color = "#808080";
	}
}


function resetSearchParameter()
{
    document.reset.submit();
}

function printSmallclassMenu(cd)
{
    document.bigclass.bigclass_cd.value = cd;
    document.bigclass.submit();

}

function resetBigclassMenu()
{
		document.bigclass.action = "../select_2/";
    document.bigclass.submit();
}



function getCount(){

	var date = new Date();
	var yy = date.getYear();
	var mm = date.getMonth() + 1;
	var dd = date.getDate();
	var today = yy + mm + dd;
//	var today = date.getTime();

	xmlhttp = new XMLHttpRequest();
	xmlhttp.open("GET","http://www.elite-network.co.jp/cgi-bin/count.cgi?date=" + encodeURI(today),true);
	xmlhttp.onreadystatechange = function(){
		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
			var text = xmlhttp.responseText;
			if(navigator.appVersion.indexOf("KHTML") > -1){
				var esc = escape(text);
				if (esc.indexOf("%u") < 0 && esc.indexOf("%") > -1){
					text = decodeURIComponent(esc);
				}
			}
			printCount(text);
		}
	}
	xmlhttp.send("");

}

function printCount(str){

	var el = document.getElementById("count");
	el.innerHTML = str;

}


function getCount2(){

	var date = new Date();
	var yy = date.getYear();
	var mm = date.getMonth() + 1;
	var dd = date.getDate();
	var today = yy + mm + dd;
//	var today = date.getTime();

	try{
		xmlhttp = new XMLHttpRequest();
	}catch(e){
		printCount2("");
	}

	xmlhttp.open("GET","http://www.elite-network.co.jp/cgi-bin/count2.cgi?date=" + encodeURI(today),true);
	xmlhttp.onreadystatechange = function(){
		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
			try{
				var text = xmlhttp.responseText;
			}catch(e){
				printCount2("");
			}
			if(navigator.appVersion.indexOf("KHTML") > -1){
				var esc = escape(text);
				if (esc.indexOf("%u") < 0 && esc.indexOf("%") > -1){
					text = decodeURIComponent(esc);
				}
			}
			printCount2(text);
		}
	}
	xmlhttp.send("");

}

function printCount2(str){

	var today = "";
	var date = new Date();
	var yy = date.getYear();
	var mm = date.getMonth() + 1;
	var dd = date.getDate();

	if (yy < 2000) { yy += 1900; }

	if(str == null || str == ""){
		str = "<span class=\"number\">5,000</span>件以上";
	}else{
		today = "(" + yy + "年" + mm + "月" + dd + "日" + "現在)";
	}

	var el = document.getElementById("count");
	el.innerHTML = str;

	var el2 = document.getElementById("today");
	el2.innerHTML = today;

}

window.onload = function(){
	document.getElementById('rbox_2_block').onmouseover = hover;
}
function hover(){
	document.getElementById('rbox_2_block').style.backgroundColor = '#333';
}






function openImageSizedWindow(src){
	var	i	=	new	Image();	
	i.onload	=	function()	{
		var	pop_win	=	window.open(
			"",
			"_blank",
			"width="+i.width+",height="+i.height+",scrollbars=yes,resizable=yes"
		);
		if	(	pop_win	)	{
			pop_win.window.document.open();
			pop_win.window.document.write(
				'<html>'
			+'<head><title>'+i.alt+'</title></head>'
			+'<body	style="margin:0;padding:0;border:0;">'
			+'<img src="'+i.src+'" width="100%"	alt="" />'
			+'</body>'
			+'</html>'
			);
			pop_win.window.document.close();
		}	else	{
			location.href	=	i.src;
		}
		i.onload	=	function(){};
	}
	i.src	=	src;
}

function mouse_in2(dotti){
	pic_name=new Array();
	pic_name[0]="http://www.elite-network.co.jp/images/frame_top/home";
	pic_name[1]="http://www.elite-network.co.jp/images/frame_top/search";
	pic_name[2]="http://www.elite-network.co.jp/images/frame_top/support";
	pic_name[3]="http://www.elite-network.co.jp/images/frame_top/introduce";
	pic_name[4]="http://www.elite-network.co.jp/images/frame_top/tenshoku";

	pic1=new Array();
  pic2=new Array();
  for(i=0; i<pic_name.length; i++){
			pic1[i]=new Image();
			pic1[i].src=pic_name[i]+"3.gif";
			pic2[i]=new Image();
			pic2[i].src=pic_name[i]+"4.gif";
	}
	document.images["link"+dotti].src=pic2[dotti].src;
}


function mouse_out2(dotti){
	pic_name=new Array();
	pic_name[0]="http://www.elite-network.co.jp/images/frame_top/home";
	pic_name[1]="http://www.elite-network.co.jp/images/frame_top/search";
	pic_name[2]="http://www.elite-network.co.jp/images/frame_top/support";
	pic_name[3]="http://www.elite-network.co.jp/images/frame_top/introduce";
	pic_name[4]="http://www.elite-network.co.jp/images/frame_top/tenshoku";


	pic1=new Array();
  pic2=new Array();
  for(i=0; i<pic_name.length; i++){
			pic1[i]=new Image();
			pic1[i].src=pic_name[i]+"3.gif";
			pic2[i]=new Image();
			pic2[i].src=pic_name[i]+"4.gif";
	}
	document.images["link"+dotti].src=pic1[dotti].src;
}




function getDetailSmallclassCheckbox(bigclass_cd){

	var date = new Date();
	var timestamp = date.getTime();

	var xmlhttp = new XMLHttpRequest();
	xmlhttp.open("GET","http://www.elite-network.co.jp/cgi-bin/search/detail_smallclass_ckb.cgi?bigclass_cd=" + encodeURI(bigclass_cd) + "&timestamp=" + timestamp,true);
	xmlhttp.onreadystatechange = function(){
		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
			var text = xmlhttp.responseText;
			if(navigator.appVersion.indexOf("KHTML") > -1){
				var esc = escape(text);
				if (esc.indexOf("%u") < 0 && esc.indexOf("%") > -1){
					text = decodeURIComponent(esc);
				}
			}
			printDetailSmallclassCheckbox(text);
		}
	}
	xmlhttp.send("");

}

function getDetailSmallclassPulldown(parts){

	var bigclass_cd = parts.options[parts.selectedIndex].value;

	var date = new Date();
	var timestamp = date.getTime();

	var xmlhttp = new XMLHttpRequest();
	xmlhttp.open("GET","http://www.elite-network.co.jp/cgi-bin/search/detail_smallclass_pulldown.cgi?bigclass_cd=" + encodeURI(bigclass_cd) + "&timestamp=" + timestamp,true);
	xmlhttp.onreadystatechange = function(){
		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
			var text = xmlhttp.responseText;
			if(navigator.appVersion.indexOf("KHTML") > -1){
				var esc = escape(text);
				if (esc.indexOf("%u") < 0 && esc.indexOf("%") > -1){
					text = decodeURIComponent(esc);
				}
			}
			printDetailSmallclassCheckbox(text);
		}
	}
	xmlhttp.send("");

}

function printDetailSmallclassCheckbox(str){

	var el = document.getElementById("detail_smallclass_ckb");
	el.innerHTML = str;

}
