<!--
// Sri Sathya System
// http://www.sathsys.com
// No part of this snippet should be used without written permission of Sri Sathya System.
// For queries write to jSnip@sathsys.com

function frmVldate() {

 if(isBlank(document.den.url.value)) {
	alert("The URL field can't be left Empty. Please enter the URL of your website");
	document.den.url.focus();
	return false;
 }
 if((document.den.url.value=='http://') || (document.den.url.value.length < 8)) {
	alert("Please make sure that your URL is correct!");
	document.den.url.focus();
	return false;
 }

 if(isBlank(document.den.title.value)) {
	alert("The Title field can't be left Empty. Please enter the title of your website");
	document.den.title.focus();
	return false;
 }

  if(document.den.title.value.length > 100) {
 	alert("The Number of characters in the Title field has exceeded the limit of 100.\n\nMake sure that you don't have more than 100 characters.");
	document.den.title.focus();
	return false;
  }

  if (isBlank(document.den.description.value)) {
	alert("Description field can't be left blank. Please enter the description of your site");
	document.den.description.focus();
	return false;
  }

  if(document.den.description.value.length > 300) {
 	alert("The Number of characters in the Description field has exceeded the limit of 300.\n\nMake sure that you don't have more than 300 characters.");
	document.den.description.focus();
	return false;
  }

  if(!chkField("email", "E-Mail Can't be left Empty. Please enter your E-Mail to proceed","e", "Either the E-Mail you've entered is incorrect or it contains invalid Characters.\n\nNote:\n *The E-Mail should be in you@domain.com format. \n *The characters _-.@ 0-9 a-z A-Z are only allowed",1)) return false;

 if(isBlank(document.den.link.value)) {
	alert("The backward URL field can't be left Empty. Please enter the URL of your site that links to my website");
	document.den.link.focus();
	return false;
 }
 if((document.den.link.value=='http://') || (document.den.link.value.length < 8)) {
	alert("Please make sure that URL of your site that links to my website is correct!");
	document.den.link.focus();
	return false;
 }

 for(i=2;i<7;i+=2) {
	var cboxid = "C" + i;
	if (document.den[cboxid].checked == false) {
	alert("Error:- \n\nWe are unable to process your offer to join our MUTUAL BENEFIT LINK EXCHANGE PROGRAM as it is our requirement that you must be able to answer Yes in all of the tick boxes");
	document.den[cboxid].focus();
	return false;
	}
 }
  return true;
}

function chkHandler(cbox) {
	cboxn = cbox.name;
	cboxid= cboxn.charAt(1);
	switch(cboxid) {
	case "1":
	   chkToggle("C1","C2");
	case "2":
	   chkToggle("C2","C1");
	case "3":
	   chkToggle("C3","C4");
	case "4":
	   chkToggle("C4","C3");
	case "5":
	   chkToggle("C5","C6");
	case "6":
	   chkToggle("C6","C5");
	}
}

function chkToggle(cb1,cb2) {
	if (document.den[cb1].checked) {
	document.den[cb2].checked = false;
	} else {
	document.den[cb2].checked = true;
	}
}
// Sri Sathya System
// http://www.sathsys.com
// No part of this snippet should be used without written permission of Sri Sathya System.
// For queries write to jSnip@sathsys.com
// http://www.sathsys.com
-->