// JavaScript Document
  function confirmMsg(msg){
	if(!confirm(msg)){
		return false;
	} else {
		return true;
	}
}
 function calldel(msg){
	if(!confirm(msg)){
		return false;
	} else {
		return true;
	}
}

function checkwhere()
{
	SearchIn	=	document.searchform.SearchIn.value;
	if(SearchIn == "topic" || SearchIn == "username")
	{
		document.searchform.action	=	"search_topics.php";
		document.searchform.submit();
	}
	else
	{
		document.searchform.action	=	"search_forum.php";
		document.searchform.submit();
	}
}

function listpet_validate()
{
	if(document.frm_addpet.varPetType.value == "")
	{
	   alert("Please choose the pet type");
	   document.frm_addpet.varPetType.focus();
	   return false;
	}
	if(document.frm_addpet.varPetType.value == "Dogs")
	{
		if(document.frm_addpet.dogbreed_id.value == "")
		{
		   alert("Please choose the dog breed name");
		   document.frm_addpet.dogbreed_id.focus();
		   return false;
		}
		if(document.frm_addpet.RegService.value == "")
		{
		   alert("Please choose the registration service");
		   document.frm_addpet.RegService.focus();
		   return false;
		}
	}
	if(document.frm_addpet.varPetType.value == "Cats")
	{
		if(document.frm_addpet.catbreed_id.value == "")
		{
		   alert("Please choose the cat breed name");
		   document.frm_addpet.catbreed_id.focus();
		   return false;
		}
		if(document.frm_addpet.RegService.value == "")
		{
		   alert("Please choose the registration service");
		   document.frm_addpet.RegService.focus();
		   return false;
		}
	}
	if(document.frm_addpet.varPetType.value == "OtherPets")
	{
		if(document.frm_addpet.otherbreed_id.value == "")
		{
		   alert("Please choose the other breed name");
		   document.frm_addpet.otherbreed_id.focus();
		   return false;
		}
	}
	if(document.frm_addpet.petname.value == "")
	{
	   alert("Please enter the pet name");
	   document.frm_addpet.petname.focus();
	   return false;
	}
	if(document.frm_addpet.typepet[0].checked == false && document.frm_addpet.typepet[1].checked == false && document.frm_addpet.typepet[2].checked == false){
	   alert("Please choose the Type");
	   return false;
	}
	if(document.frm_addpet.Sex.value == "")
	{
	   alert("Please choose the sex");
	   document.frm_addpet.Sex.focus();
	   return false;
	}
	if(document.frm_addpet.Color.value == "")
	{
	   alert("Please choose the pet type");
	   document.frm_addpet.Color.focus();
	   return false;
	}
	if(document.frm_addpet.Location.value == "")
	{
	   alert("Please choose the Location");
	   document.frm_addpet.Location.focus();
	   return false;
	}
	if(document.frm_addpet.typepet[1].checked == true)
	{
		if(document.frm_addpet.currency.value == "")
		{
		   alert("Please choose the currency");
		   document.frm_addpet.currency.focus();
		   return false;
		}
		if(document.frm_addpet.Price.value == "")
		{
		   alert("Please enter the Price");
		   document.frm_addpet.Price.focus();
		   return false;
		}
	}
	if(document.frm_addpet.AboutPet.value == "")
	{
	   alert("Please enter the additional information about pet");
	   document.frm_addpet.AboutPet.focus();
	   return false;
	}
	return true;
}

function post_topic(){
	if(document.NewTopicForm.varSubject.value == "")
	{
	   alert("Please enter the subject");
	   document.NewTopicForm.varSubject.focus();
	   return false;
	}
	document.NewTopicForm.cmdSubmit.disabled=true;
	return true;
}

function post_replyvalidate()
{
	document.reply.cmdSubmit.disabled=true;
	return true;
}

function makevisible(cur,which){
strength=(which==0)? 1 : 0.4

if (cur.style.MozOpacity)
cur.style.MozOpacity=strength
else if (cur.filters)
cur.filters.alpha.opacity=strength*170
}

function showpetattibute(x,y){
	window.location.href = "addpetattributes.php?brid="+x+"&petid="+y;
}

function showcatattibute(x,y){
	window.location.href = "addpetattributes.php?brid="+x+"&petid="+y;
}
function showotherpetattibute(x,y){
	window.location.href = "addpetattributes.php?brid="+x+"&petid="+y;
}

