<!--
//  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 = "M24758";
var BASIC_PART     = "7";

var CATFILE_1="http://www.alvatek.com/qwikcreate/milspec/pdf/M24758-7.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("02","02");
o[i++]=new Option("03","03");
o[i++]=new Option("04","04");
o[i++]=new Option("05","05");
o[i++]=new Option("06","06");
o[i++]=new Option("08","08");
o[i++]=new Option("10","10");
o[i++]=new Option("12","12");
o[i++]=new Option("16","16");
o[i++]=new Option("20","20");
o[i++]=new Option("24","24");
	}

	if((WHAT_OPTS=="OPTION2")){o[i++]=new Option("Please Select Below","");
		o[i++]=new Option("Aluminum (A)","A");
		o[i++]=new Option("Brass (B)","B");
		o[i++]=new Option("CRES 316 (C)","C");
	}

	if((WHAT_OPTS=="OPTION3")){o[i++]=new Option("Please Select Below","");
o[i++]=new Option("A","A");
o[i++]=new Option("B","B");
o[i++]=new Option("C","C");
o[i++]=new Option("D","D");
o[i++]=new Option("E","E");
o[i++]=new Option("F","F");
o[i++]=new Option("G","G");
o[i++]=new Option("J","J");
o[i++]=new Option("K","K");
o[i++]=new Option("L","L");
o[i++]=new Option("M","M");
o[i++]=new Option("N","N");
o[i++]=new Option("P","P");
o[i++]=new Option("R","R");
o[i++]=new Option("S","S");
o[i++]=new Option("T","T");
o[i++]=new Option("V","V");
o[i++]=new Option("W","W");
o[i++]=new Option("X","X");
o[i++]=new Option("Y","Y");
o[i++]=new Option("Z","Z");
o[i++]=new Option("AA","AA");
o[i++]=new Option("BB","BB");
	}




	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;	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;	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_3)&&(OPTION_3!="NNN")){PARTNUMBER += "-" + OPTION_3;};
	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 2A = ";
	DIM_A1   ="<BR>A Diameter = ";
	DIM_B    ="<BR>B Dimension Max = ";
	DIM_C    ="<BR>C Dimension Max = ";
	DIM_D    ="<BR>D Dimension Max = ";
	DIM_E    ="<BR>E Dimension Max = ";
	DIM_F    ="<BR>F Dimension Max = ";
	DIM_G    ="<BR>G Dimension Max = ";
	DIM_H    ="<BR>H Dimension = ";
	DIM_J    ="<BR>J Dimension = ";
	DIM_K    ="<BR>K Dimension Max = ";
	DIM_L    ="<BR>L Cone Length = ";
	DIM_M    ="<BR>M Diameter Max = ";
	DIM_N    ="<BR>N Dimension Max = ";
	DIM_P    ="<BR>P Dimension Min = ";
	DIM_Q    ="<BR>Q Dimension Min = ";
	DIM_R    ="<BR>R Dimension Max = ";
	DIM_S    ="<BR>S Dimension Max = ";
	DIM_T    ="<BR>T Dimension Max = ";
	CABLE_RANGE="<BR>Cable Range Minimum = ";

	//-----------------------------------------------
	//-----------------------------------------------
	// --- ENVELOPE DIMENSIONS


if((OPTION_1=="02")){DIM_L+=".750 (19.1)";DIM_M+=".930 (23.6)"};
if((OPTION_1=="03")){DIM_L+=".750 (19.1)";DIM_M+="1.120 (28.4)"};
if((OPTION_1=="04")){DIM_L+=".750 (19.1)";DIM_M+="1.250 (31.8)"};
if((OPTION_1=="05")){DIM_L+=".750 (19.1)";DIM_M+="1.430 (36.3)"};
if((OPTION_1=="06")){DIM_L+=".750 (19.1)";DIM_M+="1.620 (41.1)"};
if((OPTION_1=="08")){DIM_L+="1.000 (25.4)";DIM_M+="1.810 (46.0)"};
if((OPTION_1=="10")){DIM_L+="1.000 (25.4)";DIM_M+="2.180 (55.4)"};
if((OPTION_1=="12")){DIM_L+="1.000 (25.4)";DIM_M+="2.560 (65.0)"};
if((OPTION_1=="16")){DIM_L+="1.000 (25.4)";DIM_M+="3.060 (77.7)"};
if((OPTION_1=="20")){DIM_L+="1.000 (25.4)";DIM_M+="3.680 (93.5)"};
if((OPTION_1=="24")){DIM_L+="1.000 (25.4)";DIM_M+="4.380(111.3)"};







