/****************************************************************
**		说明：  使用前在页面上构造好要检查的页面元素及要求即可
**		作者：	Cloud
**		时间：	2006-08-04 18:00:00
**		版权：  本程序所有权Cloud所有，
**				请随意使用，如果修改，请Copy一份给作者cloudrose@vip.sina.com
**				All rights reserved。
**		
****************************************************************/

function ClientBrowser(){
	this.NS=navigator.appName.indexOf("Netscape")>=0;
	this.IE=navigator.appName.indexOf("Microsoft Internet Explorer")>=0;
	this.OP=navigator.appName.indexOf("Opera")>=0;
	this.SF=navigator.appName.indexOf("Safari")>=0;
}
var myBrowser=new ClientBrowser();

function Input(){
/*	this.Name
	this.Id
	this.Regular

	this.DefaultValue=
	this.Readonly
	this.Label

	this.Width
	this.Height
	this.Alt
	this.Title
	this.Accesskey
	this.Class
	this.Style
	this.Create=function*/
}
function SelectItemAdd(objSelect,objOptions,index){
	if (index<0) index=0;
	if (index>objSelect.length) index=objSelect.length;
	var objOption;
	if (myBrowser.IE)
		for (objOption in objOptions) objSelect.add(new Option(objOptions[objOption].text,objOptions[objOption].value));
	else if (myBrowser.NS||myBrowser.OP||myBrowser.SF){
		for (objOption in objOptions){
			objSelect.add(document.createElement("option"),objSelect.options[index]);
			objSelect.options[index].text=objOptions[objOption].text;
			objSelect.options[index++].value=objOptions[objOption].value;
		}
	}
}
function SelectItemRemove(objSelect,index){
	objSelect.options[index]=null;
}
 

