function buttonString(theName,theCode) {
var buttonStr = '<input type="button" class = "myButtons" onmouseover="this.className= ' + singlequoteMark + 'myButtons myButtonsHov' + singlequoteMark + '" onmouseout="this.className= ' + singlequoteMark + 'myButtons' + singlequoteMark + '"  value = "' + theName + '" onClick=' + theCode + '>';
return(buttonStr);
} 

function drawButton(theName, theCode) {
document.writeln(buttonString(theName,theCode));
} 

function drawButtonOpen(theName) {
var buttonOpenStr = '<input type="button" class = "myButtons" onmouseover="this.className= ' + singlequoteMark + 'myButtons myButtonsHov' + singlequoteMark + '" onmouseout="this.className= ' + singlequoteMark + 'myButtons' + singlequoteMark + '"  value = "' + theName + '" onClick="';
document.writeln(buttonOpenStr);
} 

