﻿function resetField(element,option,string){
if  (option == '1' && element.value == string) {element.value =''}
if  (option == '2' && element.value == '') { element.value = string }
}
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=540,height=680,location=no');");
}
function DoSubmit(){
document.frmPreview.submit();
}

function PaySubmit()
{//AlanB I don't know where ths script was added but it was missing so i put it here
document.SagePayForm.submit();
}

