function Feedback( subjectName )
{

   /*  Opens the Feedback form in a separate with the passed subject
       Ensures only one contact form window is open at a time by 
       specifying the name of the target window.
   */
   var myURL = '/C_Customer/Feedback_form_0.asp?Subject=' + subjectName;
   var S = ""
	     + "width=520,height=360,"
	     + "resizable=yes,scrollbars=yes,menubar=no"
	     + ",toolbar=no,directories=no,location=no,status=no";
   var myWindow;
   myWindow = window.open( myURL,'FeedbackForm',S );
   myWindow.focus();
   return;
}

function ContactUs( subjectName )
{
   /*  Opens the Contact form in a separate with the passed subject
       Ensures only one contact form window is open at a time by 
       specifying the name of the target window.
   */
   var myURL = '/contact/Contact_form.asp?Subject=' + subjectName;
   var S = ""
	     + "width=650,height=460,"
	     + "resizable=yes,scrollbars=no,menubar=no"
	     + ",toolbar=no,directories=no,location=no,status=no";
   var myWindow;
   myWindow = window.open( myURL,'ContactForm',S );
   myWindow.focus();
   return;
}

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 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_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 open_a_full_window(file_link)
{
// opens a new window and the URL
// the point of this routine is that if 
// a person clicks on the prior hyperlink
// this will bring the new window into forcus
//var new_window = window.open(file_link,window_name);

var new_window = window.open(file_link,"ATCO","location=no,height=400,width=750,status=yes,menubar=yes,toolbar=yes");

new_window.focus();

}

function OpeninSameWindow(the_url) {
		msgWindow=window.location(the_url);
			}


function windowOpener(the_file) {
		msgWindow=window.open(the_file,"displayWindow","location=no,height=550,width=700,status=no");
			}


function changePos() {
if(name) {
width = document.body.clientWidth;
height = document.body.clientHeight;
Hoffset = img.offsetHeight;
Woffset = img.offsetWidth;
img.style.visibility = "visible";
img.style.left = xPos + document.body.scrollLeft;
img.style.top = yPos + document.body.scrollTop;
img.style.left = xPos;
img.style.top = yPos + document.body.scrollTop;

}
else {
height = window.innerHeight;
width = window.innerWidth;
Hoffset = document.img.clip.height;
Woffset = document.img.clip.width;
document.img.pageY = yPos + window.pageYOffset;
document.img.pageX = xPos + window.pageXOffset;
}


// now move the image

if (yPos > 300) {
yPos = yPos - step;
}
else {
// break out and stop
hideitmoveit();
placeit();
// debug code 2002 06 27
//counter = counter + 1;
//document.form1.field1.value = counter;
//document.write;
window.clearInterval(interval);
return;
}
}

function placeit() {
//img.style.position = "absolute";
//img.style.left = "195";
//img.style.top = "300";
img2.style.visibility = "visible"
}


function hideitmoveit() {
img.style.visibility = "hidden"
img.style.position = "absolute";
img.style.left = "195";
img.style.top = "100";
}


function start() {
if(name) img.visibility = "visible";
else document.img.visibility = "visible";
interval = setInterval('changePos()',delay);

}

function HideIt() {
img.style.visibility = "hidden";
}


function pauseResume() {
if(pause) {
clearInterval(interval);
pause = false;
}
else {
interval = setInterval('changePos()',delay);
pause = true;
   }
}

function moveImage() {
// moving image script - cross browser compatible
// By Justin Arruda (JArruda@mindspring.com)
// Courtesy of SimplytheBest.net (http://simplythebest.net/info/dhtml_scripts.html)
// Modified by Dave Malone 2002 04 16 to allow simple bottom up flyup
<!-- Begin
alert('moving image');
var step = 5;
var delay = 20;
var height = 0;
var Hoffset = 0;
var Woffset = 0;
var yon = 0;
var xon = 0;
var pause = true;
var interval;
var name = navigator.appName;

if(name == "Microsoft Internet Explorer") name = true;
else name = false;
var xPos = 195;
// added line below
var yPos = 0;

if(name) var yPos = document.body.clientHeight;
else var yPos = window.innerHeight;

start();
//  End -->


}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


