var ImgNum = 0;
var ImgLength = NewImg.length - 1;

function chgImg(direction)
{
	if (document.images)
	 {
		ImgNum = ImgNum + direction;
		if (ImgNum > ImgLength)
		{
			ImgNum = ImgLength;
		}
		if (ImgNum < 0)
		{
			ImgNum = 0;
		}
		document.slide_image.src = NewImg[ImgNum];
   }
   label1.innerText =  'Show image '+(ImgNum +1)+' of '+(ImgLength +1);
}

function openWindow(theURL,winName,features)
{ //v2.0
  window.open(theURL,winName,features);
}

function openExWindow(theURL,winName,WinW,WinH)
{ //v2.0
	var x,y;
	x=(screen.width/2-(WinW/2));
	y=(screen.height/2-(WinH/2));
	window.open(theURL, winName,"height=" + WinH +",width="+ WinW+",left=" + x +",top="+ y);
}

function newImage(imagepath, imagename)
{
	document.image_view.src = imagepath ;
	label1.innerText = imagename;
}

function changeGender()
{
	if (this.form2.gender.selectedIndex ==  0) label33.innerText =  "women";

	if (this.form2.gender.selectedIndex ==  1) label33.innerText =  "men";
}

