	var br = 0
	if (navigator.appName == 'Microsoft Internet Explorer') {
		br = 1
		}

	if (!br) {
	  HTMLElement.prototype.__defineGetter__("innerText",
				  function () { return(this.textContent); });
	  HTMLElement.prototype.__defineSetter__("innerText",
				  function (txt) { this.textContent = txt; });
		}

	if (!br) document.captureEvents(Event.MOUSEMOVE)
	document.onmousemove = getPositions;


	var arthit = 2199
	var aa = 0
	var bb = 1
	var on1 = 1
	var on2 = 1
	var mX = 0
	var mY = 0
	var mw = 0
	var ob = 0
	var aw = 0
	var ah = 0

	flap = 0
	fly = 0
	tt = 400
	tl = 400
	w = 45
	h = 30
	b = 0
	bt = 10
	bw = 55
	bh = 40
	ex = 50
	fx = 2
	g = 0
	gt = 10
	ft = 400
	fl = 400
	f = 0
	kill = 1
	ss = 4
	p1 = "graphics/b1.png"
	p2 = "graphics/b2.png"
	 var sw;
	 var sh;
	 pp = 0
	var op = 0
	 walart = ""
	 popart = ""
	var elm = ""
	var pause = 1
	var pausex = 0


	function sdim() {
		 if (typeof window.innerWidth != 'undefined') {
			  sw = window.innerWidth
			  sh = window.innerHeight
			 }
		 else if (typeof document.documentElement != 'undefined' && typeof document.documentElement.clientWidth != 'undefined' && document.documentElement.clientWidth != 0) {
			   sw = document.documentElement.clientWidth
			   sh = document.documentElement.clientHeight
			 }
		 else {
			   sw = document.getElementsByTagName('body')[0].clientWidth
			   sh = document.getElementsByTagName('body')[0].clientHeight
			 }
		document.getElementById("navstar").style.top = 185+"px";
		document.getElementById("navstar").style.left = 100+"px";
		aw = document.getElementById("artsid").offsetWidth
		ah = document.getElementById("artsid").offsetHeight
		if(ah>400) document.getElementById("flowers").style.top = (ah-166) + "px"
		else document.getElementById("flowers").style.top = 244 + "px"
		 }

	function wings() {
		if(kill==0) {
			if(flap==0) { document.getElementById("bee").src = p2; flap = 1; }
			else { document.getElementById("bee").src = p1; flap = 0; }
			 f = Math.floor(Math.random()*5);
			if(f==0) { tt += 1; tl += 1; }
			else if(f==1) { tt -= 1; tl -= 1; }
			else if(f==2) { tt += 1; tl -= 1; }
			else if(f==3) { tt -= 1; tl += 1; }
			ft = (tt+50);
			fl = (tl+50);
			ftx = ft+ex;
			flx = fl+ex;
			document.getElementById("b1").style.top = ft+"px";
			document.getElementById("b1").style.left = fl+"px";
			document.getElementById("b2").style.top = ftx+"px";
			document.getElementById("b2").style.left = flx+"px";
			if(ft<100&&fl<100) { g = 4; gt=200; }
			else if(ft<100&&fl>sw-150) { g = 2; gt=200;}
			else if(ft>sh-150&&fl<100) { g = 3;gt=200; }
			else if(ft>sh-150&&fl>sw-150) { g = 5; gt=200;}
			else if(ft<100) g = 2;
			else if(ft>sh-150) g = 1;
			else if(fl<100) g = 3;
			else if( fl>sw-150) g = 2;
			if(g==0) { tt += 3; tl += 3; }
			else if(g==1) { tt -= 3; tl -= 3; }
			else if(g==2) { tt += 3; tl -= 3; }
			else if(g==3) { tt -= 3; tl += 3; }
			else if(g==4) { tt += 3; tl += 2; }
			else if(g==5) { tt -= 2; tl -= 3; }
			else if(g==6) { tt += 3 ; tl -= 1; }
			else if(g==7) { tt -= 1; tl += 3; }
			else if(g==8) { tt += 1; tl += 2; }
			else if(g==9) { tt -= 2; tl -= 1; }
			if(gt == 0) { h = Math.floor(Math.random()*100); gt = h+10; g = Math.round(h/10);
				if(h<50) {p1 = "graphics/b1.png"; p2 = "graphics/b2.png"; }
				else {p1 = "graphics/b4.png"; p2 = "graphics/b5.png"; }
				}
			else gt -= 1;
			fx -= 1;
			if(fx==0) {
				fx = 2;
				if(ex<6) b = 1;
				if(ex>100) b = 0;
				if(b==0) { bw -= 1; bh -= 1; ex -= 4; }
				else if(b==1) { bw += 1; bh += 1; ex += 4; }
				document.getElementById("bee").width = bw
				document.getElementById("bee").height = bh
				if(bt == 0) { h = Math.floor(Math.random()*50); bt = h; b = Math.round(h/25); }
				else bt -= 1;
				}
			}
		}

	function swatfly() {
		if(kill) {
			kill = 0
			document.getElementById("b1").style.visibility = "visible"
			document.getElementById("b2").style.visibility = "visible"
			document.getElementById("swat").src = "graphics/swat.gif"
			tt=650
			tl=1100
			}
		else {
			kill = 1
			document.getElementById("b1").style.visibility = "hidden"
			document.getElementById("b2").style.visibility = "hidden"
			document.getElementById("swat").src = "graphics/bee.png"
			}
		}

	function stopart() {
		if(on1) {
			on1 = 0
			for(x=0;x<cnt+3;x++) {
				elm = "w"+x
				document.getElementById(elm).style.visibility = "visible"
				}
			}
		}

	var isNN = (navigator.appName.indexOf("Netscape")!=-1);
	function autoTab(input,len, e) {
		var keyCode = (isNN) ? e.which : e.keyCode;
		var filter = (isNN) ? [0,8,9] : [0,8,9,16,17,18,37,38,39,40,46];
		if(input.value.length >= len && !containsElement(filter,keyCode)) {
		input.value = input.value.slice(0, len);
		input.form[(getIndex(input)+1) % input.form.length].focus();
		}
		function containsElement(arr, ele) {
		var found = false, index = 0;
		while(!found && index < arr.length)
		if(arr[index] == ele)
		found = true;
		else
		index++;
		return found;
		}
		function getIndex(input) {
		var index = -1, i = 0, found = false;
		while (i < input.form.length && index == -1)
		if (input.form[i] == input)index = i;
		else i++;
		return index;
		}
		return true;
		}

	function goart() {
		if(!on1) {
			on1 = 1
			for(x=0;x<cnt+3;x++) {
				elm = "w"+x
				document.getElementById(elm).style.visibility = "hidden"
				}
			}
		}

	function scrollpop() {
		document.getElementById("art").style.left = aa+"px"
		aa -= 2
		if(aa<0-(2199-aw)) {
			aa = 0
			document.getElementById("art").style.left = aa+"px"
			}
		if(on1) {
			document.getElementById("pop").style.left = pp+"px"
			pp -= 4
			if(pp<(0-arthit)) {
				pp = 0
				document.getElementById("pop").style.left = pp+"px"
				}
			}
		else {
			if(mX < (ob+100)) {
				document.getElementById("pop").style.left = pp+"px"
				pp += 20
				if(pp>0) {
					pp = -3800
					document.getElementById("pop").style.left = pp+"px"
					}
				}
			else if(mX > (ob+(aw-100))) {
				document.getElementById("pop").style.left = pp+"px"
				pp -= 20
				if(pp<(0-arthit)) {
					pp = 0
					document.getElementById("pop").style.left = pp+"px"
					}
				}
			}
		}


	function maxWidth() {
		  var w=0;
		  if (window.document.innerWidth>w)
		   w=window.document.innerWidth;
		  if (window.document.documentElement.clientWidth>w)
		   w=window.document.documentElement.clientWidth;
		  if (window.document.body.clientWidth>w)
		   w=window.document.body.clientWidth;
		  return w;
		 }

	function getPositions(ev) {
		if (ev == null) { ev = window.event }
		mX = ev.clientX;
		mY = ev.clientY;
		mw = maxWidth()
		ob = (mw-aw)/2
		//ob = document.getElementById("artsid").offsetLeft
		}

	function closeabwin() {
		document.getElementById("box1").src=""
		document.getElementById("aba").style.visibility="hidden"
		document.getElementById("abshad").style.visibility="hidden"
		}

	function about(a) {
		if(a==0) {
			document.getElementById("dept").style.visibility="visible"
			playstop()
			topix()
			}
		else if(a==1) {
			document.getElementById("box1").src="a_about01.asp"
			document.getElementById("aba").style.visibility="visible"
						}
		else if(a==2) {
			document.getElementById("box1").src="a_about02.asp"
			document.getElementById("aba").style.visibility="visible"
						}
		else if(a==3) {
			document.getElementById("box1").src="a_about03.asp"
			document.getElementById("aba").style.visibility="visible"
						}
		else if(a==4) {
			document.getElementById("box1").src="a_about04.asp"
			document.getElementById("aba").style.visibility="visible"
						}
		if(a>0) document.getElementById("abshad").style.visibility="visible"
		}

	function abouts(a) {
		document.getElementById("box1").src="a_about01.asp?"+a
		document.getElementById("aba").style.visibility="visible"
		document.getElementById("abshad").style.visibility="visible"
		}

		degs = new Array()
		degs[0] = new Array(-10,0,30,160,240)
		degs[1] = new Array(10,40,50,125,180)
		degs[2] = new Array(-5,0,45,125,180)
		degs[3] = new Array(10,46,40,125,180)
		degs[4] = new Array(-7,5,40,125,180)
		degs[5] = new Array(5,30,50,125,180)
		degs[6] = new Array(10,40,30,125,180)
		degs[7] = new Array(-5,0,45,125,180)
		degs[8] = new Array(5,30,50,125,180)

		pst = new Array()
		pst[0] = 70
		pst[1] = 50
		pst[2] = 90
		pst[3] = 50
		pst[4] = 90
		pst[5] = 60
		pst[6] = 110
		pst[7] = 90
		pst[8] = 60

		var timer = ""
		var timpix = 0

		function topix() {
			clearTimeout(timer)
			x = timpix
			rotate(x)
			elm = "p"+x
			document.getElementById(elm).style.top = -pst[x]+"px"
			document.getElementById(elm).style.visibility = "visible"
			timpix += 1
			if(timpix<pin) timer = setTimeout("topix()",100)
			else {
				timpix = 0
				if(br) document.getElementById("mat1").style.filter = "alpha(opacity=50)"
				else document.getElementById("mat1").style.opacity = 0.5
				timer = setTimeout("copix()",200)
				}
			}


		function rotate(r) {
			var can = "canvas"+r
			var image = pix[r];
			var canvas = document.getElementById(can);
			var canvasContext = canvas.getContext('2d');
			canvas.setAttribute('width', image.width+25);
			canvas.setAttribute('height', image.height+25);
			canvasContext.rotate(degs[r][0] * Math.PI / 180);
			canvasContext.lineWidth = 4;
			canvasContext.strokeStyle = "black";
			canvasContext.strokeRect(degs[r][1], degs[r][2],degs[r][3],degs[r][4]);
			canvasContext.drawImage(image, degs[r][1], degs[r][2],degs[r][3],degs[r][4]);
			};

		cegs = new Array()
		cegs[0] = new Array(-10,0,20,90,130)
		cegs[1] = new Array(5,20,20,95,130)
		cegs[2] = new Array(-5,0,15,90,130)
		cegs[3] = new Array(5,20,20,90,130)
		cegs[4] = new Array(-10,0,20,90,130)
		cegs[5] = new Array(5,20,20,90,130)
		cegs[6] = new Array(-5,0,15,90,130)
		cegs[7] = new Array(5,20,20,90,130)

		cst = new Array()
		cst[0] = 210
		cst[1] = 190
		cst[2] = 210
		cst[3] = 130
		cst[4] = 210
		cst[5] = 190
		cst[6] = 210
		cst[7] = 130

		function copix() {
			clearTimeout(timer)
			x = timpix
			rotatec(x)
			elm = "q"+x
			document.getElementById(elm).style.top = -cst[x]+"px"
			document.getElementById(elm).style.visibility = "visible"
			timpix += 1
			if(timpix<cpin) timer = setTimeout("copix()",100)
			else {
				timpix = 0
				timer = setTimeout("bopix()",200)
				}
			}

		function rotatec(r) {
			var can = "canvac"+r
			var image = cpix[r];
			var canvas = document.getElementById(can);
			var canvasContext = canvas.getContext('2d');
			canvas.setAttribute('width', image.width+25);
			canvas.setAttribute('height', image.height+25);
			canvasContext.rotate(cegs[r][0] * Math.PI / 180);
			canvasContext.lineWidth = 4;
			canvasContext.strokeStyle = "black";
			canvasContext.strokeRect(cegs[r][1], cegs[r][2],cegs[r][3],cegs[r][4]);
			canvasContext.drawImage(image, cegs[r][1], cegs[r][2],cegs[r][3],cegs[r][4]);
			};


		begs = new Array()
		begs[0] = new Array(-10,0,20,75,100)
		begs[1] = new Array(10,20,20,75,100)
		begs[2] = new Array(-5,0,15,75,100)
		begs[3] = new Array(10,20,20,75,100)
		begs[4] = new Array(-10,0,20,75,100)
		begs[5] = new Array(10,20,20,75,100)
		begs[6] = new Array(-5,0,15,75,100)
		begs[7] = new Array(10,20,20,75,100)

		bst = new Array()
		bst[0] = 175
		bst[1] = 150
		bst[2] = 170
		bst[3] = 150
		bst[4] = 175
		bst[5] = 150
		bst[6] = 170
		bst[7] = 150

		function bopix() {
			clearTimeout(timer)
			x = timpix
			rotateb(x)
			elm = "u"+x
			document.getElementById(elm).style.top = -bst[x]+"px"
			document.getElementById(elm).style.visibility = "visible"
			timpix += 1
			if(timpix<bpin) timer = setTimeout("bopix()",100)
			else {
				timpix = 0
				timer = setTimeout("dopix()",200)
				}
			}

		function rotateb(r) {
			var can = "canvab"+r
			var image = bpix[r];
			var canvas = document.getElementById(can);
			var canvasContext = canvas.getContext('2d');
			canvas.setAttribute('width', image.width+25);
			canvas.setAttribute('height', image.height+25);
			canvasContext.rotate(begs[r][0] * Math.PI / 180);
			canvasContext.lineWidth = 4;
			canvasContext.strokeStyle = "black";
			canvasContext.strokeRect(begs[r][1], begs[r][2],begs[r][3],begs[r][4]);
			canvasContext.drawImage(image, begs[r][1], begs[r][2],begs[r][3],begs[r][4]);
			};

		function dopix() {
			clearTimeout(timer)
			document.getElementById("a01").style.visibility = "visible"
			document.getElementById("a02").style.visibility = "visible"
			//document.getElementById("a03").style.visibility = "visible"
			document.getElementById("a04").style.visibility = "visible"
			document.getElementById("a05").style.visibility = "visible"
			}

	function scrollbar() {
		if(pause) {
			for(x=0;x<totalpix;x++) {
				talval2[x] = talval2[x] - 4
				if(talval2[x] < farleft2) {
					talval2[x] = farright2
					}
				elm = "pc"+x
				if(talval2[x] > farleft2 && talval2[x] < sw) {
					document.getElementById(elm).style.left = talval2[x]+"px"
					document.getElementById(elm).style.visibility = "visible"
					}
				else {
					document.getElementById(elm).style.visibility = "hidden"
					}

				talval1[x] = talval1[x] - 2
				if(talval1[x] < farleft1) {
					talval1[x] = farright1
					}
				elm = "pb"+x
				if(talval1[x] > farleft1 && talval1[x] < sw) {
					document.getElementById(elm).style.left = talval1[x]+"px"
					document.getElementById(elm).style.visibility = "visible"
					}
				else {
					document.getElementById(elm).style.visibility = "hidden"
					}

				talval0[x] = talval0[x] - 1
				if(talval0[x] < farleft0) {
					talval0[x] = farright0
					}
				elm = "pa"+x
				if(talval0[x] > farleft0 && talval0[x] < sw) {
					document.getElementById(elm).style.left = talval0[x]+"px"
					document.getElementById(elm).style.visibility = "visible"
					}
				else {
					document.getElementById(elm).style.visibility = "hidden"
					}
				}
			}
		}

	function talent() {
		if(op>-1) {
			document.getElementById("profile").style.visibility = "visible"
			document.getElementById("tpic").src = talpics[op]
			document.getElementById("tpic").src.onerror = function() {document.getElementById("tpic").src = "talent/photo.jpg"}
			document.getElementById("txt").innerHTML = talbio[op]
			lookdown(op)
			}
		}

	function closewin(t) {
		pausex = 0
		pause = 1
		document.getElementById("profile").style.visibility = "hidden"
		}

	function lookup(j) {
		op = j
		m1 = "pa"+op
		m2 = "pb"+op
		if(br) {
			mt = document.getElementById(m1).offsetTop
			ml = document.getElementById(m1).offsetLeft
			}
		else {
			mt = parseInt(document.getElementById(m1).offsetTop)
			ml = parseInt(document.getElementById(m1).offsetLeft)
			}
		document.getElementById("pb1").src = talpics[op]
		document.getElementById("t03").innerText = talnam[op]
		document.getElementById("pb").style.top = (mt+50)+"px"
		document.getElementById("pb").style.left = ml+"px"
		document.getElementById("pb").style.visibility = "visible"
		}

	function lookdown(j) {
		document.getElementById("pb").style.visibility = "hidden"
		op = -1
		}

	function fadein() {
		for(x=0;x<totalpix;x++) {
			m1 = "pc"+x
			document.getElementById(m1).src = talpics[x]
			m2 = "pa"+x
			document.getElementById(m2).style.visibility = "visible"
			if(br) document.getElementById(m2).style.filter = "alpha(opacity=35)"
			else document.getElementById(m2).style.opacity = 0.35
			}
		twinkle()
		}

	function twinkle() {
		tw = Math.floor(Math.random()*totalpix)
		tv = Math.floor(Math.random()*100)
		elm = "pa"+tw
		if(tv<50)
			if(br) document.getElementById(elm).style.filter = "alpha(opacity=100)"
			else document.getElementById(elm).style.opacity = 1
		else
			if(br) document.getElementById(elm).style.filter = "alpha(opacity=35)"
			else document.getElementById(elm).style.opacity = 0.35
		setTimeout("twinkle()",250)
		}

	function searchfunc() {
		document.getElementById("search").style.visibility = "visible"
		document.getElementById("frmbox").src="admin/talentsearch.asp"
		}

	function closesearch() {
		document.getElementById("frmbox").src=""
		document.getElementById("search").style.visibility = "hidden"
		}

	function setmail() {
		dr = document.form_talk
		err = ""
		caps = ""
		if(dr.capsha.value=="") err = "Tying the encryption characters is required"
		else {
			cstr = dr.capsha.value
			xa = cstr.charCodeAt(0)
			xb = cstr.charCodeAt(1)
			xc = cstr.charCodeAt(2)
			xd = cstr.charCodeAt(3)
			xe = cstr.charCodeAt(4)
			if(xa>47&&xa<58) x = xa-48+4
			else if(xa>64&&xa<91) x = xa-51
			else if(xa>96&&xa<123) x = xa-83
			caps = caps + x
			if(xb>47&&xb<58) x = xb-48+4
			else if(xb>64&&xb<91) x = xb-51
			else if(xb>96&&xb<123) x = xb-83
			caps = caps + x
			if(xc>47&&xc<58) x = xc-48+4
			else if(xc>64&&xc<91) x = xc-51
			else if(xc>96&&xc<123) x = xc-83
			caps = caps + x
			if(xd>47&&xd<58) x = xd-48+4
			else if(xd>64&&xd<91) x = xd-51
			else if(xd>96&&xd<123) x = xd-83
			caps = caps + x
			if(xe>47&&xe<58) x = xe-48+4
			else if(xe>64&&xe<91) x = xe-51
			else if(xe>96&&xe<123) x = xe-83
			caps = caps + x
			dr.capsha.value = caps
			if(dr.capsha.value!=dr.capshx.value) {
				setcapsha()
				err = "Re-enter the encryption characters"
				}
			}
		if(dr.message.value=="") err = "Please include a message"
		if(dr.email.value=="") err = "Please enter your email address"
		if(!dr.iam[0].checked && !dr.iam[1].checked && !dr.iam[2].checked && !dr.iam[3].checked) err = "Please choose your status"
		if(!dr.sex[0].checked && !dr.sex[1].checked) err = "Please specify your gender"
		if(dr.first.value=="" || dr.last.value=="") err = "Please enter your name"
		if(err=="") {
			document.getElementById("mailbox").style.visibility = "visible"
			return true
			}
		else {
			alert(err)
			return false
			}
		}

	function closemailbox() {
		document.getElementById("mailbox").style.visibility = "hidden"
		}

	function closemailbox2() {
		document.getElementById("apps").style.visibility = "hidden"
		document.getElementById("text").style.visibility = "visible"
		document.getElementById("text").scrollTop = 0
		}

	function setcapsha() {
		cstr = ""
		x = Math.floor(Math.random()*36)+4
		cstr = cstr + x
		cp = "capsha/new-"+x+".gif"
		document.getElementById("cap1").src = cp
		x = Math.floor(Math.random()*36)+4
		cstr = cstr + x
		cp = "capsha/new-"+x+".gif"
		document.getElementById("cap2").src = cp
		x = Math.floor(Math.random()*36)+4
		cstr = cstr + x
		cp = "capsha/new-"+x+".gif"
		document.getElementById("cap3").src = cp
		x = Math.floor(Math.random()*36)+4
		cstr = cstr + x
		cp = "capsha/new-"+x+".gif"
		document.getElementById("cap4").src = cp
		x = Math.floor(Math.random()*36)+4
		cstr = cstr + x
		cp = "capsha/new-"+x+".gif"
		document.getElementById("cap5").src = cp
		document.form_talk.capshx.value = cstr
		document.form_talk.capsha.value = ""
		}

	function setcaps() {
		cstr = ""
		x = Math.floor(Math.random()*36)+4
		cstr = cstr + x
		cp = "capsha/new-"+x+".gif"
		document.getElementById("cap1").src = cp
		x = Math.floor(Math.random()*36)+4
		cstr = cstr + x
		cp = "capsha/new-"+x+".gif"
		document.getElementById("cap2").src = cp
		x = Math.floor(Math.random()*36)+4
		cstr = cstr + x
		cp = "capsha/new-"+x+".gif"
		document.getElementById("cap3").src = cp
		x = Math.floor(Math.random()*36)+4
		cstr = cstr + x
		cp = "capsha/new-"+x+".gif"
		document.getElementById("cap4").src = cp
		x = Math.floor(Math.random()*36)+4
		cstr = cstr + x
		cp = "capsha/new-"+x+".gif"
		document.getElementById("cap5").src = cp
		document.manage.capshx.value = cstr
		document.manage.capsha.value = ""
		}

	var stmn = 0

	function setmanage() {
		if(stmn==0) {
			stmn = 1
			dr = document.manage
			dx = document.getElementById("apps")
			err = ""
			if(dr.capsha.value=="") err = "Typing the encryption characters is required"
	/*
			else {
				caps = ""
				cstr = dr.capsha.value
				xa = cstr.charCodeAt(0)
				xb = cstr.charCodeAt(1)
				xc = cstr.charCodeAt(2)
				xd = cstr.charCodeAt(3)
				xe = cstr.charCodeAt(4)
				if(xa>47&&xa<58) x = xa-48+4
				if(xa>64&&xa<91) x = xa-51
				if(xa>96&&xa<123) x = xa-83
				caps = caps + x
				if(xb>47&&xb<58) x = xb-48+4
				if(xb>64&&xb<91) x = xb-51
				if(xb>96&&xb<123) x = xb-83
				caps = caps + x
				if(xc>47&&xc<58) x = xc-48+4
				if(xc>64&&xc<91) x = xc-51
				if(xc>96&&xc<123) x = xc-83
				caps = caps + x
				if(xd>47&&xd<58) x = xd-48+4
				if(xd>64&&xd<91) x = xd-51
				if(xd>96&&xd<123) x = xd-83
				caps = caps + x
				if(xe>47&&xe<58) x = xe-48+4
				if(xe>64&&xe<91) x = xe-51
				if(xe>96&&xe<123) x = xe-83
				caps = caps + x
				//dr.capsha.value = caps
				if(caps!=dr.capshx.value) {
					alert("Re-enter the encryption characters")
					setcapsha()
					}
				}
	*/
			if(!dr.m86.checked)  err = "You must check that you certify your answers"
			if(dr.m67.value=="") {err = "Please answer: Why don't you have a manager on your team now?"; dx.scrollTop = 400;}
			if(dr.m64.value=="") {err = "Please answer: How long have you lived in L.A.?"; dx.scrollTop = 400;}
			if(dr.m60.value=="" && (!dr.m52.checked && !dr.m53.checked && !dr.m54.checked && !dr.m55.checked && !dr.m56.checked && !dr.m57.checked && !dr.m58.checked && !dr.m59.checked)) {err = "Check or enter your Union Affiliation"; dx.scrollTop = 0;}
			if(dr.m88.value==""||dr.m89.value==""||dr.m90.value==""||dr.m91.value=="") {err = "Enter all of your Physical Stats"; dx.scrollTop = 0;}
			if(dr.m18.selectedIndex==0 || dr.m19.selectedIndex==0 || dr.m20.selectedIndex==0) {err = "Enter your complete Birthdate"; dx.scrollTop = 0;}
			if((dr.m11.value==""||dr.m12.value==""||dr.m13.value=="") && (dr.m15.value==""||dr.m16.value==""||dr.m17.value=="")) {err = "Enter at least one current phone number"; dx.scrollTop = 0;}
			if(dr.m29.value=="") {err = "Enter your country of citizenship if other than the U.S.A."; dx.scrollTop = 0;}
			if(dr.m3.value==""||dr.m5.value==""||dr.m7.value=="") {err = "Enter your complete mailing address"; dx.scrollTop = 0;}
			if(dr.m9.value=="") {err = "Enter your email address"; dx.scrollTop = 0;}
			if(dr.m1.value==""||dr.m2.value=="") {err = "Enter your First and Last name"; dx.scrollTop = 0;}

			if(err=="") {
				document.getElementById("mailslot").style.visibility = "visible"
				//setTimeout("closemailbox()",4000)
				return true
				}
			else {
				alert(err)
				return false
				}
			}
		else {
			return false
			}
		}

	function getsubform() {
		document.getElementById("text").style.visibility = "hidden"
		document.getElementById("apps").style.visibility = "visible"
		document.getElementById("apps").scrollTop = 0
		setcaps()
		}

	function buildform() {
		document.getElementById("text").scrollTop = 0
		for(x=0;x<document.manage.length-3;x++) {
			document.manage[x].name = "m"+x
			}
		}

	function paypalit() {
		document.getElementById("pay").style.visibility = "visible"
		}

	function unpaypal() {
		document.getElementById("pay").style.visibility = "hidden"
		}

	var upls = ""
	function chkupload(upl) {
		if(upls=="") upls = upls+upl
		else  upls = upls+","+upl
		document.manage.attach.value = upls
		}

	var vids = ""
	function vidupload(vid) {
		if(vids=="") vids = vids+vid
		else  vids = vids+","+vid
		document.manage.media.value = vids
		}


	function setintern() {
		dr = document.intern
		dx = document.getElementById("formon")
		err = ""
		if(dr.capsha.value=="") err = "Typing the encryption characters is required"
		else {
			caps = ""
			cstr = dr.capsha.value
			xa = cstr.charCodeAt(0)
			xb = cstr.charCodeAt(1)
			xc = cstr.charCodeAt(2)
			xd = cstr.charCodeAt(3)
			xe = cstr.charCodeAt(4)
			if(xa>47&&xa<58) x = xa-48+4
			else if(xa>64&&xa<91) x = xa-51
			else if(xa>96&&xa<123) x = xa-83
			caps = caps + x
			if(xb>47&&xb<58) x = xb-48+4
			else if(xb>64&&xb<91) x = xb-51
			else if(xb>96&&xb<123) x = xb-83
			caps = caps + x
			if(xc>47&&xc<58) x = xc-48+4
			else if(xc>64&&xc<91) x = xc-51
			else if(xc>96&&xc<123) x = xc-83
			caps = caps + x
			if(xd>47&&xd<58) x = xd-48+4
			else if(xd>64&&xd<91) x = xd-51
			else if(xd>96&&xd<123) x = xd-83
			caps = caps + x
			if(xe>47&&xe<58) x = xe-48+4
			else if(xe>64&&xe<91) x = xe-51
			else if(xe>96&&xe<123) x = xe-83
			caps = caps + x
			//dr.capsha.value = caps
			if(caps!=dr.capshx.value) {
				setcapsha()
				err = "Re-enter the encryption characters"
				}
			}
		if(!dr.f106.checked)  err = "You must check that you certify your answers"
		if(!dr.f100.checked || !dr.f101.checked || !dr.f102.checked || !dr.f103.checked || !dr.f104.checked || !dr.f105.checked) {err = "You must check all boxes that you understand the agreement"; dx.scrollTop = 1000;}
		if(dr.f62.value=="" && (!dr.f57.checked && !dr.f58.checked && !dr.f59.checked && !dr.f60.checked && !dr.f61.checked)) {err = "Check or enter your Union Affiliation"; dx.scrollTop = 400;}

		if(dr.f45.checked && (!dr.f48.checked && !dr.f49.checked))  {err = "Check if you would be Interning for school credit"; dx.scrollTop = 0;}
		if(dr.f26.value=="") {err = "Enter your email address"; dx.scrollTop = 0;}
		if(dr.f21.selectedIndex==0 || dr.f22.selectedIndex==0 || dr.f23.selectedIndex==0) {err = "Enter your complete Birthdate"; dx.scrollTop = 0;}
		if((dr.f14.value==""||dr.f15.value==""||dr.f16.value=="") && (dr.f18.value==""||dr.f19.value==""||dr.f20.value=="")) {err = "Enter at least one current phone number"; dx.scrollTop = 0;}
		if(dr.f8.selectedIndex>0 && dr.f9.value=="") {err = "Enter your country of citizenship if other than the U.S.A."; dx.scrollTop = 0;}
		if(dr.f3.value==""||dr.f5.value==""||dr.f7.value=="") {err = "Enter your complete mailing address"; dx.scrollTop = 0;}
		if(dr.f1.value==""||dr.f2.value=="") {err = "Enter your First and Last name"; dx.scrollTop = 0;}

		if(err=="") {
			document.getElementById("mailslot").style.visibility = "visible"
			setTimeout("closemailbox()",4000)
			return true
			}
		else {
			alert(err)
			return false
			}
		}

	function showform() {
		document.getElementById("noform").style.visibility = "hidden"
		document.getElementById("formon").style.visibility = "visible"
		document.getElementById("formon").scrollTop = 0
		setcapsha()
		}

	function buildform() {
		document.getElementById("noform").scrollTop = 0
		for(x=0;x<document.intern.length-3;x++) {
			document.intern[x].name = "f"+x
			}
		}


	function jump(j) {
		if(j==1) location="a_about.asp"
		else if(j==2) location="a_talent.asp"
		else if(j==3) location="a_talk.asp"
		else if(j==4) location="a_submit.asp"
		else if(j==5) location="a_intern.asp"
		else if(j==6) location="a_favs.asp"
		else if(j==7) location="a_tips.asp"
		}

	function login() {
		document.getElementById("logpage").style.visibility = "visible"
		}
	function exitlog() {
		document.getElementById("logpage").style.visibility = "hidden"
		}
	function checklog() {
		dc = document.checker
		if(dc.user.value!="" && dc.pass.value!="") document.checker.submit()
		else exitlog()
		}


