﻿function Open_Editor(Table,Field,Id)
 {
  window.open("fckeditor.aspx?table="+Table+"&field="+Field+"&id="+Id,"edit","height=600,width=800,top=60,left=140,toolbar=no,menubar=no,scrollbars=no, resizable=yes,location=no, status=no");
 }


function Sign_Editor(Path)
 {
   window.open(Path,"signedit","height=600,width=800,top=60,left=140,toolbar=no,menubar=no,scrollbars=no,resizable=yes,location=yes,status=no");
 }

function link_Js_Code(Lik1id,Target,Num,Type)
 {
  window.open("js_view.aspx?tid="+Lik1id+"&target="+Target+"&num="+Num+"&type="+Type,"jsview","height=300,width=700,top=140,left=140,toolbar=no,menubar=no,scrollbars=no, resizable=yes,location=no, status=no");
 }

function slide_Js_Code(Id,Style,Type)
 {
  window.open("js_view.aspx?id="+Id+"&style="+Style+"&type="+Type,"jsview","height=300,width=700,top=140,left=140,toolbar=no,menubar=no,scrollbars=no, resizable=yes,location=no, status=no");
 }

function open_calendar(Id)
 {
  var Val=window.showModalDialog("/incs/pgcalendar.html","calendar","dialogWidth:250px;dialogHeight:250px;help:no;resizable:no;status:no");
  if(Val!=null)
   {
    document.getElementById(Id).value=Val;
   }
    document.getElementById(Id).blur();
 }


//顶部快捷菜单
function hideall(Obj)
   {
    for(i=0;i<Obj.length;i++)
     {

      Obj[i].style.display="none";
    }
  }


function quick_1()
 {
   var Obj=parent.frames["left"].document.getElementsByName("left");
   hideall(Obj);
   Obj[0].style.display="";
   parent.frames["right"].location.href="set_1.aspx";
 }

function quick_2()
 {
   var Obj=parent.frames["left"].document.getElementsByName("left");
   hideall(Obj);
   Obj[3].style.display="";
   parent.frames["right"].location.href="lanmu_1.aspx";
 }

function quick_3()
 {
   var Obj=parent.frames["left"].document.getElementsByName("left");
   hideall(Obj);
   Obj[2].style.display="";
   parent.frames["right"].location.href="order_1.aspx";
 }

function quick_4()
 {
   var Obj=parent.frames["left"].document.getElementsByName("left");
   hideall(Obj);
   Obj[2].style.display="";
   parent.frames["right"].location.href="feedback_1.aspx";
 }

function quick_5()
 {
   var Obj=parent.frames["left"].document.getElementsByName("left");
   hideall(Obj);
   Obj[4].style.display="";
   parent.frames["right"].location.href="product_4.aspx";
 }

function quick_6()
 {
   var Obj=parent.frames["left"].document.getElementsByName("left");
   hideall(Obj);
   Obj[5].style.display="";
   parent.frames["right"].location.href="information_4.aspx";
 }
function quick_7()
 {
   var Obj=parent.frames["left"].document.getElementsByName("left");
   hideall(Obj);
   Obj[0].style.display="";
   parent.frames["right"].location.href="tongji.aspx";
 }