function upgrade_validate()
{
	var displayMonth = new Date().getMonth();
	if (document.frm_reg.txtpaymenttype[0].checked == false)
	{
		if(document.frm_reg.txtCardholdname.value =="")
		{
			alert("Please Enter the Cardholder's Name");
			document.frm_reg.txtCardholdname.focus();
			return false;
		}
		if(document.frm_reg.txt_cctype.value =="")
		{
			 alert("Please Choose Card TYpe");
			 document.frm_reg.txt_cctype.focus();
			 return false;
	 	}
		var txtCardNumber = document.frm_reg.txtCardNumber.value;						
		if(document.frm_reg.txtCardNumber.value =="")
		{ 
			alert("Please Enter the Card Number");
			document.frm_reg.txtCardNumber.focus();
		   return false;
		}
		if(isNaN(txtCardNumber)){
			alert("Card Number must be a numberic value");
			document.frm_reg.txtCardNumber.focus();
			return false;
		}
		
		if(document.frm_reg.card_exp_month.value =="")
		{
			alert("Please Select Expiry Date Month");
			document.frm_reg.card_exp_month.focus();
			return false;
		}
		/*if(displayMonth > document.frm_reg.card_exp_month.value)
		{
			alert("Please Select Expiry Month in greater than Current Month");
			document.frm_reg.card_exp_month.focus();
			return false;
		}*/
		if(document.frm_reg.card_exp_year.value =="")
		{
			alert("Please Select Expiry Date Year");
			document.frm_reg.card_exp_year.focus();
			return false;
		}
	}
	return true;
}

function register_validate()
{
		if(document.frm_reg.name.value == ""){
		 alert("Please enter the Name");
		 document.frm_reg.name.focus();
		 return false;
		}
		var txtemail = document.frm_reg.txtemail.value;
		if (!validateEmail(document.frm_reg.txtemail.value,1,1)) 
		 {
			 document.frm_reg.txtemail.focus();
			 return false;
		 }	
		var txtconfemail = document.frm_reg.txtconfemail.value;
		if (!validateEmail(document.frm_reg.txtconfemail.value,1,1)) 
		 {
			 document.frm_reg.txtconfemail.focus();
			 return false;
		 }	
      var email = document.frm_reg.txtemail.value;
	  var conemail = document.frm_reg.txtconfemail.value;
		 {
	     if(email != conemail)
			 {
				 alert("Please verify confirm Email Address");
				 document.frm_reg.txtconfemail.focus();
				 return false;
			 }
		 }
		 
		if(document.frm_reg.phone.value == ""){
		 alert("Please enter Phone Number");
		 document.frm_reg.phone.focus();
		 return false;
		}
	phone = document.frm_reg.phone;
	if (checkInternationalPhone(phone.value)==false){
		alert("Please Enter a Valid Phone Number")
		phone.value=""
		phone.focus()
		return false
	}
	var txtpass = document.frm_reg.txtpass.value;
		if(document.frm_reg.txtpass.value == ""){
		 alert("Please enter the Password");
		 document.frm_reg.txtpass.focus();
		 return false;
		}
		   
		var txtconfpass = document.frm_reg.txtconfpass.value;
		if(document.frm_reg.txtconfpass.value == ""){
         alert("Please enter the Confirm Password");
		 document.frm_reg.txtconfpass.focus();
		 return false;
		 }
		 
         var pass = document.frm_reg.txtpass.value;
	  var conpass = document.frm_reg.txtconfpass.value;
		 {
	     if(pass != conpass)
			 {
				 alert("Please verify confirm Password");
				 document.frm_reg.txtconfpass.focus();
				 return false;
			 }
		 }
   
	if(document.frm_reg.paytype[0].checked == true)
	{ 
	if(document.frm_reg.addr_bill.value == ""){
		 alert("Please enter Address");
		 document.frm_reg.addr_bill.focus();
		 return false;
		}
		if(document.frm_reg.city.value == ""){
		 alert("Please enter City");
		 document.frm_reg.city.focus();
		 return false;
		}
		if(document.frm_reg.state.value == ""){
		 alert("Please enter State/Province");
		 document.frm_reg.state.focus();
		 return false;
		}
		if(document.frm_reg.country.value == ""){
		 alert("Please enter Country");
		 document.frm_reg.country.focus();
		 return false;
		}
		if(document.frm_reg.postcode_bill.value == ""){
		 alert("Please enter Zip Code");
		 document.frm_reg.postcode_bill.focus();
		 return false;
		}
	}
		var regtype = document.frm_reg.regtype.value;
	   
	   if(document.frm_reg.regtype.value == ""){
	   alert("Please select the Account type");
	   document.frm_reg.regtype.focus();
	   return false;
	   }
		
		 if(document.frm_reg.paytype[0].checked == false && document.frm_reg.paytype[1].checked == false)
		 { 
			 alert ("Please check Payment");
			 return false;
		 }
		 /*if(document.frm_reg.txtpaymenttype[0].checked == false && document.frm_reg.txtpaymenttype[1].checked == false)
		 { 
			 alert ("Please check Payment method");
			 return false;
		 }*/
	    
		 
	if ((document.frm_reg.paytype[0].checked == true))
	{
		if (document.frm_reg.txtpaymenttype[0].checked == false)
		{
	    var txtCardholdname = document.frm_reg.txtCardholdname.value;
	    if(document.frm_reg.txtCardholdname.value == ""){
			alert("Please enter the Cardholder's name");
			document.frm_reg.txtCardholdname.focus();
			return false;
	    }
							
		if(document.frm_reg.txt_cctype.value =="")
		{
	             alert("Please Choose Card TYpe");
			  	 document.frm_reg.txt_cctype.focus();
			     return false;
		}
		var txtCardNumber = document.frm_reg.txtCardNumber.value;						
		if(document.frm_reg.txtCardNumber.value =="")
		{ 
			alert("Please Enter the Card Number");
			document.frm_reg.txtCardNumber.focus();
		   return false;
		}
		 if(isNaN(txtCardNumber)){
			alert("Rows must be a numberic value");
			document.frm_reg.txtCardNumber.focus();
			return false;
		 }
		if(document.frm_reg.card_exp_month.value =="")
		{
			alert("Please Select Expiry Date Month");
			document.frm_reg.card_exp_month.focus();
			return false;
		}
		var displayMonth = new Date().getMonth();
		/*if(displayMonth > document.frm_reg.card_exp_month.value)
		{
			alert("Please Select Expiry Month in greater than Current Month");
			document.frm_reg.card_exp_month.focus();
			return false;
		}*/
		if(document.frm_reg.card_exp_year.value =="")
		{
			alert("Please Select Expiry Date Year");
			document.frm_reg.card_exp_year.focus();
			return false;
		}
	  }
	}
	return true;
}

