function launchpotupeven(SrNo) {
		var myBars='directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no,scrollbars=yes'
		var myOptions='width=500,height=200,resizeable=yes,alwaysRaised=yes,z-lock=yes,alwaysLowered=no';
		var myfeatures=myBars + ',' + myOptions;
		window.open("http://healthandyoga.com/html/yoga/event/eventpopup.aspx?Eno="+SrNo,"Yoga_Studio",myfeatures);
	}
	
	function launchpopup(SrNo) {
	var myBars='directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no,scrollbars=yes'
	var myOptions='width=500,height=400,resizeable=yes,alwaysRaised=yes,z-lock=yes,alwaysLowered=no';
	var myfeatures=myBars + ',' + myOptions;
	window.open("http://www.healthandyoga.com/html/yoga/mailform.asp?title=Yoga_Event&srno="+SrNo,"Yoga_Event",myfeatures);
	}

function mailopenWindow(theURL) { //v2.0
  
  window.open(theURL,'ErrorForm','width=420,height=380,top=90,left=10');
 }
function ErropenWindow(theURL) { //v2.0
   
  window.open(theURL,'ErrorForm','width=420,height=320,top=90,left=10');
}
function openskl(url, name) 
{
popupWin = window.open(url, name,'status=no,resize=yes,toolbar=no,scrollbars=no,width=370,height=430,top=20,left=10')
}
function terms(url, name) 
{
popupWin = window.open(url, name,'status=no,resize=yes,toolbar=no,scrollbars=yes,width=370,height=430,top=20,left=10')
}
function checkdata()
{
if (document.frmplan.food_plan.value=="abc")
    {
	alert("Please Select Types of Diseases...");
	document.frmplan.food_plan.focus();
	return false;
	}
}

function checkdata1()
{
if (document.frmcat.food_personal.value=="abc")
    {
	alert("Please Select Diet Categories...");
	document.frmcat.food_personal.focus();
	return false;
	}
}

function comment()
{
window.open("comment.html","about","width=480,height=430,status=no,toolbar=no,menubar=no,top=90,left=10")
}

function methodologyform()
{
popup =window.open("../../html/misc/methodology.html","","width=500,height=420,top=90,left=10,scrollbars=yes,status=no,toolbar=no,menubar=no")
}

function guru()
{
window.open("pguru.html","g","width=400,height=280,toolbar=no,menubar=no top=90, left=10")
}

function check2() {
 if (document.eyForm.f_email.value=="" ) {
    alert ("Please Insert Your e-Mail ");
   return false;
   }


else {
    if (document.eyForm.f_email.value.indexOf('@')== -1) {
    alert ("Please Insert a Valid e-Mail ID ");
   return false;
    }

if (document.eyForm.f_email.value.indexOf(',')>=0) {
    alert ("do't put comma  ");
   return false;
    }
   }
   }

function unsub()
	{
		window.open("../html/misc/unsub.html","unsubscribe","width=360,height=205,status=no,toolbar=no,menubar=no, target=_blank")
	}

function funques1(){
for(i=0;i<3;i++)
if(document.frm1.ques1[i].checked)
    document.frm1.txtques1.value = document.frm1.ques1[i].value
cal()
}

function funques2(){
for(i=0;i<3;i++)
if(document.frm1.ques2[i].checked)
    document.frm1.txtques2.value = document.frm1.ques2[i].value
cal()
}


function funques3(){
for(i=0;i<3;i++)
if(document.frm1.ques3[i].checked)
    document.frm1.txtques3.value = document.frm1.ques3[i].value
cal()
}


function funques4(){
for(i=0;i<3;i++)
if(document.frm1.ques4[i].checked)
    document.frm1.txtques4.value = document.frm1.ques4[i].value
cal()
}


function funques5(){
for(i=0;i<3;i++)
if(document.frm1.ques5[i].checked)
    document.frm1.txtques5.value = document.frm1.ques5[i].value
cal()
}


