﻿with(navigator)   
{   
	//alert(appName);
	if(appName == "Microsoft Internet Explorer")   
	{
		if(parseInt(appVersion.split(" ")[3])<6)
		{
			alert("您的浏览器不符合系统要求\n\n请使用Microsoft Internet Explorer 6.0或以上版本\n\n");
		}
	}
}
//禁止使用鼠标右键！
/*document.oncontextmenu=new Function ("return false;");	

//禁止选择页面上的文字！(实现禁止复制页面内容的功能)
//if IE4+
document.onselectstart=new Function ("return false");
//if NS6
if (window.sidebar)
{
	document.onmousedown=disableselect;
	document.onclick=reEnable;
}
function disableselect(e)
{
	return false;
}

function reEnable()
{
	return true;
}*/

/*if (top.location == self.location) {
top.location="http://da.pynfda.gov.cn/daFrame.asp";
}*/

/* $方法 按id获取元素 */
function $(id) {
	return document.getElementById(id);
}
/* F方法 按id获取元素值 */
function F(id) {
	return document.getElementById(id).value;
}
// JavaScript Document
//
String.prototype.Trim = function(){ return Trim(this);} 
String.prototype.LTrim = function(){return LTrim(this);} 
String.prototype.RTrim = function(){return RTrim(this);} 

//此处为独立函数 
function LTrim(str) 
{ 
var i; 
for(i=0;i<str.length;i++) 
{ 
if(str.charAt(i)!=" "&&str.charAt(i)!=" ")break; 
} 
str=str.substring(i,str.length); 
return str; 
} 
function RTrim(str) 
{ 
var i; 
for(i=str.length-1;i>=0;i--) 
{ 
if(str.charAt(i)!=" "&&str.charAt(i)!=" ")break; 
} 
str=str.substring(0,i+1); 
return str; 
} 
function Trim(str) 
{ 
return LTrim(RTrim(str)); 
} 
