/*
 * JSMin
 * Javascript Compressor
 * http://www.crockford.com/
 * http://www.smallsharptools.com/
*/

function EkUtil_parseQuery()
{var objQuery=new Object();var strQuery=location.search.substring(1);var aryQuery=strQuery.split("&");var pair=[];for(var i=0;i<aryQuery.length;i++)
{pair=aryQuery[i].split("=");if(2==pair.length)
{objQuery[unescape(pair[0])]=unescape(pair[1]);}}
return objQuery;}
function EkUtil_HtmlAttribute(name,data)
{var html="";data=data+"";data=data.replace(/\&/,"&amp;");html+=" "+name.toLowerCase()+"="+EkUtil_QuotedValue(data);return html;}
function EkUtil_HtmlEncodedAttribute(attrib,value)
{var html="";value=$ektron.htmlEncode(value);html=" "+attrib.toLowerCase()+"=\""+value+"\"";return html;}
function EkUtil_JavaScriptAttributeValue(value)
{value=value.replace(/'/g,"\\'");value=value.replace(/"/g,"'");return value;}
function EkUtil_JavaScriptAttribute(attrib,value)
{var html="";value=EkUtil_JavaScriptAttributeValue(value);html=" "+attrib.toLowerCase()+"=\""+value+"\"";return html;}
function EkUtil_QuotedValue(value)
{var content="";if((!EkUtil_IsQuote(value.substr(0,1)))||(!EkUtil_IsQuote(value.substr(value.length-1,1))))
{if(value.indexOf("\"")>-1)
{if(value.indexOf("'")>-1)
{content="\""+value.replace(/\"/,"'")+"\"";}
else
{content="'"+value+"'";}}
else
{content="\""+value+"\"";}}
else
{content=value;}
return content;}
function EkUtil_IsQuote(strChar)
{if("\""==strChar||"'"==strChar)
{return true;}
else
{return false;}}

