
function validateEnrollForm()
   {											
   if (frmregistration.txtName.value == "")
   {
   alert("Please enter a value for the \"Name\" field.");
   frmregistration.txtName.focus();
   return (false);
    }

if (frmregistration.txtOrgCom.value == "")
{
alert("Please enter a value for the \"Company\" field.");
frmregistration.txtOrgCom.focus();
return (false);
}
if (frmregistration.txtMailAdd.value == "")
{
alert("Please enter a value for the \"Mailing Address\" field.");
frmregistration.txtMailAdd.focus();
return (false);
}

if (frmregistration.txtEmail.value == "")
{
alert("Please enter a value for the \"Email\" field.");
frmregistration.txtEmail.focus();
return (false);
}


var check=document.frmregistration.txtEmail.value.length
var j
var allValid = false;
for(j=0;j<check;++j)
{
if(document.frmregistration.txtEmail.value.charAt(j)=="@") 
   { allValid=true; }
}
if (!allValid)
  {
    alert("Email ID can not be without '@' sign")
    document.frmregistration.txtEmail.focus();
    return false
  }
var check=document.frmregistration.txtEmail.value.length
var j
var allValid = false;
for(j=0;j<check;++j)
{
if(document.frmregistration.txtEmail.value.charAt(j)==".") 
   { allValid=true; }
}
if (!allValid)
  {
    alert("Email ID can not be without '.' sign")
    document.frmregistration.txtEmail.focus();
    return false
  }
  
  
  
if (frmregistration.txtTeleNumber.value == "")
{
alert("Please enter a value for the \" Tel No\" field.");
frmregistration.txtTeleNumber.focus();
return (false);
}
if (isNaN(document.frmregistration.txtTeleNumber.value))
		{
			alert("Please enter a numeric value for the \" Tel No\" field.");
			document.frmregistration.txtTeleNumber.focus();
			return false;
		}


if (frmregistration.txtSingle.value == "" && frmregistration.txtDouble.value == "")
{
alert("Please enter a value for either the \"Single or Double\" field.");
frmregistration.txtSingle.focus();
return (false);
}
if (frmregistration.txtSingle.value != "")
{
if (isNaN(document.frmregistration.txtSingle.value))
		{
			alert("Please enter a numeric value for the \" Single\" field.");
			document.frmregistration.txtSingle.focus();
			return false;
		}
}
if (frmregistration.txtDouble.value != "")
{

if (isNaN(document.frmregistration.txtDouble.value))
		{
			alert("Please enter a numeric value for the \" Double\" field.");
			document.frmregistration.txtDouble.focus();
			return false;
		}
}

if (frmregistration.txtHotel1.value == "")
{
alert("Select Hotel and Click on Option.");
frmregistration.txtHotel1.focus();
return (false);
}

if (frmregistration.date1.value == "")
{
alert("Please enter a value for the \"Check In\" field.");
frmregistration.date1.focus();
return false;
}
if (frmregistration.date2.value == "")
{
alert("Please enter a value for the \"Check Out\" field.");
frmregistration.date2.focus();
return false;
}


}



function GetSelectedItem() 
{
i=0
var choosen = ""
for (var i = 0; i < frmregistration.select1.length; i++) 
 {
   if (document.frmregistration.select1[i].selected)
    {
	choosen =  document.frmregistration.select1[i].value
	}
    frmregistration.txtHotel1.value =choosen
 }
  return choosen
}


function GetSelectedItem2() 
{
i=0
var choosen = ""
for (var i = 0; i < frmregistration.select1.length; i++) 
 {
   if (document.frmregistration.select1[i].selected)
    {
	choosen =  document.frmregistration.select1[i].value
	}
    frmregistration.txtHotel2.value =choosen
 }
  return choosen
}

function GetSelectedItem3() 
{
i=0
var choosen = ""
for (var i = 0; i < frmregistration.select1.length; i++) 
 {
   if (document.frmregistration.select1[i].selected)
    {
	choosen =  document.frmregistration.select1[i].value
	}
    frmregistration.txtHotel3.value =choosen
 }
  return choosen
}

function GetSelectedItem4() 
{
i=0
var choosen = ""
for (var i = 0; i < frmregistration.select1.length; i++) 
 {
   if (document.frmregistration.select1[i].selected)
    {
	choosen =  document.frmregistration.select1[i].value
	}
    frmregistration.txtHotel4.value =choosen
 }
  return choosen
}

var on_color = "#CC3399"; 
var off_color = "#0000FF";  //BLUE
var blink_onoff = 1;
var blinkspeed= 500;
function blink()
{
	if( blink_onoff == 1) {
           document.all.blink.style.color = on_color;
	   blink_onoff = 0;
	}
	else {
	   document.all.blink.style.color = off_color;
	   blink_onoff = 1;
	}
	
}	

var on_color1 = "#CC3399"; 
var off_color1 = "#0000FF";  //BLUE
var blink_onoff = 1;
var blinkspeed1= 500;
function blink1()
{
	if( blink_onoff == 1) {
           document.all.blink1.style.color = on_color;
	   blink_onoff1 = 0;
	}
	else {
	   document.all.blink1.style.color = off_color;
	   blink_onoff1 = 1;
	}
	
}	

