// JavaScript Document
function changestyle()
{
	var val = document.getElementsByTagName('a');
	/*for(var i=0;i<=val.length-1;i++  )
	{
		if (val[i].getAttribute('name'))
		{
			val[i].setAttribute('class', 'biglinks2');
			val[i].className = 'biglinks2';
		}
	}*/

	var val = document.getElementsByTagName('span');
	for(var i=0;i<=val.length-1;i++  )
	{
		if (val[i].getAttribute('style'))
		{
			//val[i].setAttribute('class', '');
			val[i].style.fontFamily = 'Arial';
			val[i].style.fontSize = "12px";
			val[i].style.color = "#56BAD4";
		}
	}
	
	
}
//validation for fertility booster's subscription form
function chk_mail()
{
	var email_Regxp = /^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)*\.([a-zA-Z]{2,6})$/;
	var msg = "";
	if(document.newsletter.Name.value == ""){ msg += "Name\n";}
	if(document.newsletter.Email.value == "") { msg += "Email\n";}
	if(msg != "")
	{
		alert("Please complete following fields\n\n"+msg);
	}
	else if(email_Regxp.test(document.newsletter.Email.value) == false)
	{
		alert("Invalid Email Id!");
	}
	else
	{
		document.newsletter.submit();
	}

}

function disp_form(n)
{
	for(i=1;i<=4;i++)
	{
		if (n==i)
		{
			showDiv('pg'+n);
			//document.all.'tab'+n.src="images/"+imgname+"_ro.gif" ;
			document.getElementById('formtab'+n).src="images/formtab"+n+"_ro.gif" ;
		}
		else
		{
			hideDiv('pg'+i);
			document.getElementById('formtab'+i).src="images/formtab"+i+".gif" ;
		}
		hideDiv('hed_div');
	}
}
function showDiv(divnm)
{
		document.getElementById(divnm).style["display"]="block" ;
		document.getElementById(divnm).style["visibility"]="visible" ;
}
function hideDiv(divnm)
{
		document.getElementById(divnm).style["display"]="none" ;
		document.getElementById(divnm).style["visibility"]="hidden" ;
}

function validate()
{
	var msg = "";
	if(document.form1.email.value == ""){msg = msg+"Email\n";}
	if(document.form1.wife_name.value == ""){msg = msg+"Name of Wife\n";}
	if(document.form1.husband_name.value == ""){msg = msg+"Name of Husband\n";}
	//if(document.form1.phone.value == ""){msg = msg+"Phone\n";}
	
	var email = document.form1.email.value;
	var email_Regxp = /^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)*\.([a-zA-Z]{2,6})$/;
		if(msg != "")
		{
			alert("Enter following Fields\n\n"+msg);
			disp_form('1');
		}
		else if(email_Regxp.test(email) == false)
		{
			alert('Invalid Email Address');
			disp_form('1');
			//document.form1.entry_code.value="";
			document.form1.email.focus();
		}
		else
		{
			document.form1.submit();
			//valid_code();
		}
}

function show_form(arr, div_name)
{
	if(arr == "yes")
	{
		showDiv(div_name);
	}
	else
	{
		hideDiv(div_name);
	}		
	function showDiv(divnm)
	{
		document.getElementById(divnm).style["display"]="block" ;
		document.getElementById(divnm).style["visibility"]="visible" ;
	}
	function hideDiv(divnm)
	{
		document.getElementById(divnm).style["display"]="none" ;
		document.getElementById(divnm).style["visibility"]="hidden" ;
	}
}


function show_form2()
{
	for(var i=0; i<document.form1.no_preg1.length; i++)
	{
		if(document.form1.no_preg1.options[i].selected)
		var num=document.form1.no_preg1.options[i].value;
	}
	document.getElementById('dd2').innerHTML="";
	for(var i=0; i<num; i++)
	{
		var str= "";
		var str1="<select name=prev_rec"+i+" class='formtext'><option value=''>--select year--</option>";
		var str2 ="";
		var d = new Date();
		var curr_year = d.getFullYear();
		for(var j=1980; j<=curr_year; j++)
		{
			str2 += "<option value="+j+">"+j+"</option>";
		}
		var str3="</select>&nbsp;&nbsp;";
		var str4="<img src=images/trans.gif hspace=0 vspace=0 height=5 width=5><br>";
		str=str4+str1+str2+str3;
		document.getElementById('dd2').innerHTML +=str;
		document.getElementById('dd2').innerHTML += "<br><input type=text name=prev"+i+" size=18 class='formtext' value='Outcome'><br><img src=images/trans.gif hspace=0 vspace=0 height=5 width=5><br>";
	}
}

