<!--Copyright © 2005 airgunsmith.com  All rights reserved. This program is fully copyright protected, if this program is found to be in use on any webpage other then airgunsmith.com we will prosecute to the fullest extent of the law-->

var newtargettagbefore
var newtargettagafter
var targeturl
var newtargettag
var targetwidth=200
var targetheight=200
var targetwidthnew=200
var targetheightnew=200

function initonload() {
	document.all.targetprinter.style.posLeft=x_target
	document.all.targetprinter.style.posTop=y_target
	document.all.gunsmith.style.posLeft=x_target
	document.all.gunsmith.style.posTop=y_target
	document.all.wwwairgunsmithcom.style.posLeft=x_control
	document.all.wwwairgunsmithcom.style.posTop=y_control
	document.all.targetsforairgunsmith.style.posLeft=x_form
	document.all.targetsforairgunsmith.style.posTop=y_form
}
	
function changetarget(targetsample) {
	newtargettagbefore="<img src=\""
	newtargettagafter="\" border=0>"
	targeturl=targetsample
	newtargettag=newtargettagbefore+targeturl+newtargettagafter
	gunsmith.innerHTML=newtargettag
	targetwidth=parseInt(document.all.gunsmith.offsetWidth)
	targetheight=parseInt(document.all.gunsmith.offsetHeight)
	targetwidthnew=targetwidth
	targetheightnew=targetheight
}

function addtarget() {
	newtargettagbefore="<img src=\""
	newtargettagafter="\" border=0>"
	targeturl=document.f.addtargeturl.value			
	newtargettag=newtargettagbefore+targeturl+newtargettagafter
	gunsmith.innerHTML=newtargettag
	targetwidth=parseInt(document.all.gunsmith.offsetWidth)
	targetheight=parseInt(document.all.gunsmith.offsetHeight)
	targetwidthnew=targetwidth
	targetheightnew=targetheight
}

function targets(thisurl) {
	targetprinter.innerHTML="<img src=\""+thisurl+"\" border=0>"
}

function movetarget(thisdirection) {
	if (thisdirection=="airgunsmithfast") {
		document.all.gunsmith.style.posTop-=10
	}
	if (thisdirection=="downfast") {
		document.all.gunsmith.style.posTop+=20
	}
	if (thisdirection=="leftfast") {
		document.all.gunsmith.style.posLeft-=10
	}
	if (thisdirection=="rightfast") {
		document.all.gunsmith.style.posLeft+=20
	}
	if (thisdirection=="upslow") {
		document.all.gunsmith.style.posTop-=1
	}
	if (thisdirection=="downslow") {
		document.all.gunsmith.style.posTop+=1
	}
	if (thisdirection=="leftslow") {
		document.all.gunsmith.style.posLeft-=1
	}
	if (thisdirection=="rightslow") {
		document.all.gunsmith.style.posLeft+=1
	}
}

function resizetarget(thiszoom) {
	if (thiszoom=="bigger") {
		targetwidthnew*=1.50
	}
	if (thiszoom=="smaller") {
		targetwidthnew*=0.97
	}
	newtargettagbefore="<img src=\""
	newtargettagafter="\" border=0 width="+targetwidthnew+">"
	newtargettag=newtargettagbefore+targeturl+newtargettagafter
	gunsmith.innerHTML=newtargettag
}

