var accreq_msg001 = "Enter a value for the preferred method of contactf ";
var accreq_msg002 = "your company name ";
var accreq_msg003 = "your phone number ";
var accreq_msg004 = "your address ";
var accreq_msg005 = "your city ";
var accreq_msg006 = "your state/province ";
var accreq_msg007 = "your post code ";
var accreq_msg008 = "the account contact name ";
var accreq_msg009 = "the account contact phone number ";
var accreq_msg010 = "the account contact method ";
var accreq_msg011 = "the billing contact name ";
var accreq_msg012 = "the billing address ";
var accreq_msg013 = "the billing city ";
var accreq_msg014 = "the billing state/province ";
var accreq_msg015 = "the billing post code ";
var accreq_msg016 = "the account contact email address ";
var accreq_msg017 = "The account contact fax field must be entered because it is specified as ";
var accreq_msg018 = "The account contact email field must be entered because it is specified as ";

var binvoi_msg001 = "Sender's Company Name "; //modified
var binvoi_msg002 = "Sender's Address1 "; //modified
var binvoi_msg003 = "Sender's City "; //modified
var binvoi_msg004 = "Sender's Post/Zip Code "; //modified
var binvoi_msg005 = "Sender's Country "; //modified
var binvoi_msg006 = "Sender's Name "; //modified
var binvoi_msg007 = "Receiver's Address1 ";
var binvoi_msg008 = "Receiver's City ";
var binvoi_msg009 = "Receiver's Country ";
var binvoi_msg010 = "Receiver's Post/Zip Code ";
var binvoi_msg011 = "Invoice Billing Address1 ";
var binvoi_msg012 = "Invoice Billing City ";
var binvoi_msg013 = "Invoice Billing State/Prov/Ctr ";
var binvoi_msg014 = "Invoice Billing Post/Zip Code ";
var binvoi_msg015 = "Item List ";
var binvoi_msg016 = "Quantity of Item ";
var binvoi_msg017 = "Description of Item ";
var binvoi_msg018 = "Unit Value Of Item ";
var binvoi_msg019 = "Country Of Manufacture ";
var binvoi_msg0120 = "Account Number ";

var serqueindex_msg001 = "Origin Postcode ";
var serqueindex_msg002 = "Destination Postcode ";

var jsp_msg001 = "View time definite delivery service information  ";
var jsp_msg002 = "View time definite delivery service descriptions ";

var Dropoffind_msg001 = "your country ";
var Dropoffind_msg002 = "your state/county ";
var Dropoffind_msg003 = "your postcode/zip ";

var persind_msg001 = "your email address ";
var persind_msg002 = "your location ";
var persind_msg003 = "your preferred language ";
var persind_msg004 = "your account number ";

