/*
* Afhandeling zoekfunctie voor CMS gestuurde sites
* Author: Colin Myerscough
*/

function doSearch()
{
    if (document.getElementById('zoekquery').value.length > 2)
    {
    	document.getElementById('zoekform').action = '/zoeken.php';
    	document.getElementById('zoekform').submit();
    }
	else
    {
        alert('Zoekterm is te kort, minimaal 3 tekens nodig');
    }
}

function submitSearch()
{
    if (document.getElementById('zoekquery').value.length > 2)
    {
        document.getElementById('zoekform').action = '/zoeken.php';
         return true;
    } else
    {
        alert('Zoekterm is te kort, minimaal 3 tekens nodig');
        return false;
    }
}

function doSearch1()
{
    if (document.getElementById('zoekquery1').value.length > 2)
    {
    	document.getElementById('zoekform1').action = '/zoeken.php';
    	document.getElementById('zoekform1').submit();
    }
	else
    {
        alert('Zoekterm is te kort, minimaal 3 tekens nodig');
    }
}

function submitSearch1()
{
    if (document.getElementById('zoekquery1').value.length > 2)
    {
        document.getElementById('zoekform1').action = '/zoeken.php';
         return true;
    } else
    {
        alert('Zoekterm is te kort, minimaal 3 tekens nodig');
        return false;
    }
}

function printElement(strid)
{
	var prtContent = document.getElementById(strid);
	var WinPrint =
	window.open('','','left=0,top=0,width=1,height=1,t oolbar=0,scrollbars=0,status=0');
	WinPrint.document.write(prtContent.innerHTML);
	WinPrint.document.close();
	WinPrint.focus();
	WinPrint.print();
	WinPrint.close();
	prtContent.innerHTML=strOldOne;
}

$(document).ready(function(){
	$('#headerfoto div').cycle();
	$('#rotate').cycle();
	var fullsize = $(document).height();
	$('#box').height(fullsize);
	$('#left').height(fullsize);
	$('#leftmenu').height(fullsize - 299);
	$('#content').height(fullsize - 324);
	$('#contenthome').height(fullsize - 324);
});

