/*************************************************************************
  This code is from Dynamic Web Coding at http://www.dyn-web.com/
  See Terms of Use at http://www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!
*************************************************************************/

function getDocHeight(doc) {
  var docHt = 0, sh, oh;
  if (doc.height) docHt = doc.height;
  else if (doc.body) {
    if (doc.body.scrollHeight) docHt = sh = doc.body.scrollHeight;
    if (doc.body.offsetHeight) docHt = oh = doc.body.offsetHeight;
    if (sh && oh) docHt = Math.max(sh, oh);
  }
  return docHt;
}

function setIframeHeight(iframeName) {
  var iframeWin = window.frames[iframeName];
  var iframeEl = document.getElementById? document.getElementById(iframeName): document.all? document.all[iframeName]: null;
  if ( iframeEl && iframeWin ) {
    iframeEl.style.height = "auto"; // helps resize (for some) if new doc shorter than previous  
    var docHt = getDocHeight(iframeWin.document);
    // need to add to height to be sure it will all show
    if (docHt) iframeEl.style.height = docHt + 30 + "px";
  }
}

function loadIframe(iframeName, url) {
  if ( window.frames[iframeName] ) {
    window.frames[iframeName].location = url;   
    return false;
  }
  else return true;
}
/*////////////////////////////////////////////////////////////////////////////////*/
<!--  
var movieName = "setLink";

function thisMovie(movieName) {
  // IE and Netscape refer to the movie object differently.
  // This function returns the appropriate syntax depending on the browser.
  if (navigator.appName.indexOf ("Microsoft") !=-1) {
    return window[movieName]
  }	else {
    return document[movieName]
  }
}

// Checks if movie is completely loaded.
// Returns true if yes, false if no.
function movieIsLoaded (theMovie) {
  if (typeof(theMovie) != "undefined") {
    return theMovie.PercentLoaded() == 100;
  } else {
    return false;
  }
}


function TGotoFrame(target, framenumber) {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoFrame(target,framenumber);
  }
}

//--> 
/*////////////////////////////////////////////////////////////////////////////////*/
<!-- 
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
/*////////////////////////////////////////////////////////////////////////////////*/
function goSetHeight() {
  if (parent == window) return;
  // no way to obtain id of iframe object doc loaded into? no parentNode or parentElement or ...
  else parent.setIframeHeight('ifrm');
}
/*/////////////////////////////////////////////////////////////////////////////////////////////////*/

<!-- 
function generic_test (checkMe,messtxt) {
	var theResult = true;
	var answer = null;
	if (checkMe.value == "" || checkMe.value == "undefined" || checkMe.value == "null") {
		answer = prompt(messtxt,"");
		theResult = false;
		checkMe.value = answer;
		checkMe.focus();
		checkMe.select();
	}
	return theResult;
}

function email_test (checkMe,messtxt) {
	var theResult = true;
	var answer = null;
	if (checkMe.value.indexOf('@') == -1 || checkMe.value.indexOf('.') == -1 || checkMe.value == "" || checkMe.value == "undefined" || checkMe.value == "null") {
		answer = prompt(messtxt,"");
		theResult = false;
		checkMe.value = answer;
		checkMe.focus();
		checkMe.select();
	}
	return theResult;
}

function validate() {
	var theResult = true;
	theResult = 
		generic_test(document.requestform.Subject,"Please enter your subject...") &&
		generic_test(document.requestform.Name,"Please enter your name...") &&
		email_test(document.requestform.Mail,"Please enter your email...") &&
		generic_test(document.requestform.Comments,"Please enter your comment...");
	return theResult;
}

function submitForm(){
	if(document.requestform.onsubmit()){
	document.requestform.submit();
	return validate();
	}
}

/*/////////////////////////////////////////////////////////////////////////////////////////////////*/
<!--
if (top.location.href.indexOf("index.html") == -1)  top.location.href = "index.html";
// -->
/*/////////////////////////////////////////////////////////////////////////////////////////////////*/
// JavaScript Document
// START FLASH CODE
function addFlash(){
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="700" HEIGHT="260" ID="setLink">');
		document.write('<param name="movie" value="includes/header.swf">');
		document.write('<param name="quality" value="high">');
		document.write('<param name="scale" value="noscale">');
		document.write('<embed src="includes/header.swf" quality="high" scale="noscale" name="setLink" swLiveconnect="true" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="700" height="250">');
		document.write('</embed>');
		document.write('</object>');
}
/*/////////////////////////////////////////////////////////////////////////////////////////////////*/