function getdays()
{
	var urodz= new Date("9/6/2008 00:00:00");
	var now = new Date();
	var ile = urodz.getTime() - now.getTime();
	var days = Math.floor(ile / (1000 * 60 * 60 * 24));
	
	return days+1;
}

function gethours()
{
	var urodz= new Date("9/6/2008 00:00:00");
	var now = new Date();
	var ile = urodz.getTime() - now.getTime();
	var hours = Math.floor((ile % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
	
	return hours;
}

function getminiutes()
{
	var urodz= new Date("9/6/2008 00:00:00");
	var now = new Date();
	var ile = urodz.getTime() - now.getTime();
	var mins = Math.floor(((ile % (1000 * 60 * 60 * 24)) % (1000 * 60 * 60)) / (1000 * 60));
	
	return mins;
}

function surfto1(form)



{



var myindex1=form.baoxi.selectedIndex;



if (myindex1!=0)



{



var newwindow=form.baoxi.options[myindex1].value;



var msgwindow=window.open(newwindow,"windows2");



}



}



var VoteWindow = null;



function ViewVote(URL)



{



VoteWindow= OpenNewWindow(URL,"VoteW","resizable,scrollbars,dependent,width=300,height=382");



}



