function showImageWindow(image, intW, intH, strTitle) {
	var Hpos = (screen.width/2) - (intW/2);
	var Vpos = (screen.height/2) - (intH/2);
	var att = 'toobar=no, location=no, directories=no, status=no, menubar=no, resizable=no, width='+ intW+', height='+ intH ;

	lrgimg = window.open("","imgwin",att);
	lrgimg.moveTo(Hpos,Vpos)
	lrgimg.document.write("<html>\n<head>\n<title>" + strTitle +"</title>\n")
	//lrgimg.document.write("<link rel='stylesheet' href='config/style.css' type='text/css'>\n</head>\n")
	lrgimg.document.write("<body leftmargin='0' topmargin='0' marginheight='0' marginwidth='0' bgcolor='#ffffff'>\n")
	lrgimg.document.write("<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n")
	//lrgimg.document.write("<tr><td>"+ strDesc +"</td></tr>\n")
	lrgimg.document.write("<tr><td><img src='" + image + "' width='" + intW + "' height='" + intH + "'></td></tr>\n")
	lrgimg.document.write("</table>\n</body>\n</html>\n")
	lrgimg.document.close()
	lrgimg.focus()
}

function openpop (thePage, wwidth, wheight) {
	var Hpos = (screen.width/2) - (wwidth/2) ;
	var Vpos = (screen.height/2) - (wheight/2);
	//var att = 'toobar=no, location=no, directories=no, status=no, menubar=no, resizable=no, width='+wwidth+', height='+wheight;
	var att = 'scrollbars=0, toobar=0, location=0, directories=0, status=0, menubar=0, resizable=0, width='+wwidth+', height='+wheight;
	openpopwin = window.open ( thePage , 'popupwin', att);
	openpopwin.moveTo(Hpos,Vpos);
}


var checkflag = "true";
function check(field) {
	
	if (checkflag == "false") {
		for (i = 0; i < field.length; i++) {
			field[i].checked = true;
		}
		checkflag = "true";
		return "Uncheck All"; 
	} else {
		for (i = 0; i < field.length; i++) {
			field[i].checked = false; 
		}
		checkflag = "false";
		return "Check All"; 
	}
}
//  End -->