/*
 *  MDE:
 *  generic script to include in the home page to start @Phones calls.
 *  use it each time you need, using this sintax:
 *	A objects:				href='javascript:callCampaign19();'
 *	BUTTON objects:				onclick='callCampaign19();'
 */

function callCampaign19()
{
	var c = null;
	try {
		c = new ActiveXObject("WebCall19.Call");
	}
	catch (e) {
		c = null;
		var rv = window.showModalDialog("@phones/loadclient.htm", "", "dialogHeight:80px;dialogWidth:300px;status:no;scroll:no;help:no;");
		if (!rv) return ;
	}
	try {
		if (c == null) c = new ActiveXObject("WebCall19.Call");
		// set call parameters
		c.virtualExtension = 2121;
		c.title = "Phones";
		c.serverName1 = "10.10.1.5";
		c.useWHProxy = true;
		c.enableEncryption = false;
		c.useWormHole = true;
		c.canEnableRemoteControl = true;
		c.makeCall();
	}
	catch (e) {
		alert("\nCannot load @Phones client!\n\nPlease check for your browser's security settings.\n");
		return ;
	}
}
