
var Need_To_Confirm = "Y";

var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;

// Handle all the FSCommand messages in a Flash movie.

function UltraStudio_DoFSCommand(command, args) {

	var UltraStudioObj = isInternetExplorer ? document.all.UltraStudio : document.UltraStudio;

	if (command == "cleared"){

		Need_To_Confirm = "N";

	}

}

function warning_message(){

	if (Need_To_Confirm == "Y"){

		event.returnValue = "If you leave WITHOUT saving your project, this design will be lost!";

	} else {

	Need_To_Confirm = "Y";

	}

}

function fixedSize(url,name,features) {

	win = window.open(url,name,features);

}

