function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_advOpenBrWindow(theURL,winName,features,orgName) {
  var remote = open(theURL, winName, features);
  if (remote.opener == null) // if something went wrong
    remote.opener = window;
  remote.opener.name = orgName;
  return remote;
}
function MM_openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}
function submitMe() {
	document.enquiry.submit();
	parent.hideLB('light'); 
	parent.hideLB('lightBoxOverlay');
	parent.window.location="http://www.whitevideo.co.nz/index.html";
}
//clearing input fields start

function ClearInput(value, id){ // This calls our function ClearInput, and the two variables we will need for it to function the original value and the id.

var input = document.getElementById(id); // Gets the input field based on its id.

	if(value == input.value){ // If the default value is equal to the current value.
		input.value = ''; // Empty It.
	}
	
	else{ // Else the value is not equal to the current input field value.
		input.value = input.value; // Leave it the same.
	} // End Else.
} // Close Function.

//clearing input fields end

