<!--
var g_intEngine = 1;

function Search(strSearchVal)
{
    // www.photosource.com
    if (g_intEngine == 1)
    {
        strURI = ("http://www.photosource.com/cgi-bin/ksearch/ksearch.cgi?terms="
                  + strSearchVal);
    }

    // PhotoSourceBank
    else if (g_intEngine == 2)
    {
        strURI = ("http://www.photosourcebook.com/search/search.php?keywords="
                  + strSearchVal);
    }

    // Cracker Barrel
    else if (g_intEngine == 3)
    {
        strURI = ("http://www.photosource.com/cgi-bin/board/ksearch.cgi?terms="
                  + strSearchVal);
    }

    // PhotoStockNotes
    else if (g_intEngine == 4)
    {
        strURI = ("http://www.sellphotos.com/cgi-bin/ksearch/ksearch.cgi?terms="
                  + strSearchVal);
    }

    // PhotoAIM
    else if (g_intEngine == 5)
    {
        strURI = ("http://www.photosource.com/cgi-bin/photoaim/ksearch.cgi?terms="
                  + strSearchVal);
    }

    // Stock Photo 101
    else if (g_intEngine == 6)
    {
        strURI = ("http://www.photosource.com/cgi-bin/101/ksearch.cgi?terms="
                  + strSearchVal);
    }

    //PhotoSourceFolio
    else if (g_intEngine ==7)
    {
        strURI = ("http://search.atomz.com/search/?sp-q=" + strSearchVal
                   +"&sp-a=00071e7f-sp00000000");
    }

    else
    {
        alert("Please set search engine");
        strURI = "";
        return false;
    }
    if (strURI != "") {
        window.open(strURI,"_top");
    }
    return true;
}

function OnRadioClick(num) {
    g_intEngine = num;
    return true;
}

function OnSubmit(Sendfrm) {
    if (g_intEngine != "") {
        Search(Sendfrm.txtWord.value);
    }
    return false;
}
<!---->