function show_form3()
{
	for(var i=0; i<document.form1.no_preg2.length; i++)
	{
		if(document.form1.no_preg2.options[i].selected)
		var num=document.form1.no_preg2.options[i].value;
	}
	document.getElementById('dd3').innerHTML="";
	
	
	for(var i=0; i<num; i++)
	{
		var str= "";
		var str1="<select name=curr_rec"+i+" class='formtext'><option value=''>--select year--</option>";
		var str2 ="";
		var d = new Date();
		var curr_year = d.getFullYear();
		for(var j=1980; j<=curr_year; j++)
		{
			str2 += "<option value="+j+">"+j+"</option>";
		}
		var str3="</select>&nbsp;&nbsp;";
		var str4="<img src=images/trans.gif hspace=0 vspace=0 height=5 width=5><br>";
		str=str4+str1+str2+str3;
		document.getElementById('dd3').innerHTML +=str;
		document.getElementById('dd3').innerHTML +="<br><input type=text name=curr"+i+" size=18 class='formtext' value='Outcome'><br><img src=images/trans.gif hspace=0 vspace=0 height=5 width=5><br>";
	}
}

function show_form4()
{
	for(var i=0; i<document.form1.no_misc.length; i++)
	{
		if(document.form1.no_misc.options[i].selected)
		var num=document.form1.no_misc.options[i].value;
	}
	document.getElementById('dd5').innerHTML="";
	
	
	for(var i=0; i<num; i++)
	{
		var str= "";
		var str1="<select name=misc_year"+i+" class='formtext'><option value=''>Year of miscarriage</option>";
		var str2 ="";
		var d = new Date();
		var curr_year = d.getFullYear();
		for(var j=1980; j<=curr_year; j++)
		{
			str2 += "<option value="+j+">"+j+"</option>";
		}
		var str3="</select>&nbsp;&nbsp;";
		var str4 ="<br><select name=misc_week"+i+" class='formtext'><option value=''>Pregnant for weeks</option>";
		var str5 ="";
		for(var k=1;k<=40; k++)
		{
			str5 += "<option value="+k+">"+k+"</option>";
		}
		var str6="</select>&nbsp;&nbsp;";
		str=str1+str2+str3+str4+str5+str6;
		document.getElementById('dd5').innerHTML +=str;
		document.getElementById('dd5').innerHTML +="<br><input type=text name=misc_outcome"+i+" size=24 class='formtext' value='Outcome'><br><img src=images/trans.gif hspace=0 vspace=0 height=5 width=5><br>";
	}
}

function show_form5()
{
	for(var i=0; i<document.form1.no_tubal_preg.length; i++)
	{
		if(document.form1.no_tubal_preg.options[i].selected)
		var num=document.form1.no_tubal_preg.options[i].value;
	}
	document.getElementById('dd7').innerHTML="";
	for(var i=0; i<num; i++)
	{
		var str= "";
		var str1="<select name=tubal_year"+i+" class='formtext'><option value=''>--select year--</option>";
		var str2 ="";
		var d = new Date();
		var curr_year = d.getFullYear();

		for(var j=1980; j<=curr_year; j++)
		{
			str2 += "<option value="+j+">"+j+"</option>";
		}
		var str3="</select>&nbsp;&nbsp;";
		str=str1+str2+str3;
		document.getElementById('dd7').innerHTML +=str;
		document.getElementById('dd7').innerHTML +="<br><input type=text name=ectopic"+i+" size=18 class='formtext' value='Outcome'><br><img src=images/trans.gif hspace=0 vspace=0 height=5 width=5><br>";
	}
}
function show_form6()
{
for(var i=0; i<document.form1.no_live_births.length; i++)
	{
		if(document.form1.no_live_births.options[i].selected)
		var num=document.form1.no_live_births.options[i].value;
	}
	document.getElementById('dd9').innerHTML="";
	for(var i=0; i<num; i++)
	{
		var str= "";
		var str1="<select name=birth_year"+i+" class='formtext'><option value=''>--select year--</option>";
		var str2 ="";
		var d = new Date();
		var curr_year = d.getFullYear();
		for(var j=1980; j<=curr_year; j++)
		{
			str2 += "<option value="+j+">"+j+"</option>";
		}
		var str3="</select><br><img src=images/trans.gif hspace=0 vspace=0 height=5 width=5><br><input type=text name=live_births[] size=18 class=formtext value=Details><br><img src=images/trans.gif hspace=0 vspace=0 height=5 width=5><br>";
		str=str1+str2+str3;
		document.getElementById('dd9').innerHTML +=str;
	}
}
function show_form7()
{
for(var i=0; i<document.form1.male_pregno.length; i++)
	{
		if(document.form1.male_pregno.options[i].selected)
		var num=document.form1.male_pregno.options[i].value;
	}
	document.getElementById('dd11').innerHTML="";
	for(var i=0; i<num; i++)
	{
		var str= "";
		var str1="<select name=male_birth_year"+i+" class='formtext'><option value=''>--select year--</option>";
		var str2 ="";
		var d = new Date();
		var curr_year = d.getFullYear();
		for(var j=1980; j<=curr_year; j++)
		{
			str2 += "<option value="+j+">"+j+"</option>";
		}
		var str3="</select><br><img src=images/trans.gif hspace=0 vspace=0 height=5 width=5><br>";
		str=str1+str2+str3;
		document.getElementById('dd11').innerHTML +=str;
	}
}

