<!--
//  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     = "17";

var CATFILE_1="http://www.alvatek.com/qwikcreate/milspec/pdf/M85049-17.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");
	Fill_Selections("Main_Layer", "Main_Layer_Select_4", "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("08","08");
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");
	}

	if((WHAT_OPTS=="OPTION2")){o[i++]=new Option("Please Select Below","");
if((OPTION_1=="08")){o[i++]=new Option(".125 (3.2) (Clamp Size 01)","01");o[i++]=new Option(".250 (6.4) (Clamp Size 02)","02");};
if((OPTION_1=="10")){o[i++]=new Option(".125 (3.2) (Clamp Size 01)","01");o[i++]=new Option(".250 (6.4) (Clamp Size 02)","02");o[i++]=new Option(".375 (9.5) (Clamp Size 03)","03");};
if((OPTION_1=="12")){o[i++]=new Option(".250 (6.4) (Clamp Size 02)","02");o[i++]=new Option(".375 (9.5) (Clamp Size 03)","03");o[i++]=new Option(".500 (12.7) (Clamp Size 04)","04");};
if((OPTION_1=="14")){o[i++]=new Option(".250 (6.4) (Clamp Size 02)","02");o[i++]=new Option(".375 (9.5) (Clamp Size 03)","03");o[i++]=new Option(".500 (12.7) (Clamp Size 04)","04");o[i++]=new Option(".625 (15.9) (Clamp Size 05)","05");};
if((OPTION_1=="16")){o[i++]=new Option(".250 (6.4) (Clamp Size 02)","02");o[i++]=new Option(".375 (9.5) (Clamp Size 03)","03");o[i++]=new Option(".500 (12.7) (Clamp Size 04)","04");o[i++]=new Option(".625 (15.9) (Clamp Size 05)","05");o[i++]=new Option(".750 (19.1) (Clamp Size 06)","06");};
if((OPTION_1=="18")){o[i++]=new Option(".375 (9.5) (Clamp Size 03)","03");o[i++]=new Option(".500 (12.7) (Clamp Size 04)","04");o[i++]=new Option(".625 (15.9) (Clamp Size 05)","05");o[i++]=new Option(".750 (19.1) (Clamp Size 06)","06");o[i++]=new Option(".875 (22.2) (Clamp Size 07)","07");};
if((OPTION_1=="20")){o[i++]=new Option(".375 (9.5) (Clamp Size 03)","03");o[i++]=new Option(".500 (12.7) (Clamp Size 04)","04");o[i++]=new Option(".625 (15.9) (Clamp Size 05)","05");o[i++]=new Option(".750 (19.1) (Clamp Size 06)","06");o[i++]=new Option(".875 (22.2) (Clamp Size 07)","07");o[i++]=new Option("1.000 (25.4) (Clamp Size 08)","08");};
if((OPTION_1=="22")){o[i++]=new Option(".375 (9.5) (Clamp Size 03)","03");o[i++]=new Option(".500 (12.7) (Clamp Size 04)","04");o[i++]=new Option(".625 (15.9) (Clamp Size 05)","05");o[i++]=new Option(".750 (19.1) (Clamp Size 06)","06");o[i++]=new Option(".875 (22.2) (Clamp Size 07)","07");o[i++]=new Option("1.000 (25.4) (Clamp Size 08)","08");o[i++]=new Option("1.125 (28.6) (Clamp Size 09)","09");};
if((OPTION_1=="24")){o[i++]=new Option(".500 (12.7) (Clamp Size 04)","04");o[i++]=new Option(".625 (15.9) (Clamp Size 05)","05");o[i++]=new Option(".750 (19.1) (Clamp Size 06)","06");o[i++]=new Option(".875 (22.2) (Clamp Size 07)","07");o[i++]=new Option("1.000 (25.4) (Clamp Size 08)","08");o[i++]=new Option("1.125 (28.6) (Clamp Size 09)","09");o[i++]=new Option("1.250 (31.8) (Clamp Size 10)","10");};
	}



	if((WHAT_OPTS=="OPTION3")){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=="OPTION4")){o[i++]=new Option("Please Select Below","");
		o[i++]=new Option("1.50 inches (Standard)","NNN");
		o[i++]=new Option("2.50 inches (Length Code A)","A");
		if((OPTION_1!="08")&&(OPTION_1!="10")&&(OPTION_1!="12")){o[i++]=new Option("3.50 inches (Length Code B)","B");
			if((OPTION_1!="14")&&(OPTION_1!="16")&&(OPTION_1!="18")){o[i++]=new Option("4.50 inches (Length Code C)","C");
			}	
		}	
	}


	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;	SHELL_SIZE = OPTION_1; Fill_Selections("Main_Layer", "Main_Layer_Select_2", "OPTION2"); OPTION_2=null; if(COUNTER_2==0) {Fill_Selections("Main_Layer", "Main_Layer_Select_4", "OPTION4"); OPTION_4=null; COUNTER_2=0;};}
	if (caller.name=="Main_Layer_Select_2") {OPTION_2 = OPTION_VAL;	DASH_NUMBER= 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;	if(COUNTER_2==1) {Fill_Selections("Main_Layer", "Main_Layer_Select_4", "OPTION4"); COUNTER_2=0;};}
	if (caller.name=="Main_Layer_Select_4") {OPTION_4 = OPTION_VAL;	}

	}
	PARTNUMBER = PRODUCT_SERIES + "/" + BASIC_PART;
	if((OPTION_1)&&(OPTION_1!="NNN")){PARTNUMBER += OPTION_1;};
	if((OPTION_3)&&(OPTION_3!="NNN")){PARTNUMBER += OPTION_3;};
	if((OPTION_2)&&(OPTION_2!="NNN")){PARTNUMBER += OPTION_2;};
	if((OPTION_4)&&(OPTION_4!="NNN")){PARTNUMBER += OPTION_4;};

	if((OPTION_1)&&(OPTION_2)&&(OPTION_3)&&(OPTION_4)){Display_Layer("Part_Number_Button");}
	else {Hide_Layer("Part_Number_Button");}
}
//

