//Function to change page from option list
function linkURL(URL) {
	
	if (URL.options[URL.selectedIndex].value != "") self.location.href = URL.options[URL.selectedIndex].value;	
	return true;
}

//Function to open pop up window
function winOpener(theURL, winName, scrollbars, resizable, width, height) {
	
	winFeatures = 'left=' + (screen.availWidth-10-width)/2 + ',top=' + (screen.availHeight-30-height)/2 + ',scrollbars=' + scrollbars + ',resizable=' + resizable + ',width=' + width + ',height=' + height + ',toolbar=0,location=0,status=1,menubar=0'
  	window.open(theURL, winName, winFeatures);
}

//0609 for control ivrRoleChat

function initIVRRoleChat(IVRpath){
var newPath=String(IVRpath)
window["IVRRoleChat"].SetVariable("IVRpath",newPath)
window["IVRRoleChat"].GotoFrame(1)
}
//----------------------we can onle have this to init IVRroleChat---------------

//for if we need to do to the others swf.........
function setVarMovie(MvName,VrName,VaName){
var newVr=String(VrName)
var newVa=String(VaName)
window[MvName].SetVariable(newVr,newVa)
}

function getVarMovie(MvName,VrName){
var newVr=String(VrName)
var VaName=window[MvName].GetVariable(newVr)
return VaName
}

function initVarMovie(MvName,VrName,VaName){
var newVr=String(VrName)
var newVa=String(VaName)
window[MvName].SetVariable(newVr,newVa)
window[MvName].GotoFrame(1)
}