

setval="welcome to no.signal";

function typen()
	{
	document.list.email.value="type your email here";
	}
	
function notype()
	{
	document.list.email.value="";
	}
	
function put(what)
	{
	document.info.infofield.value=what;
	}

function set(what)
	{
	document.info.infofield.value=what;
	setval = what;
	}
	
function unset()
	{
	document.info.infofield.value=setval;
	}
	
function show(id){
if (navigator.userAgent.indexOf("Opera")!=-1
    && document.getElementById) type="OP";
if (document.all) type="IE";
if (document.layers) type="NN";
if (!document.all && document.getElementById) type="MO";

if (type=="IE") {
	document.all[id].style.display="block";
}

  if (type=="NN"){ document.layer['id'].display="block";
  }
  
  if (type=="MO" || type=="OP") { 
  	document.getElementById(id).style.display="block";
  	}

}

function hide(id){
if (navigator.userAgent.indexOf("Opera")!=-1
    && document.getElementById) type="OP";
if (document.all) type="IE";
if (document.layers) type="NN";
if (!document.all && document.getElementById) type="MO";

if (type=="IE") {
	document.all[id].style.display="none";
}

  if (type=="NN"){ document.layer['id'].display="none";
  }
  
  if (type=="MO" || type=="OP") { 
  	document.getElementById(id).style.display="none";
  	}

}


function bang(){
	id="bangbang";
	if (navigator.userAgent.indexOf("Opera")!=-1 && document.getElementById) type="OP";
	if (document.all) type="IE";
	if (document.layers) type="NN";
	if (!document.all && document.getElementById) type="MO";
	if (type=="IE") {
		document.all[id].style.background="#FF9";}
	if (type=="NN"){ document.layer['id'].background="#FF9";  }
    if (type=="MO" || type=="OP") { document.getElementById(id).style.background="#FF9";}
	setTimeout("unbang()",1500);   
}

function unbang(){
	id="bangbang";
	if (navigator.userAgent.indexOf("Opera")!=-1 && document.getElementById) type="OP";
	if (document.all) type="IE";
	if (document.layers) type="NN";
	if (!document.all && document.getElementById) type="MO";
	if (type=="IE") {
		document.all[id].style.background="#EEE";}
	if (type=="NN"){ document.layer['id'].background="#EEE";  }
    if (type=="MO" || type=="OP") { document.getElementById(id).style.background="#EEE";
      	}
      	
    //setTimeout("window.open('http://www.instal.org.uk','','scrollbars=yes,height=600,width=800,resizable=yes')",5);
    setTimeout("window.location='cs'",5);
}


function randomquote(){
	num=Math.ceil(8*Math.random());

	for(i=1;i<=8;i++)
	{	id="quot"+i;
		if(i==num) show(id);
		else hide(id);
	}

}


function randomlink(num){
	win=Math.ceil(num*Math.random());

	for(i=1;i<=num;i++)
	{	id="link"+i;
		if(i==win) show(id);
		else hide(id);
	}

}

function randomquoteTimer(num){
	randomquote();
	setTimeout('randomlink('+num+')',7000);
	setTimeout('randomquoteTimer('+num+')',15000);
}


function paint(id,col,col2)
{if(col==0) col="url('backselect.gif')";
	if (navigator.userAgent.indexOf("Opera")!=-1 && document.getElementById) type="OP";
	if (document.all) type="IE";
	if (document.layers) type="NN";
	if (!document.all && document.getElementById) type="MO";

	if (type=="IE") 
	{
		document.all[id].style.background=col;
		document.all[id].style.borderColor=col2;
	}

	if (type=="NN")
	{ 
		document.layer['id'].background=col;
		document.layer['id'].borderColor=col2;
	}
  
	if (type=="MO" || type=="OP") 
	{ 
  		document.getElementById(id).style.background=col;
  		document.getElementById(id).style.borderColor=col2;
	}

}

function clearText(thefield) 
	{ 
	if (thefield.defaultValue == thefield.value) 
		thefield.value = "";
	else 
		thefield.value = thefield.defaultValue; 
	}


