// JavaScript Document

function test()
{
	setTimeout(assignVal, 5000);
	//alert('sdxjdxdh');
}

function assignVal()
{
	//var j="";
	//alert(j);
	
	if(document.getElementById('isOldNew').value=='0'){
	document.getElementById("graphIMG").innerHTML="<img src='./images/graph.gif' width='713' height='249' />";
	}else{
		document.getElementById("graphIMG").innerHTML="<img src='./images/graph_new.gif' width='713' height='249' />";
	}
	//document.getElementById("clicktoverifyIMG").innerHTML='<img src="./images/click_to_verify.jpg" name="banner2" width="835" height="167" border="0" usemap="#banner2MapMapMap5" id="banner8" />';

	//document.getElementById("clicktoverifyIMG").innerHTML='<img src="./<?=CLICK_TO_VERIFY;?>" name="banner2" width="835" height="167" border="0" usemap="#banner2MapMapMap5" id="banner8" />';
	document.getElementById("the_cause_headingIMG").innerHTML="<img src='./images/the_cause_heading.gif' width='441' height='40' />";
	
	document.getElementById("step1IMG").innerHTML='<img src="./images/step1.gif" width="176" height="88" align="middle" class="img_2" />';
	document.getElementById("step2IMG").innerHTML='<img src="./images/step2.gif" width="176" height="89" align="left" class="img_2" />';
	document.getElementById("step3IMG").innerHTML='<img src="./images/step3.gif" width="176" height="89" align="left" class="img_2" />';
	document.getElementById("step4IMG").innerHTML='<img src="./images/step4.gif" width="176" height="88" class="img_2" />';
	
	


	//document.getElementById("click_to_verify_2_IMG").innerHTML='<img src="./images/click_to_verify.jpg" name="banner2" width="835" height="167" border="0" usemap="#banner2MapMap" id="banner3" />';//comment on 07 oct 2010

    //document.getElementById("click_to_verify_2_IMG").innerHTML="<img src='./<?=CLICK_TO_VERIFY;?>' name='banner2' width='835' height='167' border='0' usemap='#banner2MapMap' id='banner3' />";	
	
	//alert(document.getElementById("click_to_verify_2_IMG").innerHTML);
	document.getElementById("TableContains").innerHTML='<table width="100%" border="0" align="center" cellpadding="4" cellspacing="0" id="table_surgery"><tr><td id="table_yellow"><h4><img src="./images/cure_step1.jpg" width="155" height="108" align="left" /></h4><h4>&nbsp;</h4><h4>&nbsp;</h4><h4>1. Disengage the American Sleep Association\'s patent fastening system by pealing the lower tray from the upper tray.</h4><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><h4><img src="./images/cure_step2.jpg" width="155" height="108" align="left" /></h4><h4>&nbsp;</h4><h4>&nbsp;</h4><h4>2. Put the upper and lower tray in your mouth.</h4><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><h4><img src="./images/cure_step3.jpg" width="155" height="108" align="left" /></h4><h4>&nbsp;</h4><h4>3. Reposition the lower jaw to your liking.</h4><h4><br />4. Bite down. The American Sleep Association oral appliance is now readjusted to your liking.</h4><p>&nbsp;</p><p><br /></p><h4><br /><img src="./images/cure_step4.jpg" width="155" heit="108" align="left" /></h4><h4>&nbsp;</h4><h4>&nbsp;</h4><h4>By wearing the American Sleep Association\'s oral appliance at night  eliminates or reduces snoring and sleep apnea.</h4></td></tr></table>';
	
	//document.getElementById("click_to_verify_3_IMG").innerHTML='<img src="./images/click_to_verify.jpg" name="banner2" width="835" height="167" border="0" usemap="#banner2MapMapMap" id="banner4" />';//comment on 07 oct 2010

	//document.getElementById("click_to_verify_3_IMG").innerHTML='<img src="./<?=CLICK_TO_VERIFY;?>" name="banner2" width="835" height="167" border="0" usemap="#banner2MapMapMap" id="banner4" />';	
	
	document.getElementById("step_1_IMG").innerHTML='<img src="./images/small_box/step1.gif" width="99" height="31" />';
	document.getElementById("step_1_top_IMG").innerHTML='<img src="./images/small_box/top.gif" width="143" height="31" />';
	document.getElementById("step_1_main_IMG").innerHTML='<img src="./images/small_box/picture1.gif" width="106" height="127" />';
	document.getElementById("step_1_B_IMG").innerHTML='<img src="./images/small_box/step1.gif" width="99" height="31" />';
	document.getElementById("step_1_B_top_IMG").innerHTML='<img src="./images/small_box/top.gif" width="143" height="31" />';

	document.getElementById("step_1_B_main_IMG").innerHTML='<img src="./images/small_box/picture2.gif" width="106" height="127" />';
	
	document.getElementById("step_2_IMG").innerHTML='<img src="./images/small_box/step2.gif" width="99" height="31" />';
	document.getElementById("step_2_top_IMG").innerHTML='<img src="./images/small_box/top.gif" width="143" height="31" />';
	document.getElementById("step_2_main_IMG").innerHTML='<img src="./images/small_box/picture2b.gif" width="106" height="127" />';
	document.getElementById("step_2_B_IMG").innerHTML='<img src="./images/small_box/step2.gif" width="99" height="31" />';
	document.getElementById("step_2_B_top_IMG").innerHTML='<img src="./images/small_box/top.gif" width="143" height="31" />';
	document.getElementById("step_2_B_main_IMG").innerHTML='<img src="./images/small_box/picture3.gif" width="106" height="154" />';
	
	document.getElementById("step_3_IMG").innerHTML='<img src="./images/small_box/step3.gif" width="99" height="31" />';
	document.getElementById("step_3_top_IMG").innerHTML='<img src="./images/small_box/top.gif" width="143" height="31" />';
	document.getElementById("step_3_main_IMG").innerHTML='<img src="./images/small_box/picture4.gif" width="106" height="153" />';
	document.getElementById("step_3_B_IMG").innerHTML='<img src="./images/small_box/step3.gif" width="99" height="31" />';
	document.getElementById("step_3_B_top_IMG").innerHTML='<img src="./images/small_box/top.gif" width="143" height="31" />';
	document.getElementById("step_3_B_main_IMG").innerHTML='<img src="./images/small_box/picture1.gif" width="106" height="153" />';
	
	document.getElementById("step_4_IMG").innerHTML='<img src="./images/small_box/step4.gif" width="99" height="31" />';
	document.getElementById("step_4_top_IMG").innerHTML='<img src="./images/small_box/top.gif" width="143" height="31" />';
	document.getElementById("step_4_main_IMG").innerHTML='<img src="./images/small_box/picture4b.gif" width="106" height="153" />';
	document.getElementById("step_4_B_IMG").innerHTML='<img src="./images/small_box/step4.gif" width="99" height="31" />';
	document.getElementById("step_4_B_top_IMG").innerHTML='<img src="./images/small_box/top.gif" width="143" height="31" />';
	document.getElementById("step_4_B_main_IMG").innerHTML='<img src="./images/small_box/picture4.gif" width="106" height="153" />';
	
	document.getElementById("step_5_IMG").innerHTML='<img src="./images/small_box/step5.gif" width="99" height="31" />';
	document.getElementById("step_5_top_IMG").innerHTML='<img src="./images/small_box/top.gif" width="143" height="31" />';
	document.getElementById("step_5_main_IMG").innerHTML='<img src="./images/small_box/picture6.gif" width="106" height="153" />';
	document.getElementById("step_5_B_IMG").innerHTML='<img src="./images/small_box/step5.gif" width="99" height="31" />';
	document.getElementById("step_5_B_top_IMG").innerHTML='<img src="./images/small_box/top.gif" width="143" height="31" />';
	document.getElementById("step_5_B_main_IMG").innerHTML='<img src="./images/small_box/picture5.gif" width="106" height="153" />';
	
	document.getElementById("step_6_B_IMG").innerHTML='<img src="./images/small_box/step6.gif" width="99" height="31" />';
	document.getElementById("step_6_B_top_IMG").innerHTML='<img src="./images/small_box/top.gif" width="143" height="31" />';
	document.getElementById("step_6_B_main_IMG").innerHTML='<img src="./images/small_box/picture6b.gif" width="106" height="127" />';
	
	/*
	document.getElementById("the_cause_headingIMG").innerHTML='';
	*/
}