function changePayment()
{
		if (document.frm_reg.txtpaymenttype[0].checked){
			ap11=document.getElementById("showpay");
		    if(ap11){
			ap11.style.display="none";
			ap11.style.visibility="hidden";	
			}
		}
		else
		{
			ap11=document.getElementById("showpay");
			if(ap11){
			ap11.style.display="block";
			ap11.style.visibility="visible";
			}
		}
}

function changeSelect()
{
		if (document.frm_reg.paytype[0].checked){
			ap1=document.getElementById("showattrib");
		    if(ap1){
			ap1.style.display="block";
			ap1.style.visibility="visible";
				}	
		}
		else
		{
			ap1=document.getElementById("showattrib");
			if(ap1){
			ap1.style.display="none";
			ap1.style.visibility="hidden";
			}
		}
}

function changeRecpay()
{
		if (document.frm_reg.recpaytype[0].checked){
			ap1=document.getElementById("showrecprice");
		    if(ap1){
			ap1.style.display="block";
			ap1.style.visibility="visible";
				}
			ap11=document.getElementById("showsingle");
		    if(ap11){
			ap11.style.display="none";
			ap11.style.visibility="hidden";
				}
		}
		else
		{
			ap1=document.getElementById("showsingle");
			if(ap1){
			ap1.style.display="block";
			ap1.style.visibility="visible";
			}
			ap11=document.getElementById("showrecprice");
		    if(ap11){
			ap11.style.display="none";
			ap11.style.visibility="hidden";
				}
		}
}

function changeupgradepay()
{
		if (document.frm_reg.txtpaymenttype[0].checked){
			ap1=document.getElementById("showattrib");
		    if(ap1){
			ap1.style.display="none";
			ap1.style.visibility="hidden";
				}	
		}
		else
		{
			ap1=document.getElementById("showattrib");
			if(ap1){
			ap1.style.display="block";
			ap1.style.visibility="visible";
			}
		}
}

