function deleteRecord(link) 

{

	if (confirm('Delete this Record ?')) {

		window.location.href =link ;

	}

}

function getdata()
{
	
	 if(document.frmnews.txtname.value=="")
		{ 
	  alert('Please Enter Your Name');
	  document.frmnews.txtname.focus()
	  return (false);
		}	
		
		 if(document.frmnews.txtemail.value=="")
		{ 
	  alert('Please Enter Email');
	  document.frmnews.txtemail.focus()
	  return (false);
	  		}	
	
	 else if (document.frmnews.txtemail.value!="")
			{ 
			    var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
                var address = document.frmnews.txtemail.value;
			     
				 if(reg.test(address) == false) 
				 {
                alert('Invalid Email Address');
				document.frmnews.txtemail.focus()
                return false;
				 }
			}
		
	
	 if(document.frmnews.txttelno.value=="")
		{ 
	  alert('Please Telephone No');
	  document.frmnews.txttelno.focus()
	  return (false);
		}	
		
		/*if (isNaN(document.frmnews.txttelno.value))
	  {
	    alert("Please enter  integers only");
	   document.frmnews.txttelno.focus()
	    return (false);
	  }*/
	
	
	name=document.frmnews.txtname.value;
	email=document.frmnews.txtemail.value;
	tel=document.frmnews.txttelno.value;
	str='admin/controller/con_mailist.php?name='+ name +'&email='+email+'&tel='+tel;	
var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById('feedback').innerHTML=xmlHttp.responseText;
	  document.getElementById('feedback').style.backgroundImage="url(x-loader.gif)";
	 
      }
	  else
	   
	  document.getElementById('feedback').style.backgroundImage="url(images/ajax-loader.gif)";
    }
  xmlHttp.open("GET",str,true);
  xmlHttp.send(null);

}



function buybook(qty)
{
	
 alert(qty)	;
	
}


function disable()
{   
	

	
	  if(	document.myform.ptype.checked==true){
	document.getElementById('ts').style.visibility="hidden";
	  }
	  else
	  {
	  	document.getElementById('ts').style.visibility="visible";
	  }   
}


function popupWindow(url,w,h) 
{  
	
	 Hth=parseInt(h);
	wth=parseInt(w);
	var leftPos=(screen.availWidth - w)/2;
	var topPos=(screen.availHeight - h)/2;
	
	

  window.open(url,'Article','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+wth+',height='+Hth+',screenX=150,screenY=50,top='+topPos+',left='+leftPos)
}

function validate_signup()
{
 
}






