function myDrawLine(myBounds, myStrokeWeight, myRegistrationColor, myNoneSwatch, myLayer){
var myDocument=app.activeDocument;
var myColor =null;
for (var i=0;i<myDocument.colors.length;i++)
{
var col=myDocument.colors[i];
if (!col.name)
{
try
{
col.colorValue=[0,100,100,0];
myColor=col;
break;
} catch (err)
{
}
}
}
var myLines = app.activeWindow.activeSpread.graphicLines.add(myLayer, undefined, undefined,{strokeWeight:myStrokeWeight, geometricBounds:myBounds});
myLines.fillColor=myColor;
myLines.fillColor.colorValue=[0,100,0,0];
}