//Function phone validation Script
// Declaring required variables
var digits = "0123456789";
// non-digit characters which are allowed in phone numbers
var phoneNumberDelimiters = "()-. ";
// characters which are allowed in international phone numbers
// (a leading + is OK)
var validWorldPhoneChars = phoneNumberDelimiters + "+";
// Minimum no of digits in an international phone no.
var minDigitsInIPhoneNumber = 10;

function isInteger(s)
{   var i;
    for (i = 0; i < s.length; i++)
    {   
        // Check that current character is number.
        var c = s.charAt(i);
        if (((c < "0") || (c > "9"))) return false;
    }
    // All characters are numbers.
    return true;
}

function stripCharsInBag(s, bag)
{   var i;
    var returnString = "";
    // Search through string's characters one by one.
    // If character is not in bag, append to returnString.
    for (i = 0; i < s.length; i++)
    {   
        // Check that current character isn't whitespace.
        var c = s.charAt(i);
        if (bag.indexOf(c) == -1) returnString += c;
    }
    return returnString;
}

function checkInternationalPhone(strPhone){
s=stripCharsInBag(strPhone,validWorldPhoneChars);
return (isInteger(s) && s.length >= minDigitsInIPhoneNumber);
}

function mylogin()
{
	
	 var txtemail= document.frm_login.txtemail.value;
		if (!validateEmail(document.frm_login.txtemail.value,1,1)) 
		 {
			 document.frm_login.txtemail.focus();
			 return false;
		 }	
		 
        var txtpassword= document.frm_login.txtpassword.value;
		if(document.frm_login.txtpassword.value == "")
	     {
		alert("Please enter the Password");
		document.frm_login.txtpassword.focus();
		return false;
	       }
      var regtype = document.frm_login.regtype.value;
	         if(document.frm_login.regtype.value == "")
	          {
		     alert("Please select the Action type");
		      document.frm_login.regtype.focus();
		      return false;
	         }
		 
}
function forge_validate()
{
       
	 var txtEmail= document.frm_forge.txtEmail.value;
		if (!validateEmail(document.frm_forge.txtEmail.value,1,1)) 
		 {
			 document.frm_forge.txtEmail.focus();
			 return false;
		 }	
}

function contact_validate()
{
	if(document.contact.txtname.value == "")
	{
		alert("Please enter the name.");
		document.contact.txtname.focus();
		return false;
	}
	if(document.contact.txtemail.value == "")
	{
		alert("Please enter the email address.");
		document.contact.txtemail.focus();
		return false;
	}
	if (!validateEmail(document.contact.txtemail.value,1,1)) 
	{
		document.contact.txtemail.focus();
		return false;
	}	
	if(document.contact.txtsubject.value == "")
	{
		alert("Please enter the subject.");
		document.contact.txtsubject.focus();
		return false;
	}
	if(document.contact.comments.value == "")
	{
		alert("Please enter the comment message.");
		document.contact.comments.focus();
		return false;
	}
	return true;
}

function poplinks(url)
{
	newwindow=window.open(url,'ImageDisplay','height=400,width=600,left=0,top=0,resizable=yes,scrollbars=yes');
	if (window.focus) {newwindow.focus()}
}

function login_validate()
{
	     var txtusername = document.login.name.value;
		 if (txtusername == "" )
		 { 
			 alert ("Please enter Your Name");
			 document.login.name.focus();
			 return false;
		 }
		var txt_email = document.login.email.value;
		 if (txt_email == "")
		 { 
			 alert ("Please enter the email Address");
			 document.login.email.focus();
			 return false;
		 }	
		if (!validateEmail(document.login.email.value,1,1)) 
		 {
			 document.login.email.focus();
			 return false;
		 }	
		 
		 /***** Store it in cookies ****/
		// setCookieValue('cookietxtusername', txtusername, 365);
		// setCookieValue('cookietxtsurname', txt_email, 365);
}



var y1 = 140;   // change the # on the left to adjuct the Y co-ordinate
(document.getElementById) ? dom = true : dom = false;