var comm_msg001 = "Problems with form ";
var comm_msg002 = "Conversion Error ";
var comm_msg003 = "Number Error ";
var comm_msg004 = "Input Error ";
var comm_msg005 = "List ";
var comm_msg006 = "Invalid Inputs ";
var comm_msg007 = "Quantity ";
var comm_msg008 = "Unit Value ";
var comm_msg009 = "blank ";
var comm_msg010 = "Total Shipment Gross Weight"
var comm_msg011 = "No Item Selected ";
var comm_msg012 = "Limit Exceeded ";
var comm_msg013 = "Error in Input ";
var comm_msg014 = "Airwaybill number ";
var comm_msg015 = "The following form elements should be completed in order to submit the form. ";
var comm_msg016 = "Invalid Airwaybill Number ";
var comm_msg017 = "- this has been corrected to ";
var comm_msg018 = "Airwaybill numbers ";
var comm_msg019 = "Please correct or remove  ";
var comm_msg020 = "these Airwaybill numbers ";
var comm_msg021 = "this Airwaybill number ";
var comm_msg022 = "Invalid Postcode Format(s) ";
var comm_msg023 = "The form element(s) below contain invalid DHL Airwaybill(s) ";
var comm_msg024 = "Invalid DHL Airwaybill ";
var comm_msg025 = "Empty Mandatory Field(s) ";
var comm_msg026 = "The following field(s) are mandatory and should have suitable entries. ";
var comm_msg027 = "Please select a country. ";
var comm_msg028 = "a city/town ";
var comm_msg029 = "a province/State. ";
var comm_msg030 = "The form element(s) are not completely filled .Please do any one of the following: ";
var comm_msg031 = "The form element(s) below do not match any of the valid postcode formats for this country. ";
var comm_msg032 = "your name ";
var comm_msg033 = "a valid email address. Make sure it has a \"@\" symbol, contains full points rather than commas, and contains no spaces. ";
var comm_msg034 = "a valid DHL account number. ";
var comm_msg035 = "Customer comments are automatically routed to the appropriate country. Please make sure you have selected the correct country, or your comment may not reach the department which can best respond to it. ";
var comm_msg036 = "In order to ensure your comment reaches the correct department, we require you to select a comment type. ";
var comm_msg037 = "We did not detect any content in your comment. Please enter some. ";
var comm_msg038 = "Missing Information ";
var comm_msg039 = "Please enter ";
var comm_msg040 = "Please use one of the following formats ";
var comm_msg041 = "a Number ";
var comm_msg042 = "Greater than 0 ";
var comm_msg043 = "correct Airwaybill number ";
var comm_msg044 = "Please use the following format(s) ";
var comm_msg045 = "contains characters ";
var comm_msg046 = "Please enter numeric ";
var comm_msg047 = "Errors with form ";
var comm_msg048 = "Please correct these element(s) ";
var comm_msg049 = "Please correct these elements ";
var comm_msg050 = "is not a correct number  ";
var comm_msg051 = "No Recipient's Address ";
var comm_msg052 = "Invalid Closing Time ";
var comm_msg053 = "Invalid Pickup Date ";
var comm_msg054 = "Please give a valid time after which the shipment cannot be picked up.  For example '18:00'. ";

var clear_msg001 = "the Country Name. ";
var clear_msg002 = "a zip. ";
var clear_msg003 = "a City. ";
var clear_msg004 = "a State. ";

var convert_msg001 = "Please Choose a Conversion ";

var invoice_msg001 = "is not a number  ";
var invoice_msg002 = "Maximum 10 items can be added ";
var invoice_msg003 = "is not a 10-digit number. ";
var invoice_msg004 = "is not valid. ";
var invoice_msg005 = "Select the item you want to replace ";
var invoice_msg006 = "Maximum 40 characters of Note is allowed, hence surplus characters are discarded ";
var invoice_msg007 = "Maximum 7 is allowed before decimal ";
var invoice_msg008 = "Only three are allowed after decimal place. ";

var tracking_msg001 = "You have not entered any Airwaybill numbers. ";
var tracking_msg002 = "up to 10 Airwaybill numbers. ";
var tracking_msg003 = "Airwaybill numbers should be an unbroken string of 10 digits. ";
var tracking_msg004 = "is not a valid airwaybill number ";
var tracking_msg005 = "are not a valid airwaybill numbers ";
var tracking_msg006 = "No Airwaybills ";
var tracking_msg007 = "Please select at least one airwaybill number. ";
var tracking_msg008 = "Too Many Airwaybills ";
var tracking_msg009 = "10 or fewer airwaybill numbers. Each airwaybill number should be 10 digits long, please use a space or Enter to separate them. ";
var tracking_msg010 = "has been split into 3 groups of digits. ";
var tracking_msg011 = "is not a 10 digit number ";
var tracking_msg012 = "are not 10 digit numbers ";
var tracking_msg013 = "contain characters ";
var tracking_msg014 = "No Information Provided ";
var tracking_msg015 = "atleast one of E-Mail , Mobile Number or Pager Number. ";
var tracking_msg016 = "No Airwaybill numbers selected ";
var tracking_msg017 = "There are no Airwaybills to track ";
var tracking_msg018 = "No Email Address ";
var tracking_msg019 = "Please supply your email address. Without it we cannot contact you. ";
var tracking_msg020 = "Commas in Email Address ";
var tracking_msg021 = "Your email address contains commas which are invalid. Compuserve users should change these to periods '.' ";
var tracking_msg022 = "Invalid Email Address ";
var tracking_msg023 = "Your email address is invalid. You must supply your complete address including the '@' symbol and full domain (Eg. kibo@aol.com) ";
var tracking_msg024 = "Spaces in Email Address ";
var tracking_msg025 = "Your email address contains blank spaces. This is incorrect and must be changed. ";

