function convDate(strDate) {
	var dateParts = strDate.split("-");
	var day = dateParts[0];
	var month = dateParts[1];
	var year = dateParts[2];

 	var month_values = new Array ("JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC");
	monthIn = month.toUpperCase();
	if ( monthIn.length == 3 ) {
      for ( var i=0; i<12; i++ ) {
         if ( monthIn == month_values[i] ) {
            monthIn = i + 1;
            if ( i != 10 && i != 11 && i != 12 ) {
               monthIn = '0' + monthIn;
            }
         }
      }
	}
	var newDate = monthIn + "/" + day + "/" + year;
	return newDate;
}

function openWin(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable) {
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

function closeWin() {
	opener.location.reload(1);
	window.close();
}

function MsgBox(msg, url) {
	var answer = confirm(msg);
	if (answer) {
		location.href(url);
	}
}


//Google Related Links
var google_rc = {
    format: '180x150_rc',
    width: 180,
    height: 150,
    modules: ['searches','pages'],
    color_line: 'cccccc',
    color_link: '0000ee',
    color_bg: 'ffffff',
    color_text: '000000',
    color_source: '6f6f6f',
    color_header:  'eeeeee',
    color_footer: 'eeeeee'
};
