function ShowPhoto(strImagePath,winWidth,winHeight)
{
	var ShowImageWin;
	var strName =  "ShowImages"
	var strFeatures;
	strImagePath ="ShowPhoto.html?Image=" + strImagePath + "&Width=" + winWidth + "&Height=" + winHeight
	strFeatures = "dependent=yes,directories=no,location=no,menubar=no,resizable=yes,personalbar=no,scrollbars=no,titlebar=no,toolbar=no,top=50, left=50, width="+winWidth+",height="+winHeight+""
	ShowImageWin = window.open(strImagePath, null, strFeatures);
	ShowImageWin.focus();

	return false;
}


function isBlank(checkval) {
	NotNullString = true;
	for (i=0;i<checkval.length;i++) {
		if (checkval.charAt(i) != " ") {
			NotNullString = false;
			break;
		}
	}
	return NotNullString;
}

function validateForm() { //v4.0
	 	theForm = document.form1;
				if(isBlank(theForm.comment.value)){
					theForm.comment.focus();
					alert("Please fill in your comment") ;
					return false;
				}
				else if(isBlank(theForm.verify.value)){
							theForm.comment.focus();
							alert("Please fill in the confirmation code") ;
							return false;
				}
				else
			return true;

}