function add_more(div_name)
{
var newdiv = document.createElement('div');
newdiv.innerHTML = "<img src='images/trans.gif' height='15' width='5' hspace='0' vspace='0'><table width=100% border=0 cellpadding=2 cellspacing=0><tr><td width=50% valign=baseline class='yellow_text'>Date:</td><td width=50%><input type=text name='cal[]' onfocus='showCalendarControl(this);' size=12 class='formtext'></td></tr><tr><td valign=baseline class='yellow_text'> Sperm Count:</td><td><input type=text name='spm_cnt[]' class='formtext' size='12' ><span class='formtext'>&nbsp;(million per ml)</span></td></tr><tr><td valign=baseline class='yellow_text'>Motility:</td><td class=bodytext><input type=text name='motility[]' class='formtext' size=5>%</td></tr><tr><td valign=top class='yellow_text'>Morphology:</td><td><textarea name='desc_morph[]' cols=25 class='formtext'></textarea></td></tr></table>";
document.getElementById(div_name).appendChild(newdiv);

}
function surgery_form(div_name)
{
	var newdiv = document.createElement('div');
	var str ="";
	var str1 = "<br><table border=0 width=100%><tr><td class=yellow_text width=52%>Name of Surgery</td><td width=48%><input type=text name='surgery_name[]' class=formtext></td></tr><tr><td class=yellow_text>Year</td><td>";
	var str2="<select name='surgery_year[]' class='formtext'><option value=''>-year-</option>";
		var str3 ="";
		var d = new Date();
		var curr_year = d.getFullYear();
		for(var j=1980; j<=curr_year; j++)
		{
			str3 += "<option value="+j+">"+j+"</option>";
		}
		var str4="</select><br>";
	
	var str5 = "</td></tr><tr><td class=yellow_text>Findings</td><td><input type=text name='findings[]' class=formtext></td></tr><tr><td colspan=2 align=right></td></tr>";	
	str = str1+str2+str3+str4+str5;
 newdiv.innerHTML=str;
 document.getElementById(div_name).appendChild(newdiv);
}


