function submitOpeningForm(opening,id1)
{
 
  document.getElementById('openingvar').value=opening;
   document.getElementById('id1').value=id1;

  var formname=document.getElementById('openingform');
   formname.action="/fetchCareers/currentOpenings.php" 
 window.open("","openingWindow","width=700,height=250,scrollbars=1"); 
   formname.submit(); 
 
}