var ct          = new Date();
var thisYear	= ct.getFullYear();
var startingYear= 2009;
var thisSiteURL = "www.action2sport.com";
if (thisYear != startingYear.toString()) {
	defaultStatus="© "+startingYear+"-"+thisYear+" "+thisSiteURL;
} else {
	defaultStatus="© "+thisYear+" "+thisSiteURL;
}
if (top.frames.length != 0) {
	top.location = self.document.location;
}
function goToPublisher(FQDN)
{
    window.open('http://www.webmastering.it/CustomerGateway/?customer='+FQDN,'Webmastering_dot_it');
};
function goToDesigner(FQDN)
{
    window.open('http://www.lucaporcudesign.com/CustomerGateway/?customer='+FQDN,'Studio_P');
};
function goToIndexPage()
{
    document.location.href='index.php';
};
function goToNews()
{
    document.location.href='news-action-to-sport-eventi.php';
};
function goToYouTube()
{
    document.location.href='links-esterni.php?id=10';
};
function goToFacebook()
{
    document.location.href='links-esterni.php?id=11';
};
function goToTrademark(tradeNumber)
{
    document.location.href='links-esterni.php?id='+tradeNumber;
};
function charsleft(fieldname,maxchar,countername)
{
	theInputBox = document.getElementById(''+fieldname+'');
	theCountBox = document.getElementById(''+countername+'');
	var currentChars = theInputBox.value.length;
	theCountBox.value = Math.max((maxchar - currentChars),0);
	if (currentChars > maxchar) {
		theInputBox.value = theInputBox.value.substring(0,maxchar);
	}
};

