﻿// JScript File

function changeCFTubeFileName2()
{
newwindow2=window.open('','name','height=560,width=640,left=360,top=60');
var tmp = newwindow2.document;
	
var CFTubeFileName2 = document.getElementById('CFMembersPosting').value;

//Change Path 	
var CFPath='http://www.comancheflyer.com/NS/movies/';

//Filename passed from Index page
var CFFile= document.getElementById("CFMembersPosting").value;

tmp.write('<html><head><title>Comanche Tube</title></head><body topmargin=0 leftmargin=0>'); 

tmp.write('<table border=0 width=700 cellpadding=0 cellspacing=0 style=border-collapse: collapse bgcolor=#3333cc>');
tmp.write('<tr bgcolor=#3333cc ><td align=center colspan=2><font size=+6 color=black><i>Comanche Tube</i></font></td></tr>');

tmp.write('<tr><td colspan=2><object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0 width=640 height=480>');
tmp.write('<param name=movie value=' + CFPath + CFFile + '_pl.swf>');
tmp.write('<param name=wmode value=transparent>'); 
tmp.write('<param name=bgcolor value=#000000><param name=quality value=high> ');
tmp.write('<param name=menu value=true><param name=play value=true> ');
tmp.write('<param name=loop value=true><param name=scale value=noscale> ');

tmp.write('<param name=flashvars value=videoUrl=' + CFPath + CFFile + '.flv&loopVideo=stopstart&playOnLoad=false&autobuffer=true&embed=false> ');
tmp.write('<embed src=' + CFPath + CFFile + '_pl.swf type=application/x-shockwave-flash pluginspage=http://www.macromedia.com/go/getflashplayer wmode=transparent \
bgcolor=#000000 width=640 height=480 quality=high menu=true play=true loop=true scale=noscale \
flashvars=videoUrl=' + CFPath + CFFile + '.flv&loopVideo=stopstart&playOnLoad=false&autobuffer=true&embed=false></embed></object>');
tmp.write('</td></tr>');

tmp.write('<tr><td colspan=2 align=center><b>' + CFFile + '</b></a> </td></tr>'); 

tmp.write('</table>');
tmp.write('</body></html>');
tmp.close();
}
//- <a href="javascript:self.close()">CLOSE COMANCHE TUBE