function inputPage(event, url, pageNumber){
	//if(event.keyCode==13){
	var page = document.getElementById(pageNumber).value;
	window.location.href=url+'/page/'+page;
	//}
}

function change_input_text(display_text, id){
	var get_value = document.getElementById(id).value;
	if(get_value == "" || display_text == ""){
		document.getElementById(id).value = display_text;
		return true;
	}else{
		return false;
	}
}

function change_input_type(new_type, id, display_text, current){
	var parentElem = "p";
	
	try {
		if(change_input_text(display_text, id)){
			document.getElementById(id).type = new_type;
		}else{
			document.getElementById(id).type = "password";	
		}
	} catch(error) {
		document.getElementById(id).type
		
		var textnode = document.createElement("input");
		
		textnode.onblur = function() { change_input_text("Password", id); };
		textnode.onclick = function() { change_input_text("", id); };
		
		if(change_input_text(display_text, id)){
			textnode.type = new_type;
		}else{
			textnode.type = "password";
		}
		textnode.className = "required password";
				
		document.getElementById(parentElem).appendChild(textnode);
		document.getElementById(parentElem).removeChild(current);
		
		
		textnode.id = id;
		textnode.name = id;
		textnode.focus();
	}
}