var postcode_msg001 = "The postcode you have entered does not match any of the formats for this page. ";

var services_msg001 = "an origin location. ";
var services_msg002 = "a destination location. ";
var services_msg003 = "a product. ";
var services_msg004 = "a weight greater than  ";
var services_msg005 = "The actual weight value is invalid, it has been changed to the minimum weight of  ";
var services_msg006 = "for a DHL shipment. ";

var validAcc_msg001 = "The form element(s) below contain invalid DHL account numbers ";
var validAcc_msg002 = "Invalid DHL Account Numbers ";
var validAcc_msg003 = "You have entered an invalid postcode format ";

var suppliesord_msg001 = "Invalid Account Number ";

var validEmail_msg001 = "The form element(s) below contain invalid email addresses. ";
var validEmail_msg002 = "Invalid Email Address(es) ";

var validForm_msg001 = "a zip. Or ";

var converter_msg001 = "Insufficient Data ";
var converter_msg002 = "all the details needed to do a currency conversion. ";
var converter_msg003 = "Value Too Large ";
var converter_msg004 = "Please limit the value to be converted to numbers less than 10000000000 ";
var converter_msg005 = "Invalid Amount ";
var converter_msg006 = "Valid characters ";
var converter_msg007 = "Insufficient Currency Data ";
var converter_msg008 = "Currency conversion rate for the country entered is unavailable ";


var volweight_msg001 = "Zero is not a valid dimension when any of the other dimensions are greater than zero. ";
var volweight_msg002 = "Length ";
var volweight_msg003 = "Width ";
var volweight_msg004 = "Height ";
var volweight_msg005 = "Weight ";
var volweight_msg006 = "Actual weight can not exceed 9999.9 Kg. ";
var volweight_msg007 = "You can enter only one decimal in the actual weight field ";
var volweight_msg008 = "entered is not a valid number  ";

var date_msg001 = "בוקר טוב ";
var date_msg002 = "צהריים  טובים ";
var date_msg003 = "ערב טוב ";
var date_msg004 = "The form element(s) below do not match any of the valid postcode formats for this page. ";
var date_msg005 = "Good Morning ";
var date_msg006 = "Good Afternoon ";
var date_msg007 = "Good Evening ";

var supplierCode_msg001 = "No Account Number ";
var supplierCode_msg002 = "No Company Name ";
var supplierCode_msg003 = "No Name ";
var supplierCode_msg004 = "Extension without Phone Number ";
var supplierCode_msg005 = "You have entered an extension number without a phone number in ";
var supplierCode_msg006 = "your details. ";
var supplierCode_msg007 = "the recipient's details. ";
var supplierCode_msg008 = "Please either specify a telephone number or remove the extension. ";
var supplierCode_msg009 = "No Contact Name ";
var supplierCode_msg010 = "the recipient's name. ";
var supplierCode_msg011 = "the recipient's address. ";
var supplierCode_msg012 = "the recipient's post code. ";
var supplierCode_msg013 = "Invalid Special Instructions ";
var supplierCode_msg014 = "Please limit your special instructions to 256 characters of text. ";
var supplierCode_msg015 = "No Supplies Selected ";
var supplierCode_msg016 = "Please select at least one set of supplies. ";

