<!--

function popupWindow(url) {
	window.open(url);
}

function popupWindowSize(url, name, width, height) {
	window.open(url, name, "width=" + width + ",height=" + height);
}

function popupAdminWindow(url, name) {
	window.open(url, "wPopupAdmin" + name, "resizable=1,toolbar=1,scrollbars=1,width=620,height=700");
}

function popupAdminWindowSize(url, name, width, height) {
	window.open(url, "wPopupAdmin" + name, "resizable=1,toolbar=1,scrollbars=1,width=" + width + ",height=" + height);
}

function showIntlSupportList() {
	window.open("/support.html", "wSupport", "scrollbars=1,width=340,height=620");
	//window.open("/support.html", "wSupport", "scrollbars=1,width=360,height=385");
}

function showIntlAccessList() {
	window.open("/myaccount/access_numbers_wallet.php", "wAccess", "width=660,height=450");
}

function showAVForm() {
	window.open("/f/verification_form.html", "wAV", "scrollbars=1,width=700,height=600");
}

function showCVV2() {
	window.open("/myaccount/cvv2.html", "wCVV2", "width=300,height=250");
}

function popupSmall(thePage) {
    window.open("/myaccount/" + thePage, "wSmallPopup", "width=300, height=250");
}

function showRecreditingForm() {
	window.open("/f/re-crediting.html", "wCredit", "scrollbars=1,width=700,height=600");
}

function showReceipt(id) {
	window.open("/myaccount/invoice.php", "wReceipt", "width=680,height=625");
}

function showUserVerification(url) {
	window.open(url, "wVerify", "width=250,height=150");
}

function showCountryCode(id) {
	window.open("/common/viewCountryCode.php?id=" + id, "wCountryCode", "scrollbars=1,width=260,height=350");
}

function showPayphone(lang) {
	if (lang == "es") {
		window.open("../main/es-payphone.html", "wPayphone", "width=300,height=280");
	} else {
		window.open("../main/payphone.html", "wPayphone", "width=300,height=270");
    }
}

function showAccountDetail(id) {
	window.open("/admin/service/account/accountDetail.php?id=" + id, 
		"wAccountDetail" + id, "resizable=1,scrollbars=1,width=860,height=600");
}

function showAccountDetail(id, bPsAndQs) {
    if(bPsAndQs == true) {
        alert("Password Questions have not yet been defined for this customer, and you have skipped this step too many times.");
	    window.open("/admin/service/account/accountDetail.php?id=" + id + "&t=Password", 
	        "wAccountDetail" + id, "resizable=1,scrollbars=1,width=860,height=600");
    }
    else{
	    window.open("/admin/service/account/accountDetail.php?id=" + id, 
	        "wAccountDetail" + id, "resizable=1,scrollbars=1,width=860,height=600");
    }    
}

function attemptPQ(iAccount, url, width, height) {
    // ASSERT:  CSR is attempting to access account, but has not
    //  yet answered password security questions.
    
    window.open("/admin/service/account/accountDetail.php?id=" + iAccount + 
            "&t=Password&width=" + width + "&height=" + height +
            "&orig_page=" + url, 
            "wAccountDetail" + iAccount, "resizable=1,scrollbars=1,width=860,height=600");
}

function showConfigAccountTracking(action, id) {
	window.open("/admin/service/security/configAccountTracking.php?a=" + action + "&id=" + id, "wAccountTracking", "width=525,height=420");
}

function showDebitCredit(aid) {
	window.open("/admin/service/financial/financial.php?id=" + aid, "wDC_" + aid , 
		"resizable=1,toolbar=1,scrollbars=1,width=700,height=800");
}

function showDebitCreditWithParameters(aid, p) {
	window.open("/admin/service/financial/financial.php?id=" + aid + p, "wDC_" + aid , 
		"resizable=1,toolbar=1,scrollbars=1,width=700,height=800");
}

function showCCDetail(aid, id, a, w, h) {
	window.open("ccDetail.php?aid=" + aid + "&id=" + id + "&a=" + a, 
		"wCCDetail_" + aid, "width=" + w + ", height=" + h);
}

function showCCTransactions(cc) {
	window.open("/admin/service/transactionsByCC.php?c=" + cc, "wTxCC", "scrollbars=1, width=650, height=400");
}

function showContactDetail(aid) {
	window.open("/myaccount/contactDetail.php",
		"wContact_" + aid, "width=550, height=540");
}

function showSubscriptionDetail(aid) {
	window.open("/customer/subscriptions.php",
		"wSubscription_" + aid, "width=740,height=540");
}

function showEmailManage(aid) {
    window.open("/myaccount/subscriptions.php?show=0",
        "wSubscription_" + aid, "width=740,height=540");
}

function showPasswordDetail() {
	window.open('/myaccount/pwd_edit.php?popup=true', 'wPassword', 'width=740, height=540');
}