function add_more1(div_name)
{
	var num=document.form1.hid_cnt.value;
	var newdiv = document.createElement('div');
	var cnt = parseInt(num)+1;
	newdiv.innerHTML ="<br><br><table cellpadding=0 cellspacing=0 border=0 width='100%'><tr><td colspan=2 class=addresstextbold>RECORD "+cnt+" :</td></tr><tr><td class=yellow_text width=40%>Date :</td><td width=60%><img src='images/trans.gif' height=5 width=10 hspace=0 vspace=0><input type=text onClick=showCalendarControl(this); name='date_hyste[]' size=16 class=formtext></td></tr><tr><td colspan=2>&nbsp;</td></tr><tr><td class=yellow_text>Uterine Cavity :</td><td class=bodytext><img src='images/trans.gif' height=5 width=10 hspace=0 vspace=0> Normal :<img src='images/trans.gif' height=5 width=51 hspace=0 vspace=0><input name='hy_norm"+num+"' type=radio value=yes onClick=show_form(document.form1.hy_norm1[1].value,'hyst_div"+num+"');> Yes <input name='hy_norm"+num+"' type=radio value=no onClick= show_form(document.form1.hy_norm1[0].value,'hyst_div"+num+"');> No<div id='hyst_div"+num+"' style='DISPLAY: none; VISIBILITY: hidden;'> <img src='images/trans.gif' height=6 width=10 vspace=0 hspace=0> More Details : <img src='images/trans.gif' height=6 width=13 vspace=0 hspace=0> <input type=text name='norm[]' size=16 class=formtext></div></td></tr><tr><td colspan=2>&nbsp;</td></tr><tr><td class=yellow_text>Right fallopian tube :</td><td class=bodytext><img src='images/trans.gif' height=5 width=10 hspace=0 vspace=0> Normal :<img src='images/trans.gif' height=5 width=51 hspace=0 vspace=0><input name='rt_fall"+num+"' type=radio value=yes > Yes <input name='rt_fall"+num+"' type=radio value=no> No</td></tr><tr><td>&nbsp;</td><td class=bodytext><img src='images/trans.gif' height=5 width=10 hspace=0 vspace=0> Fill :<img src='images/trans.gif' height=5 width=74 vspace=0 hspace=0> <input name='rt_fill"+num+"' type=radio value=yes > Yes <input name='rt_fill"+num+"' type=radio value=no> No</td></tr><tr><td>&nbsp;</td><td class=bodytext><img src='images/trans.gif' height=5 width=10 hspace=0 vspace=0> Spill :<img src='images/trans.gif' height='5' width='65' vspace=0 hspace=0> <input name='rt_spill"+num+"' type=radio value=yes > Yes <input name='rt_spill"+num+"' type=radio value=no> No</td></tr><tr><td>&nbsp;</td><td class=bodytext><img src='images/trans.gif' height=5 width=10 hspace=0 vspace=0> More Details : <img src='images/trans.gif' height=5 width=11 vspace=0 hspace=0> <input name='rt_det[]' class=formtext type=text size=16></td></tr><tr><td colspan=2>&nbsp;</td></tr><tr><td class=yellow_text>Left fallopian tube :</td><td class=bodytext><img src='images/trans.gif' height=5 width=10 hspace=0 vspace=0> Normal :<img src='images/trans.gif' height=5 width=50 hspace=0 vspace=0><input name='lt_fall"+num+"' type=radio value=yes > Yes <input name='lt_fall"+num+"' type=radio value=no> No</td></tr><tr><td>&nbsp;</td><td class=bodytext><img src='images/trans.gif' height=5 width=10 hspace=0 vspace=0> Fill :<img src='images/trans.gif' height=5 width=74 vspace=0 hspace=0> <input name='lt_fill"+num+"' type=radio value=yes > Yes <input name='lt_fill"+num+"' type=radio value=no> No</td></tr><tr><td>&nbsp;</td><td class=bodytext><img src='images/trans.gif' height=5 width=10 hspace=0 vspace=0> Spill :<img src='images/trans.gif' height=5 width=65 vspace=0 hspace=0> <input name='lt_spill"+num+"' type=radio value=yes > Yes <input name='lt_spill"+num+"' type=radio value=no> No</td></tr><tr><td>&nbsp;</td><td class=bodytext><img src='images/trans.gif' height=5 width=10 hspace=0 vspace=0> More Details : <img src='images/trans.gif' height=5 width=11 hspace=0 vspace=0> <input name='lt_det[]' class=formtext type=text size=16></td></tr></table>";
	document.getElementById(div_name).appendChild(newdiv);
	num =parseInt(num) + 1;
	document.form1.hid_cnt.value=parseInt(num);
	
}
function add_more2(div_name)
{
	var num=document.form1.hid_cnt2.value;
	//alert(num);
	var newdiv = document.createElement('div');
	var cnt = parseInt(num)+1;
	newdiv.innerHTML ="<br><br><table cellpadding=0 cellspacing=0 border=0 width='100%'><tr><td colspan=2 class=addresstextbold>RECORD "+cnt+" :</td></tr><tr><td class=yellow_text width=40%>Date :</td><td width=60%><img src='images/trans.gif' height=5 width=10 vspace=0 hspace=0><input type=text onClick=showCalendarControl(this); name='date_lap[]' size=16 class=formtext></td></tr><tr><td class=yellow_text>Uterus :</td><td class=bodytext><img src='images/trans.gif' height=5 width=10 vspace=0 hspace=0>Normal :<img src='images/trans.gif' height=5 width=53 vspace=0 hspace=0><input name='lap_norm"+num+"' type=radio value=yes onClick=show_form(document.form1.lap_norm"+num+"[1].value,'lap_div"+num+"');> Yes <input name='lap_norm"+num+"' type=radio value=no onClick= show_form(document.form1.lap_norm"+num+"[0].value,'lap_div"+num+"');> No<div id='lap_div"+num+"' style='DISPLAY: none; VISIBILITY: hidden;'><img src='images/trans.gif' height=5 width=10 vspace=0 hspace=0>More Details :<img src='images/trans.gif' height=5 width=24 vspace=0 hspace=0><input type=text name='lapdet_norm[]' size=16 class=formtext></div></td></tr><tr><td colspan=2>&nbsp;</td></tr><tr><td class=yellow_text>Right fallopian tube :</td><td class=bodytext><img src='images/trans.gif' height=5 width=10 vspace=0 hspace=0>Normal :<img src='images/trans.gif' height=5 width=52 vspace=0 hspace=0><input name='laprt_fall"+num+"' type=radio value=yes > Yes <input name='laprt_fall"+num+"' type=radio value=no> No</td></tr><tr><td>&nbsp;</td><td class=bodytext><img src='images/trans.gif' height=5 width=10 vspace=0 hspace=0>Fill :<img src='images/trans.gif' height=5 width=76 vspace=0 hspace=0> <input name='laprt_fill"+num+"' type=radio value=yes > Yes <input name='laprt_fill"+num+"' type=radio value=no> No</td></tr><tr><td>&nbsp;</td><td class=bodytext><img src='images/trans.gif' height=5 width=10 vspace=0 hspace=0>Spill :<img src='images/trans.gif' height='5' width='67' vspace=0 hspace=0> <input name='laprt_spill"+num+"' type=radio value=yes > Yes <input name='laprt_spill"+num+"' type=radio value=no> No</td></tr><tr><td>&nbsp;</td><td class=bodytext><img src='images/trans.gif' height=5 width=10 vspace=0 hspace=0>More Details :<img src='images/trans.gif'height=5 width=24 vspace=0 hspace=0><input name='laprt_det[]' class=formtext type=text size=16></td></tr><tr><td colspan=2>&nbsp;</td></tr><tr><td class=yellow_text>Left fallopian tube :</td><td class=bodytext><img src='images/trans.gif' height=5 width=10 vspace=0 hspace=0>Normal :<img src='images/trans.gif' height=5 width=52 vspace=0 hspace=0><input name='laplt_fall"+num+"' type=radio value=yes > Yes <input name='laplt_fall"+num+"' type=radio value=no> No</td></tr><tr><td>&nbsp;</td><td class=bodytext><img src='images/trans.gif' height=5 width=10 vspace=0 hspace=0>Fill :<img src='images/trans.gif' height=5 width=80 vspace=0 hspace=0><input name='laplt_fill"+num+"' type=radio value=yes > Yes <input name='laplt_fill"+num+"' type=radio value=no> No</td></tr><tr><td>&nbsp;</td><td class=bodytext><img src='images/trans.gif' height=5 width=10 vspace=0 hspace=0>Spill :<img src='images/trans.gif' height=5 width=67 vspace=0 hspace=0> <input name='laplt_spill"+num+"' type=radio value=yes > Yes <input name='laplt_spill"+num+"' type=radio value=no> No</td></tr><tr><td>&nbsp;</td><td class=bodytext><img src='images/trans.gif' height=5 width=10 vspace=0 hspace=0>More Details :<img src='images/trans.gif' height=5 width=24 vspace=0 hspace=0><input name='laplt_det[]' class=formtext type=text size=16></td></tr><tr><td>&nbsp;</td><td class=bodytext><img src='images/trans.gif' height=5 width=10 vspace=0 hspace=0>Adhesions :<img src='images/trans.gif' height=5 width=30 vspace=0 hspace=0><input name='lap_adh"+num+"' class=bodytext type=radio value=yes onClick=show_form(document.form1.lap_adh"+num+"[0].value,'adh_div"+num+"');> Yes <input name='lap_adh"+num+"' class=bodytext type=radio value=no onClick=show_form(document.form1.lap_adh"+num+"[1].value,'adh_div"+num+"');> No<div id='adh_div"+num+"' style='DISPLAY: none; VISIBILITY: hidden;'><img src='images/trans.gif' height=5 width=10 vspace=0 hspace=0>More Details :<img src='images/trans.gif' height=5 width=23 vspace=0 hspace=0><input type=text name='lapadh_det[]' size=16 class=formtext></div></td></tr><tr><td>&nbsp;</td><td class=bodytext><img src='images/trans.gif' height=5 width=10 vspace=0 hspace=0>Endometriosis :<img src='images/trans.gif' height=5 width=6 vspace=0 hspace=0><input name='lap_end"+num+"' class=bodytext type=radio value=yes onClick=show_form(document.form1.lap_end"+num+"[0].value,'end_div"+num+"');> Yes <input name='lap_end"+num+"' class=bodytext type=radio value=no onClick=show_form(document.form1.lap_end"+num+"[1].value,'end_div"+num+"');> No<div id='end_div"+num+"' style='DISPLAY: none; VISIBILITY: hidden;'><img src='images/trans.gif' height=5 width=10 vspace=0 hspace=0>More Details :<img src='images/trans.gif' height=5 width=23 vspace=0 hspace=0><input type=text name='lapend_det[]' size=16 class=formtext></div></td></tr></table>";
	document.getElementById(div_name).appendChild(newdiv);
	num =parseInt(num) + 1;
	//alert(num);
	document.form1.hid_cnt2.value=parseInt(num);


}

