function id(ids) {return document.getElementById(ids)}


function reset_frm() {
if (confirm("Are you sure you want to reset everything?\rYou will have to enter all your information again"))
document.main_form.reset()
}

var add_to_left=150

var add_to_left_bottom=0

if (typeof change_width!="undefined") {
add_to_left_bottom=(500-change_width)/2
}

var atl=add_to_left
var bshft=add_to_left_bottom
function disp() {
pgcont=id("content").innerHTML+"<p>&nbsp;</p>"
txt='<img id="topbar" src="pics/topbar.jpg" style="position:absolute;left:' + (10+atl) + ';top:10;width:983;height:175">'
txt+='<img id="pyramid" src="pics/wpyramid.jpg" style="position:absolute;top:10;left:' + (450+atl) + '">'
txt+='<a href="index.html" class="ainvisible"><img border="0" id="title" src="pics/title.jpg" style="position:absolute;top:115;left:' + (190+atl) + '"></a>'
txt+="<table width='100%' style='position:absolute;left:0px;top:210px;width:100%'><tr><td width='" + (330+atl+bshft) + "px' valign='top'><div class='sidebar' style='padding-top:20px;padding-left:" + (100+atl+bshft) + "px'>" + sidebar() + "</div></td><td valign='top'><div class='content' id='main_div'>" + pgcont + "</div></td></tr></table>"
id("content").innerHTML=txt
}

if (typeof sbarray=="undefined") {
sbarray=new Array("Home Page,index.html","Experience,experience.html","Workers' Compensation Services,wcs.html","FEHA Services,feha.html","Training Programs,training.html","Charts & Forms,charts.html","Fee Schedule,fee.html","Referral Form,referral.asp","RTW Newsletter,rtw.html","Resource Page,resource.html","FAQs,faq.html")
}

function sidebar() {
stxt=""
for (i=0;i<sbarray.length;i++) {
stxt+="<p><a href='" + sbarray[i].split(",")[1] + "'>" + sbarray[i].split(",")[0] + "</a></p>"
}
return stxt
}

disp();
if (bshft!=0) {
id("main_div").style.width=change_width
}
id("content").style.visibility="visible"

function check_if_enter(evt) {
if (evt==13) {return false}
return true
}