﻿// JScript 文件




function openurl(url,width,height){ 

//var   width   =   screen.availWidth;   
//var   height   =   screen.availHeight; 
window.open(url,'win',"height="+height+",top=0,left=0,width="+width+",status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
}










function showMyModalDialog(url)
{
  showModalDialog(url,window, 'dialogWidth:320px;dialogHeight:220px;center:yes;status:no;scroll:no;help:no');
}


function yulan(id,file)
{
//alert(id);
 document.getElementById(id).value=document.getElementById(file).innerHTML;

}
function showMyModalDialog2(url,width,height)
{
//alert('d');
  showModalDialog(url,window, "dialogWidth:"+width+"px;dialogHeight:"+height+"px;center:yes;status:no;scroll:no;help:no");
}

//var imgUrl1="images/pic_1.jpg";
//var imgtext1=""
//var imgLink1="";

//var imgUrl2="images/pic_2.jpg";
//var imgtext2=""
//var imgLink2="";

//var imgUrl3="images/pic_3.jpg";
//var imgtext3=""
//var imgLink3="";

//var imgUrl4="images/pic_4.jpg";
//var imgtext4=""
//var imgLink4="";

//var imgUrl5="images/pic_5.jpg";
//var imgtext5=""
//var imgLink5="";

// var focus_width=299                       //宽，跟标签的宽应该保持一致
// var focus_height=196                     //高，跟标签的高应该保持一致
// var text_height=0 
// var swf_height = focus_height+text_height
// var pics=imgUrl1+"|"+imgUrl2+"|"+imgUrl3+"|"+imgUrl4//+"|"+imgUrl5
// var links=imgLink1+"|"+imgLink2+"|"+imgLink3+"|"+imgLink4//+"|"+imgLink5
// var texts=imgtext1+"|"+imgtext2+"|"+imgtext3+"|"+imgtext4//+"|"+imgtext5
// document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cabversion=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
// document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="flash/focus.swf"><param name="quality" value="high"><param name="bgcolor" value="F0F0F0">');
// document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
// document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
// document.write('<embed src="flash/focus.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="F0F0F0" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');  document.write('</object>');