function add_more3(div_name)
{
	var num=document.form1.hid_cnt3.value;
	var newdiv = document.createElement('div');
	var cnt = parseInt(num)+1;
	
	newdiv.innerHTML = "<br><table cellpadding='0' cellspacing='0' border='0' width='100%'><tr><td colspan=2 class=addresstextbold>RECORD "+cnt+" :</td></tr><tr><td class='yellow_text' width='40%'> Date :</td><td width='60%'> <img src='images/trans.gif' height='5' width='10' vspace='0' hspace='0'><input type='text' onClick='showCalendarControl(this);' name='hyscopy_date[]' size='16' class='formtext'></td></tr><tr><td class='yellow_text'>Uterine Cavity :Normal ?</td><td class='bodytext'><img src='images/trans.gif' height='5' width='116' vspace='0' hspace='0'><input name='hyscopy_norm"+num+"' type='radio' value='yes' onClick=show_form(document.form1.hyscopy_norm"+num+"[1].value,'hyscopy_div"+num+"');> Yes <input name='hyscopy_norm"+num+"' type='radio' value='no'onClick= show_form(document.form1.hyscopy_norm"+num+"[0].value,'hyscopy_div"+num+"');> No<div id='hyscopy_div"+num+"' style='DISPLAY: none; VISIBILITY: hidden;'><img src='images/trans.gif' height='5' width='10' vspace='0' hspace='0'>More Details :<img src='images/trans.gif' height='5' width='24' vspace='0' hspace='0'><input type='text' name='hyscopy_norm[]' size='16' class='formtext'></div></td></tr><tr><td class='yellow_text'>PolyP ?</td><td class='bodytext'><img src='images/trans.gif' height='5' width='116' vspace='0' hspace='0'><input name='polyp_radio"+num+"' type='radio' value='yes' onClick=show_form(document.form1.polyp_radio"+num+"[0].value,'polyp_div"+num+"');> Yes <input name='polyp_radio"+num+"' type='radio' value='no'onClick= show_form(document.form1.polyp_radio"+num+"[1].value,'polyp_div"+num+"');> No<div id='polyp_div"+num+"' style='DISPLAY: none; VISIBILITY: hidden;'><img src='images/trans.gif' height='5' width='10' vspace='0' hspace='0'>More Details :<img src='images/trans.gif' height='5' width='24' vspace='0' hspace='0'><input type='text' name='polyp[]' size='16' class='formtext'></div></td></tr><tr><td class='yellow_text'>Adhesions ?</td><td class='bodytext'><img src='images/trans.gif' height='5' width='116' vspace='0' hspace='0'><input name='hyscopy_radio"+num+"' type='radio' value='yes' onClick=show_form(document.form1.hyscopy_radio"+num+"[0].value,'hyadh_div"+num+"');> Yes <input name='hyscopy_radio"+num+"' type='radio' value='no'onClick= show_form(document.form1.hyscopy_radio"+num+"[1].value,'hyadh_div"+num+"');> No<div id='hyadh_div"+num+"' style='DISPLAY: none; VISIBILITY: hidden;'><img src='images/trans.gif' height='5' width='10' vspace='0' hspace='0'>More Details :<img src='images/trans.gif' height='5' width='24' vspace='0' hspace='0'><input type='text' name='hyscopy_adh[]' size='16' class='formtext'></div></td></tr><tr><td class='yellow_text'>Fibroid ?</td><td class='bodytext'><img src='images/trans.gif' height='5' width='116' vspace='0' hspace='0'><input name='fib_radio"+num+"' type='radio' value='yes' onClick=show_form(document.form1.fib_radio"+num+"[0].value,'fib_div"+num+"');> Yes <input name='fib_radio"+num+"' type='radio' value='no'onClick= show_form(document.form1.fib_radio"+num+"[1].value,'fib_div"+num+"');> No<div id='fib_div"+num+"' style='DISPLAY: none; VISIBILITY: hidden;'><img src='images/trans.gif' height='5' width='10' vspace='0' hspace='0'>More Details :<img src='images/trans.gif' height='5' width='24' vspace='0' hspace='0'><input type='text' name='fibroid[]' size='16' class='formtext'></div></td></tr></table>";
	document.getElementById(div_name).appendChild(newdiv);
	num =parseInt(num) + 1;
	document.form1.hid_cnt3.value=parseInt(num);
}
function add_more4(div_name)
{
	var newdiv = document.createElement('div');
	newdiv.innerHTML = "<br><table cellpadding=0 cellspacing=0 border=0 width='100%'><tr><td class=yellow_text>Date :</td><td><input type=text name='fsh_date[]' onClick='showCalendarControl(this);' size=16 class=formtext></td></tr><tr><td class=yellow_text>Result : </td><td> <input type=text name='fsh[]' size=16 class=formtext></td></tr></table>";
	document.getElementById(div_name).appendChild(newdiv);

}

