// JavaScript Document
	
	function showOK()
	{
		alert('OK');
	}

	function reSizeContent()
	{
//for Firefox Browser
		if(window.innerWidth >1000)
		{
		 	document.getElementById('StoryId').style.width = (window.innerWidth-440)+'px';
		}
		else
		{
			document.getElementById('StoryId').style.width ='580px';
		}
//for IE Browser
		if(document.body.clientWidth >1000)
		{
		 	document.getElementById('StoryId').style.width = (document.body.clientWidth-440)+'px';
		}
		else
		{
			document.getElementById('StoryId').style.width ='580px';
		}
	}
	
	function requestnew(url, params, target)
	{
		var myAjax = new Ajax.Request(url,
		{
			method:'post',
			parameters: params,
			onSuccess: function(transport){
			$(target).innerHTML = transport.responseText;
		},
		onFailure: function(){ alert('sdd') }
		});
	}

	function fncActivePage(numPages,pageActive,tabName)
	{
		for(pageIdx=0; pageIdx <numPages; pageIdx++)
		{
			if(pageIdx!=pageActive)
			{
				document.getElementById(tabName+pageIdx).style.display = 'none';
			}
		}
		document.getElementById(tabName+pageActive).style.display = '';
	}