// open the CSS document based on the variable set by getvar

document.write("<link href='css/" + strName + ".css' rel='stylesheet' type='text/css' media='screen' />");
document.write("<link href='css/print.css' rel='stylesheet' type='text/css' media='print' />");