// search functions
function Start(page) 
    {
     window.open(page,'_blank',"toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=400,height=400" );
    }

    self.onError = null;
    if(top.location != location) 
      { 
         top.location.href = location.href;
      }

    String.prototype.trim = function() {
	return this.replace(/^\s+|\s+$/g,"");
    }
    String.prototype.ltrim = function() {
	    return this.replace(/^\s+/,"");
    }
    String.prototype.rtrim = function() {
	    return this.replace(/\s+$/,"");
    }

   function isEmpty(s)
   {
      return ((s == null) || (s.length == 0))
   }
   
function Search1()
    {
     var p1=document.getElementById('txtSearch1');
        
     if(p1.value.trim()!="")
      {
//        document.form1.target="_blank"
//        document.form1.method='get';
//        document.form1.action = 'resultsGoogle.aspx?'
//		  document.form1.submit()
		window.open('resultsGoogleWeb.aspx?txtSearch1=' + p1.value.trim() + '','_blank'); 
      }
      else
        alert('Textbox cannot be blank!');
        return false;
  	}   
   
function Search2()
    {
     var p2=document.getElementById('txtSearch2');
        
     if(p2.value.trim()!="")
      {
//        document.form1.target="_blank"
//        document.form1.method='get';
//        document.form1.action = 'resultsGoogle.aspx?'
//		  document.form1.submit()
		window.open('resultsGoogle.aspx?txtSearch2=' + p2.value.trim() + '','_blank'); 
      }
      else
        alert('Textbox cannot be blank!');
        return false;
  	}