var shipperRef_msg001 = "The dates you have entered do not specify a valid date range. ";
var shipperRef_msg002 = "Please correct these dates. ";
var shipperRef_msg003 = "shipper reference number. ";

var pickup_msg001 = "No Pickup Date ";
var pickup_msg002 = "You must give a date when you wish the shipment to be picked up. ";
var pickup_msg003 = "You must give a valid date when you wish the shipment to be picked up. ";
var pickup_msg004 = "Pickup Date in Past ";
var pickup_msg005 = "You must give a date in the future when you wish the shipment to be picked up. ";
var pickup_msg006 = "No Sender's Name ";
var pickup_msg007 = "the name of the sender. ";
var pickup_msg008 = "No Sender's Address ";
var pickup_msg009 = "the sender's address. ";
var pickup_msg010 = "No Sender's Postcode ";
var pickup_msg011 = "the sender's postal or zip code. ";
var pickup_msg012 = "No Sender's Contact Method ";
var pickup_msg013 = "the sender's contact method (Phone/Fax/Telex). ";
var pickup_msg014 = "No Sender's Contact Number ";
var pickup_msg015 = "the sender's contact Number. ";
var pickup_msg016 = "the recipient's postcode, city and country. ";
var pickup_msg017 = "No Number of Pieces ";
var pickup_msg018 = "the number of pieces you wish to ship. ";
var pickup_msg019 = "No Weight ";
var pickup_msg020 = "the wieght of the shipment in kilograms. ";
var pickup_msg021 = "No Shipment Ready ";
var pickup_msg022 = "You must give time when the shipment will be ready to pick up. ";
var pickup_msg023 = "Invalid Shipment Ready ";
var pickup_msg024 = "Please give a valid time when the shipment will be ready to pick up. ";
var pickup_msg025 = "No Closing Time ";
var pickup_msg026 = "You must give a time after which the shipment cannot be picked up. ";
var pickup_msg027 = "Invalid Time ";
var pickup_msg028 = "Closing time can't be less than shipment ready time ";
var pickup_msg029 = "No Description ";
var pickup_msg030 = "You must give a detailed description of the shipment for customs purposes. ";
var pickup_msg031 = "a valid date in the input box ";
var pickup_msg032 = "Valid dates have one of the forms below ";
var pickup_msg033 = "a valid month in the date box ";


/*===================New Added =============================*/

var pickup_msg034 = "Invalid No.of pieces ";
var pickup_msg035 = "Invalid pickup dimensions/weight. ";
var pickup_msg036 = "Invalid Number ";
var pickup_msg037 = "Invalid Phone Number ";
var pickup_msg038 = "sender's account number ";
var pickup_msg039 = "sender's name ";
var pickup_msg040 = "sender's country ";
var pickup_msg041 = "pickup dimensions/weight ";
var pickup_msg042 = "description ";
var pickup_msg043 = "declared value ";
var pickup_msg044 = "insurance value ";
var pickup_msg045 = "date of pickup ";
var pickup_msg046 = "shipment ready time ";
var pickup_msg047 = "company closing time ";
var pickup_msg048 = "Minimum one piece is allowed,hence it has been changed to  ";
var pickup_msg049 = "Atleast enter recipient's postcode, city or country. ";
var pickup_msg050 = "Shippment Insurance Value ";
var pickup_msg051 = "not empty. ";
var pickup_msg052 = "should empty. ";



var supplierCode_msg017 = "your extention number ";
var supplierCode_msg018 = " your fax number ";
var supplierCode_msg019 = "recipient's phone number ";
var supplierCode_msg020 = "recipient's extention number ";
var supplierCode_msg021 = "the recipient's city ";

