
function windowOpen(index,url,width,height,type) {
	if (!url) {
		return false;
	}
	if (!width) {
		width = '300';
	}
	if (!height) {
		height = '300';
	}
	if (!type) {
		type = '3';
	}
	if (type == '1') {
		params = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=' + width + ',height=' + height;
	} else if (type == '2') {
		params = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=' + width + ',height=' + height;
	} else if (type == '3') {
		params = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=' + width + ',height=' + height;
	} else if (type == '4') {
		params = 'toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=' + width + ',height=' + height;
	} else if (type == '5') {
		params = 'toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=' + width + ',height=' + height;
	} else {
		params = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=' + width + ',height=' + height;
	}
	if (index == '1'){
		firstWindow=window.open (url,"firstWindow",params);
		firstWindow.focus();
		return false;
	}
	else if (index == '2') {
		secondWindow=window.open (url,"secondWindow",params);
		secondWindow.focus();
		return false;
	}
	else if (index == '3'){
		thirdWindow=window.open (url,"thirdWindow",params);
		thirdWindow.focus();
		return false;
	}
}
