function ValidateForm(){
	try{
	var x = window.parent.frames(1).GetFormState();
	if (x != 'view'){
		alert('You must save the changes or cancel the record first!');
		return false
		}
	return true;
	}
	catch(e){return true}
	}
function changetext(whichcontent){
	if (document.all){
		descriptions.innerHTML = whichcontent;
		}
	}

function changestatus(whichcontent){
	if (document.all){
		window.status = whichcontent;
		}
	}

function ShowHelp(){
	var tmp = 'top=' + (screen.availHeight-280) + ', left=' + (screen.availWidth-260) + 'px, width=250px, height=250px, center=1,help=0,resizable=1,titlebar=0,status=0,scrollbars=1;'
	try{var id = window.parent.frames(1).GetHelpID();}
	catch(e){id=HELPID.value;}
	if (id=="0" || id==0){alert("Not help available!");return}
	var x = window.open('/ChemSafe/Functions/Help.asp?ID=' + id, 'helpwindow', tmp, true);
	//var x = window.open('/ChemSafe/Functions/Help.asp?Form=' + window.parent.frames(1).location + '~~' + window.location + '~~', 'helpwindow', tmp, true);
	
	x.focus();
	}
	
function high(which2){theobject=which2;highlighting=setInterval("highlightit(theobject)",30)}
function low(which2){clearInterval(highlighting);which2.filters.alpha.opacity=60;}
function highlightit(cur2){if (cur2.filters.alpha.opacity<100){cur2.filters.alpha.opacity+=10;}else{if (window.highlighting){clearInterval(highlighting);}}}