Hi all,
I don't know where to place this script as it contains both php and javascript. Plz move it where it belongs,

Now, I've a hyperlink....... on click opens a php page which contains javascript.
Javascriipt is used for a menu. When i click the hyperlink it only opens the php and html part of the code and javascript menu doesn't get displayed. But when i refresh using F5 key.. the menu gets displayed. I don't know whts the reason. Please help me. I'll be giving the php code as well as js files below.

ini_set('display_errors', 1); 


<link href="style.css" type="text/css" rel="stylesheet" /> 
<script type='text/javascript'>

//HV Menu v5.411- by Ger Versluis (http://www.burmees.nl/)
//Submitted to Dynamic Drive (http://www.dynamicdrive.com)
//Visit http://www.dynamicdrive.com for this script and more

function Go(){return}

<script type='text/javascript' src='/exmplmenu_var.js'></script>
<script type='text/javascript' src='/menu_com.js'></script>
<noscript>Your browser does not support script</noscript>


//  refresh / redirect to an internal web page
//  ------------------------------------------
//header( 'refresh: 500; url=/testingstreams4.php' );

<div id="container">
<div id="banner">
<div id="text">

<center><h2>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<U>TESTING STREAMS</U></h2></center>
<center> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp (Move mouse cursor on the menu below to select your option.)</center>


	var NoOffFirstLineMenus=3;			// Number of first level items
	var LowBgColor='white';			// Background color when mouse is not over
	var LowSubBgColor='white';			// Background color when mouse is not over on subs
	var HighBgColor='black';			// Background color when mouse is over
	var HighSubBgColor='black';			// Background color when mouse is over on subs
	var FontLowColor='black';			// Font color when mouse is not over
	var FontSubLowColor='black';			// Font color subs when mouse is not over
	var FontHighColor='white';			// Font color when mouse is over
	var FontSubHighColor='white';			// Font color subs when mouse is over
	var BorderColor='black';			// Border color
	var BorderSubColor='black';			// Border color for subs
	var BorderWidth=1;				// Border width
	var BorderBtwnElmnts=1;			// Border between elements 1 or 0
	var FontFamily="arial,comic sans ms,technical"	// Font family menu items
	var FontSize=9;				// Font size menu items
	var FontBold=1;				// Bold menu items 1 or 0
	var FontItalic=0;				// Italic menu items 1 or 0
	var MenuTextCentered='left';			// Item text position 'left', 'center' or 'right'
	var MenuCentered='left';			// Menu horizontal position 'left', 'center' or 'right'
	var MenuVerticalCentered='top';		// Menu vertical position 'top', 'middle','bottom' or static
	var ChildOverlap=.2;				// horizontal overlap child/ parent
	var ChildVerticalOverlap=.2;			// vertical overlap child/ parent
	var StartTop=150;				// Menu offset x coordinate
	var StartLeft=1;				// Menu offset y coordinate
	var VerCorrect=0;				// Multiple frames y correction
	var HorCorrect=0;				// Multiple frames x correction
	var LeftPaddng=3;				// Left padding
	var TopPaddng=2;				// Top padding
	var FirstLineHorizontal=0;			// SET TO 1 FOR HORIZONTAL MENU, 0 FOR VERTICAL
	var MenuFramesVertical=1;			// Frames in cols or rows 1 or 0
	var DissapearDelay=1000;			// delay before menu folds in
	var TakeOverBgColor=1;			// Menu frame takes over background color subitem frame
	var FirstLineFrame='navig';			// Frame where first level appears
	var SecLineFrame='space';			// Frame where sub levels appear
	var DocTargetFrame='space';			// Frame where target documents appear
	var TargetLoc='';				// span id for relative positioning
	var HideTop=0;				// Hide first level when loading new document 1 or 0
	var MenuWrap=1;				// enables/ disables menu wrap 1 or 0
	var RightToLeft=0;				// enables/ disables right to left unfold 1 or 0
	var UnfoldsOnClick=0;			// Level 1 unfolds onclick/ onmouseover
	var WebMasterCheck=0;			// menu tree checking on or off 1 or 0
	var ShowArrow=1;				// Uses arrow gifs when 1
	var KeepHilite=1;				// Keep selected path highligthed
	var Arrws=['tri.gif',5,10,'tridown.gif',10,5,'trileft.gif',5,10];	// Arrow source, width and height

function BeforeStart(){return}
function AfterBuild(){return}
function BeforeFirstOpen(){return}
function AfterCloseAll(){return}

