function getCSS(a) {
var obj=document.getElementById(a).style;
return obj;
}

function hideElement(a) {
getCSS(a).visibility="hidden";
}

function showElement(a) {
getCSS(a).visibility="visible";
}

function moveElement(a,b,c) {
getCSS(a).left=eval(b);
getCSS(a).top=eval(c);
}

function changeSection(a) {
eval("parent.left.location='left.asp?section="+a+"'");
eval("parent.content.location='../content/promotional/"+a+".asp'");
}

function rollImage(a) {
elm="images/menu/small/"+a+"Roll.gif";
document[a].src=elm;
}

function rollOutImage(a) {
elm="images/menu/small/"+a+".gif";
document[a].src=elm;
}

function fromPromotional() {
parent.location='../wait.asp';
}

function fromTo(a) {
eval("parent.location='../wait.asp?fromto="+a+"'");
}

function createdByLavaShow() {
showElement('createdbylava');
}

function createdByLavaHide() {
hideElement('createdbylava');
}

function newWindow(mypage,myname,w,h,features) {
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
if (winl < 20) winl = 5;
if (wint < 20) wint = 5;
var settings = 'height=' + h + ',';
settings += 'width=' + w + ',';
settings += 'top=' + wint + ',';
settings += 'left=' + winl + ',';
settings += features;
window.open(mypage,myname,settings);
}

function showTacou() {
newWindow('http://www.relocations-made-easy.com/popup.asp?section=content/tacou','popup','500','500','noresize,scrollbars,nostatus,notoolbar');
}

function showDisclaimer() {
newWindow('http://www.relocations-made-easy.com/popup.asp?section=content/disclaimer','popup','500','500','noresize,scrollbars,nostatus,notoolbar');
}

function showPrivacyPolicy() {
newWindow('http://www.relocations-made-easy.com/popup.asp?section=content/privacypolicy','popup','500','500','noresize,scrollbars,nostatus,notoolbar');
}

function showCC(a) {
newWindow(a,'cc','302','550','resizable,noscroll,nostatus,notoolbar');
}

function showOtherSiteSized(a,b,c) {
newWindow(a,'otherSite',b,c,'resizable,scrollbars,status,toolbar');
}

function showOtherSite(a) {
newWindow(a,'otherSite','780','500','resizable,scrollbars,nostatus,toolbar');
}

function clickGlobe() {
if (window.name=="rme")
window.close();
else
location.href="index.htm";
}

function copyDetailsbInd() {
document.theForm.bfirstname.value = document.theForm.firstname.value;
document.theForm.bsurname.value = document.theForm.surname.value;
document.theForm.bemail.value = document.theForm.email.value;
}

function copyDetailsbCorp() {
document.theForm.bfirstname.value = document.theForm.firstname.value;
document.theForm.bsurname.value = document.theForm.surname.value;
document.theForm.broleincompany.value = document.theForm.roleincompany.value;
document.theForm.bcompany.value = document.theForm.company.value;
document.theForm.bemail.value = document.theForm.email.value;
document.theForm.bphonenumber.value = document.theForm.phonenumber.value;
document.theForm.bfax.value = document.theForm.fax.value;
document.theForm.baddress.value = document.theForm.address.value;
document.theForm.bcity.value = document.theForm.city.value;
document.theForm.bstate.value = document.theForm.state.value;
document.theForm.bcountry.value = document.theForm.country.value;
document.theForm.bcode.value = document.theForm.code.value;
}

function copyDetailsc() {
document.theForm.cfirstname.value = document.theForm.firstname.value;
document.theForm.csurname.value = document.theForm.surname.value;
document.theForm.croleincompany.value = document.theForm.roleincompany.value;
document.theForm.ccompany.value = document.theForm.company.value;
document.theForm.cemail.value = document.theForm.email.value;
document.theForm.cphonenumber.value = document.theForm.phonenumber.value;
document.theForm.cfax.value = document.theForm.fax.value;
document.theForm.caddress.value = document.theForm.address.value;
document.theForm.ccity.value = document.theForm.city.value;
document.theForm.cstate.value = document.theForm.state.value;
document.theForm.ccountry.value = document.theForm.country.value;
document.theForm.ccode.value = document.theForm.code.value;
}

function doNothing(){}

function load() {
x=(document.body.clientWidth/2)-395;if (x<0) x=0;
y=(document.body.clientHeight/2)-255;if (y<0) y=0;
}

function moveShow(a,x,y) {
//elm=getCSS('logo').left;
//window.alert(elm);
xx=getCSS(a).left;xx=xx.substring(0,xx.length-2);xx=xx*1;x=x*1;
yy=getCSS(a).top;yy=yy.substring(0,yy.length-2);yy=yy*1;y=y*1;
moveElement(a,x+xx,y+yy);showElement(a);
}

function move(a,x,y) {
//elm=getCSS('logo').left;
//window.alert(elm);
xx=getCSS(a).left;xx=xx.substring(0,xx.length-2);xx=xx*1;x=x*1;
yy=getCSS(a).top;yy=yy.substring(0,yy.length-2);yy=yy*1;y=y*1;
moveElement(a,x+xx,y+yy);
}