/***************************************************************
 * Copyright notice
 *
 *  (c) 2009 Vishnu M Bhatvadekar <vishnu.bhatvadekar@lelesys.com>
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is
 *  free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  The GNU General Public License can be found at
 *  http://www.gnu.org/copyleft/gpl.html.
 *
 *  This script is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  This copyright notice MUST APPEAR in all copies of the script!
 ***************************************************************/

/**
 * Plugin script common.js  for the 'armonea_search' extension.
 *
 * @author	Vishnu M Bhatvadekar <vishnu.bhatvadekar@lelesys.com>
 * @package	TYPO3
 * @subpackage	tx_armoneasearch
 */
function tx_armoneasearch_pi1checkVal()  {
    var val = document.getElementById('vrzk-snelkeuze').value;
    	if(val!='0'){
    		//window.open(val,'childWin','');
		window.location = val;
			return true;
		}else{
			return false;
		}
		
    }


function tx_armoneasearch_pi1getAjaxSHresult(str) {
	//alert(str);
	document.getElementById('loading').innerHTML = "<div class='vrz_list_loader'><img src='../typo3conf/ext/armonea_search/scripts/loading10.gif'> LOADING... </div>";
    setTimeout('Page.loadOut()',3000);
	tx_armoneasearch_pi1showResultFormXajax(xajax.getFormValues('voorzieninglist-sort'),str);
}
 
var Page = new Object();
Page.width;
Page.height;
Page.top;
 Page.loadOut = function (){
        document.getElementById('loading').innerHTML ='';        
}

