// JavaScript Document

function my_getbyid(id)
{
   itm = null;
   if (document.getElementById)
   {
      itm = document.getElementById(id);
   }
   else if (document.all)
   {
      itm = document.all[id];
   }
   else if (document.layers)
   {
      itm = document.layers[id];
   }
   
   return itm;
}

function show_div(whichLayer)
{
	obj_style = my_getbyid(whichLayer).style;
	obj_style.display = "block"
	
}

function hide_div(whichLayer)
{
	obj_style = my_getbyid(whichLayer).style;
	obj_style.display = "none"
}




function xmlhttp_post(url)
{

  var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  xmlhttp.Open("post",url,false);
  xmlhttp.Send();
  return xmlhttp.responseText;
  
}


function OpenWindow(url){

	window.open(url,'','left=20,top=20,width=500,height=550,scrollbars=yes');

}



function OpenWindow1(url,width,height){

	// 在一个自动居中的新窗口中显示页面

	// url 要访问的页面地址

	// width 新窗口宽度

	// height 新窗口高度

	window.open(url,'','left='+(screen.width-width)/2+',top='+(screen.height-height)/2+',width='+width+',height='+height+',scrollbars=yes');

}


function OpenWin2(url1,url2){

	window.open(url1,'','');
	window.open(url2,'','');

}


