	function Search_Click()
	{

			if (document.frmgiving.textfield.value	!="")
			{
				document.frmgiving.action="SearchResult.asp"
				document.frmgiving.submit()
			}
			else
			{
				return false
			}
	
	}


function isEmail(s,sbond)
		
				{
				   // there must be >= 1 character before @, so we
				   // start looking at character position 1
				   // (i.e. second character)
				   var i = 1;
				   var sLength = s.length;
 
				   // look for @
				   while ((i < sLength) && (s.charAt(i) != "@"))
				   { i++
				   }
				   if ((i >= sLength) || (s.charAt(i) != "@")) 
				   {
					  alert( "Invalid Email." );
					  sbond.focus();
				      return false;
				   }
				   else i += 2;
 
				   // look for .
				   while ((i < sLength) && (s.charAt(i) != "."))
				   { i++
				   }
 
				   // there must be at least one character after the .
				   if ((i >= sLength - 1) || (s.charAt(i) != ".")) 
				   {
					  alert( "Invalid Email." );
					  sbond.focus();
 					  //isEmail = false
 					  return false;
				   }
				   
					//alert("wow");
				   //else return true;
					
					return true;
				   
				   
					
				}
function openWindow(url) {
	  popupWin = window.open(url,'new_page', 'left=100,top=50,width=750,height=650,resizable=yes,maximazable=yes,scrollbars=yes')
	  }
function openWindow1(url) {
	  popupWin = window.open(url,'new_page1', 'resizable=yes,maximazable=yes,scroll=yes,,left=100,top=50,width=750,height=650,scrollbars=yes')
	  }
function openWindow2(url) {
	  popupWin = window.open(url,'new_page', 'left=100,top=50,width=750,height=650,resizable=yes,maximazable=yes,scrollbars=yes')
	  }

