<!--
//  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     = "52";

var CATFILE_1="http://www.alvatek.com/qwikcreate/milspec/pdf/M85049-52.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(".204 (5.2) (Dash Number 3)","3");
o[i++]=new Option(".204 (5.2) (Dash Number 8)","8");
o[i++]=new Option(".286 (7.3) (Dash Number 10)","10");
o[i++]=new Option(".416 (10.6) (Dash Number 12)","12");
o[i++]=new Option(".476 (12.1) (Dash Number 14)","14");
o[i++]=new Option(".626 (15.9) (Dash Number 16)","16");
o[i++]=new Option(".706 (17.9) (Dash Number 18)","18");
o[i++]=new Option(".831 (21.1) (Dash Number 20)","20");
o[i++]=new Option(".956 (24.3) (Dash Number 22)","22");
o[i++]=new Option("1.081 (27.5) (Dash Number 24)","24");
o[i++]=new Option("1.187 (30.1) (Dash Number 28)","28");
o[i++]=new Option("1.250 (31.8) (Dash Number 32)","32");
o[i++]=new Option("1.375 (34.9) (Dash Number 36)","36");
o[i++]=new Option("1.500 (38.1) (Dash Number 40)","40");
o[i++]=new Option("1.750 (44.5) (Dash Number 44)","44");
o[i++]=new Option("1.875 (47.6) (Dash Number 48)","48");
o[i++]=new Option("1.081 (27.5) (Dash Number 61)","61");
	}

	if((WHAT_OPTS=="OPTION2")){o[i++]=new Option("Please Select Below","");
		o[i++]=new Option("Aluminum, Black Anodize","A");
		o[i++]=new Option("Aluminum, Electroless Nickel","N");
		o[i++]=new Option("Aluminum, 500 Hour Cadium Olive Drab over Electroless Nickel","W");
	}

	if((WHAT_OPTS=="OPTION3")){o[i++]=new Option("Please Select Below","");
		if((OPTION_1!="3")&&(OPTION_1!="61")){o[i++]=new Option("Self-Locking","S");}
		o[i++]=new Option("Non-Self-Locking","-1-");
	}



	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;	DASH_NUMBER = OPTION_1; if(COUNTER_0==1) {Fill_Selections("Main_Layer", "Main_Layer_Select_2", "OPTION2"); COUNTER_0=0;};}
	if (caller.name=="Main_Layer_Select_2") {OPTION_2 = OPTION_VAL;	Fill_Selections("Main_Layer", "Main_Layer_Select_3", "OPTION3"); OPTION_3=null;}
	if (caller.name=="Main_Layer_Select_3") {OPTION_3 = OPTION_VAL;	}

	}
	PARTNUMBER = PRODUCT_SERIES + "/" + BASIC_PART;
	if((OPTION_3)&&(OPTION_3!="NNN")){PARTNUMBER += OPTION_3;};
	if((OPTION_1)&&(OPTION_1!="NNN")){PARTNUMBER += OPTION_1;};
	if((OPTION_2)&&(OPTION_2!="NNN")){PARTNUMBER += OPTION_2;};

	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 Reference = ";
	DIM_A    ="<BR>A Thread Class 2B = ";
	DIM_E    ="<BR>E Diameter Max = ";
	DIM_F    ="<BR>F Dimension Max = ";
	DIM_G    ="<BR>G Dimension Max = ";
	DIM_H    ="<BR>H Dimension Max = ";
	CABLE_RANGE="<BR>Cable Entry Minimum = ";

	//-----------------------------------------------
	//-----------------------------------------------
	// --- ENVELOPE DIMENSIONS

