function HelpWindow( windowURL, windowName, windowFeatures ) {
  return window.open( windowURL, windowName, windowFeatures ) ;
}



function validProvisional(provisionalForm) {

  if (provisionalForm.full_name.value == "") {
    alert("You must enter your full name.")
    provisionalForm.full_name.focus()
    return false
  }

  if (provisionalForm.email.value == "") {
    alert("You must enter your email.")
    provisionalForm.email.focus()
    return false
  }

  if (provisionalForm.title.value == "") {
    alert("You must enter the title of your invention.")
    provisionalForm.title.focus()
    return false
  }

  if (provisionalForm.description.value == "") {
    alert("You must enter the description of your invention.")
    provisionalForm.description.focus()
    return false
  }

  if (provisionalForm.inventor_name1.value == "") {
    alert("You must enter the inventor's full name.")
    provisionalForm.inventor_name1.focus()
    return false
  }

  if (provisionalForm.street1.value == "") {
    alert("You must enter the inventor's street address.")
    provisionalForm.street1.focus()
    return false
  }

  if (provisionalForm.city1.value == "") {
    alert("You must enter the inventor's city.")
    provisionalForm.city1.focus()
    return false
  }

  if (provisionalForm.state1.value == " ") {
    alert("You must enter the inventor's state or province.")
    provisionalForm.state1.focus()
    return false
  }

  if (provisionalForm.zip1.value == "") {
    alert("You must enter the inventor's zip code.")
    provisionalForm.zip1.focus()
    return false
  }

  if (provisionalForm.country1.value == " ") {
    alert("You must enter the inventor's country.")
    provisionalForm.country1.focus()
   return false
  }

  if (provisionalForm.telephone1.value == "") {
    alert("You must enter the inventor's telephone number.")
    provisionalForm.telephone1.focus()
    return false
  }

  return true

}




function validUtility(utilityForm) {

  if (utilityForm.full_name.value == "") {
    alert("You must enter your full name.")
    utilityForm.full_name.focus()
    return false
  }

  if (utilityForm.email.value == "") {
    alert("You must enter your email.")
    utilityForm.email.focus()
    return false
  }

  if (utilityForm.title.value == "") {
    alert("You must enter the title of your invention.")
    utilityForm.title.focus()
    return false
  }

  if (utilityForm.description.value == "") {
    alert("You must enter the description of your invention.")
    utilityForm.description.focus()
    return false
  }

  if (utilityForm.inventor_name1.value == "") {
    alert("You must enter the inventor's full name.")
    utilityForm.inventor_name1.focus()
    return false
  }

  if (utilityForm.street1.value == "") {
    alert("You must enter the inventor's street address.")
    utilityForm.street1.focus()
    return false
  }

  if (utilityForm.city1.value == "") {
    alert("You must enter the inventor's city.")
    utilityForm.city1.focus()
    return false
  }

  if (utilityForm.state1.value == " ") {
    alert("You must enter the inventor's state or province.")
    utilityForm.state1.focus()
    return false
  }

  if (utilityForm.zip1.value == "") {
    alert("You must enter the inventor's zip code.")
    utilityForm.zip1.focus()
    return false
  }

  if (utilityForm.country1.value == " ") {
    alert("You must enter the inventor's country.")
    utilityForm.country1.focus()
   return false
  }

  if (utilityForm.telephone1.value == "") {
    alert("You must enter the inventor's telephone number.")
    utilityForm.telephone1.focus()
    return false
  }

  return true

}




var targetDate = Date.UTC(2009, 5, 8, 6, 0, 0, 0)
var oneMinute = 60 * 1000
var oneHour = oneMinute * 60
var oneDay = oneHour * 24

function getTimeUntil(targetMS) {
  var today = new Date()
  var diff = targetMS - today.valueOf()
  return Math.floor(diff)
}

function getCountDown() {
  var ms = getTimeUntil(targetDate)
  var output = ""
  var days, hrs, mins, secs
  if (ms >= 0) {
  days = Math.floor(ms/oneDay)
  ms -= oneDay * days
  hrs = Math.floor(ms/oneHour)
  ms -= oneHour * hrs
  mins = Math.floor(ms/oneMinute)
  ms -= oneMinute * mins
  secs = Math.floor(ms/1000)
  output += days + " Days, " +
  hrs + " Hours, " +
  mins + " Minutes, " +
  secs + " Seconds"
  } else {
  output += "The time has passed."
  }
  return output
}

function updateCountDown() {
  document.forms[0].timer.value = getCountDown()
  setTimeout("updateCountDown()", 1000)
}




function validMentoring(mentoringForm) {

  if (mentoringForm.name.value == "") {
    alert("You must enter your full name.")
    mentoringForm.name.focus()
    return false
  }

  if (mentoringForm.from.value == "") {
    alert("You must enter your email.")
    mentoringForm.from.focus()
    return false
  }

  return true

}




function validCorrespondence(correspondenceForm) {

  if (correspondenceForm.name.value == "") {
    alert("You must enter your full name.")
    correspondenceForm.name.focus()
    return false
  }

  if (correspondenceForm.from.value == "") {
    alert("You must enter your email.")
    correspondenceForm.from.focus()
    return false
  }

  return true

}




function validKit(kitForm) {

  if (kitForm.name.value == "") {
    alert("You must enter your full name.")
    kitForm.name.focus()
    return false
  }

  if (kitForm.from.value == "") {
    alert("You must enter your email.")
    kitForm.from.focus()
    return false
  }

  return true

}






function validGeneric(genericForm) {

  if (genericForm.name.value == "") {
    alert("You must enter your full name.")
    genericForm.name.focus()
    return false
  }

  if (genericForm.from.value == "") {
    alert("You must enter your email.")
    genericForm.from.focus()
    return false
  }

  return true

}

var ShowExitPopup = true;

function ExitPage()

{

if (ShowExitPopup) 

{ 

ShowExitPopup = false;

location.href = "http://www.inventionpatenting.com/patent_discount_price_exit.html";

return '\nClick on the CANCEL button below to receive your FREE no-obligation "17 POINT INVENTION ANALYSIS".  Get answers to your burning questions including:\n\n- Is my new product idea an invention that can be patented?\n\n- Should I try to patent my invention myself or use a patent attorney?\n\n- Should I manufacture, license, or sell my invention?\n\n- Which markets, industries, and companies should I approach first?\n\n- How can I avoid the biggest mistakes most inventors make?\n\nYou have everything to gain and absolutely nothing to lose!\n\nClick on the CANCEL button below to learn all this... and much, much more!\n';

}

}