
function launch(newURL, newName, newFeatures, orgName) {
  var remote = open(newURL, newName, newFeatures);
  if (remote.opener == null)
    remote.opener = window;
  remote.opener.name = orgName;
  return remote;
}


function PopupWindow(url)
{
  myRemote = launch(url, "myRemote", "height=100,width=270,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=1,toolbar=0,z-lock=0", "myWindow");
  // myRemote = launch(url, "myRemote", "height=400,width=110,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0", "myWindow");
}
function PhotoPopupWindow(url)
{
  myRemote = launch(url, "myRemote", "height=300,width=300,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=1,toolbar=0,z-lock=0", "myWindow");
  // myRemote = launch(url, "myRemote", "height=400,width=110,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0", "myWindow");
}

function ChatPopupWindow(url) {
  myRemote = launch(url, "myRemote", "height=400,width=400,channelmode=0,dependent=1,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0,top=200,left=200,alwaysRaised=1,z-lock=0", "myWindow");
 // myRemote = launch(url, "myRemote", "height=400,width=110,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0", "myWindow");
}


function launchRemote() {
  myRemote = launch("http://www.webreference.com/js/column7/demoontop.html", "myRemote", "height=400,width=110,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0", "myWindow");
}

function testchat() {
	frm= window.chat_form;
	frm.totalmsg.src = frm.totalmsg.src + "\nTest Says : " + frm.msg.value; 
	 
	frm.msg.value="";
}

function DeleteMembership() {
	frm = window.memberedit;
	if (confirm("Are you sure want to delete your membership?") )
	{
		alert ("Now your membership details has been deleted");
		frm.mode.value = "Deletemember";
		frm.submit();
	}
 }
 function get_confirmation(text)
 {	
	 if(!confirm(text))
	 {
		return false;
	 }
	 else
	 {
		return true;
	 }
	
 }