/** http://blog.flexexamples.com/2008/03/11/calling-actionscript-functions-from-your-html-templates-using-the-externalinterface-api/ */
function thisMovie(movieName) {
	if (navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName];
	} else {
		return document[movieName];
	}
}

function asAlert(value) {
    // alert("in asAlert b4 sending hardcode value "+value) ;
	//thisMovie("CommunicateWrapper").alert('hardcode value');
	thisMovie("CommunicateWrapper").alert(value) ;
	// CAUTION: the follwing does NOT work
	//thisMovie("CommunicateWrapper").alert(form1._textForFlex.value) ;
}

function sayString(str) {
    alert(str);
}

