﻿// JScript 文件
function OpenWindow(PlayerURL,w,h)
{ 
newwindow=window.open('','','fullscreen=0,toolbar=0,channelmode=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,titlebar=0');
newwindow.moveTo(100,100);
newwindow.resizeTo(w,h);
newwindow.focus();
newwindow.location=PlayerURL;
}
function OpenWindow1(PlayerURL,area)
{ 
if(area=="shi")
 {
    PlayerURL=PlayerURL+"?sheng="+encodeURIComponent(document.getElementById("sheng").value);
 }
 if(area=="xian")
 {
    PlayerURL=PlayerURL+"?shi="+encodeURIComponent(document.getElementById("shi").value);
 }
 if(area=="xiang")
 {
    PlayerURL=PlayerURL+"?xian="+encodeURIComponent(document.getElementById("xian").value);
 }
newwindow=window.open('','','fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0');
newwindow.moveTo(100,100);
newwindow.resizeTo(550,380);
newwindow.focus();
newwindow.location=PlayerURL;
}
 
 function Addsheng(qixian,strinp)
 {
	 if(strinp==1)
	 {
		window.opener.form1.xlkey1.focus();								
		window.opener.document.form1.xlkey1.value=qixian;
	 }
	 else
	 {
		window.opener.form1.xlkey2.focus();								
		window.opener.document.form1.xlkey2.value=qixian; 
	 }
    window.opener=null;
    window.close();
}
 function Addshi(qixian)
 {
	window.opener.form1.shi.focus();
	window.opener.document.form1.shi.value=qixian;
    window.opener=null;
    window.close();
}
 function Addxian(qixian)
 {
	window.opener.form1.xian.focus();								
	window.opener.document.form1.xian.value=qixian;
    window.opener=null;
    window.close();
}
 function Addsuccess()
 {
	window.opener.location.reload();
    window.opener=null;
    window.close();
}
function addoneclass()
{
	window.opener.location.reload();
}
function viewk(PlayerURL)
{
	PlayerURL=PlayerURL+"?k="+encodeURIComponent(document.getElementById("ikeyname").value);
	newwindow=window.open('','','fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0');
newwindow.moveTo(100,100);
newwindow.resizeTo(550,380);
newwindow.focus();
newwindow.location=PlayerURL;
}
function flashpic(w,h,picstr)
{
	var focus_width=w;
	var focus_height=h;
	//var text_height=20;
	var swf_height = focus_height;
	var pics=picstr;
	//var links=<%=links1%>;
	//var texts=<%=texts1%>;
				
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
	document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="/flashpic/pixviewer.swf"><param name="quality" value="high"><param name="bgcolor" value="#f2f2f2">');
	document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
	document.write('<param name="FlashVars" value="pics='+pics+'&borderwidth='+focus_width+'&borderheight='+focus_height+'">');
	document.write('<embed src="/flashpic/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&borderwidth='+focus_width+'&borderheight='+focus_height+'" menu="false" bgcolor="#dadada" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}
