<!--
//  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 = "MS17349 & MS17350";
var BASIC_PART     = "";

var CATFILE_1="http://www.alvatek.com/qwikcreate/milspec/pdf/MS17349.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("Plug Cover","MS17350");
		o[i++]=new Option("Receptacle Cover","MS17349");
	}

	if((WHAT_OPTS=="OPTION2")){o[i++]=new Option("Please Select Below","");
o[i++]=new Option("Conductive","C");
o[i++]=new Option("Non-Conductive","N");
	}

	if((WHAT_OPTS=="OPTION3")){o[i++]=new Option("Please Select Below","");
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");
	}





	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;	PRODUCT_SERIES = 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;	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;	DASH_NUMBER = OPTION_3; }

	}
	PARTNUMBER = PRODUCT_SERIES + "-";
	if((OPTION_2)&&(OPTION_2!="NNN")){PARTNUMBER += OPTION_2;};
	if((OPTION_3)&&(OPTION_3!="NNN")){PARTNUMBER += OPTION_3;};
	if(OPTION_1=="MS17349"){PARTNUMBER += "A";};

	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 !!!!!!!!!!!! = ";
//	DIM_B    ="<BR>B Dimension Max = ";
//	DIM_C    ="<BR>C Dimension Max = ";
//	DIM_D    ="<BR>D Dimension Max = ";
	DIM_E    ="<BR>E Thread = ";
//	DIM_F    ="<BR>F Dimension Max = ";
	DIM_G    ="<BR>G Dimension Max = ";
	DIM_H    ="<BR>H Dimension Max = ";
	DIM_J    ="<BR>J Chain Length = ";
//	DIM_K    ="<BR>K Standard Length = ";
	DIM_L    ="<BR>L Dimension Min = ";
	DIM_M    ="<BR>M Diameter Min = ";
//	DIM_N    ="<BR>N Dimension Max = ";
//	DIM_P    ="<BR>P Dimension Max = ";
//	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((DASH_NUMBER=="12")){DIM_E+=".8750-0.1P-0.2L-DS";DIM_G+="1.094 (27.8)";DIM_H+=".765 (19.4)";DIM_J+="5.00 (127.0)";DIM_L+="1.016 (25.8)";DIM_M+=".150 (3.8)"};
if((DASH_NUMBER=="14")){DIM_E+="1.0000-0.1P-0.2L-DS";DIM_G+="1.219 (31.0)";DIM_H+=".765 (19.4)";DIM_J+="5.00 (127.0)";DIM_L+="1.141 (29.0)";DIM_M+=".150 (3.8)"};
if((DASH_NUMBER=="16")){DIM_E+="1.1250-0.1P-0.2L-DS";DIM_G+="1.344 (34.1)";DIM_H+=".980 (24.9)";DIM_J+="5.00 (127.0)";DIM_L+="1.266 (32.2)";DIM_M+=".150 (3.8)"};
if((DASH_NUMBER=="18")){DIM_E+="1.2500-0.1P-0.2L-DS";DIM_G+="1.469 (37.3)";DIM_H+=".980 (24.9)";DIM_J+="5.00 (127.0)";DIM_L+="1.391 (35.3)";DIM_M+=".177 (4.5)"};
if((DASH_NUMBER=="20")){DIM_E+="1.3750-0.1P-0.2L-DS";DIM_G+="1.562 (39.7)";DIM_H+=".980 (24.9)";DIM_J+="5.00 (127.0)";DIM_L+="1.516 (38.5)";DIM_M+=".177 (4.5)"};
if((DASH_NUMBER=="22")){DIM_E+="1.5000-0.1P-0.2L-DS";DIM_G+="1.688 (42.9)";DIM_H+=".980 (24.9)";DIM_J+="6.00 (152.4)";DIM_L+="1.641 (41.7)";DIM_M+=".177 (4.5)"};
if((DASH_NUMBER=="24")){DIM_E+="1.7500-0.1P-0.2L-DS";DIM_G+="1.938 (49.2)";DIM_H+=".980 (24.9)";DIM_J+="6.00 (152.4)";DIM_L+="1.891 (48.0)";DIM_M+=".177 (4.5)"};
if((DASH_NUMBER=="28")){DIM_E+="2.0000-0.1P-0.2L-DS";DIM_G+="2.219 (56.4)";DIM_H+=".980 (24.9)";DIM_J+="6.00 (152.4)";DIM_L+="2.141 (54.4)";DIM_M+=".177 (4.5)"};
if((DASH_NUMBER=="32")){DIM_E+="2.2500-0.1P-0.2L-DS";DIM_G+="2.469 (62.7)";DIM_H+=".980 (24.9)";DIM_J+="6.00 (152.4)";DIM_L+="2.391 (60.7)";DIM_M+=".199 (5.1)"};
if((DASH_NUMBER=="36")){DIM_E+="2.5000-0.1P-0.2L-DS";DIM_G+="2.719 (69.1)";DIM_H+=".980 (24.9)";DIM_J+="6.00 (152.4)";DIM_L+="2.641 (67.1)";DIM_M+=".199 (5.1)"};
if((DASH_NUMBER=="40")){DIM_E+="2.7500-0.1P-0.2L-DS";DIM_G+="2.969 (75.4)";DIM_H+=".980 (24.9)";DIM_J+="6.00 (152.4)";DIM_L+="2.891 (73.4)";DIM_M+=".199 (5.1)"};
if((DASH_NUMBER=="44")){DIM_E+="3.0000-0.1P-0.2L-DS";DIM_G+="3.219 (81.8)";DIM_H+=".980 (24.9)";DIM_J+="6.00 (152.4)";DIM_L+="3.141 (79.8)";DIM_M+=".199 (5.1)"};


//	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,".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
		,(OPTION_3)?("<BR>Dash Number = "+OPTION_3):("")
		,"<BR>Finish Option = "+OPTION_2
		,(OPTION_2=="C")?("<BR>Conductive"):("")
		,(OPTION_2=="N")?("<BR>Non-Conductive"):("")
	);

	QwikCreateWindow.document.write("</TD><TD WIDTH=50%><FONT FACE='TAHOMA' SIZE=2>");

	QwikCreateWindow.document.write(DIM_E);
	if(OPTION_1=="MS17349"){QwikCreateWindow.document.write(DIM_G,DIM_H,DIM_L);};
	if(OPTION_1=="MS3181"){QwikCreateWindow.document.write(DIM_H,DIM_J);};
	QwikCreateWindow.document.write(DIM_J,DIM_M);

	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;
}
// -->