// Menu tree
//	MenuX=new Array(Text to show, Link, background image (optional), number of sub elements, height, width);
//	For rollover images set "Text to show" to:  "rollover:Image1.jpg:Image2.jpg"

Menu1=new Array("Testing Streams","","",0,20,138);

Menu2=new Array("Audio","","",2);
	Menu2_1=new Array("Smoke Test","","",7,20,150);	
		Menu2_1_1=new Array("AC3","/teststrquery.php?type=AC3&test=audio&ttype=smoke","",0,20,150);
		Menu2_1_2=new Array("MPEGL1","/teststrquery.php?type=MPEG1&test=audio&ttype=smoke","",0);
		Menu2_1_3=new Array("MPEGL2","/teststrquery.php?type=MPEG2&test=audio&ttype=smoke","",0);
                Menu2_1_4=new Array("MPEGL3","/teststrquery.php?type=MPEG3&test=audio&ttype=smoke","",0);
                Menu2_1_5=new Array("DTV AC3","/teststrquery.php?type=DTVAC3&test=audio&ttype=smoke","",0);
                Menu2_1_6=new Array("DTV MPEG","/teststrquery.php?type=DTVMPEG&test=audio&ttype=smoke","",0);
                Menu2_1_7=new Array("DDP","/teststrquery.php?type=DDP&test=audio&ttype=smoke","",0);
	Menu2_2=new Array("Release Test","","",7);
		Menu2_2_1=new Array("AC3","/teststrquery.php?type=AC3&test=audio&ttype=release","",0,20,200);
		Menu2_2_2=new Array("MPEGL1","/teststrquery.php?type=MPEG1&test=audio&ttype=release","",0);
		Menu2_2_3=new Array("MPEGL2","/teststrquery.php?type=MPEG2&test=audio&ttype=release","",0);
		Menu2_2_4=new Array("MPEGL3","/teststrquery.php?type=MPEG3&test=audio&ttype=release","",0);
		Menu2_2_5=new Array("DTV AC3","/teststrquery.php?type=DTVAC3&test=audio&ttype=release","",0);
		Menu2_2_6=new Array("DTV MPEG","/teststrquery.php?type=DTVMPEG&test=audio&ttype=release","",0);
		Menu2_2_7=new Array("DDP","/teststrquery.php?type=DDP&test=audio&ttype=release","",0);

Menu3=new Array("Video","","",2);
	Menu3_1=new Array("Smoke Test","","",7,20,150);
		Menu3_1_1=new Array("AC3","/teststrquery.php?type=AC3&test=video&ttype=smoke","",0,20,150);
		Menu3_1_2=new Array("MPEGL1","/teststrquery.php?type=MPEG1&test=video&ttype=smoke","",0);
		Menu3_1_3=new Array("MPEGL2","/teststrquery.php?type=MPEG2&test=video&ttype=smoke","",0);
                Menu3_1_4=new Array("MPEGL3","/teststrquery.php?type=MPEG3&test=video&ttype=smoke","",0);
                Menu3_1_5=new Array("DTV AC3","/teststrquery.php?type=DTVAC3&test=video&ttype=smoke","",0);
                Menu3_1_6=new Array("DTV MPEG","/teststrquery.php?type=DTVMPEG&test=video&ttype=smoke","",0);
                Menu3_1_7=new Array("DDP","/teststrquery.php?type=DDP&test=video&ttype=smoke","",0);

	Menu3_2=new Array("Release Test","","",7);
		Menu3_2_1=new Array("AC3","/teststrquery.php?type=AC3&test=video&ttype=release","",0,20,200);
		Menu3_2_2=new Array("MPEGL1","/teststrquery.php?type=MPEG1&test=video&ttype=release","",0);
		Menu3_2_3=new Array("MPEGL2","/teststrquery.php?type=MPEG2&test=video&ttype=release","",0);
		Menu3_2_4=new Array("MPEGL3","/teststrquery.php?type=MPEG3&test=video&ttype=release","",0);
		Menu3_2_5=new Array("DTV AC3","/teststrquery.php?type=DTVAC3&test=video&ttype=release","",0);
		Menu3_2_6=new Array("DTV MPEG","teststrquery.php?type=DTVMPEG&test=video&ttype=release","",0);
		Menu3_2_7=new Array("DDP","/teststrquery.php?type=DDP&test=video&ttype=release","",0);