function checkEmail(myForm) {
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.Email.value)){
return (true)
}
alert("Please enter a valid return e-mail address.")
return (false)
}

function show(id)
{
	el = document.getElementById(id);
	if (el.style.display == 'none')
	{
		el.style.display = '';
		el = document.getElementById('show' + id);
		//el.innerHTML = 'Detract';
	} else {
		el.style.display = 'none';
		el = document.getElementById('show' + id);
		//el.innerHTML = 'Expand';
	}
}

function createCall2(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open('/global/webcall/webcall.htm', '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=200,left = 490,top = 412');");
window.resizeTo(300,200); 
}

var createCallWindow=null;
function createCall(myname,w,h,pos,infocus){
mypage='https://secure.my1voice.com/public/webcall.aspx?token=d3c19764-a9f1-41f3-8fe1-835beddbc8e3';
myname='webCall';
w='600';
h='250';
pos='center';
infocus='front';
if (pos == 'random')
{LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
else
{LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';createCallWindow=window.open('',myname,settings);
if(infocus=='front'){createCallWindow.focus();createCallWindow.location=mypage;}
if(infocus=='back'){createCallWindow.blur();createCallWindow.location=mypage;createCallWindow.blur();}

}
