// JavaScript Document
function SubmitVote(f)
{
	open('', f.name, 'scrollbars=no,resizeable=no,locationbar=no,width=500,height=350,left='.concat((screen.width - 500)/2).concat(',top=').concat((screen.height - 350)/2));
	f.action = 'voting/result.asp';
	f.submit();
}

function ShowVote(VoteID)
{
	var sURL;
	sURL = 'voting/result.asp?txtVoteID='+VoteID;
	open(sURL, 'Poll_Show', 'scrollbars=no,resizeable=no,locationbar=no,width=500,height=350,left='.concat((screen.width - 500)/2).concat(',top=').concat((screen.height - 350)/2));
}

function SubmitEmail(f)
{
	if (checkNewsletter(f)){
		open('', f.name, 'scrollbars=no,resizeable=no,locationbar=no,width=500,height=250,left='.concat((screen.width - 500)/2).concat(',top=').concat((screen.height - 250)/2));
	f.action = 'box/DoRegisterEmail.asp';
	f.submit();
	//alert("abc");
	}
}

function SubmitSearch(s)
{
	//s = escape(UnicodeSet(s));
	r = 'default.asp?p=search.asp&txtSearch='.concat(s);
	location.href=r;
	return false;
}
//type: 0-news, 1-services
function SubmitSendLink(type, id)
{
	winprops = 'scrollbars=no,resizeable=no,locationbar=no,width=500,height=350,left='.concat((screen.width - 500)/2).concat(',top=').concat((screen.height - 350)/2);
	window.open('default-open.asp?p=box/EmailLink.asp&id='.concat(id).concat('&type=').concat(type) ,"SendLink",winprops);
}

function OpenECash()
{
	r = 'mothe/mothe.html';
	winprops = 'scrollbars=yes,resizeable=no,locationbar=no,width=720,height='.concat(screen.height - 80).concat(',left='.concat((screen.width - 720)/2)).concat(',top=0');
	window.open('mothe/mothe.html' ,"OpenECash",winprops);
}
