/* 
 This file was generated by Dashcode.  
 You may edit this file to customize your widget or web page 
 according to the license.txt file included in the project.
 */

//
// Function: load()
// Called by HTML body element's onload event when the web application is ready to start
//
function load()
{
    dashcode.setupParts();
}


function gotoSavePage(event)
{
    // ここにコードを挿入
    location.href = "http://www.techneet.jp/google_result.html?javascript:var%20links%20=%20document.getElementById('w_search').contentDocument.getElementById('gp-web-tab-results').contentDocument.getElementsByTagName('a');for(var%20i=0;%20i<links.length;%20i++){%20if(links.item(i).hasAttribute('class')%20&&%20links.item(i).getAttribute('class')%20==%20'l'%20){%20links.item(i).onclick%20=%20function(){%20var%20url%20=%20this.href.match(/(http.+)\'/)[1];%20var%20div%20=%20document.createElement('div');%20div.setAttribute('class','stock');%20div.innerHTML%20=%20url;%20div.style.display%20=%20'none';%20document.body.appendChild(div);%20alert(url%20+%20'%20is%20stocked.');%20this.href%20=%20'javascript:void(0);';%20return%20false;%20};%20}}var%20button%20=%20document.createElement(%20'input'%20);button.value%20=%20'Open';button.setAttribute('type',%20'button');button.onclick%20=%20function(){%20var%20divs%20=%20document.getElementsByTagName('div');%20for(var%20i=0;%20i<divs.length;%20i++){%20if(divs.item(i).hasAttribute('class')%20&&%20divs.item(i).getAttribute('class')%20==%20'stock'){%20var%20url%20=%20divs.item(i).innerHTML;%20window.open(url);%20}%20}%20for(var%20i=0;%20i<divs.length;%20i++){%20if(divs.item(i).hasAttribute('class')%20&&%20divs.item(i).getAttribute('class')%20==%20'stock'){%20document.body.removeChild(divs.item(i));%20}%20}%20return%20false;};document.getElementById('w_search').contentDocument.getElementById('b').parentNode.appendChild(button);%20alert(%20'Events%20are%20set.\nClick%20link%20you%20want%20to%20open%20later.\nAfter%20you%20stock,%20you%20can%20open%20links%20later%20at%20once.'%20);";
}