function add_more5(div_name)
{
	var newdiv = document.createElement('div');
	newdiv.innerHTML = "<br><table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td class=yellow_text>Date: </td><td><input type=text name='lh_date[]' onClick=showCalendarControl(this); size=16 class=formtext></td></tr><tr><td class=yellow_text>Result :</td><td><input type=text name='lh[]' size=16 class=formtext></td></tr></table>";
	document.getElementById(div_name).appendChild(newdiv);
}

function add_more6(div_name)
{
	var newdiv = document.createElement('div');
	newdiv.innerHTML = "<br><table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td class=yellow_text>Date :</td><td><input type=text name='pro_date[]' onClick=showCalendarControl(this); size=16 class=formtext></td></tr><tr><td class=yellow_text>Result :</td><td><input type=text name='prolactin[]' size=16 class=formtext></td></tr></table>";
	document.getElementById(div_name).appendChild(newdiv);
}

function add_more7(div_name)
{
	var newdiv = document.createElement('div');
	newdiv.innerHTML = "<br><table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td class=yellow_text>Date :</td><td><input type=text name='tsh_date[]' onClick=showCalendarControl(this); size=16 class=formtext></td></tr><tr><td class=yellow_text>Result :</td><td><input type=text name='tsh[]' size=16 class=formtext></td></tr></table>";
	document.getElementById(div_name).appendChild(newdiv);
}

