function contractDetail(conID)
{
	var date = new Date();
	var z = date.getTime();
	var win = window.open('/jsp/intrade/common/c_cd.jsp?conDetailID='+conID+"&z="+z,
						    'tsConDetail',
							'width=510,height=500,top=3,left=3,resizable=yes,menubar=no,status=no,toolbar=no,dependent=yes, scrollbars=no');
	win.focus();
	return false;
}

function getOrder(id,conID)
{
	var date = new Date();
	var z = date.getTime();
	window.open('/jsp/intrade/trading/t_od.jsp?orderID='+id+"&contractID="+conID+"&z="+z,'resultWin','width=500,height=250,top=3,left=3,resizable=yes,menubar=no,status=no,toolbar=no,scrollbars=yes,dependent=yes');
	return;
}
function popUpHtml(html_file,title,width,height)
{
	var win = window.open(html_file,title,'width='+width+',height='+height+',top=3,left=3,resizable=yes,menubar=no,status=no,toolbar=no,dependent=yes, scrollbars=yes');
	win.focus();
}

function showWin(url, winname, width, height, scrollbars, toolbars){
	var midx=screen.width/2;
	var midy=screen.height/2;
	
	var winw=width;
	var winh=height;
	
	var winl=midx-(winw/2);
	var wint=midy-(winh/2);
	var scrolltxt = "";
	var tooltxt = "";
	if(scrollbars)
		scrolltxt=",scrollbars=yes";
	if(toolbars)
		tooltxt=",toolbar=yes";
	var winprops =
	"width="+winw+",height="+winh+",left="+winl+",top="+wint+",resizable=yes"+scrolltxt+tooltxt;

	win=open(url,winname,winprops);
	win.focus();

	return false;

}
