﻿function leftrefresh(){
	location.href='main.html';
	window.top.frames[0].navigate('left.html');
}

//open 没有最大化，不可调整大小
function ShowDialogclew(w,h,url) { 
  var  iWidth=w; //width
  var  iHeight=h;//height
  var  iTop=(window.screen.height-iHeight)/2;
  var  iLeft=(window.screen.width-iWidth)/2;
  window.open(url,"华泰证券",
 "Scrollbars=yes,Toolbar=no,Location=no,Direction=no,Resizeable=no,   Width="+iWidth+" ,Height="+iHeight+",top="+iTop+",left="+iLeft) 
} 

function ShowDialogclew(w,h,url,name) { 
	  var  iWidth=w; //width
	  var  iHeight=h;//height
	  var  iTop=(window.screen.height-iHeight)/2;
	  var  iLeft=(window.screen.width-iWidth)/2;	 
	  window.open(url,name,
	 "Scrollbars=yes,Toolbar=no,Location=no,Direction=no,Resizeable=no,   Width="+iWidth+" ,Height="+iHeight+",top="+iTop+",left="+iLeft) 
	} 

function ShowDialogclewcn(w,h,url,name) { 
	  var  iWidth=w; //width
	  var  iHeight=h;//height
	  var  iTop=(window.screen.height-iHeight)/2;
	  var  iLeft=(window.screen.width-iWidth)/2;
	  url = url + encodeURI(name);
	  window.open(url,name,
	 "Scrollbars=yes,Toolbar=no,Location=no,Direction=no,Resizeable=no,   Width="+iWidth+" ,Height="+iHeight+",top="+iTop+",left="+iLeft) 
	} 

function ShowDialog(w,h,url) { 
	  var  iWidth=w; //width
	  var  iHeight=window.screen.height-80;//h;//height
	  var  iTop=0;//(window.screen.height-iHeight)/2;
	  var  iLeft=(window.screen.width-iWidth)*2/3;
	  window.open(url,"Detail",
	  "height="+iHeight+", width="+iWidth+", top="+iTop+", left="+iLeft+", toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=yes") 
} 

function ShowDialog(w,h,url,name) { 
	  var  iWidth=w; //width
	  var  iHeight=window.screen.height-80;//h;//height
	  var  iTop=0;//(window.screen.height-iHeight)/2;
	  var  iLeft=(window.screen.width-iWidth)*2/3;	  
	  window.open(url,name,
	  "height="+iHeight+", width="+iWidth+", top="+iTop+", left="+iLeft+", toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=yes") 
} 

//打开报告，屏幕右边
function openDoc(url,name) { 
	  var  iWidth=700; 
	  var  iHeight=682;
	  var  iTop=20;
	  var  iLeft=window.screen.width-iWidth-10;
	  window.open(url,name,
	  "height="+iHeight+", width="+iWidth+", top="+iTop+", left="+iLeft+", toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=yes") 
} 

//打开报告附件，屏幕左边
function openDocAttachment(url,name) { 
	  var  iWidth=600;
	  var  iHeight=682;
	  var  iTop=20;
	  var  iLeft=0;
	  window.open(url,name,
	  "height="+iHeight+", width="+iWidth+", top="+iTop+", left="+iLeft+", toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=yes") 
} 

function myfavorite(url){
	ShowDialogclew(180,30,url);
}

//eg:vform=document.form1,url='index.html',target='_blank'
function gotoPage(vform,url,target){
	vform.target=target;
	vform.action=url;
	vform.submit();
}

function windowShowDialog(w,h,url) {
	var iWidth=w; //width
	var iHeight=h;//height
	var iTop=(window.screen.height-iHeight)/2;
	var iLeft=(window.screen.width-iWidth)/2;
	window.showModalDialog(url,'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=1,width='+iWidth+',height='+iHeight+',top='+iTop+',left='+iLeft);
}

//eg:vform='document.form1',url='index.html'
function funcDelete(vform,url){	
	msg("温馨提示",2,"250","确定要删除吗？",vform+".action='"+url+"';"+vform+".submit();");	
}

//eg:vform='document.form1',url='index.html'
function funcUpdate(vform,url){
	msg("温馨提示",2,"250","确定要保存修改吗？",vform+".action='"+url+"';"+vform+".submit();");
}

//eg:vform='document.form1',url='index.html'
function funcInsert(vform,url){
	msg("温馨提示",2,"250","确定要增加记录吗？",vform+".action='"+url+"';"+vform+".submit();");
}

