// *********************************************************************
// Function to highlight text when mouseover in submit button lookalike
// *********************************************************************
function DynamicSubmitOver(myElementId) {
	document.getElementById(myElementId.id + '_1').className = 'SubmitHover02Hover' ;
}

function DynamicSubmitOut(myElementId) {
	document.getElementById(myElementId.id + '_1').className = 'SubmitHover02' ;
}
 
function CreateFlashTag(FlashPath, FlashStyle, ImagePath)   
{   
    /*
    document.write('<OBJECT id="objFlash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');   
    document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" ');   
    document.write('style="' + FlashStyle + '" VIEWASTEXT>');   
    document.write('<PARAM NAME="movie" VALUE="' + FlashPath + '" ref>');   
    document.write('<PARAM NAME="quality" VALUE="high">');   
    document.write('<PARAM NAME="wmode" VALUE="transparent">');   
    document.write('<PARAM NAME="allowScriptAccess" VALUE="always">');
    document.write('<PARAM NAME="Menu" VALUE="0">');   
    document.write('<PARAM NAME="Scale" VALUE="ExactFit">');   
    document.write('<PARAM NAME="BGColor" VALUE="#495A74">');   
    document.write('<IMG SRC="' + ImagePath + '" BORDER=0>');
    document.write('</object>');
    
    document.write('<embed src="' + FlashPath + '" quality="high" bgcolor="#495A74"');
    document.write('style="' + FlashStyle + '">');
    document.write('type="application/x-shockwave-flash"');
    document.write('pluginspage="http://www.macromedia.com/go/getflashplayer">');
    document.write('</embed>');               
    */
        
    //alert(FlashStyle);
    var rgn1 = (FlashStyle.substr(7, FlashStyle.indexOf("px", 7) -7));     
    var heightPos = FlashStyle.indexOf(";") +8;
    var rgn2 = (FlashStyle.substr(heightPos+1, (FlashStyle.indexOf("px", heightPos+1) - heightPos-1)));          
    
	AC_FL_RunContent('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
	'width',rgn1,
	'height',rgn2,
	'src',FlashPath,
	'quality','high',
	'pluginspage','http://www.macromedia.com/go/getflashplayer',
	'movie',FlashPath,
	'wmode','opaque',
	'AllowScriptAccess','always',
	'id','flashheader' );	    
 } 
 function deletePoll()
 {
        return confirm("Are you sure you want to delete\nthe Poll and associated list of Choices?");
 }
