
function getWidth()
{
  var h = 1000;
  if (window.innerWidth)
  {
    h = window.innerWidth;
  } 
  else if (document.body.clientWidth) h = document.body.clientWidth;
  return parseInt(h/3 - 130);
}
document.write('<style type="text/css">select.form {width:' + getWidth() + 'px !important} input.form {width:' + (getWidth() -6) + 'px !important}</style>');