
function open_popup_window(url) {
	//args = 'toolbar=no,location=no,directories=no,status=no,menubar=no,' + 'scrollbars=no,resizable=yes,' +	'width=480,height=200,left=20,top=20';
	//result = window.open(url, "whatever", args);
	result = window.open(url);
}
function clearSearch(thisfield, defaulttext) {
	if (thisfield.value == defaulttext) {
		thisfield.value = "";
	}
}

function defaultSearch(thisfield, defaulttext) {
	if (thisfield.value == "") {
		thisfield.value = defaulttext;
	}
}

function hidediv() { 
if (document.getElementById) { // DOM3 = IE5, NS6 
document.getElementById('hideShow').style.visibility = 'hidden'; 
} 
else { 
if (document.layers) { // Netscape 4 
document.hideShow.visibility = 'hidden'; 
} 
else { // IE 4 
document.all.hideShow.style.visibility = 'hidden'; 
} 
} 
} 

function showdiv() { 
if (document.getElementById) { // DOM3 = IE5, NS6 
document.getElementById('hideShow').style.visibility = 'visible'; 
} 
else { 
if (document.layers) { // Netscape 4 
document.hideShow.visibility = 'visible'; 
} 
else { // IE 4 
document.all.hideShow.style.visibility = 'visible'; 
} 
} 
} 

function get_random()
{
    var ranNum= Math.floor(Math.random()*5);
    if (ranNum==4)
    {
    
    showdiv();

    }
    else
	{
	hidediv();
    }
}

function open_survey(url) {
	//args = 'toolbar=no,location=no,directories=no,status=no,menubar=no,' + 'scrollbars=no,resizable=yes,' +	'width=480,height=200,left=20,top=20';
	//result = window.open(url, "whatever", args);
	hidediv();
	result = window.open(url);
	
}

function toggle(div)
{

	if (div.parentNode.className == 'transactionboxOpen')
	{
		div.parentNode.className = 'transactionboxClosed';
	}
	else
	{
		div.parentNode.className = 'transactionboxOpen';
	}
}

