// JavaScript Document
function win1()
{
  var win = new Window({id: "win1", className: "alphacube", title: "Sample", maximizable:false, minimizable:false, draggable:false, width:80, height:100}); 
  //win.getContent().innerHTML = "<h1>Constraint inside page !!</h1>constraint: {top: 30, bottom:10}<br><a href='#' onclick='Windows.getWindow(\"win2\").maximize()'>Maximize me</a>"; 
  
  win.getContent().innerHTML = "<ul><li><a href='#'>Global</a></li><li><a href='#'>Minneapolis</a></li><li><a href='#'>Helsinki</a></li><li><a href='#'>Los Angeles</a></li></ul>"; 

  win.setDestroyOnClose(); 
  //win.showCenter();
  win.setLocation(58, 400);
  win.show();
  //win.setConstraint(true, {left:0, right:0, top: 30, bottom:10})
  win.toFront();
}

function win2()
{
  var win = new Window({id: "win2", className: "alphacube", title: "Sample", maximizable:false, minimizable:false, draggable:false, width:60, height:60}); 
  //win.getContent().innerHTML = "<h1>Constraint inside page !!</h1>constraint: {top: 30, bottom:10}<br><a href='#' onclick='Windows.getWindow(\"win2\").maximize()'>Maximize me</a>"; 
  
  win.getContent().innerHTML = "<ul><li><a href='#'>English</a></li><li><a href='#'>Finnish</a></li></ul>";

  win.setDestroyOnClose(); 
  //win.showCenter();
  win.setLocation(58, 492);
  win.show();
  //win.setConstraint(true, {left:0, right:0, top: 30, bottom:10})
  win.toFront();
}

function win3()
{
  var win = new Window({id: "win3", className: "alphacube", title: "Sample", maximizable:true, minimizable:false, draggable:false, width:760, height:500});
  
  ///////////
  var http = createRequestObject();
function createRequestObject()
{
	var ro;
	var browser = navigator.appName;
	if(browser == "Microsoft Internet Explorer"){
		ro = new ActiveXObject("Microsoft.XMLHTTP");
	}else{

		ro = new XMLHttpRequest();
	}
	return ro;
}

function update_comments()
{
	
	http.open('get', 'loginform1.php');
    http.onreadystatechange = handleResponse;
    http.send(null);
}
function handleResponse()
{
    if(http.readyState == 4)
	{
        win.getContent().innerHTML  = http.responseText;
		
				

	}
	}
update_comments();
  ///////////////////////
  //win.getContent().innerHTML = ""; 
  win.setDestroyOnClose(); 
  //win.setLocation(58, 540);
  //win.show();
  win.showCenter();
  win.setConstraint(true, {left:30, right:30, top: 30, bottom:30})
  win.toFront();
}

function win4()
{
  var win = new Window({id: "win4", className: "alphacube", title: "Sample", maximizable:false, closable:false, minimizable:false, draggable:false, width:277, height:135});
  
  var http = createRequestObject();
function createRequestObject()
{
	var ro;
	var browser = navigator.appName;
	if(browser == "Microsoft Internet Explorer"){
		ro = new ActiveXObject("Microsoft.XMLHTTP");
	}else{

		ro = new XMLHttpRequest();
	}
	return ro;
}

function update_comments()
{
	
	http.open('get', 'forgot_password.php');
    http.onreadystatechange = handleResponse;
    http.send(null);
}
function handleResponse()
{
    if(http.readyState == 4)
	{
        win.getContent().innerHTML  = http.responseText;
		
				

	}
	}
update_comments();
   
  //win.getContent().innerHTML = "<h1>No Constraint</h1>Wired mode<br><a href='#' onclick='Windows.getWindow(\"win4\").maximize()'>Maximize me</a>"; 
  win.setDestroyOnClose(); 
  win.showCenter();
  //win.setLocation(25, 725);
  //win.show();
  win.setConstraint(true, {left:0, right:0, top: 30, bottom:10})
  win.toFront();
}

