﻿// JScript File

function GoogleSearch()
{
    var theForm = document.forms['aspnetForm'];
    if (!theForm) {
        theForm = document.aspnetForm;
    }
    theForm.action = "http://www.google.com/cse";
    
    alert(theForm.q.value);
    theForm.method = "get";
    theForm.submit();
}

function BeginRequestHandler(sender, args)
{
     // Get the postback element that is part of the args
     // parameter which is of type BeginRequestEventArgs class
     var elem = args.get_postBackElement();
         
     // Show the alert box
     //alert(elem.value + ' is processing...');
}

function OpenPopup(url,name){
  var ContextWindow = window.open(url,name,'width=700,height=600,resizable=0,scrollbars=1,toolbar=0,status=1');
  ContextWindow.focus();
}