<!--
//  Military Standard Connector Accessories
//  GLOBAL VARIABLE DECLARATIONS
var COUNTER_0=1;var COUNTER_1=1;var COUNTER_2=1;var COUNTER_3=1;var COUNTER_4=1;var COUNTER_5=1;
var OPTION_1;   var OPTION_2;   var OPTION_3;   var OPTION_4;   var OPTION_5;   var OPTION_6;
var PARTNUMBER; var QwikCreateWindow;
var LENGTH_FACTOR = 1;

var PRODUCT_SERIES = "M85049";
var BASIC_PART     = "26";

var CATFILE_1="http://www.alvatek.com/qwikcreate/milspec/pdf/M85049-26.pdf";
//

//----------------------------------------------------------------------------------------------------------------------

//
function QwikCreate_StartUP() {
	Display_Layer("wait");
	QwikCreate_LoadUp();
}

function QwikCreate_LoadUp() {
	Fill_Selections("Main_Layer", "Main_Layer_Select_1", "START");
	Fill_Selections("Main_Layer", "Main_Layer_Select_2", "BLANK");
	Fill_Selections("Main_Layer", "Main_Layer_Select_3", "BLANK");

	Layer_X = 50;
	Layer_Y = 140;
	document.getElementById('Header_Layer').style.left=20;
	document.getElementById('Header_Layer').style.top=20;
	document.getElementById('Main_Layer').style.left=Layer_X;
	document.getElementById('Main_Layer').style.top=Layer_Y;
	document.getElementById('Part_Number_Button').style.left=Layer_X;
	document.getElementById('Part_Number_Button').style.top=300+Layer_Y;
	Display_Layer("Header_Layer");Display_Layer("Main_Layer");Hide_Layer("wait");
}
//

//----------------------------------------------------------------------------------------------------------------------

//
function Hide_Layer (WHAT_LAYER) {
	document.getElementById(WHAT_LAYER).style.visibility="hidden";
}
function Display_Layer (WHAT_LAYER) {
	document.getElementById(WHAT_LAYER).style.visibility="visible";
}

//

//----------------------------------------------------------------------------------------------------------------------

//
function Fill_Selections(WHAT_LAYER, WHAT_SELECT, WHAT_OPTS) {
	Selections_Path="document.forms[0]." + WHAT_SELECT;
	o = new Array;
	i=0;

	if (WHAT_OPTS == "BLANK") {o[i++]=new Option(" ", " ");}


	// CONNECTOR DESIGNATOR
	if (WHAT_OPTS == "START") {o[i++]=new Option("Please Select Below","");
		o[i++]=new Option("Adapter Only","-1");
		o[i++]=new Option("Crimp Ring Only","-2");
		o[i++]=new Option("Adapter with Crimp Ring","-3");
	}

	if((WHAT_OPTS=="OPTION2")){o[i++]=new Option("Please Select Below","");
if((OPTION_1!="-2")&&(OPTION_1!="-3")){o[i++]=new Option("3","3");};
o[i++]=new Option("8","8");
o[i++]=new Option("10","10");
o[i++]=new Option("12","12");
o[i++]=new Option("14","14");
o[i++]=new Option("16","16");
o[i++]=new Option("18","18");
o[i++]=new Option("20","20");
o[i++]=new Option("22","22");
o[i++]=new Option("24","24");
o[i++]=new Option("28","28");
o[i++]=new Option("32","32");
o[i++]=new Option("36","36");
o[i++]=new Option("40","40");
o[i++]=new Option("44","44");
o[i++]=new Option("48","48");
o[i++]=new Option("61","61");
}

	if((WHAT_OPTS=="OPTION3")&&(OPTION_1!="-2")){o[i++]=new Option("Please Select Below","");
		o[i++]=new Option("Electroless Nickel, Aluminum (Finish Code: N)","N");
		o[i++]=new Option("500 Hr Cadmium Olive Drab over Electroless Nickel (Finish Code: W)","W");
	}
	if((WHAT_OPTS=="OPTION3")&&(OPTION_1=="-2")){o[i++]=new Option("Not Applicable with Crimp Ring Only Option","NNN");OPTION_3="NNN"}




	if (i==0) { alert("Error: that dropdown should do something, but it doesn't"); }
	else {eval(Selections_Path+".length=o.length");OPTION_WIDTH=0;for(i=0; i < o.length; i++) {eval(Selections_Path+".options[i]=o[i]");if (o[i].text.length>OPTION_WIDTH){OPTION_WIDTH=o[i].text.length;};};};
	eval(Selections_Path+".width=OPTION_WIDTH");eval(Selections_Path+".length=o.length");eval(Selections_Path+".options[0].selected=true");
}
//