//----------------------------------------------------------------------------------------------------------------------

//
function QwikCreatePartNumber() {
	SHELL_SIZE_REF="<BR>Shell Size Series I Reference = ";
	DIM_A    ="<BR>A Thread Class 2B = ";
	DIM_B    ="<BR>B Diameter Max = ";
	DIM_E    ="<BR>E Diameter Max = ";
	DIM_F    ="<BR>F Diameter Max = ";
	DIM_L    ="<BR>Length = ";
	CABLE_RANGE="<BR>Cable Range Minimum = ";

	//-----------------------------------------------
	//-----------------------------------------------
	// --- ENVELOPE DIMENSIONS


if((SHELL_SIZE=="08")){SHELL_SIZE_REF+="9";DIM_A+=".438 - 28 UNEF";DIM_B+=".57 (14.5)"};if((SHELL_SIZE=="10")){SHELL_SIZE_REF+="11";DIM_A+=".562 - 24 UNEF";DIM_B+=".70 (17.8)"};if((SHELL_SIZE=="12")){SHELL_SIZE_REF+="13";DIM_A+=".688 - 24 UNEF";DIM_B+=".83 (21.1)"};if((SHELL_SIZE=="14")){SHELL_SIZE_REF+="15";DIM_A+=".813 - 20 UNEF";DIM_B+=".95 (24.1)"};if((SHELL_SIZE=="16")){SHELL_SIZE_REF+="17";DIM_A+=".938 - 20 UNEF";DIM_B+="1.08 (27.4)"};if((SHELL_SIZE=="18")){SHELL_SIZE_REF+="19";DIM_A+="1.063 - 18 UNEF";DIM_B+="1.20 (30.5)"};if((SHELL_SIZE=="20")){SHELL_SIZE_REF+="21";DIM_A+="1.188 - 18 UNEF";DIM_B+="1.33 (33.8)"};if((SHELL_SIZE=="22")){SHELL_SIZE_REF+="23";DIM_A+="1.313 - 18 UNEF";DIM_B+="1.45 (36.8)"};if((SHELL_SIZE=="24")){SHELL_SIZE_REF+="25";DIM_A+="1.438 - 18 UNEF";DIM_B+="1.58 (40.1)"};


if((DASH_NUMBER=="01")){DIM_E+=".781 (19.8)";DIM_F+="1.250 (31.8)";CABLE_RANGE+=".062 (1.6)<BR>&nbsp &nbsp &nbsp Maximum = .125 (3.2)"};if((DASH_NUMBER=="02")){DIM_E+=".969 (24.6)";DIM_F+="1.250 (31.8)";CABLE_RANGE+=".125 (3.2)<BR>&nbsp &nbsp &nbsp Maximum = .250 (6.4)"};if((DASH_NUMBER=="03")){DIM_E+="1.062 (27.0)";DIM_F+="1.250 (31.8)";CABLE_RANGE+=".250 (6.4)<BR>&nbsp &nbsp &nbsp Maximum = .375 (9.5)"};if((DASH_NUMBER=="04")){DIM_E+="1.156 (29.4)";DIM_F+="1.250 (31.8)";CABLE_RANGE+=".375 (9.5)<BR>&nbsp &nbsp &nbsp Maximum = .500 (12.7)"};if((DASH_NUMBER=="05")){DIM_E+="1.250 (31.8)";DIM_F+="1.312 (33.3)";CABLE_RANGE+=".500 (12.7)<BR>&nbsp &nbsp &nbsp Maximum = .625 (15.9)"};if((DASH_NUMBER=="06")){DIM_E+="1.375 (34.9)";DIM_F+="1.375 (34.9)";CABLE_RANGE+=".625 (15.9)<BR>&nbsp &nbsp &nbsp Maximum = .750 (19.1)"};if((DASH_NUMBER=="07")){DIM_E+="1.500 (38.1)";DIM_F+="1.500 (38.1)";CABLE_RANGE+=".750 (19.1)<BR>&nbsp &nbsp &nbsp Maximum = .875 (22.2)"};if((DASH_NUMBER=="08")){DIM_E+="1.625 (41.3)";DIM_F+="1.625 (41.3)";CABLE_RANGE+=".875 (22.2)<BR>&nbsp &nbsp &nbsp Maximum = 1.000 (25.4)"};if((DASH_NUMBER=="09")){DIM_E+="1.750 (44.5)";DIM_F+="1.625 (41.3)";CABLE_RANGE+="1.000 (25.4)<BR>&nbsp &nbsp &nbsp Maximum = 1.125 (28.6)"};if((DASH_NUMBER=="10")){DIM_E+="1.875 (47.6)";DIM_F+="1.625 (41.3)";CABLE_RANGE+="1.125 (28.6)<BR>&nbsp &nbsp &nbsp Maximum = 1.250 (31.8)"};


if((OPTION_4=="NNN")){DIM_L+="1.50 (38.1)"};if((OPTION_4=="A")){DIM_L+="2.50 (63.5)"};if((OPTION_4=="B")){DIM_L+="3.50 (88.9)"};if((OPTION_4=="C")){DIM_L+="4.50 (114.3)"};



//	DIM_D+=" &#177 .005 (.1)";
//	DIM_C+=" &#177 .010 (.3)";
//	DIM_C+=" [+.0 (.0); -.015 (.4)]";
//	DIM_D+=" [+.015 (.4); -.0 (.0)]";
//	DIM_G+=" [+.030 (.8); -.0 (.0)]";
	//-----------------------------------------------



	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,".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)?("<BR>Shell Size = "+OPTION_1):("")
		,(OPTION_2)?("<BR>Clamp Size = "+OPTION_2):("")
		,(OPTION_3=="N")?("<BR>Finish Code = N<BR>Finish = Electroless Nickel, Aluminum "):("")
		,(OPTION_3=="W")?("<BR>Finish Code = W<BR>Finish = 500 Hr Cadmium Olive Drab over Electroless Nickel "):("")
		,(OPTION_4!="NNN")?("<BR>Length Code = "+OPTION_4):("<BR>Length Code = Standard")
	);

	QwikCreateWindow.document.write("</TD><TD WIDTH=50%><FONT FACE='TAHOMA' SIZE=2>");

	QwikCreateWindow.document.write(SHELL_SIZE_REF);
	QwikCreateWindow.document.write(DIM_A);
	QwikCreateWindow.document.write(DIM_B);
	QwikCreateWindow.document.write(DIM_E,DIM_F);
	QwikCreateWindow.document.write(DIM_L);
	QwikCreateWindow.document.write(CABLE_RANGE);

	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;
}
// -->
