function openRow(openrowobject)
{
var object=openrowobject;
var temp=object.parentElement;
var table=temp.parentElement;
var id=object.xxrowid;
for (var i=0;i
0)
{
if (delimitter == ' ')
{
while (cartLines[i].indexOf(' ') > 0)
{
cartLines[i] = cartLines[i].replace(' ', ' ');
}
}
lineItems = cartLines[i].split(delimitter);
if (isNaN(qtyColNo))
{
qty = 1;
}
else
{
qty = parseInt(lineItems[qtyColNo - 1]);
}
partNo = lineItems[partColNo - 1];
// Strip off Quotations from the part number
partNo = partNo.replace(/"/g, '');
partNo = partNo.replace(/\*/g, '');
partNo = partNo.replace(/\./g, '');
partNo = partNo.replace(/\s+/g, '');
partsList = partsList + qty + ',' + partNo + splitter;
}
else
{
alert('The delimiter you specified does not exist in the file.');
return false;
}
}
break;
}
if (preview == 'Y' || fileType == 'EPC')
{
document.getElementById('oText1').value = partsList;
document.getElementById('oText1').fireEvent('onChange');
alert('Please review the Quantity/Parts Pair in the text area and click on Copy Into Order to see prices.');
}
else
{
document.getElementById('oText2').value = partsList;
document.getElementById('oText2').fireEvent('onChange');
document.getElementById('copyToOrder').fireEvent('onClick');
}
return true;
}
catch(e)
{
//e = 'ActiveX is not enabled in your browser. To enable ActiveX:\n';
//e = e + 'At the top of your browser, click on Tools, then Internet Options.\n';
//e = e + 'Go to the Security Tab and then click on the Custom Level Button.\n';
//e = e + 'Scroll down until you find the item \"Initialize and script ActiveX controls not marked as safe\"\n';
//e = e + 'and make sure it is set to \"Prompt\" and not "\Disable\".\n';
//e = e + 'Click on OK to exit out of Internet Options and try importing your file again.';
//alert(e);
e = 'ActiveX is not enabled in your browser. To enable ActiveX, click OK and follow the instructions on the next page.\n';
var input_box=confirm(e);
if (input_box==true)
{
window.open("/images/help/EnablingActiveX.htm");
}
}
}
}
function fireClickEvent(control)
{
if (document.all)
{
control.fireEvent('onclick');
}
else
{
var clickEvent = document.createEvent('MouseEvent');
clickEvent.initEvent('click', false, true);
control.dispatchEvent(clickEvent);
}
}
function getWindowHeight() {
var myWidth = 0, myHeight = 0;
if( typeof( window.innerWidth ) == 'number' ) {
//Non-IE
myWidth = window.innerWidth;
myHeight = window.innerHeight;
} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth;
myHeight = document.documentElement.clientHeight;
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
//IE 4 compatible
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
}
return myHeight;
}
function getTZDate()
{
var myDate = new Date();
var myYear = myDate.getFullYear();
var myMonth = myDate.getMonth();
var myDay = myDate.getDay();
var isDST = false; /* whether we are in Daylight Saving Time or not */
var timeZoneOffset = myDate.getTimezoneOffset() / 60;
var TZ;
var TZDate;
switch (myYear)
{
case 2007:
{
if (Date.parse(myDate) < Date.parse("March 11, 2007") || Date.parse(myDate) > Date.parse("November 4, 2007")){isDST = false;}
else {isDST = true;}
break;
}
case 2008:
{
if (Date.parse(myDate) < Date.parse("March 9, 2008") || Date.parse(myDate) > Date.parse("November 2, 2008")){isDST = false;}
else {isDST = true;}
break;
}
case 2009:
{
if (Date.parse(myDate) < Date.parse("March 8, 2009") || Date.parse(myDate) > Date.parse("November 1, 2009")){isDST = false;}
else {isDST = true;}
break;
}
case 2010:
{
if (Date.parse(myDate) < Date.parse("March 14, 2010") || Date.parse(myDate) > Date.parse("November 7, 2010")){isDST = false;}
else {isDST = true;}
break;
}
case 2011:
{
if (Date.parse(myDate) < Date.parse("March 13, 2011") || Date.parse(myDate) > Date.parse("November 6, 2011")){isDST = false;}
else {isDST = true;}
break;
}
case 2012:
{
if (Date.parse(myDate) < Date.parse("March 11, 2012") || Date.parse(myDate) > Date.parse("November 4, 2012")){isDST = false;}
else {isDST = true;}
break;
}
}
if (isDST)
{
switch (timeZoneOffset)
{
case 4:{TZ = "AST or EDT";break;}
case 5:{TZ = "CDT";break;}
case 6:{TZ = "MDT";break;}
case 7:{TZ = "PDT";break;}
}
}
else
{
switch (timeZoneOffset)
{
case 4:{TZ = "AST";break;}
case 5:{TZ = "EST";break;}
case 6:{TZ = "CST";break;}
case 7:{TZ = "MST";break;}
case 8:{TZ = "PST";break;}
}
}
// Do not add the time zone unless they ask for it
// TZDate = myDate.toLocaleString() + " (" + TZ + ")";
TZDate = myDate.toLocaleString();
return TZDate;
}
function disableSpclPrice()
{
var ind = document.getElementById('GRPNUM').selectedIndex;
var isDisabled;
var grptyp = document.getElementById('GRPNUM').options[ind].tag_GRPTYP;
if (grptyp == 'P')
{
isDisabled = true;
document.getElementById('validation').style.display = 'inline';
}
else
{
isDisabled = false;
document.getElementById('validation').style.display = 'none';
}
var elm = document.getElementById('SPCLST');
elm.disabled = isDisabled;
elm = document.getElementById('SPCPRC');
elm.disabled = isDisabled;
elm = document.getElementById('SPCCOR');
elm.disabled = isDisabled;
//elm = document.getElementById('SPCSPK');
//elm.disabled = isDisabled;
elm = document.getElementById('SPCBRN');
elm.disabled = isDisabled;
return true;
}
function selectAllChkbx()
{
var status;
var val;
var hiddenPart;
if (document.getElementById('slctAll').checked)
{
status = true;
val = 'Y';
}
else
{
status = false;
val = 'N';
}
for(var i=0; i" + stdNavPanelGetWaitHTML(elOrdNav, "/images/wam/loading_animation.gif", "", "", "", "") + "