<!--
//  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 = "D38999";
var BASIC_PART     = "22";

var CATFILE_1="http://www.alvatek.com/qwikcreate/milspec/pdf/D38999-22.pdf";
//

//----------------------------------------------------------------------------------------------------------------------

//
function QwikCreate_StartUP() {
	Display_Layer("wait");
	QwikCreate_LoadUp();
}

function QwikCreate_LoadUp() {
	Fill_Selections("Main_Layer", "Main_Layer_Select_1", "START");

	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("9  (Shell Size Designator: A)","A");
o[i++]=new Option("11 (Shell Size Designator: B)","B");
o[i++]=new Option("13 (Shell Size Designator: C)","C");
o[i++]=new Option("15 (Shell Size Designator: D)","D");
o[i++]=new Option("17 (Shell Size Designator: E)","E");
o[i++]=new Option("19 (Shell Size Designator: F)","F");
o[i++]=new Option("21 (Shell Size Designator: G)","G");
o[i++]=new Option("23 (Shell Size Designator: H)","H");
o[i++]=new Option("25 (Shell Size Designator: J)","J");
}

	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; }

	}
	PARTNUMBER = PRODUCT_SERIES + "/" + BASIC_PART;
	if((OPTION_1)&&(OPTION_1!="NNN")){PARTNUMBER += OPTION_1 + "W";};

	if((OPTION_1)){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 = ";
	DIM_B    ="<BR>B Dimension = ";
	DIM_C    ="<BR>C Dimension = ";
	DIM_D    ="<BR>D Dimension = ";
	DIM_E    ="<BR>E Dimension = ";
	DIM_F    ="<BR>F Dimension = ";
	DIM_G    ="<BR>G Dimension = ";
	//-----------------------------------------------
	//-----------------------------------------------
	// --- ENVELOPE DIMENSIONS


if((SHELL_SIZE=="A")){SHELL_SIZE_REF+="9";DIM_A+=".625-.1P-3LTS";DIM_B+=".823 (20.9)";DIM_C+=".098 (2.5)";DIM_D+=".594 (15.09)";DIM_E+=".719 (18.26)";DIM_F+=".937 (23.8)";DIM_G+=".128 (3.25)"};
if((SHELL_SIZE=="B")){SHELL_SIZE_REF+="11";DIM_A+=".750-.1P-3LTS";DIM_B+=".823 (20.9)";DIM_C+=".098 (2.5)";DIM_D+=".719 (18.26)";DIM_E+=".812 (20.62)";DIM_F+="1.031 (26.2)";DIM_G+=".128 (3.25)"};
if((SHELL_SIZE=="C")){SHELL_SIZE_REF+="13";DIM_A+=".875-.1P-3LTS";DIM_B+=".823 (20.9)";DIM_C+=".098 (2.5)";DIM_D+=".812 (20.62)";DIM_E+=".906 (23.01)";DIM_F+="1.126 (28.6)";DIM_G+=".128 (3.25)"};
if((SHELL_SIZE=="D")){SHELL_SIZE_REF+="15";DIM_A+="1.000-.1P-3LTS";DIM_B+=".823 (20.9)";DIM_C+=".098 (2.5)";DIM_D+=".906 (23.01)";DIM_E+=".969 (24.61)";DIM_F+="1.220 (31.0)";DIM_G+=".128 (3.25)"};
if((SHELL_SIZE=="E")){SHELL_SIZE_REF+="17";DIM_A+="1.187-.1P-3LTS";DIM_B+=".823 (20.9)";DIM_C+=".098 (2.5)";DIM_D+=".969 (24.61)";DIM_E+="1.062 (26.97)";DIM_F+="1.311 (33.3)";DIM_G+=".128 (3.25)"};
if((SHELL_SIZE=="F")){SHELL_SIZE_REF+="19";DIM_A+="1.250-.1P-3LTS";DIM_B+=".823 (20.9)";DIM_C+=".098 (2.5)";DIM_D+="1.062 (26.97)";DIM_E+="1.156 (29.36)";DIM_F+="1.437 (36.5)";DIM_G+=".128 (3.25)"};
if((SHELL_SIZE=="G")){SHELL_SIZE_REF+="21";DIM_A+="1.375-.1P-3LTS";DIM_B+=".791 (20.1)";DIM_C+=".126 (3.2)";DIM_D+="1.156 (29.36)";DIM_E+="1.250 (31.75)";DIM_F+="1.563 (39.7)";DIM_G+=".128 (3.25)"};
if((SHELL_SIZE=="H")){SHELL_SIZE_REF+="23";DIM_A+="1.500-.1P-3LTS";DIM_B+=".791 (20.1)";DIM_C+=".126 (3.2)";DIM_D+="1.250 (31.75)";DIM_E+="1.375 (34.93)";DIM_F+="1.689 (42.9)";DIM_G+=".154 (3.91)"};
if((SHELL_SIZE=="J")){SHELL_SIZE_REF+="25";DIM_A+="1.625-.1P-3LTS";DIM_B+=".791 (20.1)";DIM_C+=".126 (3.2)";DIM_D+="1.375 (34.93)";DIM_E+="1.500 (38.10)";DIM_F+="1.811 (46.0)";DIM_G+=".154 (3.91)"};


	DIM_G+=" &#177 .008 (.2)";
	DIM_C+=" &#177 .012 (.3)";
	DIM_F+=" &#177 .012 (.3)";
	DIM_B+=" [+.020 (.5); -.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, SHELL_SIZE_REF
		,(OPTION_1)?("<BR>Shell Size Designator= "+OPTION_1):(""),"<BR>Class Per Spec. W<BR>Finish: Cadmium Olive Drab over Electroless Nickel"
	);

	QwikCreateWindow.document.write("</TD><TD WIDTH=50%><FONT FACE='TAHOMA' SIZE=2>");

	QwikCreateWindow.document.write(DIM_A,DIM_B,DIM_C,DIM_D,DIM_E,DIM_F,DIM_G);

	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>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;
}
// -->
