function writeDivX() {
alert("heyo");
}

// for use on home page
function stepForward(){

theString = '<br><br>'+
'<div class="homeBG">lucasmonaco.com/</div>'	+
	'<ul>'+
	'<li><a href="/gallery">Gallery</a></li>'+
	'<li><a href="/view">Pictures</a></li>'+ 
	'<br>Thank You.'+
'</ul>';
 
	if(!writeDiv2('theBody', theString)){
		document.location = "index2.php"
	}
return;

}
function writeDiv2(divID_as_a_string,imare ) {
    //get a reference as above ...
    myReference = getRefToDiv(divID_as_a_string);
	
	if( myReference == "X" ) {
        //window.alert('Nothing works in this browser');
        return false; //don't go any further
        //return anything would work,
        //but I am using false to show failure
    }
 
	myReference.innerHTML = imare;
	return true;
}

function getRefToDiv(divID) {
    if( document.layers ) { //Netscape layers
        if(document.layers[divID]){return document.layers[divID];} }
    if( document.getElementById ) { //DOM; IE5, NS6, Mozilla, Opera
        if(document.getElementById(divID)){return document.getElementById(divID);} }
    if( document.all ) { //Proprietary DOM; IE4
        if(document.all[divID]){return document.all[divID];} }
    if( document[divID] ) { //Netscape alternative
        if(document[divID]){return document[divID]; }}
    return "X";
}