//redraw code

// Store the query string, if any, in a variable.

var pageLoc = String(document.location);
var questionPos = pageLoc.indexOf("?");
var queryString = (questionPos < 0) ? "" : pageLoc.substring(questionPos);

// Create string with <object> and <embed> tags for embedding a Flash movie.

function flashEmbedString(filename, queryString, flashVersion, width, height, bgcolor) {
 filename += queryString; 
 //alert(filename);
 return '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + flashVersion + ',0,0,0" width="' + width + '" height="' + height + '"><param name="movie" value="' + filename + '"/><param name="menu" value="false"/><param name="quality" value="high"/><param name="bgcolor" value="' + bgcolor + '"/><param name="loop" value="false"/><embed src="' + filename + '" menu="false" quality="high" bgcolor="' + bgcolor + '" width="' + width + '" height="' + height + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object>';
}

function popWindow( url, w, h, windowName ){
        win=window.open(url,windowName,"height=" + h + ",width=" + w + ",resizable=no,status=no,scrollbars=no,location=no,menubar=no,toolbar=no"); 
}