function add_more8(div_name)
{
	var newdiv = document.createElement('div');
	newdiv.innerHTML = "<br><table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td class=yellow_text>Date :</td><td ><input type=text name='other_date[]' onClick=showCalendarControl(this); size=16 class=formtext></td></tr><tr><td class=yellow_text>Result :</td><td><input type=text name='other[]' size=16 class=formtext></td></tr></table>";
	document.getElementById(div_name).appendChild(newdiv);
}

function add_more9(div_name)
{
	var newdiv = document.createElement('div');
	newdiv.innerHTML = "<br><table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td class=yellow_text>Date :</td><td><input type=text name='ultr_date[]' onClick=showCalendarControl(this); size=16 class=formtext></td></tr><tr><td class=yellow_text>Any Success? :</td><td><input type=text name='ultr_res[]' size=16 class=formtext></td></tr></table>";
	document.getElementById(div_name).appendChild(newdiv);

}

function add_more10(div_name)
{
	var newdiv = document.createElement('div');
	newdiv.innerHTML = "<br><table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td class=yellow_text>Date :</td><td><input type=text name='clom_date[]' onClick=showCalendarControl(this); size=16 class=formtext></td></tr><tr><td class=yellow_text>Any Success? :</td><td><input type=text name='clom_res[]' size=16 class=formtext></td></tr></table>";
	document.getElementById(div_name).appendChild(newdiv);
}

function add_more11(div_name)
{
	var newdiv = document.createElement('div');
	newdiv.innerHTML = "<br><table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td class=yellow_text>Date :</td><td><input type=text name='iui_date[]' onClick=showCalendarControl(this); size=16 class=formtext></td></tr><tr><td class=yellow_text>Any Success? :</td><td><input type=text name='iui_res[]' size=16 class=formtext></td></tr></table>";
	document.getElementById(div_name).appendChild(newdiv);
}

function add_more12(div_name)
{
	var newdiv = document.createElement('div');
	newdiv.innerHTML = "<br><table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td class=yellow_text>Date :</td><td><input type=text name='hmg_date[]' onClick=showCalendarControl(this); size=16 class=formtext></td></tr><tr><td class=yellow_text>Any Success? :</td><td><input type=text name='hmg_res[]' size=16 class=formtext></td></tr></table>";
	document.getElementById(div_name).appendChild(newdiv);
}

function add_more13(div_name)
{
	var newdiv = document.createElement('div');
	newdiv.innerHTML = "<br><table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td class=yellow_text>Date :</td><td><input type=text name='iui2_date[]' onClick=showCalendarControl(this); size=16 class=formtext></td></tr><tr><td class=yellow_text>Any Success? :</td><td><input type=text name='iui2_res[]' size=16 class=formtext></td></tr></table>";
	document.getElementById(div_name).appendChild(newdiv);
}

function add_more14(div_name)
{
	var newdiv = document.createElement('div');
	newdiv.innerHTML = "<br><table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td class=yellow_text>Date :</td><td><input type=text name='inject_date[]' onClick=showCalendarControl(this); size=16 class=formtext></td></tr><tr><td class=yellow_text>Any Success? :</td><td><input type=text name='inject_res[]' size=16 class=formtext></td></tr></table>";
	document.getElementById(div_name).appendChild(newdiv);
}