function showPwdResponseDetail() {
	window.open('/myaccount/pwd_questions.php?popup=true', 'wPwdResponses', 'width=740, height=540');
}

function showTransactionDetail(account, id) {
	window.open("/admin/service/account/transactionDetail.php?acid=" + account + "&txid=" + id, "wTxDetail", "width=525,height=440");
}

function showAuditDetail(account, id) {
	window.open("/admin/service/account/auditDetail.php?aid=" + account + "&id=" + id, "wAuditDetail", "width=525,height=400");
}

function showInvoice(aid, tid) {
	window.open("/admin/service/account/invoice.php?acid=" + aid + "&txid=" + tid, "wInvoice", "width=680,height=625");
}

function showAuditInvoice(aid, id) {
	window.open("/admin/service/account/auditInvoice.php?aid=" + aid + "&id=" + id, "wAInvoice", "width=680,height=625");
}

function showSignupDetail(account, id) {
	window.open("/admin/service/signupDetail.php?acid=" + account + "&sid=" + id, "wSignupDetail", "scrollbars=1,width=515,height=450");
}

function showWelcomeLetter(sid) {
	window.open("/admin/service/welcomeLetter.php?sid=" + sid, "wWelcomeLetter", "scrollbars=1,width=700,height=625");
}

function showSignup(id) {
	// Re-submit
	window.open("/admin/service/signup/signup.php?id=" + id, "wSignupSubmit", "scrollbars=1,width=1000,height=800");
}

function showTT(myTTType) {
	var accountNumber = document.getElementById('account-number').value;
	var callDate = document.getElementById('call-date').value;
	var callHour = document.getElementById('call_hour');
	callHour = callHour.options[callHour.selectedIndex].value;
	var callMin = document.getElementById('call_minute');
	callMin = callMin.options[callMin.selectedIndex].value;
	var fname = document.getElementById('first-name').value;
	var lname = document.getElementById('last-name').value;
	var csr_name = document.getElementById('csr-name').value;
	
	var getVals = '?action='+ myTTType + '&account_number=' + accountNumber + 
		'&call_date=' + callDate + '&call_time=' + callHour + ':' + callMin +
		'&fname=' + fname + '&lname=' + lname + '&csr-name=' + csr_name;
	
	window.open("/admin/service/tt/index.php" + getVals, "wTTCreate", "scrollbars=1,width=700,height=800");
}


function findReferral(form, field) {
	window.open("/admin/service/referral.php?f=" + form + "&fld=" + field, "wReferral", "scrollbars=1,width=470,height=400");
}

function findAgent(form, field)
{
	window.open("/admin/agent/find_agent.php?frm=" + form + "&fld=" + field, "wFindAgent", "width=570,height=570");
}

function showAccountList(id, name, cli, status) {
	window.open("/admin/service/accountList.php?id=" + id + "&n=" + name + "&c=" + cli + "&st=" + status, "wAccountList", "scrollbars=1,width=480,height=400");
}

function showSpeedDial(p, f)
{
	window.open("/customer/contacts.php?p=" + p + "&f=" + f, "wContacts", "width=500,height=500");
}

function showError(id) {
	window.open("/admin/service/error.php?id=" + id, "wError", "width=300,height=150");
}

function showTopic(id) {
	window.open("/admin/kb/viewTopic.php?id=" + id, "wTopic", "scrollbars=1,resizable=yes,width=600,height=400");
}

function printCallHistory(fromDate, toDate) {
    window.open("/myaccount/print_calls.php?f=" + fromDate +"&t=" + toDate, "wCallHistoryReport", "scrollbars=1,width=800,height=540");
}

function printPaymentHistory(fromDate, toDate) {
    window.open("/myaccount/payments.php?a=p&p=-1&start="+fromDate+"&end="+toDate, "wPaymentHistoryReport", "scrollbars=1, width=800, height=540");
}

function popupWindowXY(url) {
	window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=600,height=525,screenX=100,screenY=100,top=75,left=100')
}

function customerActivity(agent,startDate,endDate){
	window.open('customerAccountActivity.php?number='+agent+'&sd='+startDate+'&ed='+endDate, 'customerActivity', 'scrollbars=1, resizable=1, copyhistory=no, width=580, height=580, screenX=100, screenY=100, top=150, left=275')
}

function showAgentDetail(id) {
	window.open('/admin/agent/agent_info.php?id='+id, 'agi'+id, "width=580,height=740,scrollbars=1,resizable=1");
}

function showAgentCommissionsHistory(id) {
	window.open('/admin/agent/commissionHistory.php?id='+id, 'agc'+id, "width=620,height=320,resizable=1");
}

function showAgentReportPDF(htmlFile, layout) {
	window.open('pdf_report.php?f=' + htmlFile + "&l=" + layout, htmlFile, "width=640,height=640,resizable=1");
}

//-->
