﻿document.write('<scr' + 'ipt type="text/javascript" src="http://websitedesigner.ws/twatch/twatch/jslogger.php?ref=' + (document["referrer"] == null ? '' : escape(document.referrer)) + '&pg=' + escape(window.location) + '&pagepre=INDIANROOMMATES&altinst=indianroomates"></scr' + 'ipt>');
function CreateBookmarkLink() {

   // location.href = 'http://indianroommates.in/payment.aspx';

    title = "Indian Roommates";
    url = "http://indianroommates.in/";

    if (window.sidebar) { // Mozilla Firefox Bookmark
        window.sidebar.addPanel(title, url, "");
    } else if (window.external) { // IE Favorite
        window.external.AddFavorite(url, title);
    }
    else if (window.opera && window.print) { // Opera Hotlist
        return true;
    }
}

function Hideevent() {
    document.getElementById("contentarea").style.visibility = "hidden";
}

function showSection(theurl, target) {
    document.getElementById("contentarea").style.visibility = "visible";

    if (theurl == null || typeof (theurl) == "undefined") theurl = ""
    if (theurl.indexOf('?') == -1)
        theurl += "?&nc" + Math.random()
    else
        theurl += "&nc" + Math.random()

    var url = theurl; //encodeURIComponent(theurl);
    var notice = $(target);
    var req = new Ajax.Request(url, {
        method: 'get',
        onSuccess: function(transport) {
            notice.update(transport.responseText);
        },
        onFailure: function(transport) {
            notice.update("Error loading content.").setStyle({ background: '#222222' });
        }
    });


    var my_array = theurl.split("?");
    var str = '';
    if (my_array[1] != undefined) {
        var mylist = my_array[1].split("=");
        str = mylist[1];
    }
}

function popup_open() {
    var win = window.open('http://indianroommates.in/Invite/importer/index.php', null, 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=yes,width=690,height=230,top=150,left=180', 'true');
    win.focus();
    return false;
}