// JScript source code

// Variables
//var strTitle = "Market-I - New";
//SetTitle();

var g_strSessionValue = new String();
var g_strCookieValue = new String();

var ns = document.getElementById && !document.all;
var ie = document.all && navigator.userAgent.indexOf("Opera") == -1;


// Functions

function SetTitle()
{
	window.document.title = strTitle;
}


function logout()
{
	parent.document.location = 'Logout.aspx';
}


function CheckSize(idForSize)
{
	var forSize = document.getElementById(idForSize)
	if ( forSize )
	{
		alert( "Left : " + forSize.offsetLeft );
		alert( "Top : " + forSize.offsetTop );
		alert( "Width : " + forSize.offsetWidth );
		alert( "Height : " + forSize.offsetHeight );
	}
}

		
function getCookie(strCookieName)
{
	if (document.cookie.length > 0)
	{ 
		var nStart = new Number();
		var nEnd = new Number();
		nStart = document.cookie.indexOf(strCookieName + "=");
		if (nStart != -1)
		{ 
			nStart = nStart + strCookieName.length+1 ;
			nEnd = document.cookie.indexOf(";",nStart);
			if (nEnd == -1)
			{
				nEnd = document.cookie.length;
			}
			return unescape(document.cookie.substring(nStart,nEnd));
		} 
	}
	return ""
}


function setCookie(strCookieName,strCookieValue)
{

	if ( strCookieValue )
	{
		document.cookie = strCookieName + "=" + escape(strCookieValue);
	}
	else
	{
		var toNull = null;
		var dtExDate = new Date();
		dtExDate.setMinutes(-5);
		strCookieName = strCookieName + "=" + escape(toNull) + "; expires=" + dtExDate.toGMTString();
		document.cookie = strCookieName;
	}
}



// ****************************************************************************************************************************** //


function myprofile_pre()
{
	window.parent.document.location.replace('myprofile_pre.aspx');
}

function myprofile_emp()
{
	window.parent.document.location.replace('myprofile_emp.aspx');
}

function myprofile_skl()
{
	window.parent.document.location.replace('myprofile_skl.aspx');
}


function popupWindow(page)
{
	popup_window = window.open(page ,'popup_window','top=10,left=10,width=800,height=700,scrollbars=yes');
	popup_window.focus();
}