// JavaScript Document

function doClear(theText) {
     if (theText.value == theText.defaultValue) {
         theText.value = ""
     }
}
function ripristina(theText) {
     if (theText.value == "") {
         theText.value = theText.defaultValue;
     }
}

function pass_change(){
	password = document.getElementById("password");
	password.value = "";
	password.type = "password";
}
 
function HideContent(d) {
	document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
	document.getElementById(d).style.display = "block";
}
function ReverseDisplay(d) {
	if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block";}
	else { document.getElementById(d).style.display = "none"; }
}

function midImg(num1,num2){
			var midImgTag = document.getElementById("hover_midimg");
			var anc_num = document.getElementById("anc_num");
			
			midImgTag.src="http://image.ac-illust.com/illust_data/" + num1 +"/"+ num2 +"/"+ num2 + "m.jpg"
			anc_num.value=parseInt(num2,10);
			
}
function jump(){
			var anc_num = document.getElementById("anc_num");
			var midimg_anc = document.getElementById("midimg_anc");
			midimg_anc.href = "detail.php?id=" + anc_num.value;
			
}

//$(document).ready(function(){
//	$(".opener").toggle(function(){
//		$('category').next().show(1000);
//	}, function(){
//		$('category').next().hide(500);
//	});
//});

function HideContentCat(d) {
	document.getElementById(d).style.display = "none";
}
function ShowContentCat(d) {
	document.getElementById(d).style.display = "block";
}

function HideContentIll(d) {
	document.getElementById(d).style.display = "none";
}
function ShowContentIll(d) {
	document.getElementById(d).style.display = "block";
}