function funques6(){
for(i=0;i<3;i++)
if(document.frm1.ques6[i].checked)
    document.frm1.txtques6.value = document.frm1.ques6[i].value
cal()
}


function funques7(){
for(i=0;i<3;i++)
if(document.frm1.ques7[i].checked)
    document.frm1.txtques7.value = document.frm1.ques7[i].value
cal()
}


function funques8(){
for(i=0;i<3;i++)
if(document.frm1.ques8[i].checked)
    document.frm1.txtques8.value = document.frm1.ques8[i].value
cal()
}


function funques9(){
for(i=0;i<3;i++)
if(document.frm1.ques9[i].checked)
    document.frm1.txtques9.value = document.frm1.ques9[i].value
cal()
}


function funques10(){
for(i=0;i<3;i++)
if(document.frm1.ques10[i].checked)
    document.frm1.txtques10.value = document.frm1.ques10[i].value
cal()
}


function cal()
		{
			document.frm1.tot.value = parseInt(document.frm1.txtques1.value) + parseInt(document.frm1.txtques2.value) + parseInt(document.frm1.txtques3.value) + parseInt(document.frm1.txtques4.value) + parseInt(document.frm1.txtques5.value) + parseInt(document.frm1.txtques6.value) + parseInt(document.frm1.txtques7.value) + parseInt(document.frm1.txtques8.value) + parseInt(document.frm1.txtques9.value) + parseInt(document.frm1.txtques10.value)
		}

function checkdatach()
 {
  if(document.yogapchildren.name.value=="")
   {
   alert("Please Enter Your Name!!");
   document.yogapchildren.name.focus();
   return false;
   }
  if(document.yogapchildren.email.value=="")
   {
   alert("Please Enter Your Email!!");
   document.yogapchildren.email.focus();
   return false;
   } 
   if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.yogapchildren.email.value))
     {
     }
 else
    {
	alert("Invalid E-mail ID! Please re-enter!!");
	document.yogapchildren.email.focus();
	return (false);
    } 
	return true;
 }


function checkdata()
 {
  if(document.corporate_yoga.name.value=="")
   {
   alert("Please Enter Your Name!!");
   document.corporate_yoga.name.focus();
  return false;
  }
  if(document.corporate_yoga.email.value=="")
   {
   alert("Please Enter Your Email!!");
   document.corporate_yoga.email.focus();
   return false;
   } 
   if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.corporate_yoga.email.value))
     {
     }
 else
    {
	alert("Invalid E-mail ID! Please re-enter!!");
	document.corporate_yoga.email.focus();
	return (false);
    } 
	return true;
 }

function checkdatacertificate()
 {
   if(document.yogacertificate.course.value=="")
      {   
	   alert("Please Choose At least One Course");
	   document.yogacertificate.course.focus();
	   return false;
	   
	 }
   if(document.yogacertificate.cname.value=="")
      {
	    alert("Please Enter Your Name");
		document.yogacertificate.cname.focus();
       return false; 
	  }
	  if(document.yogacertificate.email.value=="")
      {
	    alert("Please Enter Your Email Address");
		document.yogacertificate.email.focus();
       return false; 
	  }
	 if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.yogacertificate.email.value))
{
}
else
{
	alert("Invalid E-mail Address! Please re-enter.");
	document.yogacertificate.email.focus();
	return (false);
} 

return true;
 }

function enlargeimage(strURL,winPara){
	window.open(strURL,"preview",winPara);
}

function yguideWindow(theURL) { //v2.0
window.name="parentwindow";
  window.open(theURL,'yguideupgrades','scrollbars=yes,width=640,height=480');
}

