/**
* Javascript code
*
* @license http://www.midworld-networks.com/licenses/notPublic.html MIDWORLD NETWORKS, S.L.
*
* @author Dario Minnucci <developments@midworld-networks.com>
* @copyright Copyright 2001-2007, Midworld Networks, S.L.
*
* @version $Id: core.js 662 2008-04-14 11:09:47Z midget $
*
* @package microsite-voip
* @subpackage	javascript
*
* @access public
*/

<!--//

// Anti-Frame code
if(top.frames.length > 0)
top.location.href=self.location;

// Set action
function set_action(section,product,action)
{

	/*
	alert("got:s --> "+section);
	alert("got:p --> "+product);
	alert("got:a --> "+action);
	*/

	var formid = "frm_"+section+"_"+product;
	//alert("formid --> "+formid);

	var f = document.getElementById(formid);

	//	alert("got: "+f.id);
	//	alert("f.action.value:"+f.action.value);
	f.action.value = action;
	//	alert("f.action.value:"+f.action.value);

}

// Center popup window
function centerWin(url, width, height){
	var centerX=(screen.width-width)/2;
	var centerY=((screen.height-height)/2)-55;
	window.open(url, 'centerWin', 'resizable=no,width='+width+',height='+height+',top='+centerY+',screenY='+centerY+',left='+centerX+',screenX='+centerX);
}
//-->
