
/////////////////////////////////////

var xmlHttp

function fillparent(str,str1,str2,str3)

{
xmlHttps=GetXmlHttpObjects();

if (xmlHttps==null)

  {

  alert ("Your browser does not support AJAX!");

  return;

  } 

var url="ns_w_ajax.php?fname="+str;
url=url+"&sname="+str1;
url=url+"&email="+str2;
url=url+"&mode="+str3;


xmlHttps.onreadystatechange=stateChanged_parentss;

xmlHttps.open("GET",url,true);

xmlHttps.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=tis-620");

xmlHttps.send(null);

}



function stateChanged_parentss()

{ 

if (xmlHttps.readyState==4)

{ 

if (xmlHttps.status==200) {

fcn(document.form1.fname.value,document.form1.sname.value,document.form1.email.value,xmlHttps.responseText);

document.getElementById("parent").innerHTML=xmlHttps.responseText;

document.getElementById('parent').style.visibility='visible'

}

}

}

function fcn(str,str1,str2,str3)
{
	
	
	if(str3=="<font color='#ff0000'><b>-Enrollment successful ..we will contact you once we are ready with this service. Thank you.</b></font>" || str3=="<font color='#ff0000'><b>-You have been removed from our mailing list .. Thank you.</b></font>")
{
	document.form1.fname.value="";document.form1.sname.value="";document.form1.email.value="";
}
else
{
	document.form1.fname.value=str;document.form1.sname.value=str1;document.form1.email.value=str2;
	}
	}




function GetXmlHttpObjects()

{



var xmlHttps=null;

try

  {

  // Firefox, Opera 8.0+, Safari

  xmlHttps=new XMLHttpRequest();

  }

catch (e)

  {

   // Internet Explorer

  try

    {

    xmlHttps=new ActiveXObject("Msxml2.XMLHTTP");

    }

  catch (e)

    {

    xmlHttps=new ActiveXObject("Microsoft.XMLHTTP");

    }

  }

return xmlHttps;

}



		 

		  


