
var theImages = new Array(4)
theImages[0] = 'images/boy1.jpg'
theImages[1] = 'images/homepic_2.jpg'
theImages[2] = 'images/homepic_3.jpg'
theImages[3] = 'images/homepic_4.jpg'
var p = theImages.length;

var whichImage = Math.round(Math.random()*(p-1));
var pic = new String(theImages[whichImage]);
function showImage(){
document.homepic.src= pic;
}
var popup = null;
function openPicWin(page,IWidth,IHeight,flags) {
	if (popup)	{
		if (!popup.closed)	{
		popup.close();
		}
	}
	popup = null;
	
	var ITop = (screen.height/2)-(IHeight/2);
	var ILeft = (screen.width/2)-(IWidth/2);
	
	if (flags != null)	{
		if (flags.substring(0,1) != ","){
		flags = "," + flags;
		}
	} 
	
	popup = window.open(page, "ChildPros", "TOP=" + ITop + ",LEFT=" + ILeft + ",HEIGHT=" + IHeight + ",WIDTH=" + IWidth + flags);
	popup.focus();
}