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 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 norobotmail(aUser, aDomain) { document.location = "mailto:" + aUser + "@" + aDomain; }


function decodeSearchString() {
   var nameValue = new Array();
   var searchStr = unescape(location.search.substring(1));
   if (searchStr) {
       var formElement = searchStr.split("&");
       var tmpArray = new Array();
       for (k = 0; k < formElement.length; k++) {
            tmpArray = formElement[k].split("=");
            nameValue[tmpArray[0]] = tmpArray[1];
       }
   }
   return nameValue
   
}

var sspnumber=0;
var srchData = decodeSearchString();
var sspnumber=srchData.ssp;


function delpCategory() {
  re = /\/Other$/;

  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]);
  }
}
 











