// expanding headings

<!-- // hide from old browsers

// hide text from MSIE browsers

with (document)
{
	write("<STYLE TYPE='text/css'>");
	if (navigator.appName == 'Microsoft Internet Explorer')
		{
		write(".hiddentext {display:none}  .outline {cursor:hand; text-decoration:none; color:#3000CF; font-family: Arial;}");
		}
	write("</STYLE>");
}

// show text on click for MSIE browsers

function expandIt(whichEl)
{
	if (navigator.appName == 'Microsoft Internet Explorer')
		{
		whichEl.style.display = (whichEl.style.display == "block" ) ? "none" : "block";
		}
	else return;
}



// note window

function winopen1 () {
msg=open("","NewWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=250");
msg.location = "wap.htm"
}


function winopen2 () {
msg=open("","NewWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=400,height=400");
msg.location = "fsmsc.htm"
}


function winopen3 () {
msg=open("","NewWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=630,height=100");
msg.location = "nokinf.htm"
}

function winopen4 () {
msg=open("","NewWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600");
msg.location = "http://www.netbabbler.com/goto?forumid=18502"
}

// quiz 

function quiz(form) {
	var i = 0
	var result1=document.form1.answer1.selectedIndex
	var result2=document.form2.answer2.selectedIndex
	var result3=document.form3.answer3.selectedIndex
	var result4=document.form4.answer4.selectedIndex
	var result5=document.form5.answer5.selectedIndex
	var result6=document.form6.answer6.selectedIndex
	var result7=document.form7.answer7.selectedIndex
	var result8=document.form8.answer8.selectedIndex
	var result9=document.form9.answer9.selectedIndex
	var result10=document.form10.answer10.selectedIndex

	if (result1==0){
		alert("Question #1 was not answered");}
	if (result2==0){
		alert("Question #2 was not answered");}
	if (result3==0){
		alert("Question #3 was not answered");}
	if (result4==0){
		alert("Question #4 was not answered");}
	if (result5==0){
		alert("Question #5 was not answered");}
	if (result6==0){
		alert("Question #6 was not answered");}
	if (result7==0){
		alert("Question #7 was not answered");}
	if (result8==0){
		alert("Question #8 was not answered");}
	if (result9==0){
		alert("Question #9 was not answered");}
	if (result10==0){
		alert("Question #10 was not answered");}

	else {
		if (result1==3){i++} 
		if (result2==2){i++} 
		if (result3==2){i++} 
		if (result4==1){i++} 
		if (result5==3){i++}
		if (result6==1){i++}
		if (result7==2){i++}
		if (result8==1){i++}
		if (result9==3){i++}
		if (result10==2){i++}

		document.total.score.value = i
		var per =  Math.round((i / 10) * 100)
		document.total.percent.value = per 
		
		
		if (result1 != 3){   
			document.form1.check1.checked = false}
		else {document.form1.check1.checked = true}
		if (result2 != 2){   
			document.form2.check2.checked = false}
		else {document.form2.check2.checked = true}
		if (result3 != 2){   
			document.form3.check3.checked = false}
		else {document.form3.check3.checked = true}
		if (result4 != 1){   
			document.form4.check4.checked = false}
		else {document.form4.check4.checked = true}
		if (result5 != 3){
			document.form5.check5.checked = false}
		else {document.form5.check5.checked = true}  
		if (result6 != 1){
			document.form6.check6.checked = false}
		else {document.form6.check6.checked = true}  
		if (result7 != 2){
			document.form7.check7.checked = false}
		else {document.form7.check7.checked = true}  
		if (result8 != 1){
			document.form8.check8.checked = false}
		else {document.form8.check8.checked = true}  
		if (result9 != 3){
			document.form9.check9.checked = false}
		else {document.form9.check9.checked = true}
		if (result10 != 2){
			document.form10.check10.checked = false}
		else {document.form10.check10.checked = true}
		
}
}


// popup windows timers

function startTime(){
        var time= new Date();
        hours= time.getHours();
        mins= time.getMinutes();
        secs= time.getSeconds();
        closeTime=hours*3600+mins*60+secs;
        closeTime+=15;  
        Timer();
}

function startTime1(){
        var time= new Date();
        hours= time.getHours();
        mins= time.getMinutes();
        secs= time.getSeconds();
        closeTime=hours*3600+mins*60+secs;
        closeTime+=10;  
        Timer();
}

function Timer(){
        var time= new Date();
        hours= time.getHours();
        mins= time.getMinutes();
        secs= time.getSeconds();
        curTime=hours*3600+mins*60+secs
        if (curTime>=closeTime){
                self.close();}
        else{
                window.setTimeout("Timer()",1000)}
}


// menu page scripts

var RunningIE4
RunningIE4 = (msieversion() >=4);

function msieversion() {
	var ua = window.navigator.userAgent
	var msie = ua.indexOf ( "MSIE " )
	if ( msie > 0 )		
		return parseInt ( ua.substring ( msie+5, ua.indexOf ( ".", msie ) ) )
	else
		return 0	
}





var action;

function StartMove() {
    

    
    if (RunningIE4 == true) {
      action = window.setInterval("MovePic()",50); 
      }
}

function MovePic() {


    Phone.style.pixelTop += 10;
    
 
    if (Phone.style.pixelTop >=0) {
        Phone.style.pixelTop =0
        window.clearInterval(action); }
}

<!-- 
var day="";
var month="";
var ampm="";
var ampmhour="";
var myweekday="";
var year="";
mydate = new Date();
myday = mydate.getDay();
mymonth = mydate.getMonth();
myweekday= mydate.getDate();
weekday= myweekday;
myyear= mydate.getYear();
myhours = mydate.getHours();
ampmhour  =  (myhours > 12) ? myhours - 12 : myhours;
if (ampmhour == "0") ampmhour = 12;
ampm =  (myhours >= 12) ? ' PM' : ' AM';
mytime = mydate.getMinutes();
myminutes =  ((mytime < 10) ? ':0' : ':') + mytime;
year = (myyear > 99) ? myyear : 1900 + myyear;
if(myday == 0)
day = " Sunday, ";
else if(myday == 1)
day = " Monday, ";
else if(myday == 2)
day = " Tuesday, ";
else if(myday == 3)
day = " Wednesday, ";
else if(myday == 4)
day = " Thursday, ";
else if(myday == 5)
day = " Friday, ";
else if(myday == 6)
day = " Saturday, ";
if(mymonth == 0) {
month = "January ";}
else if(mymonth ==1)
month = "February ";
else if(mymonth ==2)
month = "March ";
else if(mymonth ==3)
month = "April ";
else if(mymonth ==4)
month = "May ";
else if(mymonth ==5)
month = "June ";
else if(mymonth ==6)
month = "July ";
else if(mymonth ==7)
month = "August ";
else if(mymonth ==8)
month = "September ";
else if(mymonth ==9)
month = "October ";
else if(mymonth ==10)
month = "November ";
else if(mymonth ==11)
month = "December ";
// -->


var bookmarkurl="http://jump.to/nokiauncovered"
var bookmarktitle="Nokia Uncovered"

function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

// play sound


  function playSound(){
    document.sound1.play();
}


// print button

function printit(){  
if (NS) {
    window.print() ;  
} else {
    var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
    WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    WebBrowser1.outerHTML = "";  
}
}



// end hiding from old browsers -->