//----------------------------------------------------------------------------------------------------------------------

//
function Form_Change(caller) {
	if((QwikCreateWindow)&&(!QwikCreateWindow.closed)){QwikCreateWindow.close();}
	OPTION_VAL=caller.options[caller.selectedIndex].value;
	OPTION_TXT=caller.options[caller.selectedIndex].text;
	GOTO_URL=0;

	if (OPTION_VAL.indexOf("http://") == 0) {Hide_Layer("Header_Layer"); Hide_Layer("Main_Layer"); Hide_Layer("Part_Number_Button"); Display_Layer("wait");window.open(OPTION_VAL, "_top");GOTO_URL=1;}


	// -- IF GOING TO A DIFFERNT PAGE, SAME SITE
	if (OPTION_VAL.indexOf(":")==0) { Hide_Layer("Header_Layer"); Hide_Layer("Main_Layer"); Hide_Layer("Part_Number_Button"); Display_Layer("wait");TOGO_URL=OPTION_VAL.substring(1)+".html";window.open(TOGO_URL, "_top");GOTO_URL=1;}
	if (!GOTO_URL) {
	if (caller.name=="Main_Layer_Select_1") {OPTION_1 = OPTION_VAL;	Fill_Selections("Main_Layer", "Main_Layer_Select_2", "OPTION2"); OPTION_2=null; if(COUNTER_1==0) {Fill_Selections("Main_Layer", "Main_Layer_Select_3", "OPTION3"); COUNTER_1=0;}; OPTION_3=null;}
	if (caller.name=="Main_Layer_Select_2") {OPTION_2 = OPTION_VAL;	SHELL_SIZE = OPTION_2; if(COUNTER_1==1) {Fill_Selections("Main_Layer", "Main_Layer_Select_3", "OPTION3"); COUNTER_1=0;};}
	if (caller.name=="Main_Layer_Select_3") {OPTION_3 = OPTION_VAL;}

	}
	PARTNUMBER = PRODUCT_SERIES + "/" + BASIC_PART;
	if((OPTION_1)&&(OPTION_1!="NNN")){PARTNUMBER += OPTION_1;};
	if((OPTION_2)&&(OPTION_2!="NNN")){PARTNUMBER += "-" + OPTION_2;};
	if((OPTION_3)&&(OPTION_3!="NNN")){PARTNUMBER += OPTION_3;};

	if((OPTION_1)&&(OPTION_2)&&(OPTION_3)){Display_Layer("Part_Number_Button");}
	else {Hide_Layer("Part_Number_Button");}
}
//

//----------------------------------------------------------------------------------------------------------------------