var binvoi_msg020 = "Select the item you want to delete ";
var binvoi_msg021 = "Sender's Contact"; // new
var binvoi_msg022 = "Sender's Phone no."; // new
var binvoi_msg023 = "General Notes."; // new
var binvoi_msg024 = "Receiver's Company Name "; //new
var binvoi_msg025 = "Receiver's Contact "; //new
var binvoi_msg026 = "Others "; //new
var binvoi_msg027 = "Sender's Fax no. "; //new
var binvoi_msg028 = "Billing Phone no. "; //new
var binvoi_msg029 = "Sender's Fax no. "; //new
var binvoi_msg030 = "Receiver's Phone no. "; //new
var binvoi_msg031 = "Receiver's Fax no. "; //new
var binvoi_msg032 = "You haven't added any item to the list."; //new
var binvoi_msg033 = "Total Shipment Pieces";
var binvoi_msg034 = "Delivery Duty Unpaid - DDU";
var binvoi_msg035 = "Delivery Duty Paid - DDP";
var binvoi_msg036 = "Ex Works - EXW";
var binvoi_msg037 = "Carriage Paid To - CPT";
var binvoi_msg038 = "Carriage and Insurance Paid - CIP";
var binvoi_msg039 = "Delivered at frontier - DAF";
var binvoi_msg040 = "Free carrier - FCA";
var binvoi_msg041 = "Cost, Insurance & Freight - CIF";
var binvoi_msg042 = "Free On Board - FOB";


var comm_msg055 = "No Characters Please ";
var comm_msg056 = "have a zero value. "; 
var comm_msg058 = "origin country ";
var comm_msg059 = "destination country ";
var comm_msg060 = "valid phone/fax number. ";
var comm_msg061 = "Repeated ";
var comm_msg062 = "not allowed. ";
var comm_msg063 = "The format of time is wrong, Please enter in \"HH:MM\" format ";
var comm_msg064 = "time entered can't be zero. ";
var comm_msg065 = "Invalid extension number.Only numeric values allowed. ";
var comm_msg066 = "a valid year in the date box(must be in yy/yyyy format) "; var comm_msg067 = "Pickup date can't less than current date. ";
var comm_msg068 = "your mobile no.";
var comm_msg069 = "your pager no.";
var comm_msg070 = "Type of coment ";
var comm_msg071 = "Only english characters allowed as input data.";
var comm_msg072 = "Duplicate Airwaybill Number";
var comm_msg073 = "Entered number greater than max. length "
var comm_msg074 = "Number of chars exceeding limit. "
var comm_msg075 = "No Destination Details ";

var shipperRef_msg004 = "Invalid From Date ";
var shipperRef_msg005 = "Invalid To Date ";
var shipperRef_msg006 = "from date ";
var shipperRef_msg007 = "to date ";
var shipperRef_msg008 = "Date range for shipment can't exceed 120 days.";
var shipperRef_msg009 = "Date can't be more than today's date.";

var tracking_msg026 = "Zero values are not acceptable for Airwaybill Numbers. ";
var tracking_msg027 = "Duplicate values are not acceptable for Airwaybill Numbers. ";
var tracking_msg028 = "Email Address or Mobile Number or Pager Number";

