
function pageLoadScript(pageType1, pageType2)
{
	searchType2Load(0);
}

////////////////////////////////////////////////////////////////////////////////////////

function loadJs(file)
{ 
	var scriptTag = document.getElementById('loadScript'); 
	var head = document.getElementsByTagName('head').item(0) 
	if(scriptTag) head.removeChild(scriptTag); 
	script = document.createElement('script'); 
	script.src = file; 
	script.type = 'text/javascript'; 
	script.id = 'loadScript'; 
	head.appendChild(script) 
} 

function fnUpdate()
{
	window.document.form1.corpsTB.value=sUserName;
}


function falsh1(scr,width,height)
{
	document.write("<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 width="+width+" height="+height+">");	
	document.write("<param name=movie value="+scr+">");
	document.write("<param name=quality value=high>");
	document.write("<embed src="+scr+" quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width="+width+" height="+height+"></embed>");
	document.write("</object>");
}

//日期----------------------------------------------------------------------------------------------------

function DateDemo(){
   var d, day, x, s = "";
   var x = new Array("星期日", "星期一", "星期二");
   var x = x.concat("星期三","星期四", "星期五");
   var x = x.concat("星期六");
   d = new Date();
   s += d.getYear() + "年";
   s += (d.getMonth() + 1) + "月";
   s += d.getDate() + "日 ";
   day = d.getDay();
   return(s += x[day]);
}

function searchType2Load(type2ID)
{
	form1.type2.options.add(creOption("0", "请选择"));
	for(var i=1; i<type2Array.length; i++)
	{
		myOpt = document.createElement("OPTION");
		myOpt.value = type2Array[i].id;
		myOpt.text = type2Array[i].name;
		form1.type2.options.add(myOpt);
		if(type2Array[i].id == type2ID) myOpt.selected = true;
	}
}

function typeObj(id,name,type)
{
	this.id = id;
	this.name = name;
	this.type = type;
}

var type2Array = new Array();
type2Array[0] = new typeObj(0,'请选择',0);
type2Array[1] = new typeObj(94,'大望路',9);
type2Array[2] = new typeObj(97,'CBD',9);
type2Array[3] = new typeObj(99,'大北窑',9);
type2Array[4] = new typeObj(100,'双井',9);
type2Array[5] = new typeObj(101,'劲松',9);
type2Array[6] = new typeObj(102,'广渠门',9);
type2Array[7] = new typeObj(103,'建国门',9);
type2Array[8] = new typeObj(104,'永安里',9);
type2Array[9] = new typeObj(105,'王府井',9);
type2Array[10] = new typeObj(106,'光华路',9);
type2Array[11] = new typeObj(107,'呼家楼',9);
type2Array[12] = new typeObj(108,'朝阳公园',9);
type2Array[13] = new typeObj(109,'甜水园',9);
type2Array[14] = new typeObj(111,'十里堡',9);
type2Array[15] = new typeObj(113,'朝阳北路',9);
type2Array[16] = new typeObj(114,'华堂',9);
type2Array[17] = new typeObj(115,'百子湾',9);
type2Array[18] = new typeObj(116,'团结湖',9);
type2Array[19] = new typeObj(117,'长虹桥',9);
type2Array[20] = new typeObj(118,'三里屯',9);
type2Array[21] = new typeObj(119,'朝阳门',9);
type2Array[22] = new typeObj(120,'东大桥',9);
type2Array[23] = new typeObj(121,'东直门',9);
type2Array[24] = new typeObj(122,'东四十条',9);
type2Array[25] = new typeObj(123,'工体',9);
type2Array[26] = new typeObj(124,'丽都',9);
type2Array[27] = new typeObj(125,'燕莎',9);
type2Array[28] = new typeObj(126,'亮马河',9);
type2Array[29] = new typeObj(127,'国展',9);
type2Array[30] = new typeObj(128,'三元桥',9);
type2Array[31] = new typeObj(133,'静安庄',9);
type2Array[32] = new typeObj(134,'西坝河',9);
type2Array[33] = new typeObj(135,'安贞桥',9);
type2Array[34] = new typeObj(136,'马甸',9);
type2Array[35] = new typeObj(137,'四惠',9);
type2Array[36] = new typeObj(138,'崇文门',9);
type2Array[37] = new typeObj(139,'红庙',9);




