function toggleFeedback(whichItem){
	if(whichItem=="sr_create"){
		if(document.getElementById('sr_create_feedback').innerHTML.length>0){
			document.getElementById('sr_create_feedback').innerHTML="";
		}else{
			var theText='<table cellspacing="0" cellpadding="0" border="0"><tr><Td class="feedback_title">Service Request Create</Td></tr>';
			theText=theText+'<tr><Td><table cellspacing="0" cellpadding="0" border="0">';
			theText=theText+'<tr><td><table cellspacing="0" cellpadding="0" border="0" width="620">';
			theText=theText+'<tr valign="top"><td class="label" width="223">How would you rate your overall experience with Service Request Create?</td>';
			theText=theText+'<td class="field" width="378"><table cellspacing="0" cellpadding="0" border="0">';
			theText=theText+'<tr><td><img src="../img/spacer.gif" width="82" height="5" border="0" alt=""></td><td class="radio_td"><input type="radio" class="radio" name="sr_create_overall" id="sr_create_overall1" value="1"></td>';
			theText=theText+'<td class="radio_td"><input type="radio" class="radio" name="sr_create_overall" id="sr_create_overall2" value="2"></td><td class="radio_td"><input type="radio" class="radio" name="sr_create_overall" id="sr_create_overall3" value="3"></td>';
			theText=theText+'<td class="radio_td"><input type="radio" class="radio" name="sr_create_overall" id="sr_create_overall4" value="4"></td><td class="radio_td"><input type="radio" class="radio" name="sr_create_overall" id="sr_create_overall5" value="5"></td>';
			theText=theText+'<td><img src="../img/spacer.gif" width="64" height="5" border="0" alt=""></td><td class="na_radio_td"><input type="radio" class="radio" name="sr_create_overall" id="sr_create_overall_na" value="N/A"></td></tr>';
			theText=theText+'<tr><td class="feedback_text">(Dissatisfied)</td><td class="feedback_rating1"><label for="sr_create_overall1">1</label></td>';
			theText=theText+'<td class="feedback_rating1"><label for="sr_create_overall2">2</label></td><td class="feedback_rating1"><label for="sr_create_overall3">3</label></td>';
			theText=theText+'<td class="feedback_rating2"><label for="sr_create_overall4">4</label></td><td class="feedback_rating2"><label for="sr_create_overall5">5</label></td>';
			theText=theText+'<td class="feedback_text2">(Satisfied)</td><td class="feedback_rating_na"><label for="sr_create_overall_na">N/A</label></td></tr>';
			theText=theText+'</table></td></tr></table></td></tr>';
			theText=theText+'<tr><Td><img src="../img/spacer.gif" width="620" height="3" border="0" alt=""></Td></tr>';
			theText=theText+'<tr><td><table cellspacing="0" cellpadding="0" border="0" width="620">';
			theText=theText+'<tr valign="top"><td class="label" width="223">How would you rate the ease of completing the Service Request form?</td>';
			theText=theText+'<td class="field" width="378"><table cellspacing="0" cellpadding="0" border="0">';
			theText=theText+'<tr><td><img src="../img/spacer.gif" width="82" height="5" border="0" alt=""></td><td class="radio_td"><input type="radio" class="radio" name="sr_create_form" id="sr_create_form1" value="1"></td>';
			theText=theText+'<td class="radio_td"><input type="radio" class="radio" name="sr_create_form" id="sr_create_form2" value="2"></td><td class="radio_td"><input type="radio" class="radio" name="sr_create_form" id="sr_create_form3" value="3"></td>';
			theText=theText+'<td class="radio_td"><input type="radio" class="radio" name="sr_create_form" id="sr_create_form4" value="4"></td><td class="radio_td"><input type="radio" class="radio" name="sr_create_form" id="sr_create_form5" value="5"></td>';
			theText=theText+'<td><img src="../img/spacer.gif" width="64" height="5" border="0" alt=""></td><td class="na_radio_td"><input type="radio" class="radio" name="sr_create_form" id="sr_create_form_na" value="N/A"></td></tr>';
			theText=theText+'<tr><td class="feedback_text">(Difficult)</td><td class="feedback_rating1"><label for="sr_create_form1">1</label></td>';
			theText=theText+'<td class="feedback_rating1"><label for="sr_create_form2">2</label></td><td class="feedback_rating1"><label for="sr_create_form3">3</label></td>';
			theText=theText+'<td class="feedback_rating2"><label for="sr_create_form4">4</label></td><td class="feedback_rating2"><label for="sr_create_form5">5</label></td>';
			theText=theText+'<td class="feedback_text2">(Easy)</td><td class="feedback_rating_na"><label for="sr_create_form_na">N/A</label></td></tr>';
			theText=theText+'</table></td></tr></table></td></tr>';
			theText=theText+'<tr><Td><img src="../img/spacer.gif" width="620" height="3" border="0" alt=""></Td></tr>';
			theText=theText+'<tr><td><table cellspacing="0" cellpadding="0" border="0" width="620">';
			theText=theText+'<tr valign="top"><td class="label" width="223">Please provide any additional comments about creating Service Requests at 311 Online.</td>';
			theText=theText+'<td class="field_area" width="378"><textarea name="sr_create_comments" style="width:378px; height:82px;overflow:auto;" class="textfield"></textarea></td></tr>';
			theText=theText+'</table></td></tr></table></td></tr></table>';
			document.getElementById('sr_create_feedback').innerHTML=theText;
		}
	}else if(whichItem=="sr_lookup"){
		if(document.getElementById('sr_lookup_feedback').innerHTML.length>0){
			document.getElementById('sr_lookup_feedback').innerHTML="";
		}else{
			var theText='<table cellspacing="0" cellpadding="0" border="0"><tr><Td class="feedback_title">Service Request Lookup</Td></tr>';
			theText=theText+'<tr><Td><table cellspacing="0" cellpadding="0" border="0">';
			theText=theText+'<tr><td><table cellspacing="0" cellpadding="0" border="0" width="620">';
			theText=theText+'<tr valign="top"><td class="label" width="223">How would you rate your overall experience with Service Request Lookup?</td>';
			theText=theText+'<td class="field" width="378"><table cellspacing="0" cellpadding="0" border="0">';
			theText=theText+'<tr><td><img src="../img/spacer.gif" width="82" height="5" border="0" alt=""></td><td class="radio_td"><input type="radio" class="radio" name="sr_lookup_overall" id="sr_lookup_overall1" value="1"></td>';
			theText=theText+'<td class="radio_td"><input type="radio" class="radio" name="sr_lookup_overall" id="sr_lookup_overall2" value="2"></td><td class="radio_td"><input type="radio" class="radio" name="sr_lookup_overall" id="sr_lookup_overall3" value="3"></td>';
			theText=theText+'<td class="radio_td"><input type="radio" class="radio" name="sr_lookup_overall" id="sr_lookup_overall4" value="4"></td><td class="radio_td"><input type="radio" class="radio" name="sr_lookup_overall" id="sr_lookup_overall5" value="5"></td>';
			theText=theText+'<td><img src="../img/spacer.gif" width="64" height="5" border="0" alt=""></td><td class="na_radio_td"><input type="radio" class="radio" name="sr_lookup_overall" id="sr_lookup_overall_na" value="N/A"></td></tr>';
			theText=theText+'<tr><td class="feedback_text">(Dissatisfied)</td><td class="feedback_rating1"><label for="sr_lookup_overall1">1</label></td>';
			theText=theText+'<td class="feedback_rating1"><label for="sr_lookup_overall2">2</label></td><td class="feedback_rating1"><label for="sr_lookup_overall3">3</label></td>';
			theText=theText+'<td class="feedback_rating2"><label for="sr_lookup_overall4">4</label></td><td class="feedback_rating2"><label for="sr_lookup_overall5">5</label></td>';
			theText=theText+'<td class="feedback_text2">(Satisfied)</td><td class="feedback_rating_na"><label for="sr_lookup_overall_na">N/A</label></td></tr>';
			theText=theText+'</table></td></tr></table></td></tr>';
			theText=theText+'<tr><Td><img src="../img/spacer.gif" width="620" height="3" border="0" alt=""></Td></tr>';
			theText=theText+'<tr><td><table cellspacing="0" cellpadding="0" border="0" width="620">';
			theText=theText+'<tr valign="top"><td class="label" width="223">How would you rate the ease of checking your Service Request\'s status?</td>';
			theText=theText+'<td class="field" width="378"><table cellspacing="0" cellpadding="0" border="0">';
			theText=theText+'<tr><td><img src="../img/spacer.gif" width="82" height="5" border="0" alt=""></td><td class="radio_td"><input type="radio" class="radio" name="sr_lookup_status" id="sr_lookup_status1" value="1"></td>';
			theText=theText+'<td class="radio_td"><input type="radio" class="radio" name="sr_lookup_status" id="sr_lookup_status2" value="2"></td><td class="radio_td"><input type="radio" class="radio" name="sr_lookup_status" id="sr_lookup_status3" value="3"></td>';
			theText=theText+'<td class="radio_td"><input type="radio" class="radio" name="sr_lookup_status" id="sr_lookup_status4" value="4"></td><td class="radio_td"><input type="radio" class="radio" name="sr_lookup_status" id="sr_lookup_status5" value="5"></td>';
			theText=theText+'<td><img src="../img/spacer.gif" width="64" height="5" border="0" alt=""></td><td class="na_radio_td"><input type="radio" class="radio" name="sr_lookup_status" id="sr_lookup_status_na" value="N/A"></td></tr>';
			theText=theText+'<tr><td class="feedback_text">(Difficult)</td><td class="feedback_rating1"><label for="sr_lookup_status1">1</label></td>';
			theText=theText+'<td class="feedback_rating1"><label for="sr_lookup_status2">2</label></td><td class="feedback_rating1"><label for="sr_lookup_status3">3</label></td>';
			theText=theText+'<td class="feedback_rating2"><label for="sr_lookup_status4">4</label></td><td class="feedback_rating2"><label for="sr_lookup_status5">5</label></td>';
			theText=theText+'<td class="feedback_text2">(Easy)</td><td class="feedback_rating_na"><label for="sr_lookup_status_na">N/A</label></td></tr>';
			theText=theText+'</table></td></tr></table></td></tr>';
			theText=theText+'<tr><Td><img src="../img/spacer.gif" width="620" height="3" border="0" alt=""></Td></tr>';
			theText=theText+'<tr><td><table cellspacing="0" cellpadding="0" border="0" width="620">';
			theText=theText+'<tr valign="top"><td class="label" width="223">Please provide any additional comments about Service Request Lookup.</td>';
			theText=theText+'<td class="field_area" width="378"><textarea name="sr_lookup_comments" style="width:378px; height:82px;overflow:auto;" class="textfield"></textarea></td></tr>';
			theText=theText+'</table></td></tr></table></td></tr></table>';
			document.getElementById('sr_lookup_feedback').innerHTML=theText;
		}
	}else if(whichItem=="hhs"){
		if(document.getElementById('hhs_feedback').innerHTML.length>0){
			document.getElementById('hhs_feedback').innerHTML="";
		}else{
			var theText='<table cellspacing="0" cellpadding="0" border="0"><tr><Td class="feedback_title">Health and Human Services Directory</Td></tr>';
			theText=theText+'<tr><Td><table cellspacing="0" cellpadding="0" border="0">';
			theText=theText+'<tr><td><table cellspacing="0" cellpadding="0" border="0" width="620">';
			theText=theText+'<tr valign="top"><td class="label" width="223">How would you rate your overall experience with the Health and Human Services Online Provider Directory?</td>';
			theText=theText+'<td class="field" width="378"><table cellspacing="0" cellpadding="0" border="0">';
			theText=theText+'<tr><td><img src="../img/spacer.gif" width="82" height="5" border="0" alt=""></td><td class="radio_td"><input type="radio" class="radio" name="hhs_overall" id="hhs_overall1" value="1"></td>';
			theText=theText+'<td class="radio_td"><input type="radio" class="radio" name="hhs_overall" id="hhs_overall2" value="2"></td><td class="radio_td"><input type="radio" class="radio" name="hhs_overall" id="hhs_overall3" value="3"></td>';
			theText=theText+'<td class="radio_td"><input type="radio" class="radio" name="hhs_overall" id="hhs_overall4" value="4"></td><td class="radio_td"><input type="radio" class="radio" name="hhs_overall" id="hhs_overall5" value="5"></td>';
			theText=theText+'<td><img src="../img/spacer.gif" width="64" height="5" border="0" alt=""></td><td class="na_radio_td"><input type="radio" class="radio" name="hhs_overall" id="hhs_overall_na" value="N/A"></td></tr>';
			theText=theText+'<tr><td class="feedback_text">(Dissatisfied)</td><td class="feedback_rating1"><label for="hhs_overall1">1</label></td>';
			theText=theText+'<td class="feedback_rating1"><label for="hhs_overall2">2</label></td><td class="feedback_rating1"><label for="hhs_overall3">3</label></td>';
			theText=theText+'<td class="feedback_rating2"><label for="hhs_overall4">4</label></td><td class="feedback_rating2"><label for="hhs_overall5">5</label></td>';
			theText=theText+'<td class="feedback_text2">(Satisfied)</td><td class="feedback_rating_na"><label for="hhs_overall_na">N/A</label></td></tr>';
			theText=theText+'</table></td></tr></table></td></tr>';
			theText=theText+'<tr><Td><img src="../img/spacer.gif" width="620" height="3" border="0" alt=""></Td></tr>';
			theText=theText+'<tr><td><table cellspacing="0" cellpadding="0" border="0" width="620">';
			theText=theText+'<tr valign="top"><td class="label" width="223">How would you rate the ease of finding organizations?</td>';
			theText=theText+'<td class="field" width="378"><table cellspacing="0" cellpadding="0" border="0">';
			theText=theText+'<tr><td><img src="../img/spacer.gif" width="82" height="5" border="0" alt=""></td><td class="radio_td"><input type="radio" class="radio" name="hhs_ease" id="hhs_ease1" value="1"></td>';
			theText=theText+'<td class="radio_td"><input type="radio" class="radio" name="hhs_ease" id="hhs_ease2" value="2"></td><td class="radio_td"><input type="radio" class="radio" name="hhs_ease" id="hhs_ease3" value="3"></td>';
			theText=theText+'<td class="radio_td"><input type="radio" class="radio" name="hhs_ease" id="hhs_ease4" value="4"></td><td class="radio_td"><input type="radio" class="radio" name="hhs_ease" id="hhs_ease5" value="5"></td>';
			theText=theText+'<td><img src="../img/spacer.gif" width="64" height="5" border="0" alt=""></td><td class="na_radio_td"><input type="radio" class="radio" name="hhs_ease" id="hhs_ease_na" value="N/A"></td></tr>';
			theText=theText+'<tr><td class="feedback_text">(Difficult)</td><td class="feedback_rating1"><label for="hhs_ease1">1</label></td>';
			theText=theText+'<td class="feedback_rating1"><label for="hhs_ease2">2</label></td><td class="feedback_rating1"><label for="hhs_ease3">3</label></td>';
			theText=theText+'<td class="feedback_rating2"><label for="hhs_ease4">4</label></td><td class="feedback_rating2"><label for="hhs_ease5">5</label></td>';
			theText=theText+'<td class="feedback_text2">(Easy)</td><td class="feedback_rating_na"><label for="hhs_ease_na">N/A</label></td></tr>';
			theText=theText+'</table></td></tr></table></td></tr>';
			theText=theText+'<tr><Td><img src="../img/spacer.gif" width="620" height="3" border="0" alt=""></Td></tr>';
			theText=theText+'<tr><td><table cellspacing="0" cellpadding="0" border="0" width="620">';
			theText=theText+'<tr valign="top"><td class="label" width="223">Please provide any additional comments about the Health and Human Services Online Provider Directory.</td>';
			theText=theText+'<td class="field_area" width="378"><textarea name="hhs_comments" style="width:378px; height:82px;overflow:auto;" class="textfield"></textarea></td></tr>';
			theText=theText+'</table></td></tr></table></td></tr></table>';
			document.getElementById('hhs_feedback').innerHTML=theText;		}
	}else if(whichItem=="picvid"){
		if(document.getElementById('picvid_feedback').innerHTML.length>0){
			document.getElementById('picvid_feedback').innerHTML="";
		}else{
			var theText='<table cellspacing="0" cellpadding="0" border="0"><tr><Td class="feedback_title">Health and Human Services Directory</Td></tr>';
			theText=theText+'<tr><Td><table cellspacing="0" cellpadding="0" border="0">';
			theText=theText+'<tr><td><table cellspacing="0" cellpadding="0" border="0" width="620">';
			theText=theText+'<tr valign="top"><td class="label" width="223">How would you rate your overall experience with the Video Picture Submission?</td>';
			theText=theText+'<td class="field" width="378"><table cellspacing="0" cellpadding="0" border="0">';
			theText=theText+'<tr><td><img src="../img/spacer.gif" width="82" height="5" border="0" alt=""></td><td class="radio_td"><input type="radio" class="radio" name="picvid_overall" id="picvid_overall1" value="1"></td>';
			theText=theText+'<td class="radio_td"><input type="radio" class="radio" name="picvid_overall" id="picvid_overall2" value="2"></td><td class="radio_td"><input type="radio" class="radio" name="picvid_overall" id="picvid_overall3" value="3"></td>';
			theText=theText+'<td class="radio_td"><input type="radio" class="radio" name="picvid_overall" id="picvid_overall4" value="4"></td><td class="radio_td"><input type="radio" class="radio" name="picvid_overall" id="picvid_overall5" value="5"></td>';
			theText=theText+'<td><img src="../img/spacer.gif" width="64" height="5" border="0" alt=""></td><td class="na_radio_td"><input type="radio" class="radio" name="picvid_overall" id="picvid_overall_na" value="N/A"></td></tr>';
			theText=theText+'<tr><td class="feedback_text">(Dissatisfied)</td><td class="feedback_rating1"><label for="picvid_overall1">1</label></td>';
			theText=theText+'<td class="feedback_rating1"><label for="picvid_overall2">2</label></td><td class="feedback_rating1"><label for="picvid_overall3">3</label></td>';
			theText=theText+'<td class="feedback_rating2"><label for="picvid_overall4">4</label></td><td class="feedback_rating2"><label for="picvid_overall5">5</label></td>';
			theText=theText+'<td class="feedback_text2">(Satisfied)</td><td class="feedback_rating_na"><label for="picvid_overall_na">N/A</label></td></tr>';
			theText=theText+'</table></td></tr></table></td></tr>';
			theText=theText+'<tr><Td><img src="../img/spacer.gif" width="620" height="3" border="0" alt=""></Td></tr>';
			theText=theText+'<tr><td><table cellspacing="0" cellpadding="0" border="0" width="620">';
			theText=theText+'<tr valign="top"><td class="label" width="223">How would you rate the ease of completing your Video Picture Submission?</td>';
			theText=theText+'<td class="field" width="378"><table cellspacing="0" cellpadding="0" border="0">';
			theText=theText+'<tr><td><img src="../img/spacer.gif" width="82" height="5" border="0" alt=""></td><td class="radio_td"><input type="radio" class="radio" name="picvid_ease" id="picvid_ease1" value="1"></td>';
			theText=theText+'<td class="radio_td"><input type="radio" class="radio" name="picvid_ease" id="picvid_ease2" value="2"></td><td class="radio_td"><input type="radio" class="radio" name="picvid_ease" id="picvid_ease3" value="3"></td>';
			theText=theText+'<td class="radio_td"><input type="radio" class="radio" name="picvid_ease" id="picvid_ease4" value="4"></td><td class="radio_td"><input type="radio" class="radio" name="picvid_ease" id="picvid_ease5" value="5"></td>';
			theText=theText+'<td><img src="../img/spacer.gif" width="64" height="5" border="0" alt=""></td><td class="na_radio_td"><input type="radio" class="radio" name="picvid_ease" id="picvid_ease_na" value="N/A"></td></tr>';
			theText=theText+'<tr><td class="feedback_text">(Difficult)</td><td class="feedback_rating1"><label for="picvid_ease1">1</label></td>';
			theText=theText+'<td class="feedback_rating1"><label for="picvid_ease2">2</label></td><td class="feedback_rating1"><label for="picvid_ease3">3</label></td>';
			theText=theText+'<td class="feedback_rating2"><label for="picvid_ease4">4</label></td><td class="feedback_rating2"><label for="picvid_ease5">5</label></td>';
			theText=theText+'<td class="feedback_text2">(Easy)</td><td class="feedback_rating_na"><label for="picvid_ease_na">N/A</label></td></tr>';
			theText=theText+'</table></td></tr></table></td></tr>';
			theText=theText+'<tr><Td><img src="../img/spacer.gif" width="620" height="3" border="0" alt=""></Td></tr>';
			theText=theText+'<tr><td><table cellspacing="0" cellpadding="0" border="0" width="620">';
			theText=theText+'<tr valign="top"><td class="label" width="223">Please provide any additional comments about your Video Picture Submission.</td>';
			theText=theText+'<td class="field_area" width="378"><textarea name="picvid_comments" style="width:378px; height:82px;overflow:auto;" class="textfield"></textarea></td></tr>';
			theText=theText+'</table></td></tr></table></td></tr></table>';
			document.getElementById('picvid_feedback').innerHTML=theText;		}
	}
}

