var pages=new Array("home","articles","wisdoms","comments","archive", "contact"); 


function test(){
alert('test');

}
function processSearch(){
var keywords = document.getElementById('keys').value;
var writer = document.getElementById('writer').value;
var vn = "";
if(document.getElementById('versionNumbers') != undefined){
	vn = document.getElementById('versionNumbers').value;
}
document.location.href='archive.php?keywords='+keywords+'&vn='+vn+'&writer='+writer;
}
//return current date.
function getTodayDate()
{
	var today = new Date();
	var month = today.getMonth() + 1;
	var day = today.getDate();
	var year = today.getFullYear();
	var s = "-";

	var currentDate =  day + s + month  + s + year;
	return currentDate;

}

function getMenuSelected(page){
document.getElementById(page).className="menuSelected";

}
function show_popup23(htmlContent)
{

var p=window.createPopup();
var pbody=p.document.body;
//pbody.style.filter="alpha(opacity=100)" ; 
pbody.style.fontSize="10px";
pbody.style.align="center";
pbody.style.background = "#CCC";
pbody.style.border = "3px solid #000";
pbody.style.fontFamily="Verdana, Arial, Helvetica, sans-serif";
pbody.document.body.innerHTML=htmlContent;
p.show(100,200,400,100,document.body);

}