if((OPTION_3=="A")){DIM_A+="0.875 - 12 UN";DIM_A1+=".406 (10.3)";DIM_H+="1.063 (27.0)";DIM_J+=".188 (4.8)";DIM_P+="1.031 (26.2)";DIM_Q+=".188 (4.8)"};
if((OPTION_3=="B")){DIM_A+="1.000 - 12 UN";DIM_A1+=".515 (13.1)";DIM_H+="1.063 (27.0)";DIM_J+=".188 (4.8)";DIM_P+="1.125 (28.6)";DIM_Q+=".188 (4.8)"};
if((OPTION_3=="C")){DIM_A+="1.125 - 12 UN";DIM_A1+=".640 (16.3)";DIM_H+="1.063 (27.0)";DIM_J+=".188 (4.8)";DIM_P+="1.250 (31.8)";DIM_Q+=".188 (4.8)"};
if((OPTION_3=="D")){DIM_A+="1.250 - 12 UN";DIM_A1+=".750 (19.1)";DIM_H+="1.063 (27.0)";DIM_J+=".188 (4.8)";DIM_P+="1.375 (34.9)";DIM_Q+=".188 (4.8)"};
if((OPTION_3=="E")){DIM_A+="1.250 - 12 UN";DIM_A1+=".812 (20.6)";DIM_H+="1.063 (27.0)";DIM_J+=".188 (4.8)";DIM_P+="1.375 (34.9)";DIM_Q+=".188 (4.8)"};
if((OPTION_3=="F")){DIM_A+="1.313- 12 UN";DIM_A1+=".843 (21.4)";DIM_H+="1.188 (30.2)";DIM_J+=".188 (4.8)";DIM_P+="1.438 (36.5)";DIM_Q+=".188 (4.8)"};
if((OPTION_3=="G")){DIM_A+="1.500 - 12 UN";DIM_A1+=".935 (23.7)";DIM_H+="1.188 (30.2)";DIM_J+=".188 (4.8)";DIM_P+="1.656 (42.1)";DIM_Q+=".188 (4.8)"};
if((OPTION_3=="J")){DIM_A+="1.625 - 12 UN";DIM_A1+="1.062 (27.0)";DIM_H+="1.188 (30.2)";DIM_J+=".188 (4.8)";DIM_P+="1.781 (45.2)";DIM_Q+=".188 (4.8)"};
if((OPTION_3=="K")){DIM_A+="1.750 - 12 UN";DIM_A1+="1.171 (29.7)";DIM_H+="1.500 (38.1)";DIM_J+=".188 (4.8)";DIM_P+="1.875 (47.6)";DIM_Q+=".188 (4.8)"};
if((OPTION_3=="L")){DIM_A+="1.813 - 12 UN";DIM_A1+="1.265 (32.1)";DIM_H+="1.500 (38.1)";DIM_J+=".188 (4.8)";DIM_P+="1.938 (49.2)";DIM_Q+=".188 (4.8)"};
if((OPTION_3=="M")){DIM_A+="2.000 - 12 UN";DIM_A1+="1.406 (35.7)";DIM_H+="1.500 (38.1)";DIM_J+=".250 (6.4)";DIM_P+="2.188 (55.6)";DIM_Q+=".188 (4.8)"};
if((OPTION_3=="N")){DIM_A+="2.063 - 12 UN";DIM_A1+="1.515 (38.5)";DIM_H+="1.563 (39.7)";DIM_J+=".250 (6.4)";DIM_P+="2.250 (57.2)";DIM_Q+=".188 (4.8)"};
if((OPTION_3=="P")){DIM_A+="2.188 - 12 UN";DIM_A1+="1.625 (41.3)";DIM_H+="1.563 (39.7)";DIM_J+=".250 (6.4)";DIM_P+="2.344 (59.5)";DIM_Q+=".188 (4.8)"};
if((OPTION_3=="R")){DIM_A+="2.313 - 12 UN";DIM_A1+="1.750 (44.5)";DIM_H+="1.563 (39.7)";DIM_J+=".250 (6.4)";DIM_P+="2.469 (62.7)";DIM_Q+=".188 (4.8)"};
if((OPTION_3=="S")){DIM_A+="2.688 - 12 UN";DIM_A1+="1.875 (47.6)";DIM_H+="2.188 (55.6)";DIM_J+=".313 (8.0)";DIM_P+="2.813 (71.5)";DIM_Q+=".250 (6.4)"};
if((OPTION_3=="T")){DIM_A+="2.875 - 12 UN";DIM_A1+="2.062 (52.4)";DIM_H+="2.188 (55.6)";DIM_J+=".313 (8.0)";DIM_P+="2.969 (75.4)";DIM_Q+=".250 (6.4)"};
if((OPTION_3=="V")){DIM_A+="3.000 - 12 UN";DIM_A1+="2.187 (55.5)";DIM_H+="2.188 (55.6)";DIM_J+=".313 (8.0)";DIM_P+="3.094 (78.6)";DIM_Q+=".250 (6.4)"};
if((OPTION_3=="W")){DIM_A+="3.125 - 12 UN";DIM_A1+="2.312 (58.7)";DIM_H+="2.188 (55.6)";DIM_J+=".313 (8.0)";DIM_P+="3.281 (83.3)";DIM_Q+=".250 (6.4)"};
if((OPTION_3=="X")){DIM_A+="3.250 - 12 UN";DIM_A1+="2.500 (63.5)";DIM_H+="2.188 (55.6)";DIM_J+=".313 (8.0)";DIM_P+="3.438 (87.3)";DIM_Q+=".250 (6.4)"};
if((OPTION_3=="Y")){DIM_A+="3.375 - 12 UN";DIM_A1+="2.609 (66.3)";DIM_H+="2.188 (55.6)";DIM_J+=".313 (8.0)";DIM_P+="3.563 (90.5)";DIM_Q+=".250 (6.4)"};
if((OPTION_3=="Z")){DIM_A+="3.563 - 12 UN";DIM_A1+="2.781 (70.6)";DIM_H+="2.188 (55.6)";DIM_J+=".313 (8.0)";DIM_P+="3.750 (95.3)";DIM_Q+=".250 (6.4)"};
if((OPTION_3=="AA")){DIM_A+="3.750 - 12 UN";DIM_A1+="2.875 (73.0)";DIM_H+="3.125 (79.4)";DIM_J+=".438 (11.1)";DIM_P+="3.875 (98.4)";DIM_Q+=".250 (6.4)"};
if((OPTION_3=="BB")){DIM_A+="4.000 - 12 UN";DIM_A1+="3.157 (80.2)";DIM_H+="3.125 (79.4)";DIM_J+=".438 (11.1)";DIM_P+="4.125(104.8)";DIM_Q+=".250 (6.4)"};



	DIM_H+=" &#177 .02 (.5)";
	DIM_J+=" &#177 .02 (.5)";
	DIM_Q+=" &#177 .02 (.5)";
	DIM_L+=" &#177 .06 (1.52)";
	//-----------------------------------------------



	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>Conduit Size Code = "+OPTION_1):("")
		,"<BR>Material Designator = ",(OPTION_2=="A")?("A, Aluminum"):(""),(OPTION_2=="B")?("B, Brass"):(""),(OPTION_2=="C")?("C, CRES 316"):("")
		,(OPTION_3)?("<BR>Stuffing Size Code = "+OPTION_3):("")
	);

	QwikCreateWindow.document.write("</TD><TD WIDTH=50%><FONT FACE='TAHOMA' SIZE=2>");

	QwikCreateWindow.document.write(DIM_A,DIM_A1,DIM_H,DIM_J,DIM_L,DIM_M,DIM_P,DIM_Q);

	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>The M24758/7 adapter couples MIL-S-24235/9 through MIL-S-24235/17 stuffing tubes to M24758/1 conduit.<br>Any combination of conduit and stuffing tube sizes may be ordered by identifying the appropriate conduit size and stuffing tube size in the part number configuration.")
//	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;
}
// -->
