/*	functions for mobeda administratror
	Created by Anders biederbeck
	20060331 */ 

function submitForm(frm){
	var submitCommand="document." + frm + ".submit();";
	eval(submitCommand);
}

function internalURL(frm,ctrl){
	var url="document." + frm + "." + ctrl + ".value";
//	alert(url);
	location.href=eval(url);
}
function internalURLlink(url){
	parent.location.href=url;
}
function populatecombo(sourceelem,targetelem){
//	var targetelem=document.frmPicProp.selectlocation;
//	var sourceelem=document.frmPicProp.selectcountry;
	var index=sourceelem[sourceelem.selectedIndex].value;
	targetelem.options.length = 0;
	for (var i = 0; i < country[index].length; i= i + 2){
		targetelem.options[targetelem.options.length] = new Option(country[index][i + 1], country[index][i]);
	}
	return true;
}
function remembermailtoterms(ctrl,termspage){
	var mail=ctrl.value;
	var url=termspage + "&remembermail=" + mail;
//	alert(mail + "\r\n" + url);
	parent.location.href=url;
}