function add_more15(div_name)
{
	var cnt = document.form1.hid_cnt15.value;
	//alert(cnt);
	var newdiv = document.createElement('div');
	newdiv.innerHTML = "<br><table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td colspan=2 class=addresstextbold>RECORD "+cnt+":</td></tr><tr><td class=yellow_text width=75%>Date :</td><td width=25%><input type=text name='ivf_date[]' onClick=showCalendarControl(this); class=formtext size=16></td></tr><tr><td class=yellow_text>Doctor :</td><td><input type=text name='doctor[]' class=formtext size=16></td></tr><tr><td class=yellow_text>Stimulation Protocol :</td><td><input type=text name='stim_pro[]' class=formtext size=16></td></tr><tr><td class=yellow_text>Downregulation with :</td><td><input type=text name='down_reg[]' class=formtext size=16></td></tr><tr><td class=yellow_text>Superovulation with :</td><td><input type=text name='sup_ovu[]' class=formtext size=16></td></tr><tr><td class=yellow_text>Dose of Hmg :</td><td><input type=text name='hmg_dos[]' class=formtext size=16></td></tr><tr><td class=yellow_text>Days of Hmg :</td><td><input type=text name='hmg_days[]' class=formtext size=16></td></tr><tr><td class=yellow_text>Follicles grown :</td><td><input type=text name='follicles[]' class=formtext size=16></td></tr><tr><td class=yellow_text>E2 ( estradiol) level :</td><td><input type=text name='e2_level[]' class=formtext size=16></td></tr><tr><td class=yellow_text>Eggs collected :</td><td><input type=text name='eggs[]' class=formtext size=16></td></tr><tr><td class=yellow_text>Endometrial thickness :</td><td><input type=text name='endo_thick[]' class=formtext size=16></td></tr><tr><td class=yellow_text>Embryos formed :</td><td><input type=text name='emb_form[]' class=formtext size=16></td></tr><tr><td class=yellow_text>Embryos transferred :</td><td><input type=text name='emb_trans[]' class=formtext size=16></td></tr><tr><td class=yellow_text>Embryos frozen :</td><td><input type=text name='emb_fr[]' class=formtext size=16></td></tr><tr><td class=yellow_text>Beta HCG :</td><td><input type=text name='beta_hcg[]' class=formtext size=16></td></tr><tr><td class=yellow_text>Pregnancy outcome  :</td><td><input type=text name='preg_out[]' class=formtext size=16></td></tr></table>";
	document.getElementById(div_name).appendChild(newdiv);
	cnt =parseInt(cnt) + 1;
	document.form1.hid_cnt15.value=parseInt(cnt);
	
}

function add_more16(div_name)
{
	var cnt = document.form1.hid_cnt16.value;
	//alert(cnt);
	var newdiv = document.createElement('div');
	newdiv.innerHTML = "<br><table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td colspan=2 class=addresstextbold>RECORD "+cnt+":</td></tr><tr><td class=yellow_text width=75%>Date :</td><td width=25%><input type=text name='ivf_date1[]' onClick=showCalendarControl(this); class=formtext size=16></td></tr><tr><td class=yellow_text>Doctor :</td><td><input type=text name='doctor1[]' class=formtext size=16></td></tr><tr><td class=yellow_text>Stimulation Protocol :</td><td><input type=text name='stim_pro1[]' class=formtext size=16></td></tr><tr><td class=yellow_text>Downregulation with :</td><td><input type=text name='down_reg1[]' class=formtext size=16></td></tr><tr><td class=yellow_text>Superovulation with :</td><td><input type=text name='sup_ovu1[]' class=formtext size=16></td></tr><tr><td class=yellow_text>Dose of Hmg :</td><td><input type=text name='hmg_dos1[]' class=formtext size=16></td></tr><tr><td class=yellow_text>Days of Hmg :</td><td><input type=text name='hmg_days1[]' class=formtext size=16></td></tr><tr><td class=yellow_text>Follicles grown :</td><td><input type=text name='follicles1[]' class=formtext size=16></td></tr><tr><td class=yellow_text>E2 ( estradiol) level :</td><td><input type=text name='e2_level1[]' class=formtext size=16></td></tr><tr><td class=yellow_text>Eggs collected :</td><td><input type=text name='eggs1[]' class=formtext size=16></td></tr><tr><td class=yellow_text>Endometrial thickness :</td><td><input type=text name='endo_thick1[]' class=formtext size=16></td></tr><tr><td class=yellow_text>Embryos formed :</td><td><input type=text name='emb_form1[]' class=formtext size=16></td></tr><tr><td class=yellow_text>Embryos transferred :</td><td><input type=text name='emb_trans1[]' class=formtext size=16></td></tr><tr><td class=yellow_text>Embryos frozen :</td><td><input type=text name='emb_fr1[]' class=formtext size=16></td></tr><tr><td class=yellow_text>Beta HCG :</td><td><input type=text name='beta_hcg1[]' class=formtext size=16></td></tr><tr><td class=yellow_text>Pregnancy outcome  :</td><td><input type=text name='preg_out1[]' class=formtext size=16></td></tr></table>";
	document.getElementById(div_name).appendChild(newdiv);
	cnt =parseInt(cnt) + 1;
	document.form1.hid_cnt15.value=parseInt(cnt);
	
}

function add_details(div_name)
{
var newdiv = document.createElement('div');
	newdiv.innerHTML = "<table><tr><td><input type=text name='det_date[]' onClick='showCalendarControl(this);' size='8'></td><td><input type=text name='sti_pro[]' size='4'></td><td><input type=text name='foll[]' size=4></td><td><input type=text name='embr1[]' size=4></td><td><input type=text name='embr2[]' size=4></td><td><input type=text name='embr3[]' size=4></td></tr></table>";
	document.getElementById(div_name).appendChild(newdiv);
}