if((DASH_NUMBER=="3")){DIM_A+=".562 - 24 UNEF";DIM_E+="n/a";DIM_F+="n/a";DIM_G+=".732 (18.6)";CABLE_RANGE+=".125 (3.2)<BR>&nbsp &nbsp &nbsp Maximum = .204 (5.2)"};
if((DASH_NUMBER=="8")){DIM_A+=".500 - 20 UNF";DIM_E+=".885 (22.5)";DIM_F+=".73 (18.5)";DIM_G+=".732 (18.6)";CABLE_RANGE+=".125 (3.2)<BR>&nbsp &nbsp &nbsp Maximum = .204 (5.2)"};
if((DASH_NUMBER=="10")){DIM_A+=".625 - 24 UNEF";DIM_E+="1.010 (25.7)";DIM_F+=".85 (21.6)";DIM_G+=".812 (20.6)";CABLE_RANGE+=".187 (4.7)<BR>&nbsp &nbsp &nbsp Maximum = .286 (7.3)"};
if((DASH_NUMBER=="12")){DIM_A+=".750 - 20 UNEF";DIM_E+="1.135 (28.8)";DIM_F+=".98 (24.9)";DIM_G+=".968 (24.6)";CABLE_RANGE+=".291 (7.4)<BR>&nbsp &nbsp &nbsp Maximum = .416 (10.6)"};
if((DASH_NUMBER=="14")){DIM_A+=".875 - 20 UNEF";DIM_E+="1.260 (32.0)";DIM_F+=".98 (24.9)";DIM_G+="1.026 (26.1)";CABLE_RANGE+=".351 (8.9)<BR>&nbsp &nbsp &nbsp Maximum = .476 (12.1)"};
if((DASH_NUMBER=="16")){DIM_A+="1.000 - 20 UNEF";DIM_E+="1.385 (35.2)";DIM_F+="1.10 (27.9)";DIM_G+="1.299 (33.0)";CABLE_RANGE+=".501 (12.7)<BR>&nbsp &nbsp &nbsp Maximum = .626 (15.9)"};
if((DASH_NUMBER=="18")){DIM_A+="1.062 - 18 UNEF";DIM_E+="1.510 (38.4)";DIM_F+="1.35 (34.3)";DIM_G+="1.431 (36.3)";CABLE_RANGE+=".518 (13.2)<BR>&nbsp &nbsp &nbsp Maximum = .706 (17.9)"};
if((DASH_NUMBER=="20")){DIM_A+="1.188 - 18 UNEF";DIM_E+="1.635 (41.5)";DIM_F+="1.48 (37.6)";DIM_G+="1.537 (39.0)";CABLE_RANGE+=".581 (14.8)<BR>&nbsp &nbsp &nbsp Maximum = .831 (21.1)"};
if((DASH_NUMBER=="22")){DIM_A+="1.313 - 18 UNEF";DIM_E+="1.760 (44.7)";DIM_F+="1.60 (40.6)";DIM_G+="1.633 (41.5)";CABLE_RANGE+=".644 (16.4)<BR>&nbsp &nbsp &nbsp Maximum = .956 (24.3)"};
if((DASH_NUMBER=="24")){DIM_A+="1.438 - 18 UNEF";DIM_E+="1.885 (47.9)";DIM_F+="1.73 (43.9)";DIM_G+="1.755 (44.6)";CABLE_RANGE+=".706 (17.9)<BR>&nbsp &nbsp &nbsp Maximum = 1.081 (27.5)"};
if((DASH_NUMBER=="28")){DIM_A+="1.750 - 18 UNS";DIM_E+="2.135 (54.2)";DIM_F+="1.88 (47.8)";DIM_G+="2.000 (50.8)";CABLE_RANGE+=".750 (19.1)<BR>&nbsp &nbsp &nbsp Maximum = 1.187 (30.1)"};
if((DASH_NUMBER=="32")){DIM_A+="2.000 - 18 UNS";DIM_E+="2.395 (60.8)";DIM_F+="2.13 (54.1)";DIM_G+="2.366 (60.1)";CABLE_RANGE+=".875 (22.2)<BR>&nbsp &nbsp &nbsp Maximum = 1.250 (31.8)"};
if((DASH_NUMBER=="36")){DIM_A+="2.250 - 16 UN";DIM_E+="2.635 (66.9)";DIM_F+="2.44 (62.0)";DIM_G+="2.476 (62.9)";CABLE_RANGE+=".938 (23.8)<BR>&nbsp &nbsp &nbsp Maximum = 1.375 (34.9)"};
if((DASH_NUMBER=="40")){DIM_A+="2.500 - 16 UN";DIM_E+="2.885 (73.3)";DIM_F+="2.63 (66.8)";DIM_G+="2.546 (64.7)";CABLE_RANGE+=".938 (23.8)<BR>&nbsp &nbsp &nbsp Maximum = 1.500 (38.1)"};
if((DASH_NUMBER=="44")){DIM_A+="2.750 - 16 UN";DIM_E+="3.135 (79.6)";DIM_F+="3.00 (76.2)";DIM_G+="2.840 (72.1)";CABLE_RANGE+="1.188 (30.2)<BR>&nbsp &nbsp &nbsp Maximum = 1.750 (44.5)"};
if((DASH_NUMBER=="48")){DIM_A+="3.000 - 16 UN";DIM_E+="3.385 (86.0)";DIM_F+="3.40 (86.4)";DIM_G+="3.324 (84.4)";CABLE_RANGE+="1.312 (33.3)<BR>&nbsp &nbsp &nbsp Maximum = 1.875 (47.6)"};
if((DASH_NUMBER=="61")){DIM_A+="1.500 - 18 UNEF";DIM_E+="n/a";DIM_F+="n/a";DIM_G+="1.755 (44.6)";CABLE_RANGE+=".706 (17.9)<BR>&nbsp &nbsp &nbsp Maximum = 1.081 (27.5)"};

	DIM_G+=" &#177 .020 (.5)";
	//-----------------------------------------------



	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>Dash Number = "+OPTION_1):("")
		
,(OPTION_2=="A")?("<BR>Material: Aluminum<BR>Finish: Black Anodize"):("")
,(OPTION_2=="N")?("<BR>Material: Aluminum<BR>Finish: Electroless Nickel"):("")
,(OPTION_2=="S")?("<BR>Material: 300 Series Steel<BR>Finish: Passivated "):("")
,(OPTION_2=="W")?("<BR>Material: Aluminum<BR>Finish: 500 Hour Cadium Olive Drab over Electroless Nickel"):("")
		
		,(OPTION_3=="S")?("<BR>Self-Locking"):("<BR>Non-Self-locking")
	);

	QwikCreateWindow.document.write("</TD><TD WIDTH=50%><FONT FACE='TAHOMA' SIZE=2>");

	QwikCreateWindow.document.write(DIM_A);
	if(OPTION_3=="S"){QwikCreateWindow.document.write(DIM_E,DIM_F);};
	if(OPTION_3!="S"){QwikCreateWindow.document.write("<BR>Dimension E and F only apply to Self-Locking Parts");};
	QwikCreateWindow.document.write(DIM_G,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;
}
// -->