function win5()
{
  var win = new Window({id: "win5", className: "alphacube", title: "Sample", maximizable:true, minimizable:false, draggable:false, width:747, height:460});
  //win.getContent().innerHTML = "<h1>No Constraint</h1>Wired mode<br><a href='#' onclick='Windows.getWindow(\"win4\").maximize()'>Maximize me</a>";
  
  var http = createRequestObject();
function createRequestObject()
{
	var ro;
	var browser = navigator.appName;
	if(browser == "Microsoft Internet Explorer"){
		ro = new ActiveXObject("Microsoft.XMLHTTP");
	}else{

		ro = new XMLHttpRequest();
	}
	return ro;
}

function update_comments()
{
	
	http.open('get', 'about1.php');
    http.onreadystatechange = handleResponse;
    http.send(null);
}
function handleResponse()
{
    if(http.readyState == 4)
	{
        win.getContent().innerHTML  = http.responseText;
		
				

	}
	}
update_comments();
   
  win.setDestroyOnClose(); 
  //win.setLocation(58, 540);
  //win.show();
  win.showCenter();
  win.setConstraint(true, {left:30, right:30, top: 30, bottom:30})
  win.toFront();
}

function win6()
{
  var win = new Window({id: "win6", className: "alphacube", title: "Sample", maximizable:true, minimizable:false, draggable:false, width:747, height:460});
  //win.getContent().innerHTML = "<h1>No Constraint</h1>Wired mode<br><a href='#' onclick='Windows.getWindow(\"win4\").maximize()'>Maximize me</a>";
  
  var http = createRequestObject();
function createRequestObject()
{
	var ro;
	var browser = navigator.appName;
	if(browser == "Microsoft Internet Explorer"){
		ro = new ActiveXObject("Microsoft.XMLHTTP");
	}else{

		ro = new XMLHttpRequest();
	}
	return ro;
}

function update_comments()
{
	
	http.open('get', 'terms1.php');
    http.onreadystatechange = handleResponse;
    http.send(null);
}
function handleResponse()
{
    if(http.readyState == 4)
	{
        win.getContent().innerHTML  = http.responseText;
		
				

	}
	}
update_comments();
   
  win.setDestroyOnClose(); 
  //win.setLocation(58, 540);
  //win.show();
  win.showCenter();
  win.setConstraint(true, {left:30, right:30, top: 30, bottom:30})
  win.toFront();
}

function win7()
{
  var win = new Window({id: "win7", className: "alphacube", title: "Sample", maximizable:true, minimizable:false, draggable:false, width:747, height:460});
  //win.getContent().innerHTML = ""; 
  
   var http = createRequestObject();
function createRequestObject()
{
	var ro;
	var browser = navigator.appName;
	if(browser == "Microsoft Internet Explorer"){
		ro = new ActiveXObject("Microsoft.XMLHTTP");
	}else{

		ro = new XMLHttpRequest();
	}
	return ro;
}

function update_comments()
{
	
	http.open('get', 'privacy1.php');
    http.onreadystatechange = handleResponse;
    http.send(null);
}
function handleResponse()
{
    if(http.readyState == 4)
	{
        win.getContent().innerHTML  = http.responseText;
		
				

	}
	}
update_comments();
  
  win.setDestroyOnClose(); 
  //win.setLocation(58, 540);
  //win.show();
  win.showCenter();
  win.setConstraint(true, {left:30, right:30, top: 30, bottom:30})
  win.toFront();
}

function win8()
{
  var win = new Window({id: "win8", className: "alphacube", title: "Sample", maximizable:true, minimizable:false, draggable:false, width:405, height:459});
  //win.getContent().innerHTML = "";
  
  var http = createRequestObject();
function createRequestObject()
{
	var ro;
	var browser = navigator.appName;
	if(browser == "Microsoft Internet Explorer"){
		ro = new ActiveXObject("Microsoft.XMLHTTP");
	}else{

		ro = new XMLHttpRequest();
	}
	return ro;
}

function update_comments()
{
	
	http.open('get', 'contact.php');
    http.onreadystatechange = handleResponse;
    http.send(null);
}
function handleResponse()
{
    if(http.readyState == 4)
	{
        win.getContent().innerHTML  = http.responseText;
		
				

	}
	}
update_comments();
   
  win.setDestroyOnClose(); 
  //win.setLocation(58, 540);
  //win.show();
  win.showCenter();
  win.setConstraint(true, {left:30, right:30, top: 30, bottom:30})
  win.toFront();
}

