function openLinkWindow(URL)
  {
   linkWindow=window.open(URL,"linkInfo","width=1100,height=1100,dependent=yes,resizable=no,scrollbars=yes,toolbar=no,menubar=no");
    linkWindow.focus();
   
  } 

function ContactFormValidate()
{
	if (document.ContactForm.customername.value == "")
	{
		alert("Your Name is required");
		document.ContactForm.customername.focus();
		return false;

	}
      if (document.ContactForm.customeremail.value == "")
	{
		alert("Your E-Mail Address is required");
		document.ContactForm.customeremail.focus();
		return false;
	}
	

}

function swapBoxes() {
   box1 = YD.get("subcategoriesBox");
   box2 = YD.get("galleriesBox");
   if (box1 && box2)
   {
      swap = box1.innerHTML;
      box1.innerHTML = box2.innerHTML;
      box2.innerHTML = swap;
   }
}





function norobotmail(aUser, aDomain) { document.location = "mailto:" + aUser + "@" + aDomain; }




function delpCategory() {
  re = /\/Portfolio$/;

  if (!YD.hasClass(document.body, 'homepage'))
    return;

  var oList = YD.getElementsByClassName('miniBox', 'div', YD.get('categoriesBox'));

  for (i = 0; i < oList.length; i++) {
    if (re.test(oList[i].getElementsByTagName('a')[0].href))
      oList[i].parentNode.removeChild(oList[i]);
  }
}
 



function delcCategory() {
  re = /\/Clients$/;

  if (!YD.hasClass(document.body, 'homepage'))
    return;

  var oList = YD.getElementsByClassName('miniBox', 'div', YD.get('categoriesBox'));

  for (i = 0; i < oList.length; i++) {
    if (re.test(oList[i].getElementsByTagName('a')[0].href))
      oList[i].parentNode.removeChild(oList[i]);
  }
}
 