function newwindow(url, w, h)
{
    var width = screen.availWidth*.8;
    var height = screen.availHeight*.7;
    if(w>0) width = w;
    if(h>0) height = h;
    var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    var windowFeatures = "width=" + width + ",height=" + height + ",status=0,resizable=1,scrollbars=1,toolbar=0,location=0,left=" + left + ",top=" + top + "screenX=" + left + ",screenY=" + top;
    myWindow = window.open(url, "subWind", windowFeatures); 
}
 function trim(value) {
    if(value==undefined) return '';
    value = value.replace(/^\s+/,'');
  value = value.replace(/\s+$/,'');
  return value;
}
function goto_url(url)
{
    alert(url);
    document.location.href=url; 
}