function hideIt() {
  if (dom) {document.getElementById("layer1").style.visibility='hidden';}
  if (document.layers) {document.layers["layer1"].visibility='hide';} 
  window.setTimeout("showIt()",5000);
  		if(document.getElementById('alertmsg')){
			document.getElementById('alertmsg').innerHTML = "Please fill the information to get the free course";
		}
  }

function showIt() {
  if (dom) {document.getElementById("layer1").style.visibility='visible';}
  if (document.layers) {document.layers["layer1"].visibility='show';} }

/*function placeIt() {
  if (dom && !document.all) {document.getElementById("layer1").style.top = window.pageYOffset + (window.innerHeight - (window.innerHeight-y1))}
  if (document.layers) {document.layers["layer1"].top = window.pageYOffset + (window.innerHeight - (window.innerHeight-y1))}
  if (document.all) {document.all["layer1"].style.top = document.body.scrollTop + (document.body.clientHeight - (document.body.clientHeight-y1));}
  }

window.onload = function(){
	placeIt();
	var cookiename =  getCookie("cookietxtusername");
	var cookiesurname = getCookie("cookietxtsurname");
	if(cookiename != null && cookiesurname != null){
		CookieFlag = 1;
	}else{
		window.setTimeout("showIt()",5000);
	}
}
*/
function CheckPopup(){
	
	var cookiename =  getCookie("cookietxtusername");
	var cookiesurname = getCookie("cookietxtsurname");
	if(cookiename != null && cookiesurname != null){
		CookieFlag = 1;
	}else{
		var popupwindow;
		popupwindow=window.open(url,'Popup','height=320,width=350,left=0,top=0,resizable=no,scrollbars=yes');
		if (window.focus) {newwindow.focus()}
	}
	
}

//Function to get the cookie values
function getCookieValue(NameOfCookie){ 
	if (document.cookie.length > 0) { 
		begin = document.cookie.indexOf(NameOfCookie+"="); 
		if (begin != -1) { 
		begin += NameOfCookie.length+1;
		
		end = document.cookie.indexOf(";", begin);
		if (end == -1) end = document.cookie.length;
		return unescape(document.cookie.substring(begin, end)); 
		} 
	}
	return null; 
}


//Set the cookie
function setCookieValue(NameOfCookie, value, expiredays) { 
var ExpireDate = new Date ();
ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000));
document.cookie = NameOfCookie + "=" + escape(value) + ((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString());
}


//Delete the cookie
function delCookieValue(NameOfCookie) { 
	if (getCookie(NameOfCookie)) {
	document.cookie = NameOfCookie + "=" +"; expires=Thu, 01-Jan-70 00:00:01 GMT";
	}

}



function validateEmail(addr,man,db) {
	if (addr == '' && man) {
	   if (db) alert('Email address is mandatory');
	   return false;
	}
	var invalidChars = '\/\'\\ ";:?!()[]\{\}^|';
	for (i=0; i<invalidChars.length; i++) {
	   if (addr.indexOf(invalidChars.charAt(i),0) > -1) {
		  if (db) alert('Email address contains invalid characters');
		  return false;
	   }
	}
	for (i=0; i<addr.length; i++) {
	   if (addr.charCodeAt(i)>127) {
		  if (db) alert("Email address contains non ascii characters.");
		  return false;
	   }
	}
	var atPos = addr.indexOf('@',0);
	if (atPos == -1) {
	   if (db) alert('Email address must contain an @');
	   return false;
	}
	if (atPos == 0) {
	   if (db) alert('Email address must not start with @');
	   return false;
	}
	if (addr.indexOf('@', atPos + 1) > - 1) {
	   if (db) alert('Email address must contain only one @');
	   return false;
	}
	if (addr.indexOf('.', atPos) == -1) {
	   if (db) alert('Email address must contain a period in the domain name');
	   return false;
	}
	if (addr.indexOf('@.',0) != -1) {
	   if (db) alert('period must not immediately follow @ in email address');
	   return false;
	}
	if (addr.indexOf('.@',0) != -1){
	   if (db) alert('period must not immediately precede @ in email address');
	   return false;
	}
	if (addr.indexOf('..',0) != -1) {
	   if (db) alert('two periods must not be adjacent in email address');
	   return false;
	}
	var suffix = addr.substring(addr.lastIndexOf('.')+1);
	if (suffix.length != 2 && suffix != 'com' && suffix != 'net' && suffix != 'org' && suffix != 'edu' && suffix != 'int' && suffix != 'mil' && suffix != 'gov' & suffix != 'arpa' && suffix != 'biz' && suffix != 'aero' && suffix != 'name' && suffix != 'coop' && suffix != 'info' && suffix != 'pro' && suffix != 'museum') {
	   if (db) alert('invalid primary domain in email address');
	   return false;
	}
return true;
}

