// This simple option checking form simply checks for text entry fields.  It ignores all other field types.

function doOptionCheck(form)
{
	for(k=0;k<form.elements.length;k++){
		var fldType = form.elements[k].type;
        //var fldName = form.elements[k].name;
		var fldValue = form.elements[k].value;
		var id = form.elements[k].id;
		var words = null;
		var msg = "is required.";
		
		if(fldType == "text" && fldValue == ""){
			    words =  id.split('_');
				for(j=words.length-1;j>=0;j--)
				{ msg = words[j]+ " " + msg;}
                alert(msg);
				return false;
            }
	}
	return true;
}

var pform=-1; var psvers=-1;

function checkPSD2FLA(pf, psv, inputid)
{
	//alert('pf: '+ pf + '  psv: ' + psv);
	if(pf != -1){ pform = pf;}
	if(psv != -1){ psvers = psv;}
	if(psvers!=-1 && pform != -1)
	{
		var p2fdiv = document.getElementById('p2foption');
		if(p2fdiv)
		{
			if(pform=='MacIntel||0' && psvers=='CS3||0')
			{
			
				p2fdiv.style.visibility = 'hidden'; 
				
				var inpute = inputid ? document.getElementById(inputid) : 0; 
				
				if(inpute){  inpute.checked = false;}
			}
			else
			{
				p2fdiv.style.visibility = 'visible'
			}
		}
	}
}