function open_win()
{
window.open("http://clients.mindbodyonline.com/ws.asp?studioid=476","_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=yes, width=800, height=700");
}

function launchWS(winName) { 
//window height and width
myHeight = screen.height*.80;
myWidth = 784;

//widow height bounds
if ( myHeight < 556 ) {
myHeight = 556;
} else if (myHeight>700) {
myHeight = 700;
}

//get screen size, and cacl center screen positioning
var height = screen.height;
var width = screen.width;
var leftpos = width / 2 - myWidth / 2;
var toppos = (height / 2 - myHeight / 2) - 40; 

//open window 
msgWindow=window.open(winName,"ws_window","toolbar=no,location=no,directories=no,resizable=yes,menubar=no,scrollbars=no,status=yes,width=" + myWidth + ",height="+ myHeight + ", left=" + leftpos + ",top=" + toppos); 

//focus window
setTimeout('msgWindow.focus()',1);
}

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,status=0,menubar=0,resizable=0,width=428,height=241');");
}

function open_win2()
{
window.open("http://clients.mindbodyonline.com/ws.asp?studioid=476&stype=-8","_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=yes, width=800, height=700");
}