function Dogsearch_validate()
{
	     var dogbreed = document.dogsearch.dogbreed.value;
		 if (dogbreed == "" )
		 { 
			 alert ("Please enter Dog search Keyword");
			 document.dogsearch.dogbreed.focus();
			 return false;
		 }
}

function OtherBreedsearch_validate()
{
	     var otherbreed = document.otherbreedsearch.otherbreed.value;
		 if (otherbreed == "" )
		 { 
			 alert ("Please enter Other Pets search Keyword");
			 document.otherbreedsearch.otherbreed.focus();
			 return false;
		 }
}

function catsearch_validate()
{
	     var catbreed = document.cat.catbreed.value;
		 if (catbreed == "" )
		 { 
			 alert ("Please enter Cat search Keyword");
			 document.cat.catbreed.focus();
			 return false;
		 }
}

function showprice()
{
	if(document.frm_addpet.typepet[1].checked == true) 
	{
		shipname=document.getElementById("priceidtype");
		if(shipname){
		shipname.style.display="block";
		shipname.style.visibility="visible";
		}
	}
	else 
	{
	   shipname1=document.getElementById("priceidtype");
		if(shipname1){
		shipname1.style.display="none";
		shipname1.style.visibility="hidden";
		}
	}
}

function showpetbreed()
{
	if(document.frm_addpet.varPetType.value == "Cats") 
	{
		shipname=document.getElementById("secondapplicant");
		if(shipname){
		shipname.style.display="block";
		shipname.style.visibility="visible";
		}
		shipname11=document.getElementById("firstapplicant");
		if(shipname11){
		shipname11.style.display="none";
		shipname11.style.visibility="hidden";
		}
		shipname12=document.getElementById("thirdapplicant");
		if(shipname12){
		shipname12.style.display="none";
		shipname12.style.visibility="hidden";
		}
	}
	else if(document.frm_addpet.varPetType.value == "Dogs") 
	{
	   shipname1=document.getElementById("secondapplicant");
		if(shipname1){
		shipname1.style.display="none";
		shipname1.style.visibility="hidden";
		}
		shipname11=document.getElementById("firstapplicant");
		if(shipname11){
		shipname11.style.display="block";
		shipname11.style.visibility="visible";
		}
		shipname12=document.getElementById("thirdapplicant");
		if(shipname12){
		shipname12.style.display="none";
		shipname12.style.visibility="hidden";
		}
	}
	else if(document.frm_addpet.varPetType.value == "OtherPets") 
	{
		shipname1=document.getElementById("secondapplicant");
		if(shipname1){
		shipname1.style.display="none";
		shipname1.style.visibility="hidden";
		}
		shipname11=document.getElementById("thirdapplicant");
		if(shipname11){
		shipname11.style.display="block";
		shipname11.style.visibility="visible";
		}
		shipname12=document.getElementById("firstapplicant");
		if(shipname12){
		shipname12.style.display="none";
		shipname12.style.visibility="hidden";
		}
	}
}

function change_pettype()
{
	var pettype=document.frm_listpet.varPetType.value;
	
	if (pettype=="All")
	{
		window.location.href="listapet.php";
	}
	else
	{
		window.location.href="listapet.php?pet_type="+document.frm_listpet.varPetType.value;
	}
}


function checkwhere()
{
	
	   var searchform= document.searchform.Search.value;
		if(document.searchform.Search.value == "")
	     {
		alert("Please enter the Search for");
		document.searchform.Search.focus();
		return false;
	       }
     
}


function change_otherpettype()
{
	var pettype=document.frm_listpet.txtpettype.value;
	/*if (pettype=="All")
	{
		window.location.href="otherpets.php";
	}
	else
	{*/
		window.location.href="otherpets.php?pet_type="+document.frm_listpet.txtpettype.value;
	//}
}

function change_listpettype(x,y,z)
{
	var pettype=document.frm_listpet.typepet.value;
		window.location.href="viewpetlist.php?optiontype="+x+"&pet_type="+z+"&breedid="+y+"";
}