function showWarning(theText){
	var scrOfY=0;
	if( document.body && document.body.scrollTop) {
	    //DOM compliant
	    scrOfY = document.body.scrollTop;
	} else if( document.documentElement && document.documentElement.scrollTop) {
	    //IE6 standards compliant mode
	    scrOfY = document.documentElement.scrollTop;
	}
	if(scrOfY<165){
		scrOfY=165;
	}
	document.getElementById("warning_text").innerHTML=theText;
	document.getElementById("shim").style.height=document.getElementById("warning_popup").offsetHeight;
	document.getElementById("shim").style.width=document.getElementById("warning_popup").offsetWidth;
	document.getElementById("warning_popup").style.top = scrOfY;
	document.getElementById("warning_popup").style.visibility = "visible";
	document.getElementById("shim").style.top = scrOfY;
	document.getElementById("shim").style.left = document.getElementById("warning_popup").style.left;
	document.getElementById("shim").style.visibility = "visible";
}

function hideWarning(){
	document.getElementById("warning_popup").style.visibility = "hidden";
	document.getElementById("shim").style.visibility = "hidden";
}

function showHelp(helpIndex,theId){
	var theField=document.getElementById(theId);
	var posy = theField.offsetTop;
	var posx = theField.offsetLeft;
	tempEl = theField.offsetParent;
	while (tempEl != null){
		posy += tempEl.offsetTop;
		posx += tempEl.offsetLeft;
		tempEl = tempEl.offsetParent;
	}
	var theHelpIndex=-1;
	for(var i=0;i<helpText.length;i++){
		if(helpText[i][0].toLowerCase()==helpIndex.toLowerCase()){
			theHelpIndex=i;
		}
	}
	if(theHelpIndex>-1){
		document.getElementById("help_title").innerHTML=helpText[theHelpIndex][0];
		document.getElementById("help_text").innerHTML=helpText[theHelpIndex][1];
	}else{
		document.getElementById("help_title").innerHTML="Help Text Missing";
		document.getElementById("help_text").innerHTML="The specified help index ("+helpIndex+") was not found";
	}
	var theHeight=document.getElementById("help_popup").offsetHeight;
	var theWidth=document.getElementById("help_popup").offsetWidth;
	posy=posy+28;
	posx=posx-330;
	document.getElementById("shim").style.height=theHeight;
	document.getElementById("shim").style.width=theWidth;
	document.getElementById("shim").style.top = posy;
	document.getElementById("shim").style.left = posx;
	document.getElementById("shim").style.visibility = "visible";
	document.getElementById("help_popup").style.top = posy;
	document.getElementById("help_popup").style.left=posx;
	document.getElementById("help_popup").style.visibility = "visible";
}
function showHelpLabel(theId,helpIndex){
	var theField=document.getElementById(theId);
	var posy = theField.offsetTop;
	var posx = theField.offsetLeft;
	tempEl = theField.offsetParent;
	while (tempEl != null){
		posy += tempEl.offsetTop;
		posx += tempEl.offsetLeft;
		tempEl = tempEl.offsetParent;
	}
	var theHelpIndex=-1;
	for(var i=0;i<helpText.length;i++){
		if(helpText[i][0].toLowerCase()==helpIndex.toLowerCase()){
			theHelpIndex=i;
		}
	}
	if(theHelpIndex>-1){
		document.getElementById("help_title").innerHTML=helpText[theHelpIndex][0];
		document.getElementById("help_text").innerHTML=helpText[theHelpIndex][1];
	}else{
		document.getElementById("help_title").innerHTML="Help Text Missing";
		document.getElementById("help_text").innerHTML="The specified help index ("+helpIndex+") was not found";
	}
	var theHeight=document.getElementById("help_popup").offsetHeight;
	var theWidth=document.getElementById("help_popup").offsetWidth;
	posy=posy+35;
	document.getElementById("shim").style.height=theHeight;
	document.getElementById("shim").style.width=theWidth;
	document.getElementById("shim").style.top = posy;
	document.getElementById("shim").style.left = posx;
	document.getElementById("shim").style.visibility = "visible";
	document.getElementById("help_popup").style.top = posy;
	document.getElementById("help_popup").style.left=posx;
	document.getElementById("help_popup").style.visibility = "visible";
}
function hideHelp(){
	document.getElementById("help_popup").style.visibility = "hidden";
	document.getElementById("shim").style.visibility = "hidden";
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function showElements(){
	var arr=showElements.arguments;
	for(i=0;i<arr.length;i++){
		show(arr[i]);
	}
}

function hideElements(){
	var arr=hideElements.arguments;
	for(i=0;i<arr.length;i++){
		hide(arr[i]);
	}
}

function toggleElements(){
	var arr=toggleElements.arguments;
	for(i=0;i<arr.length;i++){
		toggle(arr[i]);
	}
}

function show(whichElement){
	document.getElementById(whichElement).style.display="";
}

function hide(whichElement){
	document.getElementById(whichElement).style.display="none";
}

function toggle(whichElement){
	var theStyle=document.getElementById(whichElement).style;
	theStyle.display = theStyle.display? "":"none";
}

function showResidency(isLocal){
	if(isLocal){
		hide("non-local_resident");
		show("local_resident");
	}else{
		show("non-local_resident");
		hide("local_resident");
	}
}