var pickup_msg050 = "Shippment Insurance Value ";
var pickup_msg051 = "not empty. ";
var pickup_msg052 = "should empty. ";
var pickup_msg053 = "Invalid Total Gross Weight Value";
var converter_msg009 = "Value to convert";
var converter_msg010 = "convert from"
var converter_msg011 = "convert to";
var comm_msg076 = "You can enter maximum 255 letters including spaces, Please remove extra ones.";
var binvoi_msg043 = "Reason for Export";
var binvoi_msg044 = "Unit Weight of Item";
var binvoi_msg045 = "Set Default Country Of Origin";
var binvoi_msg046 = "Sender's Tax ID/VAT/EIN#";
var binvoi_msg047 = "Invoice Number";
var binvoi_msg048 = "Total Gross Weight is not a Number";
var binvoi_msg049 = "Total Gross Weight less than Total Net Weight";
/* $Header: dhlAlert.js,v 1.11 2003/03/17 23:23:50 salims Exp $             

   $Log:	dhlAlert.js,v $
#  Revision 1.11  2003/03/17  23:23:50  23:23:50  salims ()
#  "OK" is replaced by "Close".
#  
#  Revision 1.10  2002/10/31  23:36:58  23:36:58  samirh ()
#  change in heading class as per style guide.
#  
#  Revision 1.7  2002/10/22  14:15:06  14:15:06  hskocher ()
#  Now css will be language specific.
#  
#  Revision 1.6  2002/09/27  13:33:26  13:33:26  samirh ()
#  *** empty log message ***
#  
#  Revision 1.5  2002/09/25  15:07:13  15:07:13  priyan (Priya_nupoor)
#   multilingual changes 
#  
#  Revision 1.4  2002/09/19  22:57:53  22:57:53  salims ()
#  Enter key is trapped.
#  
#  Revision 1.1  2002/05/17  14:03:11  14:03:11  nikhila ()
#  Initial revision
#   
*/

var def_dhlAlert="1.0";
var defaultWidth = 300;     // Default width of window
var defaultHeight = 200;    // Default height of window
var maxHeight = screen.availHeight / 2; // Maximum height of window
var win;

if (navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion) >= 4)
{
  var nn4 = true
}
if (navigator.appName.indexOf("Explorer") >= 0 && parseInt(navigator.appVersion) >= 4)
{
  var ie4 = true;
}

if( typeof(def_validateForm)!= "undefined" )
{
  alertMethod = "dhlAlert";
  alertMIME   = "html";
}

function keyPress(d)
{
    key = nn4 ? d.which : win.event.keyCode
    if( key == 13 )
    {
        winClose();
    }
}

function winClose(selfRef)
{
//  alert(win);
  if( typeof( win ) == 'object' && !win.closed )
  {
    win.close();
  }
  else if (typeof(selfRef) == 'object')
  {
    selfRef.close();
  }
  return true;
}

function dhlAlert( name, text, width, height )
{
  winClose();

  if( typeof( width ) == "undefined" )
  {
    width = defaultWidth;
  }
  if( typeof( height ) == "undefined" )
  {
    height = defaultHeight;
  }
  if( height > maxHeight )
  {
    height = maxHeight;
  }
  win = open( "", "dhl_alert", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=" + width + ",height=" + height );
  win.document.write( '<html>\n' +
    '<head>\n' +
    '  <title>' + name + '</title>\n' +
    '  <link rel="stylesheet" type="text/css" href="/' + ctryCode + '/' + langCode + '/html/style/generalPopup.css" />\n' +
    '</head>\n' +
    '<body marginwidth="0" marginheight="0" margintop="0" marginleft="0">\n' +
    '<table border="0" cellpadding="6" width="100%">\n' +
    '<tr>\n' +
    '  <td height="16" class="helpHeading">' + name + '</td>\n' +
    '</tr>\n' +
    '</table>\n' +
    '<table border="0" cellpadding="6" width="100%" height="95%">\n' +
    '<tr>\n' +
    '  <td valign="top">' + text + '</td>\n' +
    '</tr>\n' +
    '<tr>\n' +
    '  <td align="center" valign="bottom" height="1%"><a href="javascript:opener.winClose(this)">Close</a></td>\n' +
    '</tr>\n' +
    '</table>\n' +
    '</body>\n' +
    '</html>' );
if (nn4 && typeof( win ) == 'object' && !win.closed )
{
    win.captureEvents(Event.KEYDOWN);
    win.onkeydown = keyPress;
}
else if (ie4 && typeof( win ) == 'object' && !win.closed )
{
  win.document.onkeydown = keyPress;
}
  win.document.close();
  win.focus();
  return win;
}