<!-- Needed JavaScript Code -->
    var cleared = 0;

    function clearField(field)
    {
        if (cleared != 1) {
            field.value = "";
            cleared = 1;
        } else {
            cleared = 0;
        }
    }

//Highlight Table Cells Script-- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use

var ns6=document.getElementById&&!document.all;
var ie=document.all;

function changeto(e,highlightcolor){
source=ie? event.srcElement : e.target;
if (source.tagName=="TR"||source.tagName=="TABLE")
return;
while(source.tagName!="TD"&&source.tagName!="HTML")
source=ns6? source.parentNode : source.parentElement;
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor;
}

function contains_ns6(master, slave) { //check if slave is contained by master
while (slave.parentNode)
if ((slave = slave.parentNode) == master)
return true;
return false;
}

function changeback(e,originalcolor){
if
(ie&&(event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")||source.tagName=="TR"||source.tagName=="TABLE")
return;
else if (ns6&&(contains_ns6(source, e.relatedTarget)||source.id=="ignore"))
return;
if (ie&&event.toElement!=source||ns6&&e.relatedTarget!=source)
source.style.backgroundColor=originalcolor;
}

function playvideo(filename, type, width, height, caption) {
	width2 = 1*500+(1*width);
	height2 = 1*600+(1*height);
	paramstring = "width="+width2+",height=" + height2 + "toolbar=no,scrollbars=no";
    //urlstring="http://www.spaceflightnews.net/playvideo.php?filename="+filename+"&type="+type+"&width2="+width+"&height2="+height+"&caption='"+caption+"'";
	urlstring="http://www.spaceflightnews.net/staticpages/index.php?page=playvideo&filename="+filename+"&type="+type+"&width2="+width+"&height2="+height+"&caption='"+caption+"'";
	//open(urlstring, "MoviePlayer", paramstring);
	this.location.href=urlstring;
	}
	
function videoplayer(video_id, video_type) {
    urlstring="http://www.spaceflightnews.net/videoplayer.php?id="+video_id+"&type="+video_type;
	paramstring = "toolbar=no,scrollbars=no";
	open(urlstring, "MoviePlayer", paramstring);
	}

function playvideo2(video_id, width, height, caption) {
	width2 = 1*60+(1*width);
	height2 = 1*330+(1*height);
	paramstring = "width="+width2+",height=" + height2 + "toolbar=no,scrollbars=no";
    urlstring="http://www.spaceflightnews.net/video/player"+width+".php?id="+video_id+"&width="+width+"&height="+height+"&caption='"+caption+"'";
	//alert(paramstring);
	open(urlstring, "MoviePlayer", paramstring);
	}

function playflash(video_id, width, height, caption) {
	width2 = 1*500+(1*width);
	height2 = 1*300+(1*height);
	paramstring = "width="+width2+",height=" + height2 + "toolbar=no,scrollbars=no";
    //urlstring="http://www.spaceflightnews.net/video/playerflash.php?id="+video_id+"&xwidth="+width+"&xheight="+height+"&caption='"+caption+"'";
	urlstring="http://www.spaceflightnews.net/staticpages/index.php?page=playflash&id="+video_id+"&xwidth="+width+"&xheight="+height+"&caption='"+caption+"'";
	//open(urlstring, "MoviePlayer", paramstring);
	this.location.href=urlstring;
	}

function playflashs(video_id, width, height, caption) {
	width2 = 1*500+(1*width);
	height2 = 1*300+(1*height);
	paramstring = "width="+width2+",height=" + height2 + "toolbar=no,scrollbars=no";
    //urlstring="http://www.spaceflightnews.net/video/playerflash.php?id="+video_id+"&xwidth="+width+"&xheight="+height+"&caption='"+caption+"'";
	urlstring="http://www.spaceflightnews.net/staticpages/index.php?page=playflashs&id="+video_id+"&xwidth="+width+"&xheight="+height+"&caption='"+caption+"'";
	//open(urlstring, "MoviePlayer", paramstring);
	this.location.href=urlstring;
	}

function playflash2(video_id, width, height, caption, vidtype) {
	width2 = 1*500+(1*width);
	height2 = 1*300+(1*height);
	paramstring = "width="+width2+",height=" + height2 + "toolbar=no,scrollbars=no";
    urlstring="http://www.spaceflightnews.net/video/playerflash.php?id="+video_id+"&t="+vidtype+"&width="+width+"&height="+height+"&caption='"+caption+"'";
	//alert(paramstring);
	open(urlstring, "MoviePlayer", paramstring);
	}


function playflash_free(video_id, width, height, caption) {
	width2 = 1*500+(1*width);
	height2 = 1*300+(1*height);
	paramstring = "width="+width2+",height=" + height2 + "toolbar=no,scrollbars=no";
    urlstring="http://www.spaceflightnews.net/video/playerflash.php?id="+video_id+"&t=flv&xwidth="+width+"&xheight="+height+"&caption='"+caption+"'";
	//alert(paramstring);
	open(urlstring, "MoviePlayer", paramstring);
	}



function playvideo_two(filename, type, width, height, caption) {
	width2 = 1*500+(1*width);
	height2 = 1*600+(1*height);
	paramstring = "width="+width2+",height=" + height2 + "toolbar=no,scrollbars=no";
    //urlstring="http://www.spaceflightnews.net/playvideo_two.php?filename="+filename+"&type="+type+"&width2="+width+"&height2="+height+"&caption='"+caption+"'";
	urlstring="http://www.spaceflightnews.net/staticpages/index.php?page=playvideo_two&filename="+filename+"&type="+type+"&width2="+width+"&height2="+height+"&caption='"+caption+"'";
	//open(urlstring, "MoviePlayer", paramstring);
	this.location.href=urlstring;
	}
	
function videoplayer_two(video_id, video_type) {
    urlstring="http://www.spaceflightnews.net/videoplayer_two.php?id="+video_id+"&type="+video_type;
	paramstring = "toolbar=no,scrollbars=no";
	open(urlstring, "MoviePlayer", paramstring);
	}

function playvideo2_two(video_id, width, height, caption) {
	width2 = 1*60+(1*width);
	height2 = 1*330+(1*height);
	paramstring = "width="+width2+",height=" + height2 + "toolbar=no,scrollbars=no";
    urlstring="http://www.spaceflightnews.net/video/player"+width+"_two.php?id="+video_id+"&width="+width+"&height="+height+"&caption='"+caption+"'";
	//alert(paramstring);
	open(urlstring, "MoviePlayer", paramstring);
	}

function playflash_two(video_id, width, height, caption) {
	width2 = 1*500+(1*width);
	height2 = 1*300+(1*height);
	paramstring = "width="+width2+",height=" + height2 + "toolbar=no,scrollbars=no";
    //urlstring="http://www.spaceflightnews.net/video/playerflash_two.php?id="+video_id+"&xwidth="+width+"&xheight="+height+"&caption='"+caption+"'";
	urlstring="http://www.spaceflightnews.net/staticpages/index.php?page=playflash_two&id="+video_id+"&xwidth="+width+"&xheight="+height+"&caption='"+caption+"'";
	//open(urlstring, "MoviePlayer", paramstring);
	this.location.href=urlstring;
	}

function playflash2_two(video_id, width, height, caption, vidtype) {
	width2 = 1*500+(1*width);
	height2 = 1*300+(1*height);
	paramstring = "width="+width2+",height=" + height2 + "toolbar=no,scrollbars=no";
    urlstring="http://www.spaceflightnews.net/video/playerflash_two.php?id="+video_id+"&t="+vidtype+"&width="+width+"&height="+height+"&caption='"+caption+"'";
	//alert(paramstring);
	open(urlstring, "MoviePlayer", paramstring);
	}