function win9()
{
  var win = new Window({id: "win9", className: "alphacube", title: "Sample", maximizable:true, minimizable:false, draggable:false, width:747, height:460});
  //win.getContent().innerHTML = ""; 
  
  var http = createRequestObject();
function createRequestObject()
{
	var ro;
	var browser = navigator.appName;
	if(browser == "Microsoft Internet Explorer"){
		ro = new ActiveXObject("Microsoft.XMLHTTP");
	}else{

		ro = new XMLHttpRequest();
	}
	return ro;
}

function update_comments()
{
	
	http.open('get', 'faq.html');
    http.onreadystatechange = handleResponse;
    http.send(null);
}
function handleResponse()
{
    if(http.readyState == 4)
	{
        win.getContent().innerHTML  = http.responseText;
		
				

	}
	}
update_comments();
  
  win.setDestroyOnClose(); 
  //win.setLocation(58, 540);
  //win.show();
  win.showCenter();
  win.setConstraint(true, {left:30, right:30, top: 30, bottom:30})
  win.toFront();
}

function win10()
{
  var win = new Window({id: "win10", className: "alphacube", title: "Sample", maximizable:true, minimizable:false, draggable:false, width:747, height:460});
  //win.getContent().innerHTML = ""; 
  
  var http = createRequestObject();
function createRequestObject()
{
	var ro;
	var browser = navigator.appName;
	if(browser == "Microsoft Internet Explorer"){
		ro = new ActiveXObject("Microsoft.XMLHTTP");
	}else{

		ro = new XMLHttpRequest();
	}
	return ro;
}

function update_comments()
{
	
	http.open('get', 'correspondence_view_all1.php');
    http.onreadystatechange = handleResponse;
    http.send(null);
}
function handleResponse()
{
    if(http.readyState == 4)
	{
        win.getContent().innerHTML  = http.responseText;
		
				

	}
	}
update_comments();
  
  win.setDestroyOnClose(); 
  //win.setLocation(58, 540);
  //win.show();
  win.showCenter();
  win.setConstraint(true, {left:30, right:30, top: 30, bottom:30})
  win.toFront();
}

function win11()
{
  var win = new Window({id: "win11", className: "alphacube", title: "Sample", maximizable:false, closable:false, minimizable:false, draggable:false, width:461, height:270});
  //win.getContent().innerHTML = ""; 
  
  var http = createRequestObject();
function createRequestObject()
{
	var ro;
	var browser = navigator.appName;
	if(browser == "Microsoft Internet Explorer"){
		ro = new ActiveXObject("Microsoft.XMLHTTP");
	}else{

		ro = new XMLHttpRequest();
	}
	return ro;
}

function update_comments()
{
	
	http.open('get', 'invite_friend.php');
    http.onreadystatechange = handleResponse;
    http.send(null);
}
function handleResponse()
{
    if(http.readyState == 4)
	{
        win.getContent().innerHTML  = http.responseText;
		
				

	}
	}
update_comments();
  
  win.setDestroyOnClose(); 
  //win.setLocation(58, 540);
  //win.show();
  win.showCenter();
  win.setConstraint(true, {left:30, right:30, top: 30, bottom:30})
  win.toFront();
}

function win12()
{
  var win = new Window({id: "win12", className: "alphacube", title: "Sample", maximizable:true, closable:true, minimizable:false, draggable:false, width:747, height:460});
  //win.getContent().innerHTML = ""; 
  
  var http = createRequestObject();
function createRequestObject()
{
	var ro;
	var browser = navigator.appName;
	if(browser == "Microsoft Internet Explorer"){
		ro = new ActiveXObject("Microsoft.XMLHTTP");
	}else{

		ro = new XMLHttpRequest();
	}
	return ro;
}

function update_comments()
{
	
	http.open('get', 'request1.php');
    http.onreadystatechange = handleResponse;
    http.send(null);
}
function handleResponse()
{
    if(http.readyState == 4)
	{
        win.getContent().innerHTML  = http.responseText;
		
				

	}
	}
update_comments();
  
  win.setDestroyOnClose(); 
  //win.setLocation(58, 540);
  //win.show();
  win.showCenter();
  win.setConstraint(true, {left:30, right:30, top: 30, bottom:30})
  win.toFront();
}

