﻿// JScript File
//Set the passes URL as src of the passed image
function SetImageSrc2(img, url)
{
    img.src=url;
}

function DisableTextInput()
{
    return false;
}

// Open new popup
function OpenWindowWithScrollbarsNoStatus(txtAddress, width, height)
{
    var winstyle = "scrollbars=yes,staus=no,top="+(screen.height-height)/2 + ",left=" + (screen.width-width)/2 + ",width=" + width + ",height=" + height;
	openUserBrokersWindow = window.open(txtAddress, 'window', winstyle);
	if(openUserBrokersWindow!=null)
	    openUserBrokersWindow.focus();
	return false;
}
function OpenWindowWithScrollbarsAndStatus(txtAddress, width, height)
{
    var winstyle = "scrollbars=yes,staus=yes,top="+(screen.height-height)/2 + ",left=" + (screen.width-width)/2 + ",width=" + width + ",height=" + height;
	openUserBrokersWindow = window.open(txtAddress, 'window', winstyle);
	if(openUserBrokersWindow!=null)
	    openUserBrokersWindow.focus();
	return false;
}
function OpenWindowNoScrollbarsNoStatus(txtAddress, width, height)
{
    var winstyle = "scrollbars=no,staus=no,top="+(screen.height-height)/2 + ",left=" + (screen.width-width)/2 + ",width=" + width + ",height=" + height;
	openUserBrokersWindow = window.open(txtAddress, 'window', winstyle);
	if(openUserBrokersWindow!=null)
	    openUserBrokersWindow.focus();
	return false;
}