function lib_bwcheck(){ 
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.opera5=(navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
	return this
}
var bw=new lib_bwcheck()

function unblur() {
	this.blur();
}

function blurLinks() {
	if (!document.getElementById) return;
	theLinks = document.getElementsByTagName("a");
	for(i=0; i<theLinks.length; i++) {
	theLinks[i].onfocus = unblur;
	}
}

var win = null;
function PopWin(mypage,myname,w,h,scroll) {
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
	win = window.open(mypage,myname,settings)
}

function dnL() {
	var done=0;
	var srd=document.uChk.asor.value;
	srd=srd.toLowerCase();
	if (srd=="distributor1") {window.open("http://www.afrasinc.com/2006_Price_DISTRIBUTOR.pdf","a02Products"); done=1;}
	if (done==0) { alert("Invalid Password!"); }
	if (done==1) { window.close(); }
}
