
function popup_window(strURL, size_width, size_height, has_scrollbars, has_resize, windowname) {
   if (!windowname) windowname = "popwindow";
        window_options = 'toolbar=0,width=' + size_width + ',' + 'height=' + size_height + ',center,directories=0,status=1,resizable=' + has_resize + ',scrollbars=' + has_scrollbars + ',menubar=0,left=175,top=100';
        newWindow=window.open(strURL, windowname, window_options);
        newWindow.resizeTo(size_width + 25, size_height + 100);
        newWindow.focus();
        }  

function disableForm(theform) {
  if (document.all || document.getElementById) {
    for (i = 0; i < theform.length; i++) {
      var tempobj = theform.elements[i];
      if (tempobj.type.toLowerCase() == "submit") {
        tempobj.disabled = true;
        }
	  }
	}
  }	

function ConfirmURL (strMessage, url) {
	if (confirm(strMessage)) {
		location.href = url;
		}
	}  
	
function voidLink() {
	return;
	}
	
function test() {
	alert('Test');
	}
	
function getContactInfo(intContactUid, strResultsDiv) {
   	  		
   	  		var resultsDiv = $('#' + strResultsDiv);

			var dataStr = 'cuid='  + intContactUid;
			resultsDiv.show();
			$.ajax({
				method: "get",url: "/members/myContacts/ajax_getContactInfo.php", data: dataStr,
				beforeSend: function(){resultsDiv.html('<img src="/images2/loader.white.gif" align="middle" hspace="10" /> <i>Loading...</i>');},
				success: function(html){
					resultsDiv.html(html);
					}
				 });
   	  		} 
