function OpenPage(myPage)
{
window.location.href = myPage;
}

function clearall()
{
for(var i=1;i<=7;i++)
 {
 document.getElementById(i+((i*2)-1)).style.visibility='hidden';
 document.getElementById(i+((i*2)-2)).style.visibility='visible';
 }
}

function button(nr,st)
{
if(st)
 {	
 document.getElementById(nr).style.visibility='visible';
 }
 else
 {
 document.getElementById(nr).style.visibility='hidden';
 }
return true;
}

function ShowImg(imgName,w,h,bord)
{
if (bord == 1)
{
  w=w+3;
  h=h+3;
}
else
{
  bord=0
}

n_window=window.open('','n_window','directories=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no,height='+h+',width='+w+'');
n_window.document.open();
n_window.document.write('<html><head><title>Pixel Factory</title></head><body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor=#000000><img src="'+imgName+'" border='+bord+' onclick="window.close()"></body></html>');
n_window.document.close();
n_window.focus();
}

function CurrentTime()
{
var time = new Date();
var hrs = time.getHours();
var mins = time.getMinutes();
  if (mins < 10) {mins = '0' + mins;}
var sec = time.getSeconds();
  if (sec < 10) {sec = '0' + sec;}

showtime = '- Current time: ' +  hrs + ':' + mins + ':' + sec;
showtime += ' -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-';
showtime += ' Current date: ' + time.getDate() + '.' + (time.getMonth()+1) + '.' + time.getYear() + ' -';
TimeStyle.innerHTML = showtime;

setTimeout('CurrentTime()',1000);
}

function check()
{
if (document.forms[0].name.value.length<1)
	{
	alert("Please enter your name")
	document.forms[0].name.focus()
	return false
	}
if (document.forms[0].sign.value.length<1)
	{
	alert("Please enter some sign")
	document.forms[0].sign.focus()
	return false
	}
document.forms[0].submit()
}

function display_Email(text)
{
var email = "pixelfactory@op.pl"
document.write("<a href=" + "mail" + "to:" + email + ">" + text + "</a>")
}