function CngPrice(){
if (document.FrmOption.chk1.checked && document.FrmOption.chk2.checked && document.FrmOption.chk3.checked)
	{
	document.FrmOption.txtPrice.value="65.95";
	document.FrmOption.itemno.value="502";
	}
else if (document.FrmOption.chk1.checked && document.FrmOption.chk2.checked)
	{
	document.FrmOption.txtPrice.value="49.95";
	document.FrmOption.itemno.value="503";
	}
else if (document.FrmOption.chk1.checked && document.FrmOption.chk3.checked)
	{
	document.FrmOption.txtPrice.value="36.95";
	document.FrmOption.itemno.value="504";
	}
else if (document.FrmOption.chk2.checked && document.FrmOption.chk3.checked)
	{
	document.FrmOption.txtPrice.value="40.95";
	document.FrmOption.itemno.value="505";
	}
else if (document.FrmOption.chk1.checked)
	{
	document.FrmOption.txtPrice.value="24.95";
	document.FrmOption.itemno.value="84";
	}
else if (document.FrmOption.chk2.checked)
	{
	document.FrmOption.txtPrice.value="27.95";
	document.FrmOption.itemno.value="105";
	}
else if (document.FrmOption.chk3.checked)
	{
	document.FrmOption.txtPrice.value="16.95";
	document.FrmOption.itemno.value="2";
	}
else
	{
	document.FrmOption.txtPrice.value="";
	document.FrmOption.itemno.value="502";
	}
}

function contentform()
{
window.open("../../html/misc/contents.html","about","width=400,height=380,status=no,toolbar=no,menubar=no")
}
function zipbag(theURL) { //v2.0
  
  window.open(theURL,'ErrorForm','width=300,height=300,top=90,left=10');
 }
 function testimonials(url, name) 
{
popupWin = window.open(url, name,'status=no,resize=yes,toolbar=no,scrollbars=yes,width=360,height=280,top=20,left=10')
}
function books(url, name) 
{
popupWin = window.open(url, name,'status=no,resize=yes,toolbar=no,scrollbars=yes,width=360,height=230,top=20,left=10')
}
function mailfeedback(theURL) { //v2.0
  
  window.open(theURL,'ErrorForm','width=420,height=340,top=90,left=10');
 }
 function neem(url, name) 
{
popupWin = window.open(url, name,'status=no,resize=yes,toolbar=no,scrollbars=no,width=360,height=180,top=20,left=10')
}
function herbWindows(theURL) { //v2.0
  window.open(theURL,'asf','width=325,height=220,top=90,left=300');
}
function advyoga(url, name) 
{
popupWin = window.open(url, name,'status=no,resize=yes,toolbar=no,scrollbars=yes,width=500,height=280,top=20,left=10')
}
function calendar(theURL) { //v2.0
  window.open(theURL,'asf','width=750,height=330, scrollbars=yes,resizable=yes,top=20,left=10');
}
function size(theURL) { //v2.0
  window.open(theURL,'asf','width=550,height=220, scrollbars=yes,resizable=yes,top=20,left=10');
}
function code(theURL) { //v2.0
  window.open(theURL,'asf','width=750,height=330, scrollbars=yes,resizable=yes,top=20,left=10');
}
function duration(url, name) 
{
popupWin = window.open(url, name,'status=no,resize=yes,toolbar=no,scrollbars=no,width=400,height=110,top=20,left=10')
}
function Color(url, name) 
{
popupWin = window.open(url, name,'status=no,resize=yes,toolbar=no,scrollbars=no,width=400,height=120,top=20,left=10')
}

function speciality(theURL) { //v2.0
  window.open(theURL,'asf','width=750,height=550, scrollbars=yes,resizable=yes,top=20,left=10');
}

function jobOption(url, name) 
{
popupWin = window.open(url, name,'status=no,resize=yes,toolbar=no,scrollbars=no,width=600,height=265,top=20,left=10')
}

function details(url, name) 
{
popupWin = window.open(url, name,'status=no,resize=yes,toolbar=no,scrollbars=yes,width=600,height=500,top=20,left=10')
}