//
function QwikCreatePartNumber() {
	SHELL_SIZE_REF="<BR>Shell Size Refernce = ";
	DIM_A    ="<BR>A Thread Class 2B = ";
	DIM_C    ="<BR>C Diameter Max = ";
	DIM_E    ="<BR>E Diameter Max = ";
	DIM_F    ="<BR>F Diameter Max = ";
	DIM_G    ="<BR>G Dimension Min = ";
	DIM_H    ="<BR>H Dimension Min = ";
	DIM_J    ="<BR>J Dimension = ";
	//-----------------------------------------------
	//-----------------------------------------------
	// --- ENVELOPE DIMENSIONS



if((SHELL_SIZE=="3")){DIM_A+=".562 - 24 UNEF";DIM_C+=".67 (17.0)";DIM_E+=".250 (6.4)";DIM_F+=".337 (8.6)";DIM_G+="N/A";DIM_H+="N/A";DIM_J+="N/A"};
if((SHELL_SIZE=="8")){DIM_A+=".500 - 20 UNF";DIM_C+=".62 (15.7)";DIM_E+=".250 (6.4)";DIM_F+=".337 (8.6)";DIM_G+=".400 (10.2)";DIM_H+=".448 (11.4)";DIM_J+=".250 (6.4)"};
if((SHELL_SIZE=="10")){DIM_A+=".625 - 24 UNEF";DIM_C+=".73 (18.5)";DIM_E+=".325 (8.3)";DIM_F+=".488 (12.4)";DIM_G+=".585 (14.9)";DIM_H+=".660 (16.8)";DIM_J+=".440 (11.2)"};
if((SHELL_SIZE=="12")){DIM_A+=".750 - 20 UNEF";DIM_C+=".86 (21.8)";DIM_E+=".420 (10.7)";DIM_F+=".500 (12.7)";DIM_G+=".585 (14.9)";DIM_H+=".660 (16.8)";DIM_J+=".440 (11.2)"};
if((SHELL_SIZE=="14")){DIM_A+=".875 - 20 UNEF";DIM_C+=".98 (24.9)";DIM_E+=".540 (13.7)";DIM_F+=".620 (15.7)";DIM_G+=".705 (17.9)";DIM_H+=".780 (19.8)";DIM_J+=".440 (11.2)"};
if((SHELL_SIZE=="16")){DIM_A+="1.000 - 20 UNEF";DIM_C+="1.11 (28.2)";DIM_E+=".670 (17.0)";DIM_F+=".750 (19.1)";DIM_G+=".835 (21.2)";DIM_H+=".910 (23.1)";DIM_J+=".440 (11.2)"};
if((SHELL_SIZE=="18")){DIM_A+="1.062 - 18 UNEF";DIM_C+="1.22 (31.0)";DIM_E+=".789 (20.0)";DIM_F+=".880 (22.4)";DIM_G+="1.005 (25.5)";DIM_H+="1.080 (27.4)";DIM_J+=".440 (11.2)"};
if((SHELL_SIZE=="20")){DIM_A+="1.188 - 18 UNEF";DIM_C+="1.35 (34.3)";DIM_E+=".914 (23.2)";DIM_F+="1.000 (25.4)";DIM_G+="1.125 (28.6)";DIM_H+="1.200 (30.5)";DIM_J+=".440 (11.2)"};
if((SHELL_SIZE=="22")){DIM_A+="1.313 - 18 UNEF";DIM_C+="1.47 (37.3)";DIM_E+="1.039 (26.4)";DIM_F+="1.120 (28.4)";DIM_G+="1.245 (31.6)";DIM_H+="1.320 (33.5)";DIM_J+=".440 (11.2)"};
if((SHELL_SIZE=="24")){DIM_A+="1.438 - 18 UNEF";DIM_C+="1.59 (40.4)";DIM_E+="1.112 (28.2)";DIM_F+="1.192 (30.3)";DIM_G+="1.327 (33.7)";DIM_H+="1.402 (35.6)";DIM_J+=".440 (11.2)"};
if((SHELL_SIZE=="28")){DIM_A+="1.750 - 18 UNS";DIM_C+="1.97 (50.0)";DIM_E+="1.389 (35.3)";DIM_F+="1.545 (39.2)";DIM_G+="1.665 (42.3)";DIM_H+="1.740 (44.2)";DIM_J+=".440 (11.2)"};
if((SHELL_SIZE=="32")){DIM_A+="2.000 - 18 UNS";DIM_C+="2.22 (56.4)";DIM_E+="1.635 (41.5)";DIM_F+="1.795 (45.6)";DIM_G+="1.915 (48.6)";DIM_H+="1.990 (50.5)";DIM_J+=".440 (11.2)"};
if((SHELL_SIZE=="36")){DIM_A+="2.250 - 16 UN";DIM_C+="2.47 (62.7)";DIM_E+="1.850 (47.0)";DIM_F+="2.045 (51.9)";DIM_G+="2.165 (55.0)";DIM_H+="2.240 (56.9)";DIM_J+=".440 (11.2)"};
if((SHELL_SIZE=="40")){DIM_A+="2.500 - 16 UN";DIM_C+="2.72 (69.1)";DIM_E+="2.065 (52.5)";DIM_F+="2.295 (58.3)";DIM_G+="2.415 (61.3)";DIM_H+="2.490 (63.2)";DIM_J+=".440 (11.2)"};
if((SHELL_SIZE=="44")){DIM_A+="2.750 - 16 UN";DIM_C+="2.97 (75.4)";DIM_E+="2.320 (58.9)";DIM_F+="2.545 (64.6)";DIM_G+="2.665 (67.7)";DIM_H+="2.740 (69.6)";DIM_J+=".440 (11.2)"};
if((SHELL_SIZE=="48")){DIM_A+="3.000 - 16 UN";DIM_C+="3.22 (81.8)";DIM_E+="2.570 (65.3)";DIM_F+="2.795 (71.0)";DIM_G+="2.915 (74.0)";DIM_H+="2.990 (75.9)";DIM_J+=".440 (11.2)"};
if((SHELL_SIZE=="61")){DIM_A+="1.500 - 18 UNEF";DIM_C+="1.65 (41.9)";DIM_E+="1.210 (30.7)";DIM_F+="1.359 (34.5)";DIM_G+="1.435 (36.4)";DIM_H+="1.510 (38.4)";DIM_J+=".440 (11.2)"};

	//-----------------------------------------------



	if((QwikCreateWindow)&&(!QwikCreateWindow.closed)){QwikCreateWindow.close();};
	QwikCreateWindow=window.open('','','scrollbars=yes,resizable=yes,width=700,height=600');
	QwikCreateWindow.document.open("text/html","replace");
	QwikCreateWindow.document.write("<HTML><TITLE>QwikCreate - Part Number: ",PARTNUMBER,", Glenair Inc.</TITLE><BODY BGCOLOR=WHITE><CENTER><IMG SRC='imgs/banner_air.jpg'><TABLE WIDTH=640 BORDER=0 CELLPADDING=5 CELLSPACING=0><TR VALIGN=TOP><TD COLSPAN=2><CENTER><FONT FACE='TAHOMA' SIZE=5><B>Part Number: ",PARTNUMBER,"</FONT><BR><FONT SIZE=2>","<BR>");
	QwikCreateWindow.document.write("<img src='imgs/",PRODUCT_SERIES,"_",BASIC_PART,OPTION_1,".gif'>");
	QwikCreateWindow.document.write("</TD></TR><TR VALIGN=TOP><TD WIDTH=50%><FONT FACE='TAHOMA' SIZE=2>");
	QwikCreateWindow.document.write(
		"<BR>Basic Part Number = ", PRODUCT_SERIES, "/", BASIC_PART , OPTION_1
		,(OPTION_2)?("<BR>Shell Size = "+OPTION_2):("")
		,(OPTION_3!="NNN")?("<BR>Finish Code= "+OPTION_3):("<BR>Finish not applicable to Crimp Ring Only Option.")
		,(OPTION_3=="N")?("Finish = Electroless Nickel, Aluminum "):("")
		,(OPTION_3=="W")?("Finish = 500 Hr Cadmium Olive Drab over Electroless Nickel "):("")
	);

	QwikCreateWindow.document.write("</TD><TD WIDTH=50%><FONT FACE='TAHOMA' SIZE=2>");

	QwikCreateWindow.document.write(DIM_A);
	QwikCreateWindow.document.write(DIM_C);
	QwikCreateWindow.document.write(DIM_E);
	QwikCreateWindow.document.write(DIM_F);
	QwikCreateWindow.document.write(DIM_G);
	QwikCreateWindow.document.write(DIM_H);
	QwikCreateWindow.document.write(DIM_J);
	QwikCreateWindow.document.write("<BR>Dimensions are in Inches (Millimeter)</TD></TR>");
	QwikCreateWindow.document.write("<TR><TD COLSPAN=2><CENTER><TABLE><TR><TD><FONT FACE='TAHOMA' SIZE=2><FONT FACE=TAHOMA SIZE=2><B>NOTES:</B>");
	QwikCreateWindow.document.write("<BR>For complete dimensions see applicable Military Specification.");
// 	MORE NOTES
//	QwikCreateWindow.document.write("<BR>Finish: 500 hour cadmium olive drab over electroless nickel.")
//	QwikCreateWindow.document.write("<BR>Cable Range is defined as the accommodation range for the wire bundle or cable.  Dimensions shown are not intended for inspection criteria.");
//	QwikCreateWindow.document.write("<BR>")
//	QwikCreateWindow.document.write("<BR>")
//	QwikCreateWindow.document.write("<BR>")
//	QwikCreateWindow.document.write("<BR>")
	QwikCreateWindow.document.write("<BR><CENTER><U>Unless otherwise specified, the following dimensional tolerances will apply:</U><BR>.xx = &#177 .03 (0.8); &nbsp &nbsp .xxx = &#177 .015 (0.4); &nbsp &nbsp Lengths = &#177 .060 (1.52); &nbsp &nbsp Angles = &#177 5&#176</CENTER>");QwikCreateWindow.document.write("</TD></TR></TABLE></TD></TR><TR><TD COLSPAN=2><CENTER><BR><FORM>")
	
	OPENCATALOGPAGE=CATFILE_1;
	QwikCreateWindow.document.write("<INPUT TYPE='BUTTON' VALUE='Open Catalog Page' onClick=window.open('",OPENCATALOGPAGE,"','temppage','toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,width=700,height=600')> &nbsp &nbsp &nbsp ");QwikCreateWindow.document.write("<INPUT TYPE='BUTTON' VALUE='Quote' onClick=window.open('../../pages/search_results.php?searchtype=b&search=yes&query=",PARTNUMBER,"','temppage','toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,width=700,height=600')>  &nbsp &nbsp &nbsp ");QwikCreateWindow.document.write((window.print)?("<INPUT TYPE='BUTTON' VALUE='Print' onClick='window.print()'>"):("<FONT FACE=TAHOMA SIZE=2>CTRL+P (PC) or CMD+P (Mac) to Print</FONT>")," &nbsp &nbsp &nbsp <INPUT TYPE='BUTTON' VALUE='Close' onClick='self.close()'></FORM></TD></TR></TABLE>");QwikCreateWindow.document.write("</BODY></HTML>");
	QwikCreateWindow.document.close();
	windowopen=1;
}
// -->