function popup(src, w, h){
	x = (screen.availWidth-w)/2;
	y = (screen.availHeight-h)/2;
	popupWindow = window.open("press_item.php?img="+src, "window", "status=1,resize=0,scrollbars=1,locaiton=0,top="+y+",left="+x+",width="+w+",height="+h);
}
var cImage = 1;
var numOfImages = 56;
function changeImage(num){
	cImage = num;
	id("theImage").src = "_pic/ntb__Page_"+cImage+".jpg";
	t = "";
	if(cImage > 1){
		t += "<a href='' onclick='changeImage("+(cImage-1)+"); return false;'>prev</a>";
	}
	t += cImage+"/"+numOfImages;
	if(cImage < numOfImages){
		t += "<a href='' onclick='changeImage("+(cImage+1)+"); return false;'>next</a>";
	}
	id("imageNav").innerHTML = t;
}
function id(str){
	return document.getElementById(str);
}


function close_process(){
	document.getElementById('process_message').style.display = 'none';
}

inputs = ["name", "email", "text"];
function setupInputs(){
	for(i=0; i<inputs.length; i++){
		theInput = id(inputs[i]);
		theInput.sValue = theInput.value;
		theInput.onfocus = function(){
			if(this.value == this.sValue){
				this.value = "";
			}
		}
		theInput.onblur = function(){
			if(this.value == ""){
				this.value = this.sValue;
			}
		}
	}
}