function ok(select){
	if(select.options[select.selectedIndex].value!='$') {
 		window.open(select.options[select.selectedIndex].value,'_self');
	}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr;
   for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
    x.src=x.oSrc;
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments;
  document.MM_sr=new Array;
   for(i=0;i<(a.length-2);i+=3)
     if ((x=MM_findObj(a[i]))!=null)
     	{
     	    document.MM_sr[j++]=x;
     	      if(!x.oSrc)
     	        x.oSrc=x.src;
     	        x.src=a[i+2];
     	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



document.ns = navigator.appName == "Netscape"
var a
var b
var c
var x=0
function scroll(){
	b=window.screen.width
	b>800 ? c=120:c=0
	if(document.ns) {
		document.ccnt.top=pageYOffset+110;
		document.ccnt.left=b-775-c;
		setTimeout("scroll();",1)
	} else {
		ccnt.style.top=document.body.scrollTop+110;
		ccnt.style.left=b-775-c;
		setTimeout("scroll();",1)
	}
}

function turnit(ss,ii,aa)
{
	if (ss.style.display=="none")
	{ss.style.display="";
	aa.style.display="";
	ii.src="/music/images/minus.gif";}
	
	else
	{ss.style.display="none";
	aa.style.display="none";
	ii.src="/music/images/plus.gif";}
	
}

function showlayer(id,id1,id2)
{      
	id1.style.display="none";
       id2.style.display="none";
       if(id.style.display=="none") id.style.display="";
	else id.style.display="none";
	
}

function openwindow(URL,name,state){
	if (state=="")state="width=640,height=480,scrollbars=yes"
	else state = state+"scrollbars=yes"
	if (name=="img")
		{
			openwin=window.open("",name,state)
			openwin.document.write("<title>显示图片</title>\n")
			openwin.document.write("<link rel=stylesheet href=/styleccnt.css type=text/css>\n")
			openwin.document.write("<body class=bg>\n")
			openwin.document.write("<table width=100% height=100%><tr><td align=center>\n")
			openwin.document.write("<img src="+URL+"></td></tr>\n")
			openwin.document.write("<tr><td align=center height=30 class=head>"+state+"</td></tr>")
			openwin.document.write("<tr><td align=center height=30>\n<a href=javascript:window.close()>关闭窗口</a>\n")
			openwin.document.write("</table></body>")
		}
	else {
		openwin=window.open(URL,name,state)
		openwin.window.focus()
		}
	}
	
	
function sel($filename)
{       
	$fd = fopen( $filename, "r" );
	$contents = fread($fd, filesize($filename));
	$line = split("\n", $contents);
	fclose( $fd ); 
          
   	echo "<select name='select1' onChange='ok(this)'>";
   	echo "<option selected>-----相关内容------</option>";
        for ($i =0; $i <count($line); $i ++) {
	list($link, $name) = split(chr(9), $line[$i]);
        echo "<option value='$link'>$name</option>";}
        echo " </select>";
        }
        	
	
	
	