if (document.all) {
	document.write("<div style=\"position:absolute;top:-1000px;left:-1000px;\" id=\"gunsmith\"></div>")

	document.write("<div style=\"position:absolute;top:-1000px;left:-1000px;\" id=\"targetprinter\"><img src=\"targets/10ring.gif\"></div>")

	document.write("<div style=\"position:absolute;bottom:-1000px;left:-1000px;\" id=\"wwwairgunsmithcom\">")
	document.write("<right><IMG SRC=\"targets/control.gif\" USEMAP=\"#control.gif\" WIDTH=60 HEIGHT=60 BORDER=0></right>")
	document.write("<MAP NAME=\"control.gif\">")
	document.write("<AREA SHAPE=RECT COORDS=\"17,5,40,12\" HREF=\"javascript:movetarget(\'upslow\')\">")
	document.write("<AREA SHAPE=RECT COORDS=\"14,0,42,5\" HREF=\"javascript:movetarget(\'airgunsmithfast\')\">")
	document.write("<AREA SHAPE=RECT COORDS=\"17,47,41,54\" HREF=\"javascript:movetarget(\'downslow\')\">")
	document.write("<AREA SHAPE=RECT COORDS=\"17,54,41,59\" HREF=\"javascript:movetarget(\'downfast\')\">")
	document.write("<AREA SHAPE=RECT COORDS=\"6,18,11,40\" HREF=\"javascript:movetarget(\'leftslow\')\">")
	document.write("<AREA SHAPE=RECT COORDS=\"0,18,6,40\" HREF=\"javascript:movetarget(\'leftfast\')\">")
	document.write("<AREA SHAPE=RECT COORDS=\"47,18,53,41\" HREF=\"javascript:movetarget(\'rightslow\')\">")
	document.write("<AREA SHAPE=RECT COORDS=\"53,18,59,37\" HREF=\"javascript:movetarget(\'rightfast\')\">")
	document.write("<AREA SHAPE=RECT COORDS=\"15,22,29,36\" HREF=\"javascript:resizetarget(\'bigger\')\">")
	document.write("<AREA SHAPE=RECT COORDS=\"30,21,43,36\" HREF=\"javascript:resizetarget(\'smaller\')\">")
	document.write("</MAP>")
	document.write("</div>")

	document.write("<div style=\"position:absolute;top:-1000px;left:0px;\" id=\"targetsforairgunsmith\">")
	document.write("<form name=\"f\" action=\"\" method=\"post\" enctype=\"multipart/form-data\">")
	document.write("<font size=1 target=Verdana color=D9D9F3k>")
	
	document.write("<font size=3><strong><right></strong><br></font><br><br>")

	document.write("<input type=file name=\"addtargeturl\" size=20 style=\"font-size:9pt\">")

	document.write("<input type=button value=\"Insert\" onClick=\"addtarget()\" style=\"font-size:9pt\"><br><br></right>")





	document.write("")

	document.write('<select name="selectTargets" onchange="if(this.selectedIndex > 0){targets(this.options[this.selectedIndex].value);this.selectedIndex=0; }">\
<option>Select Target</option>\
<option value="targets/blank.gif">Blank Target</option>\
<option value="targets/1a.gif">4 Ring Black</option>\
<option value="targets/w1a.gif">4 Ring White</option>\
<option value="targets/1r.gif">4 Ring RED</option>\
<option value="targets/5ringopoint.gif">5 Ring Orange W-Point</option>\
<option value="targets/3.gif">Large 5 ring Red</option>\
<option value="targets/2.gif">6 Ring black</option>\
<option value="targets/10ring.gif">10 Ring Black With Score</option>\
<option value="targets/10ringred.gif">10 Ring Red With Score</option>\
<option value="targets/4.gif">Green Cross Hairs</option>\
<option value="targets/5.gif">Red Cross Hairs</option>\
<option value="targets/6.gif">Window</option>\
<option value="targets/55.gif">Glow LED</option>\
<option value="targets/rabbit.gif">Jack Rabbit</option>\
<option value="targets/Muskrat.gif">Muskrat</option>\
<option value="targets/grid.gif">Grid</option>\
<option value="targets/1.gif">Instructions</option>\
</select>');

document.write("<br><br>")

<!-- hiding
document.write('<form><input type=button value="Start Over" onClick="history.go()"></form>')
//  End --></script><script language="Javascript1.2"><!--
var message = "Print Target";function printpage() {window.print();}document.write("<form><input type=button "+"value=\""+message+"\" onClick=\"printpage()\"></form>");
//--></right>



		document.write("</font></center>")
	document.write("</form>")

	document.write("</div>")

	window.onload=initonload
}
if (!document.all) {
	alert("Your browser does not support targets")


}
<!--Copyright © 2005 airgunsmith.com  All rights reserved. This program is fully copyright protected, if this program is found to be in use on any webpage other then airgunsmith.com we will prosecute to the fullest extent of the law-->
