<!--// Popup window script
 function openWin(page, windowName, windowFeatures) {
	 return window.open(page, windowName, windowFeatures);
 }
 
 
// 31/05/2007 Narendra

// The following function was added due to changes made in moreLocationsForm.jsp page
// That page now uses links instead of images for more locations. And the form submission is now 
// done by clicking on the link and not on the image. The function dynamically adds one Hidden field
// for link the clicked to submit the button and submits the form. The value of the Hidden field
// is of no significant as it is not used in the target resource.

function addParamAndSubmit(Link)
{
	if (document.getElementById) {
    var input = document.createElement('INPUT');
      if (document.all) { // what follows should work 
                          // with NN6 but doesn't in M14
        input.type = 'HIDDEN';
        input.name = Link.name + '.x';
        input.value = '10';
      }
      else if (document.getElementById) { // so here is the
                                          // NN6 workaround
        input.setAttribute('type', 'HIDDEN');
        input.setAttribute('name', Link.name + '.x');
        input.setAttribute('value', '10');
       }
    document.forms.moreloc.appendChild(input);
  }
   	document.forms.moreloc.submit();

}
//-->