function win13()
{
  var win = new Window({id: "win13", className: "alphacube", title: "Sample", maximizable:true, closable:true, minimizable:false, draggable:false, width:747, height:460});
  //win.getContent().innerHTML = ""; 
  
  var http = createRequestObject();
function createRequestObject()
{
	var ro;
	var browser = navigator.appName;
	if(browser == "Microsoft Internet Explorer"){
		ro = new ActiveXObject("Microsoft.XMLHTTP");
	}else{

		ro = new XMLHttpRequest();
	}
	return ro;
}

function update_comments()
{
	
	http.open('get', 'send_collector1.php');
    http.onreadystatechange = handleResponse;
    http.send(null);
}
function handleResponse()
{
    if(http.readyState == 4)
	{
        win.getContent().innerHTML  = http.responseText;
		
				

	}
	}
update_comments();
  
  win.setDestroyOnClose(); 
  //win.setLocation(58, 540);
  //win.show();
  win.showCenter();
  win.setConstraint(true, {left:30, right:30, top: 30, bottom:30})
  win.toFront();
}

function win14()
{
  var win = new Window({id: "win14", className: "alphacube", title: "Sample", maximizable:true, closable:true, minimizable:false, draggable:false, width:747, height:460});
  //win.getContent().innerHTML = ""; 
  
  var http = createRequestObject();
function createRequestObject()
{
	var ro;
	var browser = navigator.appName;
	if(browser == "Microsoft Internet Explorer"){
		ro = new ActiveXObject("Microsoft.XMLHTTP");
	}else{

		ro = new XMLHttpRequest();
	}
	return ro;
}

function update_comments()
{
	
	http.open('get', 'thought.php');
    http.onreadystatechange = handleResponse;
    http.send(null);
}
function handleResponse()
{
    if(http.readyState == 4)
	{
        win.getContent().innerHTML  = http.responseText;
		
				

	}
	}
update_comments();
  
  win.setDestroyOnClose(); 
  //win.setLocation(58, 540);
  //win.show();
  win.showCenter();
  win.setConstraint(true, {left:30, right:30, top: 30, bottom:30})
  win.toFront();
}

function win15()
{
  var win = new Window({id: "win15", className: "alphacube", title: "Sample", maximizable:true, closable:true, minimizable:false, draggable:false, width:747, height:460});
  //win.getContent().innerHTML = ""; 
  
  var http = createRequestObject();
function createRequestObject()
{
	var ro;
	var browser = navigator.appName;
	if(browser == "Microsoft Internet Explorer"){
		ro = new ActiveXObject("Microsoft.XMLHTTP");
	}else{

		ro = new XMLHttpRequest();
	}
	return ro;
}

function update_comments()
{
	
	http.open('get', 'viewallthought.php');
    http.onreadystatechange = handleResponse;
    http.send(null);
}
function handleResponse()
{
    if(http.readyState == 4)
	{
        win.getContent().innerHTML  = http.responseText;
		
				

	}
	}
update_comments();
  
  win.setDestroyOnClose(); 
  //win.setLocation(58, 540);
  //win.show();
  win.showCenter();
  win.setConstraint(true, {left:30, right:30, top: 30, bottom:30})
  win.toFront();
}


function win16()
{
  var win = new Window({id: "win16", className: "alphacube", title: "Sample", maximizable:true, closable:true, minimizable:false, draggable:false, width:747, height:460});
  //win.getContent().innerHTML = ""; 
  
  var http = createRequestObject();
function createRequestObject()
{
	var ro;
	var browser = navigator.appName;
	if(browser == "Microsoft Internet Explorer"){
		ro = new ActiveXObject("Microsoft.XMLHTTP");
	}else{

		ro = new XMLHttpRequest();
	}
	return ro;
}

function update_comments()
{
	
	http.open('get', 'thought_category.php');
    http.onreadystatechange = handleResponse;
    http.send(null);
}
function handleResponse()
{
    if(http.readyState == 4)
	{
        win.getContent().innerHTML  = http.responseText;
		
				

	}
	}
update_comments();
  
  win.setDestroyOnClose(); 
  //win.setLocation(58, 540);
  //win.show();
  win.showCenter();
  win.setConstraint(true, {left:30, right:30, top: 30, bottom:30})
  win.toFront();
}


