function ShowWin(url,x,y,name,isscrollbars) {
var cx, cy;
x=(x > screen.width * 0.7 ? screen.width * 0.7 : x);
y=(y > screen.height * 0.7 ? screen.height * 0.7 : y);
cx=screen.width/2-(x / 2);
cy=screen.height/2-(y/2);
isscrollbars=(isscrollbars=="no")?"no":"yes";
window.open(url,name,"toolbar=no,status=no,directories=no,menubar=no,resizable=yes,width="+x+",height="+y+",scrollbars="+isscrollbars+",top="+cy+",left="+cx);
}
function ShowWinS(url, x, y, scrl) {
x=(x > screen.width * 0.7 ? screen.width * 0.7 : x);
y=(y > screen.height * 0.7 ? screen.height * 0.7 : y);
if(x == 0 || y == 0) return;
var cx, cy, name;
cx=screen.width/2 - (x/2);
cy=screen.height/2-(y/2);
name = getNameByDate();
window.open(url,name,"toolbar=no,status=no,directories=no,menubar=no,resizable=yes,width="+x+",height="+y+",scrollbars="+scrl+",top="+cy+",left="+cx);
}
function getNameByDate() {
          var s = "";
          var d = new Date();
	  s += d.getFullYear();
	  s += (d.getMonth() + 1);
	  s += d.getDate();
	  s += "_" + d.getHours();
	  s += d.getMinutes();
	  s += d.getSeconds();
          return s;
}
var clientPC = navigator.userAgent.toLowerCase(); // Get client info
var is_opera = ((clientPC.indexOf("mozilla") != -1) && (clientPC.indexOf("msie") != -1) && (clientPC.indexOf("opera") != -1));
var is_ffox = ((clientPC.indexOf("mozilla") != -1) && (clientPC.indexOf("firefox") != -1));
var is_ie = ((clientPC.indexOf("mozilla") != -1) && (clientPC.indexOf("msie") != -1) && !is_opera && !is_ffox);
var is_moz = ((clientPC.indexOf("mozilla") != -1) && !is_ie && !is_opera && !is_ffox);
if(is_moz || is_ffox) {
	document.write('<style> h2.htext {height:18px} </style>');
}
function SetCookie(sName, sValue) 
{
 var expiredays = 1;
 var todayDate = new Date();
 todayDate.setTime(todayDate.getTime() + expiredays * 24 * 60 *60 *1000);
 document.cookie = sName + "=" + escape(sValue) + "; expires=" + todayDate.toGMTString()+"; path=/";
}
function MyOnLoad() {
document.body.clientWidth;
MyResize();
}
function MyResize() {
var max_with = 1000;
var max_px = 31;
var w = max_px * (document.body.clientWidth - 750) / (max_with - 750);
w = (w > max_px ? max_px : (w < 1 ? 1 : w));
var obj1 = document.all ? document.all["bdl"] : document.getElementById("bdl");
var obj2 = document.all ? document.all["bdr"] : document.getElementById("bdr");
var obj3 = document.all ? document.all["bdc"] : document.getElementById("bdc");
//window.status = document.body.clientWidth;
if(obj1 != null && obj1 != "") {
  obj1.width = w;
  obj1.style.width = w;
  SetCookie("bdl", w);
}
if(obj2 != null && obj2 != "") {
  obj2.width = w;
  obj2.style.width = w;
  SetCookie("bdr", w);
}
if(obj3 != null && obj3 != "") {
  max_px = 250;
  w = (document.body.clientWidth - 750) * 0.9;
  w = 500 + (w > max_px ? max_px : (w < 0 ? 0 : w));
  obj3.width = w;
  obj3.style.width = w;
  SetCookie("bdc", w);
}}

