var myhints=new Array()
myhints[0]='<p class=\"hinthead\">The &quot;For Sale or Sold&quot; button</p>Once you&#39;ve made the sale just click this and a &quot;sold&quot; sticker is added to the car details on the web page</p>'
myhints[1]=''
myhints[2]='<p class=\"hinthead\">Erase Reg No.</p><p>Car &quot;cloners&quot; love to find web sites showing vehicle reg numbers. So click this button to rub out the reg number in the picture</p>'
myhints[3]='<p class=\"hinthead\">Choose image</p><p>Click this button to choose the picture for the web page. Another window opens up allowing you crop the picture, then it is resized automatically.</p>'
myhints[4]='<p class=\"hinthead\">Vehicle record data fields</p>Type the vehicle details in these boxes and they are added to the page.</p>'
myhints[5]='<p class=\"hinthead\">The vehicle record tabs</p><p>A tab here for each vehicle in your database - just click to select a car.'
myhints[6]='<p class=\"hinthead\">Item list</p><p>For dealers with a large stock list this button opens a drop down list showing:</p><ul><li>registration number</li><li>make</li><li>model</li></ul> <p>of all the vehicles in your database making it simple to find the one you want.</p>'
myhints[7]='<p class=\"hinthead\">Open web page</p><p>A quick way to open up your web site</p>'
myhints[8]='<p class=\"hinthead\">Upload to web</p><p>All the changes you make to your vehicle records are done on your own computer. Nothing changes on the internet until you are happy with the results and click this button</p>'
myhints[9]='<p class=\"hinthead\">Preview page</p><p>Lets you see exactly how your finished web page will look - without connecting to the internet</p>'
myhints[10]='<p class=\"hinthead\">Add Vehicle</p><p>When you buy-in a new vehicle click this button to create a database record for it.</p>'
myhints[11]='<p class=\"hinthead\">Delete vehicle</p><p>click this button to delete a vehicle from the database.</p>'
myhints[12]='<p class=\"hinthead\">The preview panel</p><p>Shows how the current vehicle will look in the finished web page.</p>'
myhints[13]="<?=?>"
myhints[14]="<?=?>"
myhints[15]="<?=?>"




function rollover(myid)
{
var impath='../images/'+myid+'_over.gif';
document.getElementById(myid).src= impath;

}
function rollout(myid)
{
var impath='../images/'+myid+'.gif';
document.getElementById(myid).src= impath;
}

 function setsearch() {
	myHeight = new fx.Height('formholder', {duration: 800}); 
	myHeight.hide();
var lowsel = document.getElementById('lowprice');
var highsel = document.getElementById('highprice');
lowsel.length = lowsel.length-1;
highsel.options[0]= null;
}

 function setprices(el){
//alert(el.id);
//var senderel = document.getElementsByName(el);
var lowsel = document.getElementById('lowprice');
var highsel = document.getElementById('highprice');
if((el.id =='lowprice')&&(highsel.selectedIndex<=lowsel.selectedIndex)){
	highsel.selectedIndex=lowsel.selectedIndex;	
}
else if((el.id =='highprice')&&(highsel.selectedIndex<=lowsel.selectedIndex)){
	lowsel.selectedIndex=highsel.selectedIndex;	
}
}

function disphint(num,event){
mynum=num.split('_');
if(document.getElementById("hintdiv").innerHTML!=myhints[mynum[1]])
{document.getElementById("hintdiv").innerHTML=myhints[mynum[1]];}
myX = listener(event,'x');
document.getElementById('hintdiv').style.left= myX+'px' ;
myY = listener(event,'y');
document.getElementById('hintdiv').style.top= myY+'px' ;
if (document.getElementById("hintdiv").style.display!=''){
document.getElementById("hintdiv").style.display='';}
}

function clearhint(){
document.getElementById("hintdiv").innerHTML='';
document.getElementById("hintdiv").style.display='none';
}

function getareacoord(num,corner){
mycoords=document.getElementById(num).coords;
myarray=mycoords.split(",");
//alert(myarray);
switch(corner){
case 'left':
	return myarray[0];
break;

case 'top':
	return myarray[1];
break;

case 'right':
	return myarray[2];
break;
case 'bottom':
	return myarray[3];
break;
default:
	return myarray;
break;
}

}

function listener( e,axis )
{
   var docX, docY;
   if( e )
   {
      if( typeof( e.pageX ) == 'number' )
      {
         docX = e.layerX-50;
         docY = e.layerY+20;
      }
      else
      {
         docX = e.offsetX-50;
         docY = e.offsetY+20;
      }
   }
   else
   {
      e = window.event;
      docX = e.offsetX+50;
      docY = e.offsetY+50;
      if( document.documentElement
        && ( document.documentElement.scrollTop
            || document.documentElement.scrollLeft ) )
      {
         docX += document.documentElement.scrollLeft;
         docY += document.documentElement.scrollTop;
      } 
      else if( document.body
         && ( document.body.scrollTop
             || document.body.scrollLeft ) )
      {
         docX += document.body.scrollLeft;
         docY += document.body.scrollTop;
      }
   }
if (axis=='x'){return docX;}
else
if (axis=='y'){return docY;}
}

