<!--

function PopHelpWin(strURL) {

	objHelpWin = window.open(strURL,'HelpWin','scrollbars=yes,width=250,height=300');

	return 0;

}

function PopCustomWin(strURL,strName,intWidth,intHeight) {

	objHelpWin = window.open(strURL,strName,'scrollbars=yes,width=' + intWidth + ',height=' + intHeight);

	return 0;

}

function CheckAll(objField, blnVal) {

	if (objField) {
		intFieldCount = objField.length;

		if (intFieldCount) {
			for (intX = 0; intX < intFieldCount; intX++) {
				objField[intX].checked = blnVal;
			}
		}
		else {
			objField.checked = blnVal;
		}
	}
}

function SetDefaultType(intInType) {

	if (intInType == 0) {
		SetTypeImage(document.forms[0]);
	}
	else if (intInType == 1) {
		SetTypeText(document.forms[0]);
	}

}

function SetTypeImage(objForm) {

	objForm.ActiveSrc.disabled = false;
	objForm.InactiveSrc.disabled = false;
	objForm.Width.disabled = false;
	objForm.Height.disabled = false;

	objForm.ActiveTxt.disabled = true;
	objForm.InactiveTxt.disabled = true;

	if (document.all) {

		for (intX = 0; intX < document.all.ImageFields.length; intX++) {
			document.all.ImageFields[intX].style.display = 'inline';
		}

		for (intX = 0; intX < document.all.TextFields.length; intX++) {
			document.all.TextFields[intX].style.display = 'none';
		}

	}

}

function SetTypeText(objForm) {

	objForm.ActiveSrc.disabled = true;
	objForm.InactiveSrc.disabled = true;
	objForm.Width.disabled = true;
	objForm.Height.disabled = true;

	objForm.ActiveTxt.disabled = false;
	objForm.InactiveTxt.disabled = false;

	if (document.all) {

		for (intX = 0; intX < document.all.ImageFields.length; intX++) {
			document.all.ImageFields[intX].style.display = 'none';
		}

		for (intX = 0; intX < document.all.TextFields.length; intX++) {
			document.all.TextFields[intX].style.display = 'inline';
		}

	}

}

// -->
