//////////////////////////////////////////////////////////////////////////// TITLE:		DPI Quotation Redirection								//// PURPOSE:		Send recommended values to DPI Quote page				////																		//// FUNCTIONS:	quotereq - transfers recommendations to dpi_quote.php	////																		//// VERSION:		1.00													//// DATE:		June 28, 2003											////																		////				© Copyright Measurlogic 2003							////																		////////////////////////////////////////////////////////////////////////////// Executed when quote request button is pressedfunction quotereq(){var i1, i2, i3, i4, i5, o1c, o2c, o3c, byp25cvar v, i, p, t, vpar, ipar, ppar, tpar, appdesvar ie;    ie = false;    if(document.all)    {        ie = true;    }    	// point to 5 items in form for passing to dpi_quote	i1 = window.document.getElementById("item1");	i2 = window.document.getElementById("item2");	i3 = window.document.getElementById("item3");	i4 = window.document.getElementById("item4");	i5 = window.document.getElementById("item5");	appdes = window.document.getElementById("appdesvar");		// point to checkboxes on page	o1c = window.document.getElementById("out1c");	o2c = window.document.getElementById("out2c");	o3c = window.document.getElementById("out3c");	byp25c = window.document.getElementById("byp25c");		// point to 4 paramters entered	v = window.document.getElementById("V");	i = window.document.getElementById("I");	p = window.document.getElementById("PF");	t = window.document.getElementById("T");		// point to 4 parameters in form for passing to dpi_quote	vpar = window.document.getElementById("vpar");	ipar = window.document.getElementById("ipar");	ppar = window.document.getElementById("ppar");	tpar = window.document.getElementById("tpar");		// put user entries into the parameters for the quote	vpar.value = v.value;	ipar.value = i.value;	ppar.value = p.value;	tpar.value = t.value;		appdes = "DPI Selector ";	appdes =  appdes + "V=" + v.value + ", ";	appdes =  appdes + "I=" + i.value + ", ";	appdes =  appdes + "PF=" + p.value + ", ";	appdes =  appdes + "t=" + t.value + ", ";		// if lower item is checked, get the model	if (o1c.checked)	{		if(ie)		{		    i1.value = out1.innerText;		}		else		{		    i1.value = out1.textContent;		}		appdes =  appdes + i1.value + ", ";	}	// if recommended item is checked, get the model	if (o2c.checked)	{		if(ie)		{		    i2.value = out2.innerText;		}		else		{		    i2.value = out2.textContent;		}		appdes =  appdes + i2.value + ", ";	}	// if upper item is checked, get the model	if (o3c.checked)	{		if(ie)		{		    i3.value = out3.innerText;		}		else		{		    i3.value = out3.textContent;		}		appdes =  appdes + i3.value + ", ";	}	// if 25A bypass switch is checked 	if (byp25c.checked)	{		i4.value = "25A bypass switch";		appdes =  appdes + "25A bypass switch, ";	}	window.parent.location = "http://" + document.domain + "/contactus.html?" +  appdes;    //window.parent.location = "../../contactus.html?" +  appdes;}////////////////////////////////////////////////////////////////////////////				© Copyright Measurlogic 2003							////////////////////////////////////////////////////////////////////////////
